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","./AppContainerSelector-1.0.74-OhhLpcaA.js","./useLoadAppMetaData-1.0.74-BqAxVdHB.js","./RestApi-1.0.74-5XKxNzpR.js","./StoreTypeEnum-1.0.74-BO7CLiE1.js","./index-1.0.74-FmkvObU2.js","./MapPrepare-1.0.74-Ce2WlC-i.js","./useMetadata-1.0.74--jxfVI7W.js","./FallbackSpinner-1.0.74-7h-h2HIM.js","./Spinner-1.0.74-B63QTBL9.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","./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","./AppsContainer-1.0.74-BJZMxy0k.css"])))=>i.map(i=>d[i]);
import{j as r}from"./tanstack-1.0.74-aU0azVkW.js";import{l as i,g as f,a as x,s as _,S as g,b as u}from"./lib-1.0.74-B5IEqfHg.js";import{S}from"./utils-1.0.74-7xWhx9mc.js";import{r as e,P as j}from"./redux-1.0.74-D8bIc6ki.js";import{u as D}from"./useViewHeight-1.0.74-CuK7XWCG.js";import{_ as d}from"./RestApiError-1.0.74-Bb1un17k.js";import{u as A}from"./useLoadAppMetaData-1.0.74-BqAxVdHB.js";/* empty css                    */import"./vendor-1.0.74-CN03Eozo.js";import"./RestApi-1.0.74-5XKxNzpR.js";import"./StoreTypeEnum-1.0.74-BO7CLiE1.js";import"./hooks-1.0.74-NYCTWeI9.js";import"./index-1.0.74-FmkvObU2.js";const p=e.lazy(()=>d(()=>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)),b=e.lazy(()=>d(()=>import("./AppsContainer-1.0.74-Ck6NVfTJ.js"),__vite__mapDeps([15,16,3,1,2,17,7,8,18,19,20,21,22,23,24,25,26,27,6,10,28,29,30,31,32,33,9,11,34,35,5,36,37,38,39,40,41,42,43,44,45,46,47,48]),import.meta.url)),E=({appId:t,dataSource:s})=>{i.debug(s);const o=f(s);i.debug(o);const a=Number(o==null?void 0:o.id);if(i.debug(a),isNaN(a))return r.jsx(e.Suspense,{children:r.jsx(p,{severity:"error",message:"Invalid arguments",close:!1})});const{loadAppMetaData:l,processMetaData:c,metaDataLoaded:n,loadError:m}=A(t,a);return e.useEffect(()=>{n||x(a,c)||(i.debug("load metadata"),l())},[a]),m!==""?(_(t),r.jsx(e.Suspense,{children:r.jsx(p,{severity:"error",message:m,close:!0})})):n?r.jsx(e.Suspense,{children:r.jsx(b,{appId:t})}):null},F=({appId:t,dataSource:s})=>(D(),r.jsxs(j,{store:g,children:[r.jsx(S,{maxSnack:u.maxSnack,autoHideDuration:u.autoHideDuration}),r.jsx(E,{appId:t,dataSource:s})]}));export{F as default};
