import{d as g,u as R,a as x,e as u,ad as C,b as j,a2 as F,I as N,g as i,o as a,h as o,w as n,j as e,ae as P,s as c,af as m,i as p,ag as W,ah as B,ai as I,aj as M,a6 as Q,n as S,G as V,ak as z}from"./index.ace9693c.js";import{u as A}from"./useRouteParam.1483cbc1.js";import{u as G}from"./useToast.9dc15911.js";import{u as H}from"./usePageTitle.12638eb5.js";const J=g({__name:"Deployment",setup(O){const d=A("id"),_=R(),y=x(),f=G(),b={interval:3e5},h=u(()=>{var s;return[{label:"Details",hidden:S.xl},{label:"Description"},{label:"Runs"},{label:"Parameters",hidden:(s=t.value)==null?void 0:s.deprecated}]}),k=C(h),l=j(y.deployments.getDeployment,[d.value],b),t=u(()=>l.response);function w(){_.push(V.deployments())}const v=F({deployments:[d.value]}),D=u(()=>t.value?`Deployment: ${t.value.name}`:"Deployment");return H(D),N(t,()=>{var s,r;!((s=t.value)!=null&&s.workQueueName)&&!((r=t.value)!=null&&r.deprecated)&&f(z.info.deploymentMissingWorkQueue,"default",{timeout:!1})}),(s,r)=>{const $=i("p-content"),T=i("p-tabs"),U=i("p-layout-well");return a(),o(U,{class:"deployment"},{header:n(()=>[e(t)?(a(),o(e(P),{key:0,deployment:e(t),onUpdate:e(l).refresh,onDelete:w},null,8,["deployment","onUpdate"])):c("",!0)]),well:n(()=>[e(t)?(a(),o(e(m),{key:0,deployment:e(t),alternate:"",onUpdate:e(l).refresh},null,8,["deployment","onUpdate"])):c("",!0)]),default:n(()=>[e(t)?(a(),o(T,{key:0,tabs:e(k)},{description:n(()=>[p($,{secondary:""},{default:n(()=>[e(t).deprecated?(a(),o(e(W),{key:0})):e(t).description?(a(),o(e(B),{key:1,description:e(t).description},null,8,["description"])):(a(),o(e(I),{key:2,deployment:e(t)},null,8,["deployment"]))]),_:1})]),parameters:n(()=>[p(e(M),{deployment:e(t)},null,8,["deployment"])]),details:n(()=>[p(e(m),{deployment:e(t),onUpdate:e(l).refresh},null,8,["deployment","onUpdate"])]),runs:n(()=>[p(e(Q),{"flow-run-filter":e(v)},null,8,["flow-run-filter"])]),_:1},8,["tabs"])):c("",!0)]),_:1})}}});export{J as default};
