import{d as k,bQ as B,g as t,aS as T,aT as C,b,o as a,v as D,n as V,j as n,k as e,bR as N,aY as U,e as W,W as j,al as H,f as Z,bu as $,bS as A,c as i,h as o,i as F,u as E,bT as M,a as p,bU as O,bV as P,bD as Q,a6 as Y,bk as q}from"./index-B5elPXvm.js";import{s as z,b as G}from"./index-0yGGjo7r.js";import{u as J}from"./usePageTitle-c6xxeh_y.js";const K={class:"flow-stats"},L={class:"flow-stats__cards"},X=k({__name:"FlowStats",props:{flowId:{}},setup(w){const f=w,r={range:{type:"span",seconds:-G},tags:[]},{flowId:u}=B(f),c=t(()=>({flowId:u.value,range:r.range}));T(C,{interval:z(30)});const l=t(()=>b.map("FlowStatsFilter",c.value,"FlowRunsFilter")),d=t(()=>b.map("FlowStatsFilter",c.value,"TaskRunsFilter"));return(_,m)=>(a(),D("div",K,[V("div",L,[n(e(N),{filter:l.value},null,8,["filter"]),n(e(U),{filter:d.value},null,8,["filter"])])]))}}),oe=k({__name:"Flow",setup(w){const f=W(),r=j("flowId"),u=t(()=>[r.value]),c=E(),l=H("tab","Runs"),d=["Runs","Deployments","Details"],_={interval:3e5},m=Z(f.flows.getFlow,[r.value],_),s=t(()=>m.response),{filter:R}=$({flows:{id:u}}),{filter:y}=A({flows:{id:u}});function g(){c.push(q.flows())}const I=t(()=>s.value?`Flow: ${s.value.name}`:"Flow");return J(I),(ee,v)=>{const h=F("p-tabs"),x=F("p-layout-default");return a(),i(x,{class:"flow"},{header:o(()=>[s.value?(a(),i(e(M),{key:0,flow:s.value,onDelete:g},null,8,["flow"])):p("",!0)]),default:o(()=>[s.value?(a(),i(X,{key:0,"flow-id":s.value.id},null,8,["flow-id"])):p("",!0),n(h,{selected:e(l),"onUpdate:selected":v[0]||(v[0]=S=>Y(l)?l.value=S:null),tabs:d},{details:o(()=>[s.value?(a(),i(e(O),{key:0,flow:s.value},null,8,["flow"])):p("",!0)]),deployments:o(()=>[n(e(P),{filter:e(y),prefix:"deployments"},null,8,["filter"])]),runs:o(()=>[n(e(Q),{filter:e(R),selectable:"",prefix:"runs"},null,8,["filter"])]),_:1},8,["selected"])]),_:1})}}});export{oe as default};
//# sourceMappingURL=Flow-B-CdNYOI.js.map
