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"])))=>i.map(i=>d[i]);
import{j as r}from"./tanstack-1.0.74-aU0azVkW.js";import{l as m,g as x,a as g,s as S,S as j,b as d}from"./lib-1.0.74-B5IEqfHg.js";import{S as D}from"./utils-1.0.74-7xWhx9mc.js";import{r as p,P as _}from"./redux-1.0.74-D8bIc6ki.js";import{u as b}from"./useViewHeight-1.0.74-CuK7XWCG.js";import{_ as A}from"./RestApiError-1.0.74-Bb1un17k.js";import{u as v}from"./useLoadAppMetaData-1.0.74-BqAxVdHB.js";/* empty css                    */import E from"./AppContainer-1.0.74-BxV2PRFq.js";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";import"./AlertDialog-1.0.74-YhMIDJAU.js";import"./ConfirmDialog-1.0.74-CXu4CqK2.js";import"./ButtonBase-1.0.74-W6tAH7AI.js";import"./CircularProgress-1.0.74-QfwfRJ7i.js";import"./Typography-1.0.74-B4mhsevh.js";import"./useEnhancedEffect-1.0.74-B56M26dS.js";import"./AdminTheme-1.0.74-BtTaJUu_.js";import"./Modal-1.0.74-BfLid1bk.js";import"./Portal-1.0.74-BrUPeMX9.js";import"./SanitizeComponent-1.0.74-DsOvasd7.js";import"./Box-1.0.74-DEbuVvGV.js";const f=p.lazy(()=>A(()=>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)),M=({appId:e,dataSource:o,staticFilter:a,shortcodeArgs:i})=>{m.debug(o,a,i);const s=x(o);m.debug(s);const t=Number(s==null?void 0:s.id);if(m.debug(t),isNaN(t))return r.jsx(p.Suspense,{children:r.jsx(f,{severity:"error",message:"Invalid arguments",close:!1})});const{loadAppMetaData:l,processMetaData:c,metaDataLoaded:n,loadError:u}=v(e,t,void 0,a,i);return p.useEffect(()=>{n||g(t,c)||(m.debug("load metadata"),l())},[t]),u!==""?(S(e),r.jsx(p.Suspense,{children:r.jsx(f,{severity:"error",message:u,close:!0})})):n?r.jsx(E,{appId:e,appDbId:t}):null},Y=({appId:e,dataSource:o,staticFilter:a,shortcodeArgs:i})=>(b(),r.jsxs(_,{store:j,children:[r.jsx(D,{maxSnack:d.maxSnack,autoHideDuration:d.autoHideDuration}),r.jsx(M,{appId:e,dataSource:o,staticFilter:a,shortcodeArgs:i})]}));export{Y as default};
