1import{k as $,t as b,C as ie,e as X,u as Z,r as a,j as e,c as ae}from"./index-CrefBu_C.js";import{C as H}from"./Card-BfkCMIEB.js";import{U as ne}from"./UserManagementPage-Bn23R34P.js";import{A as le}from"./AccessManagementPage-CiZDcfVr.js";import{C as de}from"./CustomRolesPage-DnRWMuGc.js";import{I as C}from"./Input-BAmJiK_L.js";import{B as N}from"./Button-BoOvYJ5w.js";import{B as ee}from"./Badge-DqOaUsqu.js";import{S as ce}from"./Switch-CruaU0dO.js";import{A as me,a as P,c as A,b as T}from"./Accordion-UUDNARtI.js";import{c as pe,T as ue,a as xe,b as ge}from"./Tooltip-spVR7ykF.js";import{u as he}from"./useQuery-Dvv3k0s4.js";import{u as U}from"./useApi-vafndU7C.js";import{u as q}from"./useMutation-CqLSLqCK.js";import{g as M}from"./error-DtpM3Nm5.js";import{u as se}from"./useGetTenants-CYY5NzYl.js";import{T as be}from"./triangle-alert-Bd720_n5.js";import{C as K}from"./copy-OPjyCa1s.js";import{I as fe}from"./info-DFF37f-9.js";import{u as je}from"./usePermissions-HXjXCk6m.js";import{c as ve}from"./clickable-DY9qeUc0.js";import{U as ye}from"./users-DRw6_1CT.js";import{K as Ne}from"./TokenManagementSection-D7mo90Jv.js";import{S as Se}from"./shield-DYiQQSD7.js";import{S as we}from"./shield-check-DxdWNNJa.js";import{L as ke}from"./lock-BwRrSzU9.js";import{C as Ce}from"./chevron-right-CGJTN0Mf.js";import"./utils-D2jV1zSv.js";import"./useGetMe-Dp7B8jxI.js";import"./useSelectedTenantId-Cq7mdshq.js";import"./DataTable-YpzARhid.js";import"./Table-DTLYjXZE.js";import"./arrow-up-down-DfJmU1RH.js";import"./Avatar-BZeYGWNb.js";import"./index-q81Nbx7P.js";import"./useReturnFocus-B9m5PlDi.js";import"./index-BABCFht1.js";import"./Select-BQjwbJpJ.js";import"./index-BdQq_4o_.js";import"./index-UE1bulRX.js";import"./index-CaBE7e6y.js";import"./index-D3B1fLlf.js";import"./index-BRagQ4Pk.js";import"./index-U169Eawi.js";import"./chevron-down-R5VWiFHe.js";import"./check-Csn1XK7r.js";import"./chevron-up-CPsEWrlD.js";import"./Dialog-HOcJfrFt.js";import"./x-CLOYZ1fI.js";import"./SearchableSelect-BykJUupU.js";import"./search-GTmfR8FQ.js";import"./plus-DGWglMLV.js";import"./useGetRoles-BROUSa5t.js";import"./user-BPNuihhl.js";import"./circle-check-big-DYBfWmdC.js";import"./trash-2-BH6mg_uv.js";import"./mail-CPLDJC0d.js";import"./circle-x-BnTuS0uZ.js";import"./clock-BPQxJnfr.js";import"./send-HosSbZIc.js";import"./AssignPermissionsDialog-BknUE498.js";import"./ModernDialog-C_bn_5aR.js";import"./FormField-Cb0J5zgl.js";import"./Textarea-KS5MpVcs.js";import"./Slider-BInmD68P.js";import"./Checkbox-CjgUNYe4.js";import"./Popover-CCytTHgk.js";import"./Calendar-BDRvM2zl.js";import"./en-US-DLRsJOoE.js";import"./chevron-left-Bkz1FWFT.js";import"./calendar-BAT_aypW.js";const Ue=r=>(r==null?void 0:r.data)??r,Oe=()=>{const{api:r}=U();return he({queryKey:["sso-config"],queryFn:async()=>{const o=await r.http.request({path:"/sso/config",method:"GET",secure:!0});return Ue(o.data)}})},Le=r=>(r==null?void 0:r.data)??r,Ee=()=>{const{api:r}=U(),o=$();return q({mutationFn:async t=>{const s=await r.http.request({path:"/sso/config",method:"PUT",body:t,type:ie.Json,secure:!0});return Le(s.data)},onSuccess:()=>{o.invalidateQueries({queryKey:["sso-config"]}),b.success("SSO configuration saved")},onError:t=>{b.error(M(t))}})},re=r=>(r==null?void 0:r.data)??r,Ie=()=>{const{api:r}=U(),o=$();return q({mutationFn:async()=>{const t=await r.http.request({path:"/sso/enable",method:"POST",secure:!0});return re(t.data)},onSuccess:()=>{o.invalidateQueries({queryKey:["sso-config"]}),b.success("SSO enabled")},onError:t=>b.error(M(t))})},Re=()=>{const{api:r}=U(),o=$();return q({mutationFn:async()=>{const t=await r.http.request({path:"/sso/disable",method:"POST",secure:!0});return re(t.data)},onSuccess:()=>{o.invalidateQueries({queryKey:["sso-config"]}),b.success("SSO disabled")},onError:t=>b.error(M(t))})},x=({label:r,info:o,htmlFor:t})=>e.jsxs("div",{className:"mb-1 flex items-center gap-1.5",children:[e.jsx("label",{htmlFor:t,className:"text-xs font-medium text-muted-foreground tracking-wide",children:r}),o?e.jsx(pe,{children:e.jsxs(ue,{delayDuration:200,children:[e.jsx(xe,{asChild:!0,children:e.jsx("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground hover:text-foreground hover:bg-accent transition-colors","aria-label":`${r} help`,children:e.jsx(fe,{className:"h-3.5 w-3.5"})})}),e.jsx(ge,{className:"max-w-xs",children:o})]})}):null]}),w=({id:r,value:o,placeholder:t,onChange:s,label:d,className:f,readOnly:u=!1,onCopy:j})=>e.jsxs("div",{className:"relative",children:[e.jsx(C,{id:r,placeholder:t,value:o,onChange:l=>s(l.target.value),readOnly:u,className:`pr-20 ${f??"bg-card border-border/50 focus:bg-card focus:border-primary/50 transition-all"}`}),o.trim()?e.jsxs(N,{type:"button",variant:"outline",size:"sm",className:"absolute right-1.5 top-1/2 h-7 -translate-y-1/2 px-2.5",onClick:()=>void j(o,d),children:[e.jsx(K,{className:"h-3.5 w-3.5 mr-1"}),"Copy"]}):null]}),De=()=>{var _,Y;const{tenantId:r}=X({strict:!1}),o=Z(),{data:t}=se(),{data:s,isLoading:d}=Oe(),f=Ee(),u=Ie(),j=Re(),[l,g]=a.useState(""),[i,m]=a.useState(""),[p,c]=a.useState(""),[S,O]=a.useState(""),[L,F]=a.use
1State(""),[E,z]=a.useState(""),[I,B]=a.useState(""),[R,W]=a.useState(""),[G,J]=a.useState("");a.useEffect(()=>{s&&(m(s.emailDomain??""),g(s.providerName??""),c(s.customerKey??s.clientId??""),F(s.oidcWellKnownUrl??s.issuerUrl??""),z(s.authorizationUrl??""),B(s.accessTokenUrl??s.tokenUrl??""),W(s.profileUrl??s.userInfoUrl??""),J(s.jwksUrl??""))},[s]);const Q=f.isPending||u.isPending||j.isPending,v=a.useMemo(()=>{var n;return(n=t==null?void 0:t.data)==null?void 0:n.find(y=>y.id===r)},[r,t==null?void 0:t.data]),D=a.useMemo(()=>{var y;const n=(v==null?void 0:v.subscriptionValidUntil)??((y=v==null?void 0:v.licenseEdition)==null?void 0:y.expiryDate);return n?new Date(n)<=new Date:!1},[v]),k=!!((_=s==null?void 0:s.id)!=null&&_.trim()),te=L.trim().length>0||E.trim().length>0&&I.trim().length>0&&R.trim().length>0,oe=p.trim().length>0&&te&&(S.trim().length>0||k),V=((Y=s==null?void 0:s.providerName)==null?void 0:Y.trim())||"Unnamed provider",h=async(n,y)=>{try{await navigator.clipboard.writeText(n),b.success(`${y} copied`)}catch{b.error(`Unable to copy ${y.toLowerCase()}`)}};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-6 mb-2",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-3xl font-bold gradient-text",children:"SSO Settings"}),e.jsx("p",{className:"text-muted-foreground text-lg",children:"Configure your external identity provider and enable SSO for this tenant."})]})}),d?e.jsx("div",{className:"text-muted-foreground",children:"Loading SSO configuration..."}):e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_340px] gap-6 items-start",children:[e.jsxs("section",{className:"space-y-5 rounded-xl border border-gray-200 dark:border-white/15 bg-muted/30 p-4 sm:p-6",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Step 1"}),e.jsx("h2",{className:"text-lg font-semibold",children:"Configure provider"}),e.jsx("p",{className:"text-sm text-muted-foreground opacity-60",children:"Enter credentials, endpoint URLs and domain mapping, then save."})]}),D&&e.jsxs("div",{className:"rounded-lg border border-amber-500/20 bg-amber-500/15 p-3.5 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-amber-700 dark:text-amber-300",children:[e.jsx(be,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Subscription Expired"})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"SSO changes are locked until your subscription is renewed. Please update billing to save SSO config or change activation."}),e.jsx(N,{type:"button",variant:"default",size:"sm",onClick:()=>void o({to:"/tenant/$tenantId/billing",params:{tenantId:r??""}}),children:"Go to Billing"})]}),e.jsxs(me,{type:"multiple",defaultValue:["credentials","domain-mapping"],className:"space-y-3",children:[e.jsxs(P,{value:"credentials",className:"rounded-lg border border-gray-200 dark:border-white/15 bg-background/40",children:[e.jsx(A,{className:"px-3 py-2 hover:no-underline",children:e.jsx("span",{className:"inline-flex items-center rounded-md bg-background/60 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-foreground/90",children:"Credentials"})}),e.jsxs(T,{className:"px-5 pt-3 pb-5 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(x,{label:"Provider name",info:"Name visible to users on login (e.g. Company SSO).",htmlFor:"sso-provider-name"}),e.jsx(C,{id:"sso-provider-name",placeholder:"Provider name (e.g. Company SSO)",value:l,onChange:n=>g(n.target.value),className:"bg-card border-border/50 focus:bg-card focus:border-primary/50 transition-all"})]}),e.jsxs("div",{children:[e.jsx(x,{label:"Customer key",info:"OIDC client identifier from your identity provider.",htmlFor:"sso-customer-key"}),e.jsx(w,{id:"sso-customer-key",placeholder:"Customer key",value:p,onChange:c,label:"Customer key",onCopy:h})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(x,{label:"Secret",info:k?"OIDC client secret. Leave blank when saving other fields â the existing secret is kept (many IdPs show the secret only once).":"OIDC client secret tied to the customer key.",htmlFor:"sso-secret"}),e.jsx(C,{id:"sso-secret",placeholder:k?"Leave blank to keep current secret":"Secret",type:"password",value:S,onChange:n=>O(n.target.value),className:"bg-card border-border/50 focus:bg-card focus:border-primary/50 transition-all"})]}),e.jsxs("div",{children:[e.jsx(x,{label:"OIDC well-known URL",info:"Discovery endpoint, usually ending with /.well-known/openid-configuration.",htmlFor:"sso-oidc-well-known-url"}),e.jsx(w,{id:"sso-oidc-well-known-url",placeholder:"OIDC well-known URL",value:L,onChange:F,label:"OIDC well-known URL",onCopy:h})]})]})]})]}),e.jsxs(P,{value:"endpoint-overrides",className:"rounded-lg border border-gray-200 dark:border-white/15 bg-background/40",children:[e.jsx(A,{className:"px-3 py-2 hover:no-underline",children:e.jsx("span",{className:"inline-flex items-center rounded-md bg-background/60 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-foreground
1/90",children:"Endpoint overrides (optional)"})}),e.jsxs(T,{className:"px-5 pt-3 pb-5 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(x,{label:"Authorization URL",info:"Override only when your IdP does not provide discovery metadata.",htmlFor:"sso-authorization-url"}),e.jsx(w,{id:"sso-authorization-url",placeholder:"Authorization URL",value:E,onChange:z,label:"Authorization URL",onCopy:h})]}),e.jsxs("div",{children:[e.jsx(x,{label:"Access token URL",info:"Token endpoint used by OAuth2 code exchange.",htmlFor:"sso-access-token-url"}),e.jsx(w,{id:"sso-access-token-url",placeholder:"Access token URL",value:I,onChange:B,label:"Access token URL",onCopy:h})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(x,{label:"Profile URL",info:"User profile/userinfo endpoint used to fetch identity claims.",htmlFor:"sso-profile-url"}),e.jsx(w,{id:"sso-profile-url",placeholder:"Profile URL",value:R,onChange:W,label:"Profile URL",onCopy:h})]}),e.jsxs("div",{children:[e.jsx(x,{label:"OIDC JWKS URL",info:"JSON Web Key Set endpoint used for signature verification.",htmlFor:"sso-jwks-url"}),e.jsx(w,{id:"sso-jwks-url",placeholder:"OIDC JWKS URL",value:G,onChange:J,label:"OIDC JWKS URL",onCopy:h})]})]})]})]}),e.jsxs(P,{value:"domain-mapping",className:"rounded-lg border border-gray-200 dark:border-white/15 bg-background/40",children:[e.jsx(A,{className:"px-3 py-2 hover:no-underline",children:e.jsx("span",{className:"inline-flex items-center rounded-md bg-background/60 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-foreground/90",children:"Domain mapping"})}),e.jsx(T,{className:"px-5 pt-3 pb-5 space-y-3",children:e.jsx("div",{className:"grid grid-cols-1 gap-4",children:e.jsxs("div",{children:[e.jsx(x,{label:"SSO domain",info:"Domain matched against user email addresses to trigger SSO login.",htmlFor:"sso-email-domain"}),e.jsx(C,{id:"sso-email-domain",placeholder:"SSO Domain (e.g. microsoft.com)",value:i,onChange:n=>m(n.target.value),className:"bg-card border-border/50 focus:bg-card focus:border-primary/50 transition-all"})]})})})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:s!=null&&s.updatedAt?`Last updated ${new Date(s.updatedAt).toLocaleString()}`:"Save to create provider configuration"}),e.jsx(N,{variant:"action",disabled:!oe||Q||D,onClick:()=>f.mutate({emailDomain:i.trim()||void 0,providerName:l||void 0,customerKey:p.trim()||void 0,secret:S.trim()||void 0,oidcWellKnownUrl:L.trim()||void 0,authorizationUrl:E.trim()||void 0,accessTokenUrl:I.trim()||void 0,profileUrl:R.trim()||void 0,jwksUrl:G.trim()||void 0}),children:"Save SSO config"})]})]}),e.jsxs("section",{className:"space-y-4 rounded-xl border border-gray-200 dark:border-white/15 bg-muted/30 p-4 sm:p-5 lg:sticky lg:top-20",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Step 2"}),e.jsx("h2",{className:"text-base font-semibold",children:"Activation"}),e.jsx("p",{className:"text-sm text-muted-foreground opacity-60",children:"Enable or disable SSO for tenant login."})]}),k?e.jsxs("div",{className:"rounded-lg border border-gray-200 dark:border-white/15 bg-background/70 p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:V}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s!=null&&s.enabled?"Enabled for tenant login":"Currently disabled"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx(ee,{variant:"default",children:s!=null&&s.enabled?"Enabled":"Disabled"}),e.jsx(ce,{checked:!!(s!=null&&s.enabled),disabled:Q||D,onCheckedChange:n=>{if(n){u.mutate();return}j.mutate()},"aria-label":`Toggle SSO for ${V}`})]})]}):e.jsx("div",{className:"rounded-lg border border-gray-200 dark:border-white/15 bg-background/50 p-4",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"No saved SSO provider yet. Complete Step 1 first."})})]})]}),e.jsxs("section",{className:"space-y-3 rounded-xl border border-gray-200 dark:border-white/15 bg-muted/20 p-4 sm:p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Step 3"}),e.jsx("h3",{className:"text-sm font-semibold",children:"Integration URLs"}),e.jsx("p",{className:"text-xs text-muted-foreground opacity-60",children:"Use these URLs when configuring your identity provider."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Callback URL"}),e.jsxs("div",{className:"flex h-10 w-full items-center justify-between gap-2 rounded-md bg-card shadow-md px-3 py-2 text-sm",children:[e.jsx("p",{className:"truncate text-muted-foreground",children:(s==null?void 0:s.callbackUrl)??"-"}),(s==null?void 0:s.callbackUrl)&&e.jsxs(N,{type:"button",variant:"outline",size:"sm",className:"h-7 shrink-0",onClick:()=>void h(s.callbackUrl,"Callback URL"),children:[e.jsx(K,{className:"h-4 w-4 mr-1"}),"Copy"]})]})]}),(s==null?void 0:s.loginUrl)&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Current Login URL"}),e.jsxs("div",{className:"flex h-10 w-full items-center justify-between gap-2 rounded-md bg-card shadow-md px-3 py-2 text-sm",children:[e.jsx("p",{className:"truncate text-muted-foreground",children:s.loginUrl}),e.jsxs(N,{type:"button",variant:"outline",size:"sm",className:"h-7 shrink-0",onClick:()=>void h(s.loginUrl,"Login URL"),children:[e.jsx(K,{className:"h-4 w-4 mr-1"}),"Copy"]})]})]})]})]})]})};function Pe(){const{hasPermission:r}=je(),{tenantId:o}=X({strict:!1}),t=Z(),{data:s}=se(),[d,f]=a.useState("user-management"),u=a.useMemo(()=>{var p,c,S;const i=(p=s==null?void 0:s.data)==null?void 0:p.find(O=>O.id===o),m=(S=(c=i==null?void 0:i.licenseEdition)==null?void 0:c.name)==null?void 0:S.toLowerCase();return!!(m!=null&&m.includes("enterprise"))},[o,s==null?void 0:s.data]),j=a.useMemo(()=>[{key:"user-management",title:"User Management",description:"Manage organization members and invitations",icon:ye,permission:"users:manage"},{key:"access-management",title:"Access Management",description:"Manage Global access tokens and automation access",icon:Ne,permission:"tokens:read"},{key:"custom-roles",title:"Custom Roles",description:"Create tenant roles and assign permissions",icon:Se,permission:"owner-settings:custom-roles:read"},{key:"sso-settings",title:"SSO Settings",description:"Enterprise-only single sign-on configuration",icon:we,permission:["sso:admin:read","sso:admin:manage"],requiresEnterprise:!0}],[]),l=a.useMemo(()=>j.filter(i=>r(i.permission)),[r,j]),g=a.useMemo(()=>l.filter(i=>!(i.requiresEnterprise&&!u)),[u,l]);return a.useEffect(()=>{if(l.length===0||g.length===0)return;g.some(m=>m.key===d)||f(g[0].key)},[d,g,l.length]),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-3xl font-bold gradient-text",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground text-lg",children:"Manage owner-level users, access, and role configuration"})]}),e.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-[280px_minmax(0,1fr)] gap-4 xl:gap-6",children:[e.jsx(H,{className:"p-4 sm:p-6 gradient-card xl:sticky xl:top-20 self-start",children:e.jsx("div",{className:"space-y-3",children:l.map(i=>{const m=i.icon,p=!!(i.requiresEnterprise&&!u),c=d===i.key;return e.jsxs("div",{...ve(()=>{if(p){t({to:"/tenant/$tenantId/billing",params:{tenantId:o??""}});return}f(i.key)}
1),"aria-pressed":c,className:`w-full text-left p-3 sm:p-4 rounded-xl transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center justify-between group ${p?"bg-card/70 cursor-pointer opacity-60 hover:opacity-80":"cursor-pointer hover:scale-[1.02]"} ${c?"gradient-glow shadow-lg shadow-primary/20":"bg-card hover:bg-card/80"}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${c?"bg-primary/20":"bg-muted"}`,children:e.jsx(m,{className:`h-5 w-5 ${c?"text-primary":"text-muted-foreground"}`})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:i.title}),i.requiresEnterprise&&e.jsx(ee,{variant:"secondary",className:"mt-1 mb-1.5 text-[10px] bg-amber-500/15 text-amber-700 dark:text-amber-300 border border-amber-500/20",children:"Enterprise"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:i.description})]})]}),p?e.jsx(ke,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(Ce,{className:`h-5 w-5 transition-transform ${c?"text-primary translate-x-1":"text-muted-foreground group-hover:translate-x-1"}`})]},i.key)})})}),e.jsx(H,{className:"p-3 sm:p-6 gradient-card min-w-0 overflow-hidden",children:e.jsxs("div",{className:"space-y-4 min-w-0",children:[l.length===0&&e.jsx("div",{className:"text-sm text-muted-foreground",children:"You do not have permissions to access owner settings sections."}),l.length>0&&g.length===0&&e.jsxs("div",{className:"rounded-lg border border-border/70 bg-card/40 p-4 space-y-2",children:[e.jsx("p",{className:"font-medium",children:"Enterprise plan required"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"SSO Settings are available only on the Enterprise plan."}),e.jsx(N,{variant:"outline",onClick:()=>void t({to:"/tenant/$tenantId/billing",params:{tenantId:o??""}}),children:"Go to Billing"})]}),e.jsxs("div",{className:"min-w-0 overflow-x-auto",children:[d==="user-management"&&e.jsx(ne,{ownerMode:!0}),d==="access-management"&&e.jsx(le,{}),d==="custom-roles"&&e.jsx(de,{ownerMode:!0}),d==="sso-settings"&&(u?e.jsx(De,{}):e.jsxs("div",{className:"rounded-lg border border-border/70 bg-card/40 p-5 space-y-3",children:[e.jsx("p",{className:"font-medium",children:"SSO is an Enterprise feature"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"To configure SSO for your tenant, please upgrade to the Enterprise plan."}),e.jsx(N,{variant:"outline",onClick:()=>void t({to:"/tenant/$tenantId/billing",params:{tenantId:o??""}}),children:"Go to Billing"})]}))]})]})})]})]})}const Xs=ae("/_authenticated/tenant/$tenantId/owner-settings/")({component:Pe});export{Xs as Route};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.