import{u as s,r as i,lT as a,j as u}from"./index-C6OVXshM.js";import{Q as n}from"./Query-B6zyeCwC.js";import"./QueryProgressBar-BMLWBlYt.js";import"./trinoUtils-CkYt6rPZ.js";import"./CardLabel-C0pbHcO-.js";import"./ResponsiveContainer-QMxQ3iUV.js";import"./generateCategoricalChart-dv6gjfk1.js";import"./isEqual-DrICj05y.js";import"./bump-BmRQ39WQ.js";import"./linear-C3cNlZpH.js";import"./string-cKWu9XK9.js";import"./max-DBeXZoyG.js";import"./BarChart-DlmymiaW.js";import"./AreaChart--nrzVHxY.js";import"./Area-IB3cuAYY.js";import"./index-H5LhWHal.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};
