const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ThemeContainer-1.0.74-LGT-FhpN.js","./tanstack-1.0.74-aU0azVkW.js","./redux-1.0.74-D8bIc6ki.js","./vendor-1.0.74-CN03Eozo.js","./lib-1.0.74-B5IEqfHg.js","./utils-1.0.74-7xWhx9mc.js","./useTheme-1.0.74-CW3awVDs.js","./index-1.0.74-iJ_9eGZx.js","./CircularProgress-1.0.74-QfwfRJ7i.js","./Typography-1.0.74-B4mhsevh.js","./getThemeProps-1.0.74-DOfDN6_V.js","./useEnhancedEffect-1.0.74-B56M26dS.js","./useTableSettings-1.0.74-DOrceZPc.js","./hooks-1.0.74-NYCTWeI9.js","./useStoreFormSettings-1.0.74-3dBRbl0S.js","./useMetadata-1.0.74--jxfVI7W.js","./useGlobalCode-1.0.74-D0fKEv_n.js","./useAppFunctions-1.0.74-YEA5Kc-A.js","./ThemeProvider-1.0.74-4uzbYYLM.js","./SharedContainer-1.0.74-EDNOiamc.js","./RestApiError-1.0.74-Bb1un17k.js","./DynamicModeEnum-1.0.74-BXuL5kgA.js","./index-1.0.74-DxwH6OqZ.js","./ButtonBase-1.0.74-W6tAH7AI.js","./Portal-1.0.74-BrUPeMX9.js","./iconBase-1.0.74-Cs0vntJu.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","./RestApi-1.0.74-5XKxNzpR.js","./useFormDetails-1.0.74-eGZBYCv4.js","./useChartSettings-1.0.74-C6-5LBxk.js","./useBuiltins-1.0.74-D-15qGZw.js","./ConfirmDialog-1.0.74-CXu4CqK2.js","./AdminTheme-1.0.74-BtTaJUu_.js","./Modal-1.0.74-BfLid1bk.js","./useScreenSize-1.0.74-DEibwIMk.js","./useFullScreen-1.0.74-DAWjksdW.js","./Box-1.0.74-DEbuVvGV.js"])))=>i.map(i=>d[i]);
import{_ as d}from"./RestApiError-1.0.74-Bb1un17k.js";import{j as e}from"./tanstack-1.0.74-aU0azVkW.js";import{r as o}from"./redux-1.0.74-D8bIc6ki.js";import{A as x}from"./AlertDialog-1.0.74-YhMIDJAU.js";import{C as b}from"./ConfirmDialog-1.0.74-CXu4CqK2.js";import{S as f}from"./SanitizeComponent-1.0.74-DsOvasd7.js";import{u as g,a as _}from"./hooks-1.0.74-NYCTWeI9.js";import{l as h,ap as j,ao as S,ad as A}from"./lib-1.0.74-B5IEqfHg.js";import{B as E}from"./Box-1.0.74-DEbuVvGV.js";import"./vendor-1.0.74-CN03Eozo.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"./utils-1.0.74-7xWhx9mc.js";const C=()=>{const i=g(t=>t.ui);return h.debug("uiSetting",i),i},z=()=>{var r,n,s,m,p,a,l,u;const i=_(),t=C();return e.jsxs(e.Fragment,{children:[((r=t.builtins.alert)==null?void 0:r.title)&&((n=t.builtins.alert)==null?void 0:n.message)&&e.jsx(x,{title:(s=t.builtins.alert)==null?void 0:s.title,message:e.jsx(f,{html:(m=t.builtins.alert)==null?void 0:m.message}),open:!0,setOpen:()=>{i(j())}}),((p=t.builtins.confirm)==null?void 0:p.title)&&((a=t.builtins.confirm)==null?void 0:a.message)&&e.jsx(b,{title:(l=t.builtins.confirm)==null?void 0:l.title,message:e.jsx(f,{html:(u=t.builtins.confirm)==null?void 0:u.message}),open:!0,setOpen:()=>{i(S())},onConfirm:()=>{var c;(c=t.builtins.confirm)!=null&&c.callback&&t.builtins.confirm.callback()}})]})},D=o.lazy(()=>d(()=>import("./ThemeContainer-1.0.74-LGT-FhpN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url)),I=o.lazy(()=>d(()=>import("./SharedContainer-1.0.74-EDNOiamc.js").then(i=>i.S),__vite__mapDeps([19,20,3,1,2,4,5,13,21,22,8,23,9,11,18,24,25,26,27,28,29,30,31,32,15,6,7,10,33,34,35,36,37,14,38,39,40]),import.meta.url)),J=({appId:i,appDbId:t})=>{const r=A(i,"pp_app_");return e.jsx(E,{id:r,className:"pp-app-container pp-app-"+t,sx:{[`&#${r} .pp-column-search-field ul`]:{marginLeft:0,padding:0},[`&#${r} .pp-global-search-field input, &#${r} .pp-column-search-field input`]:{boxSizing:"content-box"},[`&#${r} .pp-form form input`]:{boxSizing:"content-box"}},children:e.jsx(o.Suspense,{children:e.jsxs(D,{appId:i,children:[e.jsx(I,{appId:i}),e.jsx(z,{})]})})})};export{J as default};
