import{r as o,j as i}from"./vendor-react-wBh_31cN.js";import{Q as s}from"./Query-CHU8Z6-p.js";import{d as a}from"./index-CjcA9E11.js";import{c as n}from"./vendor-router-D1GqFWiT.js";import"./code-input-W_9wcAaJ.js";import"./index-dNe6i2rS.js";import"./vendor-redux-CJZrIb6x.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-icons-BUUmD6ht.js";import"./vendor-radix-BRyWS4bQ.js";import"./vendor-grid-CeFlDWv4.js";import"./separator-CxqNNMXg.js";import"./tabs-BZDPsi5L.js";import"./QueryProgressBar-BjfVL2jj.js";import"./trinoUtils-DN18CYax.js";import"./theme-colors-BFneJNsI.js";import"./tooltip-DFFgUYh6.js";import"./card-BeQtvmcJ.js";import"./editable-select-DItn4ZHW.js";import"./icon-button-BZeFL7T7.js";import"./table-a0YeQrHM.js";import"./vendor-recharts-DmJlpLaF.js";import"./index-HGUMRNIC.js";import"./button-group-6kgQwyh_.js";import"./combobox-QqI9aNup.js";import"./input-group-gxy3DSmS.js";import"./input-DFI7JniT.js";import"./label-gPWmc6ow.js";import"./textarea-BJVuSob1.js";import"./badge-UCnweWGd.js";const F=()=>{const{queryId:r}=n(),[m,p]=o.useState(!r),{data:t,isLoading:e}=a({queryId:r},{skip:m,pollingInterval:5e3});return o.useEffect(()=>{p(!r||!!t&&t.finalQueryInfo)},[r,t]),i.jsx("div",{className:"flex min-w-[1270px] max-h-[calc(100vh-180px)] flex-col",children:i.jsx(s,{query:t,isLoading:e})})};export{F as default};
