import{r as w}from"./vendor-react-wBh_31cN.js";import{h as k,n as E,l as x,m as N,g as b,r as d,aD as v,V as j,q as G,b0 as Q,cz as T,p as g,aC as _,cm as F,aX as S,ac as q}from"./index-BKr2rJhV.js";import{c as C}from"./index-DJIjy7qt.js";import{u as D,a as $}from"./index-BP2S764X.js";import{a as z,m as B}from"./vendor-router-D1GqFWiT.js";import{s as H}from"./sort-BIlPehKK.js";import{a as L}from"./ascend-D9xyxTFQ.js";import{a as M}from"./any-Db6pVWyk.js";const Y=o=>{var l,f;const{pathname:y}=z(),n=k(N(c=>B(b(c,d.project.value),y)),E(x),v)([`${d.project.featureView.td.overview}/*`,`${d.project.featureView.overview}/*`]),{id:m,fsId:e,fvName:t,fvVersion:r,tdVersion:a}=(n==null?void 0:n.params)??{},{data:I}=j(),{data:p}=C({pId:+m,fsId:+e,id:t,version:+r,params:{expand:["keywords","tags","features","query_string","tag_schemas"].filter(c=>I?!0:!["keywords","tags","tag_schemas"].includes(c))}},{skip:!t}),{currentData:u={items:[]}}=D({pId:+m,fsId:+e,id:t,version:+r},{skip:r===void 0}),i=w.useMemo(()=>a?Number.isInteger(+a)?+a:"":o||(G(u.items)?null:Q(T(g("version")),{version:-1},u.items).version),[u.items,a,o]),{currentData:s}=$({pId:+m,fsId:+e,fvName:t,fvVersion:+r,id:+i,params:{fields:"content"}},{skip:!i}),h=s!=null&&s.entities?[]:H(L(_),F(s)),V=s!=null&&s.entities?s.entities.statistics:(f=(l=g(v(h),s))==null?void 0:l.entities)==null?void 0:f.statistics;return{tdVersion:i===null?null:String(i),hasCorrelation:M(S(["extendedStatistics","correlations"]))(q(V)),fsId:e,loggingEnabled:p==null?void 0:p.loggingEnabled}};export{Y as u};
