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