import{d as R,a as $,u as x,e as t,b as C,a2 as D,g as c,o as l,h as a,w as o,j as e,a3 as g,s as r,a4 as f,i,a5 as A,a6 as B,n as N,G as P}from"./index.ace9693c.js";import{u as S}from"./useRouteParam.1483cbc1.js";import{u as V}from"./usePageTitle.12638eb5.js";const T=R({__name:"Flow",setup(j){const p=$(),n=S("id"),w=x(),m=t(()=>{const u=["Deployments","Runs"];return N.xl||u.unshift("Details"),u}),_={interval:3e5},d=C(p.flows.getFlow,[n.value],_),s=t(()=>d.response),b=D({flows:[n.value]}),F=t(()=>({flows:[n.value]}));function v(){w.push(P.flows())}const y=t(()=>s.value?`Flow: ${s.value.name}`:"Flow");return V(y),(u,E)=>{const h=c("p-tabs"),k=c("p-layout-well");return l(),a(k,{class:"flow"},{header:o(()=>[e(s)?(l(),a(e(g),{key:0,flow:e(s),onDelete:v},null,8,["flow"])):r("",!0)]),well:o(()=>[e(s)?(l(),a(e(f),{key:0,flow:e(s)},null,8,["flow"])):r("",!0)]),default:o(()=>[i(h,{tabs:e(m)},{details:o(()=>[e(s)?(l(),a(e(f),{key:0,flow:e(s)},null,8,["flow"])):r("",!0)]),deployments:o(()=>[i(e(A),{filter:e(F)},null,8,["filter"])]),runs:o(()=>[i(e(B),{"flow-run-filter":e(b)},null,8,["flow-run-filter"])]),_:1},8,["tabs"])]),_:1})}}});export{T as default};
