import{j as h}from"./query-ATBhtd3K.js";import{r as t}from"./vendor-EnoIVk-c.js";import{d as b,e as v,f as C,g as y,w as P,y as T,T as w}from"./en-IUV4ZXKH-BjYNERUx.js";import{T as L}from"./ToolbarPanels-tcvPzqNN.js";import{u as A}from"./i18n-BYxb14hm.js";import"./index-D4SjcYxX.js";import"./useAuth-CqtZE9nt.js";import"./AuthContext-CYne_gJM.js";import"./routing-nZgBtxly.js";import"./KnowledgeBaseContext-CgnF8K-_.js";import"./PlusIcon-qGFPUzg0.js";function R(){const{t:a}=A(),o=(n,D)=>a(`AdminSecurity.${n}`,D),{activePanel:r}=b(),{theme:l,setTheme:i}=v(),{showLineNumbers:d,toggleLineNumbers:s}=C(),m=t.useCallback(({theme:n})=>{i(n)},[i]),c=t.useCallback(()=>{s()},[s]);y({"settings:theme-changed":m,"settings:line-numbers-toggled":c});const u=P(),{data:e,isLoading:g}=u.oauth.config.useQuery(),p=(e==null?void 0:e.allowedDomains)??[],f=(e==null?void 0:e.providers)??[];return h.jsx(T,{providers:f,allowedDomains:p,isLoading:g,theme:l,showLineNumbers:d,activePanel:r,translations:{title:o("title"),subtitle:o("subtitle"),oauthProviders:o("oauthProviders"),oauthProvidersDescription:o("oauthProvidersDescription"),clientId:o("clientId"),configured:o("configured"),noProvidersConfigured:o("noProvidersConfigured"),allowedDomains:o("allowedDomains"),allowedDomainsDescription:o("allowedDomainsDescription"),noDomainsConfigured:o("noDomainsConfigured"),configManagementTitle:o("configManagementTitle"),configManagementDescription:o("configManagementDescription"),configLocalDev:o("configLocalDev"),configCloudDeploy:o("configCloudDeploy"),configCloudDeployCommand:o("configCloudDeployCommand"),configCloudDeployEnd:o("configCloudDeployEnd"),configAWS:o("configAWS")},ToolbarPanels:L,Toolbar:w})}export{R as default};
//# sourceMappingURL=client-CKEJUXXb.js.map
