import{d as _,a as f,c as a,r as y,o as n,b as p,w as r,i as k,e,L as v,g as x,M as $,J as b,F as g,f as C,K as B}from"./index.a93ec448.js";const w=_({__name:"Deployments",setup(D){const m={interval:3e4},t=f(B.getDeployments,[{}],m),l=a(()=>{var o;return(o=t.response)!=null?o:[]}),c=a(()=>t.executed&&l.value.length===0),d=a(()=>t.executed);return(o,s)=>{const u=y("p-layout-default");return n(),p(u,{class:"deployments"},{header:r(()=>[k(e(v))]),default:r(()=>[e(d)?(n(),x(g,{key:0},[e(c)?(n(),p(e($),{key:0})):(n(),p(e(b),{key:1,deployments:e(l),onUpdate:s[0]||(s[0]=i=>e(t).refresh()),onDelete:s[1]||(s[1]=i=>e(t).refresh())},null,8,["deployments"]))],64)):C("",!0)]),_:1})}}});export{w as default};
