import{j as e,a8 as c,w as d,u,b as h,k as o,a9 as x,o as m,q as j,p,L as f,l as y}from"./main-CiAhdYQG.js";import{b as _}from"./Heading-zTQC9Kqs.js";import{C as U}from"./computer-Cx9wZ7Nf.js";import{D as C,a as L,b as N,c as i,d as s,e as r}from"./SessionInfo-BtmlaGNW.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css               */import"./VisualListItem-Dd-weqBc.js";import"./Separator-CVNE-7yB.js";const g="_external-link_b03cz_8",q={externalLink:g},D=({children:n,className:t,...a})=>e.jsx(c,{className:d(t,q.externalLink),target:"_blank",...a,children:n}),k=o(`
  fragment OAuth2Client_detail on Oauth2Client {
    id
    clientId
    clientName
    clientUri
    logoUri
    tosUri
    policyUri
    redirectUris
  }
`),l=({uri:n})=>{if(!n)return null;const t=new URL(n),a=t.host+t.pathname;return e.jsx(D,{href:n,children:a})},b=({client:n})=>{const t=h(k,n),{t:a}=u();return e.jsxs("div",{className:"flex flex-col gap-10",children:[e.jsxs("header",{className:"flex flex-row gap-2 justify-start items-center",children:[e.jsx(U,{logoUri:t.logoUri||void 0,name:t.clientName||t.clientId,size:"1.5rem"}),e.jsx(_,{children:t.clientName})]}),e.jsxs(C,{children:[e.jsx(L,{children:a("frontend.oauth2_client_detail.details_title")}),e.jsxs(N,{children:[t.clientName&&e.jsxs(i,{children:[e.jsx(s,{children:a("frontend.oauth2_client_detail.name")}),e.jsx(r,{children:t.clientName})]}),t.tosUri&&e.jsxs(i,{children:[e.jsx(s,{children:a("frontend.oauth2_client_detail.terms")}),e.jsx(r,{children:e.jsx(l,{uri:t.tosUri})})]}),t.policyUri&&e.jsxs(i,{children:[e.jsx(s,{children:a("frontend.oauth2_client_detail.policy")}),e.jsx(r,{children:e.jsx(l,{uri:t.policyUri})})]})]})]})]})},A=o(`
  query OAuth2Client($id: ID!) {
    oauth2Client(id: $id) {
      ...OAuth2Client_detail
    }
  }
`),O=n=>j({queryKey:["oauth2Client",n],queryFn:({signal:t})=>y({query:A,variables:{id:n},signal:t})});function S(){const{id:n}=x.useParams(),{data:{oauth2Client:t}}=m(O(n));if(!t)throw p();return e.jsx(f,{children:e.jsx(b,{client:t})})}export{S as component};
//# sourceMappingURL=clients._id-CBcE7ZJr.js.map
