import{d as N,ao as C,j as d,aY as g,aR as M,v as R,c as n,w as o,r as m,ah as V,o as a,u as e,aZ as B,m as u,a_ as i,a as r,a$ as I,b0 as P,b1 as Q,b2 as $,aV as j,b3 as A}from"./index-4d9fe32c-718dc5d9.js";import{N as F}from"./prefect-design-a921a7c6.js";import{u as O,c as S}from"./vue-compositions-55710141.js";import{u as W}from"./useToast-7cfa7c25.js";import{u as Y}from"./usePageTitle-e8e2e29d.js";import"./index-558d177a.js";import{r as Z}from"./routes-1bd54f1a.js";import"./meta-26546594.js";const ee=N({__name:"Deployment",setup(q){const c=O("deploymentId"),y=V(),f=C(),_=W(),b={interval:3e5},h=d(()=>{var s;return[{label:"Details",hidden:F.xl},{label:"Description"},{label:"Runs"},{label:"Parameters",hidden:(s=t.value)==null?void 0:s.deprecated}]}),k=g(h),l=S(f.deployments.getDeployment,[c.value],b),t=d(()=>l.response);function w(){y.push(Z.deployments())}const v=M({deployments:[c.value]}),D=d(()=>t.value?`Deployment: ${t.value.name}`:"Deployment");return Y(D),R(t,()=>{var s,p;!((s=t.value)!=null&&s.workQueueName)&&!((p=t.value)!=null&&p.deprecated)&&_(A.info.deploymentMissingWorkQueue,"default",{timeout:!1})}),(s,p)=>{const T=m("p-content"),U=m("p-tabs"),x=m("p-layout-well");return a(),n(x,{class:"deployment"},{header:o(()=>[e(t)?(a(),n(e(B),{key:0,deployment:e(t),onUpdate:e(l).refresh,onDelete:w},null,8,["deployment","onUpdate"])):u("",!0)]),well:o(()=>[e(t)?(a(),n(e(i),{key:0,deployment:e(t),alternate:"",onUpdate:e(l).refresh},null,8,["deployment","onUpdate"])):u("",!0)]),default:o(()=>[e(t)?(a(),n(U,{key:0,tabs:e(k)},{description:o(()=>[r(T,{secondary:""},{default:o(()=>[e(t).deprecated?(a(),n(e(I),{key:0})):e(t).description?(a(),n(e(P),{key:1,description:e(t).description},null,8,["description"])):(a(),n(e(Q),{key:2,deployment:e(t)},null,8,["deployment"]))]),_:1})]),parameters:o(()=>[r(e($),{deployment:e(t)},null,8,["deployment"])]),details:o(()=>[r(e(i),{deployment:e(t),onUpdate:e(l).refresh},null,8,["deployment","onUpdate"])]),runs:o(()=>[r(e(j),{"flow-run-filter":e(v)},null,8,["flow-run-filter"])]),_:1},8,["tabs"])):u("",!0)]),_:1})}}});export{ee as default};
