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-Cox3ZWL0.js";import{Q as y}from"./Query-CURFOt5v.js";import{d as f}from"./index-CRgLzJsN.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 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};
