import{_ as f}from"./vendor-pdf-b2a5d8b1.js";import{j as e}from"./vendor-mui-69397583.js";import{u as j,M as v,U as y,s as E,H as M}from"./ClassicLayout-7d09e5ac.js";import{H as _,a as g}from"./HorizontalMenuContent-96da38e1.js";import{h as i,d,N,P as S,b as C}from"./index-c62ac197.js";import{V as H}from"./Views-74429e81.js";import{c as m,r as p}from"./vendor-react-ece1c85f.js";import{L}from"./Logo-3f3c9ee6.js";import"./SidePanelContent-6b13836f.js";import"./Switcher-c8648037.js";import"./index-ec2010d2.js";import"./index-6b6d0f06.js";import"./useControllableState-d0909575.js";import"./DoubleSidedImage-ae98733b.js";import"./Drawer-949c18c6.js";import"./index-c2088808.js";import"./useDidUpdate-25c4d4ed.js";import"./Alert-7dfbd254.js";import"./FormContainer-91c2b0e4.js";import"./index-36228db5.js";import"./Upload-fb34ce03.js";import"./vendor-devex-33a39e11.js";import"./index-aaad94c2.js";import"./index-e4c6057f.js";import"./index-f6be0390.js";import"./vendor-i18n-2fcb1983.js";import"./index-ea125a16.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";const w=r=>{const{className:s,contained:l,menus:n}=r,t=i(o=>o.theme.navMode),a=i(o=>o.theme.themeColor),c=i(o=>o.theme.primaryColorLevel),u=i(o=>o.auth.user.authority),{larger:x}=j(),h=()=>t===N?`bg-${a}-${c} secondary-header-${t}`:`secondary-header-${t}`;return e.jsx(e.Fragment,{children:x.md&&e.jsx("div",{className:d("h-16 flex items-center",h(),s),children:e.jsx("div",{className:d("flex items-center px-4",l&&"container mx-auto"),children:e.jsx(_,{menus:n,manuVariant:t,userAuthority:u})})})})},A=m.lazy(()=>f(()=>import("./AiCa-9c1b25b2.js"),["assets/AiCa-9c1b25b2.js","assets/vendor-mui-69397583.js","assets/vendor-react-ece1c85f.js","assets/index-c62ac197.js","assets/vendor-redux-a1f00e6b.js","assets/vendor-pdf-b2a5d8b1.js","assets/vendor-devex-33a39e11.js","assets/vendor-i18n-2fcb1983.js","assets/vendor-msal-9caa1ed1.js","assets/vendor-charts-eccea5d1.js","assets/index-8c229076.css","assets/MessageInput-6dc83761.js","assets/index-42e65911.js","assets/useDeviceCheck-920641a5.js","assets/Alert-7dfbd254.js","assets/index-6b6d0f06.js","assets/useControllableState-d0909575.js","assets/index-c2088808.js","assets/useDidUpdate-25c4d4ed.js","assets/Drawer-949c18c6.js","assets/FormContainer-91c2b0e4.js","assets/Switcher-c8648037.js","assets/index-36228db5.js","assets/Upload-fb34ce03.js","assets/BrainServices-a4bb698e.js","assets/index-f6be0390.js"])),R=m.memo(r=>{const{menus:s}=r;return e.jsxs(e.Fragment,{children:[e.jsx(g,{}),e.jsx(L,{type:"streamline",imgClass:"mx-auto mobile-only"}),e.jsx(v,{menus:s})]})}),b=m.memo(()=>e.jsxs(e.Fragment,{children:[e.jsx(p.Suspense,{fallback:null,children:e.jsx(A,{})}),e.jsx(y,{hoverable:!1})]})),D=()=>{const[r,s]=p.useState([]);p.useEffect(()=>{l()},[]);const l=async()=>{var t;const n=localStorage.getItem(S);if(n){const a=await C(n,"default");let c=E((t=a==null?void 0:a.data)==null?void 0:t.$values);s(c??[])}};return e.jsx("div",{className:"app-layout-simple flex flex-auto flex-col min-h-screen",children:e.jsx("div",{className:"flex flex-auto min-w-0",children:e.jsxs("div",{className:"flex flex-col flex-auto min-h-screen min-w-0 relative w-full",children:[e.jsx(M,{container:!0,className:"shadow dark:shadow-2xl",headerStart:e.jsx(R,{menus:r}),headerEnd:e.jsx(b,{})}),e.jsx(w,{contained:!0,menus:r}),e.jsx(H,{pageContainerType:"contained"})]})})})},ce=m.memo(D);export{ce as default};
