import{u as s,r as i,lS as a,j as u}from"./index-DHiyXWqE.js";import{Q as n}from"./Query-Dj-mntMF.js";import"./QueryProgressBar-BO4j4fXl.js";import"./trinoUtils-CkYt6rPZ.js";import"./CardLabel-B_HCvGgq.js";import"./ResponsiveContainer-CAashrCq.js";import"./generateCategoricalChart-yyhQoVBO.js";import"./isEqual-BK-vdJpg.js";import"./bump-BmRQ39WQ.js";import"./linear-C3cNlZpH.js";import"./string-cKWu9XK9.js";import"./max-DBeXZoyG.js";import"./BarChart-DQ4NBekM.js";import"./AreaChart-BxeD8Ayc.js";import"./Area-DLaQ6jtP.js";import"./index-Y07Nps2b.js";import"./zoom-D5h43YeK.js";import"./transform-C2GfmqNu.js";const O=()=>{const{id:r,queryId:t}=s(),[e,p]=i.useState(!r||!t),{data:o,isLoading:m}=a({id:r,queryId:t},{skip:e,pollingInterval:5e3});return i.useEffect(()=>{p(!r||!t||!!o&&o.finalQueryInfo)},[r,t,o]),u.jsx(n,{query:o,isLoading:m})};export{O as default};
