import{u as p,r as i,bx as u,j as e,q as c,aJ as x,t as l,x as o}from"./index-DHiyXWqE.js";import{Q as y}from"./Query-Dj-mntMF.js";import{d as f}from"./index-Dy6S0KZ-.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 G=()=>{const{queryId:t}=p(),[s,n]=i.useState(!t),{data:r,isLoading:a}=f({queryId:t},{skip:s,pollingInterval:5e3}),m=u();return i.useEffect(()=>{n(!t||!!r&&r.finalQueryInfo)},[t,r]),e.jsxs(c,{flexDirection:"column",minWidth:"1270px",maxHeight:"calc(100vh - 180px)",children:[e.jsx(x,{mb:"20px",pl:"0px",intent:"inline",onClick:()=>m(l(o.settings.queryEngine.queryHistory,o.settings.queryEngine.overview)),children:"<- back"}),e.jsx(y,{query:r,isLoading:a})]})};export{G as default};
