const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./QueryToolbar-1.0.63-CZjTItOa.js","./cmJson-1.0.63-CyZ2MfFg.js","./cm-1.0.63-CSIRHMXC.js","./redux-1.0.63-Df-eBzJn.js","./vendor-1.0.63-CN03Eozo.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","./rehyperaw-1.0.63-AkovKNCK.js","./markdown-1.0.63-BJvkzZkj.js","./index-1.0.63-oIDff4nA.js","./Typography-1.0.63-mecuj_Wl.js","./ButtonBase-1.0.63-CF10PFMS.js","./useEnhancedEffect-1.0.63-DnR0ZFqV.js","./ThemeProvider-1.0.63-Cq0KMgkh.js","./Modal-1.0.63-fMXTbfks.js","./notistack-1.0.63-B49ULGrj.js","./iconBase-1.0.63-CFvHhC4t.js","./index-1.0.63-DEVN4tRF.js","./hooks-1.0.63-CWs3kTdT.js","./StartQueryBuilder-1.0.63-REjvqyiC.js","./useViewHeight-1.0.63-C7T4FLFa.js","./AdminTheme-1.0.63-DhJ0rrw5.js","./index-1.0.63-Cr9ps5ft.js","./QueryBuilder-1.0.63-DtyYMIMt.js","./ConfirmDialog-1.0.63-eXgm3P8b.js","./cjs-1.0.63-4A2xol4v.js","./DialogContent-1.0.63-B3W-DlSe.js","./MainQueryBuilder-1.0.63-B0m2zVpP.js","./ActionsExplorer-1.0.63-DQojhfpy.js","./RestApi-1.0.63-BUfzocgq.js","./DatabaseTypeEnum-1.0.63-DeJfpW1u.js","./Spinner-1.0.63-zcgIyS7Z.js","./TabPanel-1.0.63-CSMGfwNU.js","./InputAdornment-1.0.63-q8tTbJxw.js","./getThemeProps-1.0.63-5ZzcWe3G.js","./Select-1.0.63-BMejr8a7.js","./Menu-1.0.63-DLh4HkF0.js","./createSvgIcon-1.0.63-DWL3J-DK.js","./index-1.0.63-BbQj9wqD.js","./SanitizeComponent-1.0.63-CtRxRbku.js","./dompurify-1.0.63-DhD2mIk-.js","./TextField-1.0.63-C35Mfi1Q.js","./FormControlLabel-1.0.63-DpYUdUm6.js","./Checkbox-1.0.63-DPBXeOde.js","./SwitchBase-1.0.63-Br-lbcZ1.js","./Divider-1.0.63-dQ0q4iIX.js","./MenuItem-1.0.63-Bvb3IjMP.js","./TabList-1.0.63-z7zNziDb.js","./Tabs-1.0.63-6c0rSlLk.js","./Switch-1.0.63-m0NqOO9s.js","./main-1.0.63-CGp-2hVp.css","./index-1.0.63-MKbdS7Mb.js","./ctc-1.0.63-C3KWqNfd.js","./react-number-format.es-1.0.63-B-GknBUR.js","./ToggleButtonGroup-1.0.63-C7rCX82E.js","./dayjs.min-1.0.63--tEOvUER.js","./PremiumFeature-1.0.63-CSC9M_X_.js","./AdapterDayjs-1.0.63-DgbXGDY7.js","./TableRow-1.0.63-BAGTQhT7.js","./useMobilePicker-1.0.63-Dld_IT8N.js","./index-1.0.63-BT4mpIxR.js","./visuallyHidden-1.0.63-Dan1xhjv.js","./ListItem-1.0.63-HbRRleqj.js","./Chip-1.0.63-QLWMq6MQ.js","./DateTimePicker-1.0.63-Cpnmxi5f.js","./timeViewRenderers-1.0.63-Do12J_jG.js","./dateViewRenderers-1.0.63-CVOdAYL2.js","./FileSaver.min-1.0.63-DJRT4Qoi.js","./QueryEditor-1.0.63-Bj2yzc4K.js","./QueryResult-1.0.63-BKvF0T9B.js","./jstoxml-1.0.63-Cid7y3kP.js","./jstoxml-1.0.63-DkGlThlH.js","./QueryResultMutiple-1.0.63-CwKCdekB.js"])))=>i.map(i=>d[i]);
import{_ as e}from"./cmJson-1.0.63-CyZ2MfFg.js";import{j as t}from"./cm-1.0.63-CSIRHMXC.js";import{r}from"./redux-1.0.63-Df-eBzJn.js";import{F as m}from"./FallbackSpinner-1.0.63-BLl5ldYH.js";import{a as u}from"./TabPanel-1.0.63-CSMGfwNU.js";import"./lib-1.0.63-DJZPtMem.js";import"./vendor-1.0.63-CN03Eozo.js";import"./loglevel-1.0.63-BZ7XahX3.js";import"./lodash-1.0.63-hMxolcpJ.js";import"./moment-1.0.63-C5S46NFB.js";import"./rehyperaw-1.0.63-AkovKNCK.js";import"./markdown-1.0.63-BJvkzZkj.js";import"./Spinner-1.0.63-zcgIyS7Z.js";import"./Typography-1.0.63-mecuj_Wl.js";import"./InputAdornment-1.0.63-q8tTbJxw.js";import"./cjs-1.0.63-4A2xol4v.js";import"./ButtonBase-1.0.63-CF10PFMS.js";import"./useEnhancedEffect-1.0.63-DnR0ZFqV.js";import"./getThemeProps-1.0.63-5ZzcWe3G.js";import"./Select-1.0.63-BMejr8a7.js";import"./Menu-1.0.63-DLh4HkF0.js";import"./ThemeProvider-1.0.63-Cq0KMgkh.js";import"./index-1.0.63-oIDff4nA.js";import"./Modal-1.0.63-fMXTbfks.js";import"./notistack-1.0.63-B49ULGrj.js";import"./iconBase-1.0.63-CFvHhC4t.js";import"./createSvgIcon-1.0.63-DWL3J-DK.js";const _=r.lazy(()=>e(()=>import("./QueryToolbar-1.0.63-CZjTItOa.js").then(o=>o.Q),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,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]),import.meta.url)),d=r.lazy(()=>e(()=>import("./QueryEditor-1.0.63-Bj2yzc4K.js"),__vite__mapDeps([70,1,2,3,4,5,6,7,8,9,10,20,21,17,22,25,11,12,13,14,15,16,18,26,27,23,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url)),x=r.lazy(()=>e(()=>import("./QueryResult-1.0.63-BKvF0T9B.js"),__vite__mapDeps([71,1,2,3,4,5,6,7,8,9,10,40,18,12,13,14,72,73,69,11,15,16,17,25,26,27,23,28,20,21,22,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,19,53,54]),import.meta.url)),c=r.lazy(()=>e(()=>import("./QueryResultMutiple-1.0.63-CwKCdekB.js"),__vite__mapDeps([74,1,2,3,4,5,6,7,8,9,10]),import.meta.url)),H=({queries:o,queryKey:i,databases:s,fullScreen:a})=>{const[p,n]=r.useState({});return t.jsxs(u,{value:i,keepMounted:!0,sx:{padding:"5px 0"},children:[t.jsx(r.Suspense,{children:t.jsx(_,{queries:o,queryKey:i,databases:s,setQueryResults:l=>{n(l)}})}),t.jsx(r.Suspense,{children:t.jsx(d,{queryKey:i,query:o[i],fullScreen:a})}),Array.isArray(p==null?void 0:p.tabs)&&p.tabs.length>0?t.jsx(r.Suspense,{fallback:t.jsx(m,{}),children:t.jsx(c,{queries:o,queryKey:i,queryResults:p})}):t.jsx(r.Suspense,{fallback:t.jsx(m,{}),children:t.jsx(x,{queries:o,queryKey:i,queryResults:p})})]})};export{H as default};
