import{d as D,u as C,a as R,K as N,c as d,r as s,o as n,b as a,w as o,e,N as O,f as p,O as y,i as l,z as S,x as $,p as B}from"./index.a93ec448.js";import{u as P}from"./useRouteParam.ba3137c3.js";const z=D({__name:"Deployment",setup(U){const i=P("id"),f=C(),v={interval:3e5},m=R(N.getDeployment,[i.value],v),t=d(()=>m.response),b=d(()=>{var u,r;return(r=(u=t.value)==null?void 0:u.schedule)!=null?r:""});function w(){f.push(B.deployments())}return(u,r)=>{const c=s("p-key-value"),h=s("p-content"),k=s("p-tabs"),x=s("p-layout-well");return n(),a(x,{class:"deployment"},{header:o(()=>[e(t)?(n(),a(e(O),{key:0,deployment:e(t),onUpdate:e(m).refresh,onDelete:w},null,8,["deployment","onUpdate"])):p("",!0)]),well:o(()=>[e(t)?(n(),a(e(y),{key:0,deployment:e(t),alternate:""},null,8,["deployment"])):p("",!0)]),default:o(()=>[e(t)?(n(),a(k,{key:0,tabs:["Overview","Parameters"]},{overview:o(()=>[l(h,{secondary:""},{default:o(()=>{var _;return[l(c,{label:"Schedule",value:e(b)},null,8,["value"]),l(c,{label:"Location",value:e(t).flowData.blob},null,8,["value"]),l(c,{label:"Flow Runner",value:(_=e(t).flowRunner)==null?void 0:_.type},null,8,["value"]),e(S).xl?p("",!0):(n(),a(e(y),{key:0,deployment:e(t)},null,8,["deployment"]))]}),_:1})]),parameters:o(()=>[l(e($),{parameters:e(t).parameters},null,8,["parameters"])]),_:1})):p("",!0)]),_:1})}}});export{z as default};
