import{u as s,r as i,lS as a,j as u}from"./index-DNBEEyYo.js";import{Q as n}from"./Query-BFZJPyDP.js";import"./QueryProgressBar-BiVo8p2D.js";import"./trinoUtils-CkYt6rPZ.js";import"./CardLabel-Cr6NEOPS.js";import"./ResponsiveContainer-B0bATjB6.js";import"./generateCategoricalChart-BC7jg59_.js";import"./isEqual-Caw4eDkN.js";import"./bump-BmRQ39WQ.js";import"./linear-C3cNlZpH.js";import"./string-cKWu9XK9.js";import"./max-DBeXZoyG.js";import"./BarChart-Bo6mG_3p.js";import"./AreaChart-Bl4wjFnC.js";import"./Area-C3ynbKcG.js";import"./index-BCcerhnO.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};
