import{r as i,j as s}from"./vendor-react-wBh_31cN.js";import{Q as a}from"./Query-FF77KB4n.js";import{q as u}from"./useServiceStatus-CUjTXlZo.js";import{c as n}from"./vendor-router-D1GqFWiT.js";import"./code-input-HFCw2itd.js";import"./index-BKr2rJhV.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-2OqrG5Vy.js";import"./tabs-DF7ID_Y6.js";import"./QueryProgressBar-CiR1fQG1.js";import"./trinoUtils-DN18CYax.js";import"./theme-colors-BFneJNsI.js";import"./tooltip-Da8-EbK8.js";import"./card-DISTA6Ay.js";import"./editable-select-Co_-YcCr.js";import"./icon-button-FETOk6q1.js";import"./table-CQMBoaty.js";import"./vendor-recharts-DmJlpLaF.js";import"./index-HGUMRNIC.js";import"./button-group-DwtZdOfr.js";import"./combobox-CcK1PxyF.js";import"./input-group-Z3Qmt3PL.js";import"./input-H6_qmzms.js";import"./label-Dnebucx5.js";import"./textarea-Co48BFy3.js";import"./badge-nyizWwTN.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};
