const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./TableMapDock-1.0.74-C-TnTJC2.js","./tanstack-1.0.74-aU0azVkW.js","./redux-1.0.74-D8bIc6ki.js","./vendor-1.0.74-CN03Eozo.js","./MapPrepare-1.0.74-Ce2WlC-i.js","./RestApiError-1.0.74-Bb1un17k.js","./useMetadata-1.0.74--jxfVI7W.js","./hooks-1.0.74-NYCTWeI9.js","./lib-1.0.74-B5IEqfHg.js","./utils-1.0.74-7xWhx9mc.js","./FallbackSpinner-1.0.74-7h-h2HIM.js","./Spinner-1.0.74-B63QTBL9.js","./Box-1.0.74-DEbuVvGV.js","./CircularProgress-1.0.74-QfwfRJ7i.js","./Typography-1.0.74-B4mhsevh.js","./ButtonBase-1.0.74-W6tAH7AI.js","./useEnhancedEffect-1.0.74-B56M26dS.js"])))=>i.map(i=>d[i]);
import{_ as h}from"./RestApiError-1.0.74-Bb1un17k.js";import{j as o}from"./tanstack-1.0.74-aU0azVkW.js";import{P as v,b as e,a as j}from"./index-1.0.74-CCIRxPEn.js";import{f as b,d as s}from"./index-1.0.74-DxwH6OqZ.js";import{r}from"./redux-1.0.74-D8bIc6ki.js";import{u as P}from"./TableContainer-1.0.74-CzT83gtM.js";import{I as g}from"./iconBase-1.0.74-Cs0vntJu.js";import{B as n}from"./ConfirmDialog-1.0.74-CXu4CqK2.js";import{P as R}from"./Menu-1.0.74-CdjCBJ4R.js";import{B as _}from"./Box-1.0.74-DEbuVvGV.js";import"./vendor-1.0.74-CN03Eozo.js";import"./index-1.0.74-DtMr5-xA.js";import"./CircularProgress-1.0.74-QfwfRJ7i.js";import"./lib-1.0.74-B5IEqfHg.js";import"./utils-1.0.74-7xWhx9mc.js";import"./ButtonBase-1.0.74-W6tAH7AI.js";import"./Typography-1.0.74-B4mhsevh.js";import"./useEnhancedEffect-1.0.74-B56M26dS.js";import"./ThemeProvider-1.0.74-4uzbYYLM.js";import"./Portal-1.0.74-BrUPeMX9.js";import"./AdminTheme-1.0.74-BtTaJUu_.js";import"./SharedContainer-1.0.74-EDNOiamc.js";import"./hooks-1.0.74-NYCTWeI9.js";import"./DynamicModeEnum-1.0.74-BXuL5kgA.js";import"./useRemoveAppFromStore-1.0.74-CJatuZ_l.js";import"./Languages-1.0.74-DaJcF5OJ.js";import"./CleanupDetails-1.0.74-CpCDzf3e.js";import"./useLocaleApp-1.0.74-BAnA1P2j.js";import"./useLocaleUd-1.0.74-DiRzsyAi.js";import"./RestApi-1.0.74-5XKxNzpR.js";import"./useFormDetails-1.0.74-eGZBYCv4.js";import"./useMetadata-1.0.74--jxfVI7W.js";import"./useTheme-1.0.74-CW3awVDs.js";import"./index-1.0.74-iJ_9eGZx.js";import"./getThemeProps-1.0.74-DOfDN6_V.js";import"./useChartSettings-1.0.74-C6-5LBxk.js";import"./useBuiltins-1.0.74-D-15qGZw.js";import"./useStoreFormSettings-1.0.74-3dBRbl0S.js";import"./useScreenSize-1.0.74-DEibwIMk.js";import"./useFullScreen-1.0.74-DAWjksdW.js";import"./Tooltip-1.0.74-Bsfqgjy3.js";import"./SanitizeComponent-1.0.74-DsOvasd7.js";import"./index-1.0.74-8lphm33F.js";import"./useAppFunctions-1.0.74-YEA5Kc-A.js";import"./index.esm-1.0.74-BYIJ7eFL.js";import"./createSvgIcon-1.0.74-Cw_ZFbxi.js";import"./Stack-1.0.74-2Im9CMBM.js";import"./useThemeProps-1.0.74-eOKEtzB-.js";import"./Radio-1.0.74-fPSETwpC.js";import"./SwitchBase-1.0.74-pUYMwK3f.js";import"./Select-1.0.74-DHOnlEEH.js";import"./isHostComponent-1.0.74-DVu5iVWx.js";import"./Modal-1.0.74-BfLid1bk.js";import"./Checkbox-1.0.74-DOdb-56q.js";import"./Chip-1.0.74-BR6j83mk.js";import"./Collapse-1.0.74-DA2Rx31o.js";import"./AlertTitle-1.0.74-BmkdSyE6.js";import"./Close-1.0.74-Ce0z5IFm.js";import"./TextField-1.0.74-BW9Byijb.js";import"./InputAdornment-1.0.74-DzikPcDx.js";import"./MenuItem-1.0.74-D9LDbFUb.js";import"./TableRow-1.0.74-CECYdZO6.js";import"./ListItemIcon-1.0.74-ppmWX5FC.js";import"./Divider-1.0.74-BpwHmJ_P.js";import"./FormControlLabel-1.0.74-CdAG1Jo8.js";import"./Switch-1.0.74-IHNqKL8Y.js";import"./Autocomplete-1.0.74-1_REDbpQ.js";import"./Slider-1.0.74-BxpDcEEP.js";import"./visuallyHidden-1.0.74-Dan1xhjv.js";import"./TimePicker-1.0.74-gWV6OwNg.js";import"./useMobilePicker-1.0.74-BBJYmeTF.js";import"./timeViewRenderers-1.0.74-DXJAb_je.js";import"./DateTimePicker-1.0.74-BxWsB93c.js";import"./Tabs-1.0.74-BLkbuumd.js";import"./dateViewRenderers-1.0.74-2jL9ogDX.js";import"./DatePicker-1.0.74-RL6FEWbq.js";import"./ActionsDml-1.0.74-C175Bq0Y.js";import"./index-1.0.74-C9JunOsO.js";import"./math-1.0.74-CudmHSny.js";import"./ToggleButtonGroup-1.0.74-DMigw7sg.js";import"./index-1.0.74-CwV9FnQf.js";import"./index-1.0.74-FmkvObU2.js";import"./useLocaleMrt-1.0.74-BUIBUKA0.js";const z=r.lazy(()=>h(()=>import("./TableMapDock-1.0.74-C-TnTJC2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),rr=({appId:p,componentWidth:a,tableStore:l,appLanguage:x})=>{const t=r.useRef(null),[d,c]=r.useState(380),[f,m]=r.useState(!1),u=r.useCallback(()=>{t.current&&c(t.current.offsetWidth)},[]);return P({targetRef:f?t:void 0,onResize:u}),o.jsx(v,{variant:"popover",popupId:p,children:i=>o.jsxs(o.Fragment,{children:[a<900?o.jsx(b,{title:"Charts",children:o.jsx(g,{...e(i),onClickCapture:()=>{},children:o.jsx(s,{})})}):o.jsx(n,{variant:"contained",endIcon:o.jsx(s,{}),...e(i),onClickCapture:()=>{},children:"MAPS"}),o.jsx(R,{...j(i),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},TransitionProps:{onEntered:()=>{m(!0)},onExited:()=>{m(!1)}},sx:{boxShadow:"0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)","& > .MuiPaper-root":{resize:"horizontal",minWidth:"380px",width:d+"px"}},children:o.jsxs(_,{ref:t,style:{padding:"80px 30px 30px 30px",position:"relative",overflow:"hidden"},children:[o.jsx(r.Suspense,{children:o.jsx(z,{appId:p,tableStore:l,position:"TOP",isFullScreen:!1})}),o.jsxs(n,{variant:"contained",onClick:()=>{i.close()},style:{position:"absolute",top:"20px",right:"30px"},children:[" ",x.back," "]})]})})]})})};export{rr as default};
