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