import{d as C,u as F,c as l,a as c,G as S,r as m,o as a,b as r,w as t,e,H as g,f as u,I as w,i as _,J as A,K as B,p as I,z as N}from"./index.a93ec448.js";import{u as R}from"./useRouteParam.ba3137c3.js";const H=C({__name:"Flow",setup(V){const f=R("id"),d=F(),y=l(()=>{const s=["Deployments"];return N.xl||s.unshift("Details"),s}),i={interval:3e5},b=c(S.getFlow,[f.value],i),o=l(()=>b.response),D=l(()=>({flows:{id:{any_:[f.value]}}})),p=c(B.getDeployments,[D],i),v=l(()=>{var s;return(s=p.response)!=null?s:[]});function k(){d.push(I.flows())}return(s,n)=>{const $=m("p-tabs"),h=m("p-layout-well");return a(),r(h,{class:"flow"},{header:t(()=>[e(o)?(a(),r(e(g),{key:0,flow:e(o),onDelete:k},null,8,["flow"])):u("",!0)]),well:t(()=>[e(o)?(a(),r(e(w),{key:0,flow:e(o)},null,8,["flow"])):u("",!0)]),default:t(()=>[_($,{tabs:e(y)},{details:t(()=>[e(o)?(a(),r(e(w),{key:0,flow:e(o)},null,8,["flow"])):u("",!0)]),deployments:t(()=>[_(e(A),{deployments:e(v),onUpdate:n[0]||(n[0]=x=>e(p).refresh()),onDelete:n[1]||(n[1]=x=>e(p).refresh())},null,8,["deployments"])]),_:1},8,["tabs"])]),_:1})}}});export{H as default};
