const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Alert-1.0.74-i5fZ05RU.js","./tanstack-1.0.74-aU0azVkW.js","./redux-1.0.74-D8bIc6ki.js","./vendor-1.0.74-CN03Eozo.js","./index-1.0.74-C9JunOsO.js","./iconBase-1.0.74-Cs0vntJu.js","./CircularProgress-1.0.74-QfwfRJ7i.js","./lib-1.0.74-B5IEqfHg.js","./utils-1.0.74-7xWhx9mc.js","./ButtonBase-1.0.74-W6tAH7AI.js","./Typography-1.0.74-B4mhsevh.js","./useEnhancedEffect-1.0.74-B56M26dS.js","./AlertTitle-1.0.74-BmkdSyE6.js","./createSvgIcon-1.0.74-Cw_ZFbxi.js","./Close-1.0.74-Ce0z5IFm.js","./AppsContainer-1.0.74-Ck6NVfTJ.js","./RestApiError-1.0.74-Bb1un17k.js","./hooks-1.0.74-NYCTWeI9.js","./Box-1.0.74-DEbuVvGV.js","./useLocaleApp-1.0.74-BAnA1P2j.js","./useRemoveAppFromStore-1.0.74-CJatuZ_l.js","./Languages-1.0.74-DaJcF5OJ.js","./useLocaleUd-1.0.74-DiRzsyAi.js","./RestApi-1.0.74-5XKxNzpR.js","./useMetadata-1.0.74--jxfVI7W.js","./CleanupDetails-1.0.74-CpCDzf3e.js","./index-1.0.74-DxwH6OqZ.js","./ThemeProvider-1.0.74-4uzbYYLM.js","./Portal-1.0.74-BrUPeMX9.js","./DynamicModeEnum-1.0.74-BXuL5kgA.js","./useFormDetails-1.0.74-eGZBYCv4.js","./MenuItem-1.0.74-D9LDbFUb.js","./Menu-1.0.74-CdjCBJ4R.js","./isHostComponent-1.0.74-DVu5iVWx.js","./Modal-1.0.74-BfLid1bk.js","./useChartSettings-1.0.74-C6-5LBxk.js","./useTableSettings-1.0.74-DOrceZPc.js","./useStoreFormSettings-1.0.74-3dBRbl0S.js","./useTheme-1.0.74-CW3awVDs.js","./index-1.0.74-iJ_9eGZx.js","./getThemeProps-1.0.74-DOfDN6_V.js","./Spinner-1.0.74-B63QTBL9.js","./useLoadAppMetaData-1.0.74-BqAxVdHB.js","./StoreTypeEnum-1.0.74-BO7CLiE1.js","./index-1.0.74-FmkvObU2.js","./MapPrepare-1.0.74-Ce2WlC-i.js","./FallbackSpinner-1.0.74-7h-h2HIM.js","./AppsContainer-1.0.74-BJZMxy0k.css","./ChartContainer-1.0.74-CIxuF-m0.js","./Chart-1.0.74-BOylOstd.js","./useLocaleMrt-1.0.74-BUIBUKA0.js","./useFullScreen-1.0.74-DAWjksdW.js","./AdminTheme-1.0.74-BtTaJUu_.js","./AppContainer-1.0.74-BxV2PRFq.js","./AlertDialog-1.0.74-YhMIDJAU.js","./ConfirmDialog-1.0.74-CXu4CqK2.js","./SanitizeComponent-1.0.74-DsOvasd7.js","./DashboardContainer-1.0.74-DkVSj7lV.js","./PremiumFeature-1.0.74-BfyB9mrd.js","./index-1.0.74-8lphm33F.js","./TextField-1.0.74-BW9Byijb.js","./Select-1.0.74-DHOnlEEH.js","./AccordionSummary-1.0.74-BIcO1H0G.js","./Collapse-1.0.74-DA2Rx31o.js","./AccordionDetails-1.0.74-UIik1H9G.js","./useAppList-1.0.74-rO__ugjr.js","./Autocomplete-1.0.74-1_REDbpQ.js","./Chip-1.0.74-BR6j83mk.js","./RadioGroup-1.0.74-DWBtoS7u.js","./Radio-1.0.74-fPSETwpC.js","./SwitchBase-1.0.74-pUYMwK3f.js","./ActionsSettings-1.0.74-C1yaah3Y.js","./TargetEnum-1.0.74-BJN_W527.js","./Slider-1.0.74-BxpDcEEP.js","./visuallyHidden-1.0.74-Dan1xhjv.js","./react-number-format.es-1.0.74-V5uzMUOI.js","./SortableColumn-1.0.74-BKt8E7Jd.js","./sortable.esm-1.0.74-BjjsGbF3.js","./DynamicComponent-1.0.74-MTJLprNJ.js","./index-1.0.74-CwV9FnQf.js","./ResizableDrawer-1.0.74-nRo_H8RA.js","./useScreenSize-1.0.74-DEibwIMk.js","./settings-1.0.74-BnRB9SOY.js","./Link-1.0.74-Cr-Ob-AP.js","./index-1.0.74-CCIRxPEn.js","./index-1.0.74-DtMr5-xA.js","./CardHeader-1.0.74-CHbhRPw-.js","./InputAdornment-1.0.74-DzikPcDx.js","./CardActions-1.0.74-DRn8SDKF.js","./settings-1.0.74-9cL4xzrg.css","./Tooltip-1.0.74-Bsfqgjy3.js","./Tooltip-1.0.74--D4jr2go.css","./FormControlLabel-1.0.74-CdAG1Jo8.js","./Switch-1.0.74-IHNqKL8Y.js","./TabPanel-1.0.74-BfVdq8Gf.js","./useThemeProps-1.0.74-eOKEtzB-.js","./useBuiltins-1.0.74-D-15qGZw.js","./DashboardContainer-1.0.74-Chy7OB7S.css","./main-1.0.74-CS1_gynP.css"])))=>i.map(i=>d[i]);
import{_ as a}from"./RestApiError-1.0.74-Bb1un17k.js";import{j as e}from"./tanstack-1.0.74-aU0azVkW.js";import{r}from"./redux-1.0.74-D8bIc6ki.js";import{a as D}from"./hooks-1.0.74-NYCTWeI9.js";import{l as A,a as h,i as P,A as n}from"./lib-1.0.74-B5IEqfHg.js";import{u as C}from"./useLoadAppMetaData-1.0.74-BqAxVdHB.js";import{M as R}from"./MapPrepare-1.0.74-Ce2WlC-i.js";import{F as i}from"./FallbackSpinner-1.0.74-7h-h2HIM.js";const S=r.lazy(()=>a(()=>import("./Alert-1.0.74-i5fZ05RU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),T=r.lazy(()=>a(()=>import("./AppsContainer-1.0.74-Ck6NVfTJ.js"),__vite__mapDeps([15,16,3,1,2,17,7,8,18,6,10,19,20,21,22,23,24,25,26,9,11,27,28,5,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]),import.meta.url)),y=r.lazy(()=>a(()=>import("./ChartContainer-1.0.74-CIxuF-m0.js"),__vite__mapDeps([48,16,3,1,2,49,35,17,7,8,21,24,50,22,23,18,6,10,26,9,11,27,28,5,19,20,38,39,40,51,52]),import.meta.url)),L=r.lazy(()=>a(()=>import("./AppContainer-1.0.74-BxV2PRFq.js"),__vite__mapDeps([53,16,3,1,2,54,55,9,6,7,8,10,11,52,34,28,56,17,18]),import.meta.url)),M=r.lazy(()=>a(()=>import("./DashboardContainer-1.0.74-DkVSj7lV.js"),__vite__mapDeps([57,1,2,3,17,7,8,26,6,9,10,11,27,28,5,16,58,59,52,60,61,32,33,34,13,62,63,64,65,42,23,43,44,18,66,14,67,68,69,70,55,71,72,73,74,75,76,77,78,79,20,21,25,24,19,22,51,38,39,40,41,80,81,82,83,84,85,86,87,88,31,89,90,91,92,93,4,29,94,95,96,45,46,97,98]),import.meta.url)),H=({appId:t,appDbId:s,designMode:l,staticFilter:m,shortcodeArgs:u,fullScreen:p,isExploring:_,appRootId:x})=>{A.debug(t,s,l,m,u,p,_);const j=D(),{loadAppMetaData:d,processMetaData:E,metaDataLoaded:f,loadError:c,appType:o}=C(t,s,l,m,u,p,_,x);return r.useEffect(()=>{f||h(s,E)||(A.debug("load metadata"),d())},[s]),c!==""?e.jsx(r.Suspense,{children:e.jsx(S,{severity:"error",message:c,close:!0,setClose:()=>{j(P({isActive:!1,appDbId:0}))}})}):f?o==n.APPCONTAINER?e.jsx(r.Suspense,{fallback:e.jsx(i,{}),children:e.jsx(T,{appId:t})}):o==n.CHART?e.jsx(r.Suspense,{fallback:e.jsx(i,{}),children:e.jsx(y,{appId:t,appDbId:s})}):o==n.MAP?e.jsx(R,{appId:t,showSpinner:!0}):o==n.DASHBOARD?e.jsx(r.Suspense,{fallback:e.jsx(i,{}),children:e.jsx(M,{appId:t,appDbId:s})}):e.jsx(r.Suspense,{fallback:e.jsx(i,{}),children:e.jsx(L,{appId:t,appDbId:s})}):null};export{H as A};
