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","./AppContainer-1.0.63-DJdsqr81.js","./cmJson-1.0.63-CyZ2MfFg.js","./rehyperaw-1.0.63-AkovKNCK.js","./markdown-1.0.63-BJvkzZkj.js","./FallbackSpinner-1.0.63-BLl5ldYH.js","./Spinner-1.0.63-zcgIyS7Z.js","./AlertDialog-1.0.63-COiLRtfX.js","./ConfirmDialog-1.0.63-eXgm3P8b.js","./cjs-1.0.63-4A2xol4v.js","./AdminTheme-1.0.63-DhJ0rrw5.js","./DialogContent-1.0.63-B3W-DlSe.js","./Modal-1.0.63-fMXTbfks.js","./notistack-1.0.63-B49ULGrj.js","./SanitizeComponent-1.0.63-CtRxRbku.js","./dompurify-1.0.63-DhD2mIk-.js","./hooks-1.0.63-CWs3kTdT.js"])))=>i.map(i=>d[i]);
import{_ as f}from"./cmJson-1.0.63-CyZ2MfFg.js";import{j as r}from"./cm-1.0.63-CSIRHMXC.js";import{r as e}from"./redux-1.0.63-Df-eBzJn.js";import{F as d}from"./FallbackSpinner-1.0.63-BLl5ldYH.js";import{u as x}from"./useLoadAppMetaData-1.0.63-C2GKRXNT.js";import{l as a,D as j,w as D,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 l=e.lazy(()=>f(()=>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)),E=e.lazy(()=>f(()=>import("./AppContainer-1.0.63-DJdsqr81.js"),__vite__mapDeps([16,17,1,2,3,7,8,9,10,18,19,20,21,6,22,23,24,11,12,25,26,27,28,29,30,31]),import.meta.url)),q=({dataSource:s,staticFilter:p,shortcodeArgs:i})=>{a.debug(s,p,i);const o=j(s);a.debug(o);const t=Number(o==null?void 0:o.id);if(a.debug(t),isNaN(t))return r.jsx(e.Suspense,{children:r.jsx(l,{severity:"error",message:"Invalid arguments",close:!1})});const[m]=e.useState(D()),{loadAppMetaData:c,processMetaData:_,metaDataLoaded:n,loadError:u}=x(m,t,void 0,p,i);return e.useEffect(()=>{n||g(t,_)||(a.debug("load metadata"),c())},[t]),u!==""?r.jsx(e.Suspense,{children:r.jsx(l,{severity:"error",message:u,close:!0})}):n?r.jsx(e.Suspense,{fallback:r.jsx(d,{}),children:r.jsx(E,{appId:m,appDbId:t})}):r.jsx(d,{})};export{q as default};
