import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{$ct as t,DK as n,Dvt as r,Ib as i,Lb as a,Mvt as o,Rft as s,Vft as c,Zct as l,_ut as u,aO as d,cv as f,es as p,iO as m,lv as h,ns as g,rs as _,ts as v,vut as y,wK as b,xot as x,yot as S}from"./app-initial-BHB6SClA.js";function C(){let e=(0,E.c)(9),r=t(g),i=a(),o=r&&!i,s;e[0]===o?s=e[1]:(s={enabled:o},e[0]=o,e[1]=s);let{installedPlugins:c,isLoading:l}=n(x,void 0,s),u;e[2]!==c||e[3]!==l||e[4]!==i||e[5]!==r?(u=p({installedPlugins:c,isGateEnabled:r,isLoading:l,isRemoteHost:i}),e[2]=c,e[3]=l,e[4]=i,e[5]=r,e[6]=u):u=e[6];let d;return e[7]===u?d=e[8]:(d=(0,D.jsx)(w,{state:u}),e[7]=u,e[8]=d),d}function w(e){let t=(0,E.c)(11),{state:n}=e,r=n!==`loading`&&n!==`ready`,i;t[0]===r?i=t[1]:(i=r?(0,D.jsx)(c,{id:`security.shell.unavailable.title`,defaultMessage:`Codex Security is unavailable`,description:`Title shown when the native Codex Security workbench cannot be used`}):(0,D.jsx)(c,{id:`security.shell.ready.title`,defaultMessage:`Codex Security`,description:`Title for the native Codex Security workbench`}),t[0]=r,t[1]=i);let a=i,o;t[2]!==r||t[3]!==n?(o=r?(0,D.jsx)(T,{state:n}):void 0,t[2]=r,t[3]=n,t[4]=o):o=t[4];let s;t[5]===n?s=t[6]:(s=n===`loading`?(0,D.jsx)(u,{}):(0,D.jsx)(f,{}),t[5]=n,t[6]=s);let l;return t[7]!==o||t[8]!==s||t[9]!==a?(l=(0,D.jsx)(m,{description:o,illustration:s,illustrationSize:`icon`,layout:`page`,title:a}),t[7]=o,t[8]=s,t[9]=a,t[10]=l):l=t[10],l}function T(e){let t=(0,E.c)(4),{state:n}=e;switch(n){case`gate-disabled`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(c,{id:`security.shell.gateDisabled.description`,defaultMessage:`The Codex Security workbench is not enabled for this build`,description:`Message shown when the native Codex Security workbench rollout gate is disabled`}),t[0]=e):e=t[0],e}case`remote-host`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(c,{id:`security.shell.remoteHost.description`,defaultMessage:`Codex Security is available when working on a local host`,description:`Message shown when the native Codex Security workbench is opened on a remote host`}),t[1]=e):e=t[1],e}case`disabled-by-admin`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(c,{id:`security.shell.disabledByAdmin.description`,defaultMessage:`Your administrator has disabled the Codex Security plugin`,description:`Message shown when an administrator has disabled the Codex Security plugin`}),t[2]=e):e=t[2],e}case`plugin-unavailable`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,D.jsx)(c,{id:`security.shell.pluginUnavailable.description`,defaultMessage:`Install and enable the Codex Security plugin to use this workbench`,description:`Message shown when the Codex Security plugin is not installed or enabled`}),t[3]=e):e=t[3],e}}}var E,D;e((()=>{E=o(),s(),d(),y(),i(),h(),b(),S(),l(),_(),v(),D=r()}))();export{C as SecurityPage};
//# sourceMappingURL=security-page-DJ7gj8tt.js.map