import{r as i,j as s}from"./vendor-react-wBh_31cN.js";import{Q as a}from"./Query-CHU8Z6-p.js";import{q as u}from"./useServiceStatus-Dxc6qH3d.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";import"./operation-log-CeRKLRfg.js";const K=()=>{const{id:r,queryId:t}=n(),[m,p]=i.useState(!r||!t),{data:o,isLoading:e}=u({id:r,queryId:t},{skip:m,pollingInterval:5e3});return i.useEffect(()=>{p(!r||!t||!!o&&o.finalQueryInfo)},[r,t,o]),s.jsx(a,{query:o,isLoading:e})};export{K as default};
