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"])))=>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{u as c}from"./useLoadAppMetaData-1.0.63-C2GKRXNT.js";import{F as g}from"./FallbackSpinner-1.0.63-BLl5ldYH.js";import{l as a,D as x,w as D,E as j}from"./lib-1.0.63-DJZPtMem.js";/* empty css                    */import{M}from"./MapPrepare-1.0.63-BmY7Xb4z.js";import"./vendor-1.0.63-CN03Eozo.js";import"./rehyperaw-1.0.63-AkovKNCK.js";import"./markdown-1.0.63-BJvkzZkj.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"./Spinner-1.0.63-zcgIyS7Z.js";import"./Typography-1.0.63-mecuj_Wl.js";import"./loglevel-1.0.63-BZ7XahX3.js";import"./lodash-1.0.63-hMxolcpJ.js";import"./moment-1.0.63-C5S46NFB.js";import"./useMetadata-1.0.63-SO3BYgAj.js";const n=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)),C=({dataSource:s,shortcodeArgs:u})=>{a.debug(s);const o=x(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(n,{severity:"error",message:"Invalid arguments",close:!1})});const[m]=e.useState(D()),{loadAppMetaData:d,processMetaData:l,metaDataLoaded:p,loadError:i}=c(m,t);return e.useEffect(()=>{p||j(t,l)||(a.debug("load metadata"),d())},[t]),i!==""?r.jsx(e.Suspense,{children:r.jsx(n,{severity:"error",message:i,close:!0})}):p?r.jsx(M,{appId:m,shortcodeArgs:u}):r.jsx(g,{})};export{C as default};
