import{u as s,r as i,lT as a,j as u}from"./index-Cox3ZWL0.js";import{Q as n}from"./Query-CURFOt5v.js";import"./QueryProgressBar-CbIZ5f8t.js";import"./trinoUtils-CkYt6rPZ.js";import"./CardLabel-BY3XrrkN.js";import"./ResponsiveContainer-9FOBZSeS.js";import"./generateCategoricalChart-r3YBne8p.js";import"./isEqual-ChfZXzNw.js";import"./bump-BmRQ39WQ.js";import"./linear-C3cNlZpH.js";import"./string-cKWu9XK9.js";import"./max-DBeXZoyG.js";import"./BarChart-CUfJgmZ6.js";import"./AreaChart-BXuLkydu.js";import"./Area-BOC2c8fg.js";import"./index-Ck37e_Tb.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};
