import{j as e}from"./vendor-mui-69397583.js";import{c as r,r as i}from"./vendor-react-ece1c85f.js";import{M as c,U as p,s as d,H as x}from"./ClassicLayout-7d09e5ac.js";import{V as f}from"./Views-74429e81.js";import{P as u,b as j}from"./index-c62ac197.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"./vendor-pdf-b2a5d8b1.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"./Logo-3f3c9ee6.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 h=r.memo(({menus:s})=>e.jsx(e.Fragment,{children:e.jsx(c,{menus:s})})),v=r.memo(()=>e.jsx(e.Fragment,{children:e.jsx(p,{hoverable:!1})})),S=()=>{const[s,m]=i.useState([]);i.useEffect(()=>{l()},[]);const l=async()=>{var a;const t=localStorage.getItem(u);if(t){const o=await j(t,"default"),n=d((a=o==null?void 0:o.data)==null?void 0:a.$values);m(n??[])}};return e.jsx("div",{className:"app-layout-stacked-side flex flex-auto flex-col",children:e.jsxs("div",{className:"flex flex-auto min-w-0",children:[e.jsx("nav",{className:"stacked-side-nav",children:s.map(t=>e.jsx("div",{children:t.name},t.id))}),e.jsxs("div",{className:"flex flex-col flex-auto min-h-screen min-w-0 relative w-full",children:[e.jsx(x,{className:"shadow dark:shadow-2xl",headerStart:e.jsx(h,{menus:s}),headerEnd:e.jsx(v,{})}),e.jsx("div",{className:"h-full flex flex-auto flex-col",children:e.jsx(f,{})})]})]})})},Q=r.memo(S);export{Q as default};
