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","./AppContainerSelector-1.0.63-BATAa5Yo.js","./FallbackSpinner-1.0.63-BLl5ldYH.js","./Spinner-1.0.63-zcgIyS7Z.js","./useLoadAppMetaData-1.0.63-C2GKRXNT.js","./ActionsApp-1.0.63-BpC5ZVKE.js","./RestApi-1.0.63-BUfzocgq.js","./notistack-1.0.63-B49ULGrj.js","./StoreTypeEnum-1.0.63-Cbd7XZ4r.js","./MapPrepare-1.0.63-BmY7Xb4z.js","./useMetadata-1.0.63-SO3BYgAj.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","./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"])))=>i.map(i=>d[i]);
import{_ as d}from"./cmJson-1.0.63-CyZ2MfFg.js";import{j as r}from"./cm-1.0.63-CSIRHMXC.js";import{r as t}from"./redux-1.0.63-Df-eBzJn.js";import{F as n}from"./FallbackSpinner-1.0.63-BLl5ldYH.js";import{u as f}from"./useLoadAppMetaData-1.0.63-C2GKRXNT.js";import{l as a,D as _,w as x,E as g}from"./lib-1.0.63-DJZPtMem.js";/* empty css                    */import"./vendor-1.0.63-CN03Eozo.js";import"./rehyperaw-1.0.63-AkovKNCK.js";import"./markdown-1.0.63-BJvkzZkj.js";import"./Spinner-1.0.63-zcgIyS7Z.js";import"./Typography-1.0.63-mecuj_Wl.js";import"./ActionsApp-1.0.63-BpC5ZVKE.js";import"./RestApi-1.0.63-BUfzocgq.js";import"./notistack-1.0.63-B49ULGrj.js";import"./StoreTypeEnum-1.0.63-Cbd7XZ4r.js";import"./hooks-1.0.63-CWs3kTdT.js";import"./loglevel-1.0.63-BZ7XahX3.js";import"./lodash-1.0.63-hMxolcpJ.js";import"./moment-1.0.63-C5S46NFB.js";const u=t.lazy(()=>d(()=>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)),j=t.lazy(()=>d(()=>import("./AppsContainer-1.0.63-BVAuAb9G.js"),__vite__mapDeps([16,17,1,2,3,7,8,9,10,18,19,20,21,22,23,6,24,25,26,27,28,29,30,31,32,33,34,35,36,37,11,12,38,39,5,40,41,42,43,44,45,46]),import.meta.url)),w=({dataSource:s})=>{a.debug(s);const o=_(s);a.debug(o);const e=Number(o==null?void 0:o.id);if(a.debug(e),isNaN(e))return r.jsx(t.Suspense,{children:r.jsx(u,{severity:"error",message:"Invalid arguments",close:!1})});const[i]=t.useState(x()),{loadAppMetaData:l,processMetaData:c,metaDataLoaded:p,loadError:m}=f(i,e);return t.useEffect(()=>{p||g(e,c)||(a.debug("load metadata"),l())},[e]),m!==""?r.jsx(t.Suspense,{children:r.jsx(u,{severity:"error",message:m,close:!0})}):p?r.jsx(t.Suspense,{fallback:r.jsx(n,{}),children:r.jsx(j,{appId:i})}):r.jsx(n,{})};export{w as default};
