const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Alert-1.0.63-BLYiE2Yx.js","./cm-1.0.63-CSIRHMXC.js","./redux-1.0.63-Df-eBzJn.js","./vendor-1.0.63-CN03Eozo.js","./index-1.0.63-BbQj9wqD.js","./iconBase-1.0.63-CFvHhC4t.js","./Typography-1.0.63-mecuj_Wl.js","./lib-1.0.63-DJZPtMem.js","./loglevel-1.0.63-BZ7XahX3.js","./lodash-1.0.63-hMxolcpJ.js","./moment-1.0.63-C5S46NFB.js","./ButtonBase-1.0.63-CF10PFMS.js","./useEnhancedEffect-1.0.63-DnR0ZFqV.js","./AlertTitle-1.0.63-B6QMQB-K.js","./createSvgIcon-1.0.63-DWL3J-DK.js","./Close-1.0.63-Dvbopfj5.js","./AppsContainer-1.0.63-BVAuAb9G.js","./cmJson-1.0.63-CyZ2MfFg.js","./rehyperaw-1.0.63-AkovKNCK.js","./markdown-1.0.63-BJvkzZkj.js","./hooks-1.0.63-CWs3kTdT.js","./Spinner-1.0.63-zcgIyS7Z.js","./useChartSettings-1.0.63-BMkc1WeB.js","./useRemoveAppFromStore-1.0.63-DNpeLtWd.js","./Languages-1.0.63-DsTK0dJK.js","./useLocaleUd-1.0.63-CjhlhnHj.js","./RestApi-1.0.63-BUfzocgq.js","./notistack-1.0.63-B49ULGrj.js","./useMetadata-1.0.63-SO3BYgAj.js","./useFormDetails-1.0.63-B2jPpIRk.js","./DynamicModeEnum-1.0.63-BXuL5kgA.js","./index-1.0.63-oIDff4nA.js","./ThemeProvider-1.0.63-Cq0KMgkh.js","./Modal-1.0.63-fMXTbfks.js","./MenuItem-1.0.63-Bvb3IjMP.js","./Menu-1.0.63-DLh4HkF0.js","./useTableSettings-1.0.63-DOq9cogk.js","./useStoreFormSettings-1.0.63-CruqV90e.js","./AppTheme-1.0.63-CLc-SnB5.js","./index-1.0.63-BT4mpIxR.js","./getThemeProps-1.0.63-5ZzcWe3G.js","./FallbackSpinner-1.0.63-BLl5ldYH.js","./useLoadAppMetaData-1.0.63-C2GKRXNT.js","./ActionsApp-1.0.63-BpC5ZVKE.js","./StoreTypeEnum-1.0.63-Cbd7XZ4r.js","./MapPrepare-1.0.63-BmY7Xb4z.js","./ChartContainer-1.0.63-CCEFkjP2.js","./Chart-1.0.63-BHYmVPAh.js","./useLocaleMrt-1.0.63-GdlE-vXx.js","./Tooltip-1.0.63-BIjHl44M.js","./Tooltip-1.0.63--D4jr2go.css","./settings-1.0.63-Dh5mJf1z.js","./Link-1.0.63-wURABoab.js","./TabPanel-1.0.63-CSMGfwNU.js","./InputAdornment-1.0.63-q8tTbJxw.js","./cjs-1.0.63-4A2xol4v.js","./Select-1.0.63-BMejr8a7.js","./ConfirmDialog-1.0.63-eXgm3P8b.js","./AdminTheme-1.0.63-DhJ0rrw5.js","./DialogContent-1.0.63-B3W-DlSe.js","./CardHeader-1.0.63-nt62E5SM.js","./TextField-1.0.63-C35Mfi1Q.js","./settings-1.0.63-DuwCupdk.css","./ActionsSettings-1.0.63-BDjh4fuk.js","./TargetEnum-1.0.63-CIW1jlU5.js","./tab-1.0.63-Dmjvx_Wl.js","./AppContainer-1.0.63-DJdsqr81.js","./AlertDialog-1.0.63-COiLRtfX.js","./SanitizeComponent-1.0.63-CtRxRbku.js","./dompurify-1.0.63-DhD2mIk-.js"])))=>i.map(i=>d[i]);
import{_ as o}from"./cmJson-1.0.63-CyZ2MfFg.js";import{j as e}from"./cm-1.0.63-CSIRHMXC.js";import{r}from"./redux-1.0.63-Df-eBzJn.js";import{a as P}from"./hooks-1.0.63-CWs3kTdT.js";import{l as A,E as C,f as D,A as n}from"./lib-1.0.63-DJZPtMem.js";import{F as a}from"./FallbackSpinner-1.0.63-BLl5ldYH.js";import{u as T}from"./useLoadAppMetaData-1.0.63-C2GKRXNT.js";import{M as h}from"./MapPrepare-1.0.63-BmY7Xb4z.js";const y=r.lazy(()=>o(()=>import("./Alert-1.0.63-BLYiE2Yx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),M=r.lazy(()=>o(()=>import("./AppsContainer-1.0.63-BVAuAb9G.js"),__vite__mapDeps([16,17,1,2,3,7,8,9,10,18,19,20,21,6,22,23,24,25,26,27,28,29,30,31,11,12,32,33,5,34,35,36,37,38,39,40,41,42,43,44,45]),import.meta.url)),R=r.lazy(()=>o(()=>import("./ChartContainer-1.0.63-CCEFkjP2.js"),__vite__mapDeps([46,1,2,3,47,17,7,8,9,10,18,19,22,23,24,20,25,26,27,28,48,21,6,31,11,12,32,33,5,38,39,40,49,50,51,52,53,54,55,56,35,14,57,58,59,60,61,34,62,30,63,64,4,41,65]),import.meta.url)),L=r.lazy(()=>o(()=>import("./AppContainer-1.0.63-DJdsqr81.js"),__vite__mapDeps([66,17,1,2,3,7,8,9,10,18,19,41,21,6,67,57,55,11,12,58,59,33,27,68,69,20]),import.meta.url)),F=({appId:t,appDbId:s,designMode:m,staticFilter:l,shortcodeArgs:u,fullScreen:p,isExploring:f,appRootId:x})=>{A.debug(t,s,m,l,u,p,f);const j=P(),{loadAppMetaData:E,processMetaData:d,metaDataLoaded:_,loadError:c,appType:i}=T(t,s,m,l,u,p,f,x);return r.useEffect(()=>{_||C(s,d)||(A.debug("load metadata"),E())},[s]),c!==""?e.jsx(r.Suspense,{children:e.jsx(y,{severity:"error",message:c,close:!0,setClose:()=>{j(D({isActive:!1,appDbId:0}))}})}):_?i===n.APPCONTAINER?e.jsx(r.Suspense,{fallback:e.jsx(a,{}),children:e.jsx(M,{appId:t})}):i===n.CHART?e.jsx(r.Suspense,{fallback:e.jsx(a,{}),children:e.jsx(R,{appId:t,appDbId:s})}):i===n.MAP?e.jsx(h,{appId:t}):e.jsx(r.Suspense,{fallback:e.jsx(a,{}),children:e.jsx(L,{appId:t,appDbId:s})}):e.jsx(a,{})};export{F as A};
