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","./ChartContainer-1.0.63-CCEFkjP2.js","./Chart-1.0.63-BHYmVPAh.js","./cmJson-1.0.63-CyZ2MfFg.js","./rehyperaw-1.0.63-AkovKNCK.js","./markdown-1.0.63-BJvkzZkj.js","./useChartSettings-1.0.63-BMkc1WeB.js","./useRemoveAppFromStore-1.0.63-DNpeLtWd.js","./Languages-1.0.63-DsTK0dJK.js","./hooks-1.0.63-CWs3kTdT.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","./useLocaleMrt-1.0.63-GdlE-vXx.js","./Spinner-1.0.63-zcgIyS7Z.js","./index-1.0.63-oIDff4nA.js","./ThemeProvider-1.0.63-Cq0KMgkh.js","./Modal-1.0.63-fMXTbfks.js","./AppTheme-1.0.63-CLc-SnB5.js","./index-1.0.63-BT4mpIxR.js","./getThemeProps-1.0.63-5ZzcWe3G.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","./Menu-1.0.63-DLh4HkF0.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","./MenuItem-1.0.63-Bvb3IjMP.js","./settings-1.0.63-DuwCupdk.css","./DynamicModeEnum-1.0.63-BXuL5kgA.js","./ActionsSettings-1.0.63-BDjh4fuk.js","./TargetEnum-1.0.63-CIW1jlU5.js","./FallbackSpinner-1.0.63-BLl5ldYH.js","./tab-1.0.63-Dmjvx_Wl.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 _}from"./useLoadAppMetaData-1.0.63-C2GKRXNT.js";import{l as a,D as x,w as g,E as j}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)),D=t.lazy(()=>d(()=>import("./ChartContainer-1.0.63-CCEFkjP2.js"),__vite__mapDeps([16,1,2,3,17,18,7,8,9,10,19,20,21,22,23,24,25,26,27,28,29,30,6,31,11,12,32,33,5,34,35,36,37,38,39,40,41,42,43,44,45,14,46,47,48,49,50,51,52,53,54,55,4,56,57]),import.meta.url)),w=({dataSource:s,shortcodeArgs:l})=>{a.debug(s);const o=x(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(g()),{loadAppMetaData:c,processMetaData:f,metaDataLoaded:m,loadError:p}=_(i,e);return t.useEffect(()=>{m||j(e,f)||(a.debug("load metadata"),c())},[e]),p!==""?r.jsx(t.Suspense,{children:r.jsx(u,{severity:"error",message:p,close:!0})}):m?r.jsx(t.Suspense,{fallback:r.jsx(n,{}),children:r.jsx(D,{appId:i,appDbId:e,shortcodeArgs:l})}):r.jsx(n,{})};export{w as default};
