import{j as e,a8 as c,x as d,u,b as h,l as o,a9 as x,p as m,q as j,s as p,L as f,m as y}from"./main-BiT4j4N5.js";import{b as _}from"./Heading-CvufBt0-.js";import{C as U}from"./computer-BrA2K14l.js";import{D as C,a as L,b as N,c as i,d as s,e as r}from"./SessionInfo-BtuHKLPz.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css               */import"./VisualListItem-BkHZYn9E.js";import"./Separator-Bb4mxhob.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-DHj3XML6.js.map
