import{d as I,M as P,c as r,T as B,a as N,E as S,j,R as E,ah as M,aG as Q,b as c,e as n,w as a,o as l,u as t,aO as V,f as i,aP as v,s as F,h as p,aQ as G,aR as J,aS as L,aT as Z,at as $,aL as q,ab as z}from"./index-562c8470.js";import{u as A}from"./usePageTitle-ad3dbf10.js";const X=I({__name:"Deployment",setup(H){const m=P("deploymentId"),_=r(()=>[m.value]),f=B(),b=N(),h={interval:3e5},d=S(b.deployments.getDeployment,[m.value],h),e=r(()=>d.response),k=r(()=>{var o,s;return[{label:"Details",hidden:j.xl},{label:"Runs"},{label:"Parameters",hidden:(o=e.value)==null?void 0:o.deprecated},{label:"Infra Overrides",hidden:(s=e.value)==null?void 0:s.deprecated},{label:"Description"}]}),u=E("tab","Details"),{tabs:g}=M(k,u);function D(){f.push(z.deployments())}const y=r(()=>{var o;return(o=e.value)!=null&&o.infrastructureOverrides?JSON.stringify(e.value.infrastructureOverrides,void 0,2):"{}"}),{filter:w}=Q({deployments:{id:_}}),x=r(()=>e.value?`Deployment: ${e.value.name}`:"Deployment");return A(x),(o,s)=>{const R=c("p-content"),U=c("p-code-highlight"),O=c("p-tabs"),T=c("p-layout-well");return l(),n(T,{class:"deployment"},{header:a(()=>[e.value?(l(),n(t(V),{key:0,deployment:e.value,onUpdate:t(d).refresh,onDelete:D},null,8,["deployment","onUpdate"])):i("",!0)]),well:a(()=>[e.value?(l(),n(t(v),{key:0,deployment:e.value,alternate:"",onUpdate:t(d).refresh},null,8,["deployment","onUpdate"])):i("",!0)]),default:a(()=>[e.value?(l(),n(O,{key:0,selected:t(u),"onUpdate:selected":s[0]||(s[0]=C=>F(u)?u.value=C:null),tabs:t(g)},{description:a(()=>[p(R,{secondary:""},{default:a(()=>[e.value.deprecated?(l(),n(t(G),{key:0})):e.value.description?(l(),n(t(J),{key:1,description:e.value.description},null,8,["description"])):(l(),n(t(L),{key:2,deployment:e.value},null,8,["deployment"]))]),_:1})]),parameters:a(()=>[p(t(Z),{deployment:e.value},null,8,["deployment"])]),"infra-overrides":a(()=>[e.value?(l(),n(t($),{key:0,"text-to-copy":y.value},{default:a(()=>[p(U,{lang:"json",text:y.value,class:"deployment__infra-overrides"},null,8,["text"])]),_:1},8,["text-to-copy"])):i("",!0)]),details:a(()=>[p(t(v),{deployment:e.value,onUpdate:t(d).refresh},null,8,["deployment","onUpdate"])]),runs:a(()=>[p(t(q),{"flow-run-filter":t(w)},null,8,["flow-run-filter"])]),_:1},8,["selected","tabs"])):i("",!0)]),_:1})}}});export{X as default};
