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