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","./DashboardContainer-1.0.74-DkVSj7lV.js","./hooks-1.0.74-NYCTWeI9.js","./index-1.0.74-DxwH6OqZ.js","./ThemeProvider-1.0.74-4uzbYYLM.js","./Portal-1.0.74-BrUPeMX9.js","./RestApiError-1.0.74-Bb1un17k.js","./PremiumFeature-1.0.74-BfyB9mrd.js","./index-1.0.74-8lphm33F.js","./AdminTheme-1.0.74-BtTaJUu_.js","./TextField-1.0.74-BW9Byijb.js","./Select-1.0.74-DHOnlEEH.js","./Menu-1.0.74-CdjCBJ4R.js","./isHostComponent-1.0.74-DVu5iVWx.js","./Modal-1.0.74-BfLid1bk.js","./AccordionSummary-1.0.74-BIcO1H0G.js","./Collapse-1.0.74-DA2Rx31o.js","./AccordionDetails-1.0.74-UIik1H9G.js","./useAppList-1.0.74-rO__ugjr.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","./Box-1.0.74-DEbuVvGV.js","./Autocomplete-1.0.74-1_REDbpQ.js","./Chip-1.0.74-BR6j83mk.js","./RadioGroup-1.0.74-DWBtoS7u.js","./Radio-1.0.74-fPSETwpC.js","./SwitchBase-1.0.74-pUYMwK3f.js","./ConfirmDialog-1.0.74-CXu4CqK2.js","./ActionsSettings-1.0.74-C1yaah3Y.js","./TargetEnum-1.0.74-BJN_W527.js","./Slider-1.0.74-BxpDcEEP.js","./visuallyHidden-1.0.74-Dan1xhjv.js","./react-number-format.es-1.0.74-V5uzMUOI.js","./AppContainerSelector-1.0.74-OhhLpcaA.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","./SortableColumn-1.0.74-BKt8E7Jd.js","./sortable.esm-1.0.74-BjjsGbF3.js","./DynamicComponent-1.0.74-MTJLprNJ.js","./index-1.0.74-CwV9FnQf.js","./useRemoveAppFromStore-1.0.74-CJatuZ_l.js","./Languages-1.0.74-DaJcF5OJ.js","./CleanupDetails-1.0.74-CpCDzf3e.js","./useLocaleApp-1.0.74-BAnA1P2j.js","./useLocaleUd-1.0.74-DiRzsyAi.js","./useFullScreen-1.0.74-DAWjksdW.js","./useTheme-1.0.74-CW3awVDs.js","./index-1.0.74-iJ_9eGZx.js","./getThemeProps-1.0.74-DOfDN6_V.js","./ResizableDrawer-1.0.74-nRo_H8RA.js","./useScreenSize-1.0.74-DEibwIMk.js","./settings-1.0.74-BnRB9SOY.js","./Link-1.0.74-Cr-Ob-AP.js","./index-1.0.74-CCIRxPEn.js","./index-1.0.74-DtMr5-xA.js","./CardHeader-1.0.74-CHbhRPw-.js","./InputAdornment-1.0.74-DzikPcDx.js","./CardActions-1.0.74-DRn8SDKF.js","./MenuItem-1.0.74-D9LDbFUb.js","./settings-1.0.74-9cL4xzrg.css","./Tooltip-1.0.74-Bsfqgjy3.js","./Tooltip-1.0.74--D4jr2go.css","./FormControlLabel-1.0.74-CdAG1Jo8.js","./Switch-1.0.74-IHNqKL8Y.js","./DynamicModeEnum-1.0.74-BXuL5kgA.js","./TabPanel-1.0.74-BfVdq8Gf.js","./useThemeProps-1.0.74-eOKEtzB-.js","./useBuiltins-1.0.74-D-15qGZw.js","./DashboardContainer-1.0.74-Chy7OB7S.css","./main-1.0.74-CS1_gynP.css"])))=>i.map(i=>d[i]);
import{j as r}from"./tanstack-1.0.74-aU0azVkW.js";import{l as i,g as x,a as D,s as _,S,b as d}from"./lib-1.0.74-B5IEqfHg.js";import{S as b}from"./utils-1.0.74-7xWhx9mc.js";import{r as t,P as g}from"./redux-1.0.74-D8bIc6ki.js";import{_ as l}from"./RestApiError-1.0.74-Bb1un17k.js";import{u as j}from"./useLoadAppMetaData-1.0.74-BqAxVdHB.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";const p=t.lazy(()=>l(()=>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)),h=t.lazy(()=>l(()=>import("./DashboardContainer-1.0.74-DkVSj7lV.js"),__vite__mapDeps([15,1,2,3,16,7,8,17,6,9,10,11,18,19,5,20,21,22,23,24,25,26,27,28,13,29,30,31,32,33,34,35,36,37,38,14,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,4,82,83,84,85,86,87]),import.meta.url)),E=({appId:a,dataSource:o,shortcodeArgs:n})=>{i.debug(o,n);const s=x(o);i.debug(s);const e=Number(s==null?void 0:s.id);if(i.debug(e),isNaN(e))return r.jsx(t.Suspense,{children:r.jsx(p,{severity:"error",message:"Invalid arguments",close:!1})});const{loadAppMetaData:c,processMetaData:f,metaDataLoaded:m,loadError:u}=j(a,e);return t.useEffect(()=>{m||D(e,f)||(i.debug("load metadata"),c())},[e]),u!==""?(_(a),r.jsx(t.Suspense,{children:r.jsx(p,{severity:"error",message:u,close:!0})})):m?r.jsx(t.Suspense,{children:r.jsx(h,{appId:a,appDbId:e})}):null},F=({appId:a,dataSource:o,shortcodeArgs:n})=>r.jsxs(g,{store:S,children:[r.jsx(b,{maxSnack:d.maxSnack,autoHideDuration:d.autoHideDuration}),r.jsx(E,{appId:a,dataSource:o,shortcodeArgs:n})]});export{F as default};
