import{d as g,m as x,E as C,c as o,z as D,S as E,R as I,ap as S,aq as V,a as i,f as s,w as t,o as a,g as l,ar as q,h as u,as as w,n as r,at as B,au as J,X as N}from"./index-18beffd6.js";import{u as j}from"./usePageTitle-5c97edcb.js";const X=g({__name:"Flow",setup(z){const p=x(),f=C("flowId"),c=o(()=>[f.value]),m=D(),_=o(()=>{const n=["Runs","Deployments"];return E.xl||n.unshift("Details"),n}),d={interval:3e5},v=I(p.flows.getFlow,[f.value],d),e=o(()=>v.response),{filter:y}=S({flows:{id:c}}),{filter:b}=V({flows:{id:c}});function F(){m.push(N.flows())}const h=o(()=>e.value?`Flow: ${e.value.name}`:"Flow");return j(h),(n,O)=>{const k=i("p-tabs"),R=i("p-layout-well");return a(),s(R,{class:"flow"},{header:t(()=>[e.value?(a(),s(l(q),{key:0,flow:e.value,onDelete:F},null,8,["flow"])):u("",!0)]),well:t(()=>[e.value?(a(),s(l(w),{key:0,flow:e.value},null,8,["flow"])):u("",!0)]),default:t(()=>[r(k,{tabs:_.value},{details:t(()=>[e.value?(a(),s(l(w),{key:0,flow:e.value},null,8,["flow"])):u("",!0)]),deployments:t(()=>[r(l(B),{filter:l(b)},null,8,["filter"])]),runs:t(()=>[r(l(J),{"flow-run-filter":l(y)},null,8,["flow-run-filter"])]),_:1},8,["tabs"])]),_:1})}}});export{X as default};
