import{d as k,ao as h,j as s,aY as w,c,w as n,r as a,ah as g,o as r,u as e,bH as x,m as o,bI as u,a as N,bJ as T}from"./index-4d9fe32c-718dc5d9.js";import{N as I}from"./prefect-design-a921a7c6.js";import{u as S,c as B}from"./vue-compositions-55710141.js";import{u as D}from"./usePageTitle-e8e2e29d.js";import"./index-558d177a.js";import{r as R}from"./routes-1bd54f1a.js";import"./meta-26546594.js";const z=k({__name:"ConcurrencyLimit",setup(V){const l=h(),m=S("concurrencyLimitId"),p=g(),y=s(()=>[{label:"Details",hidden:I.xl},{label:"Active Task Runs"}]),_=w(y),d={interval:3e5},b=B(l.concurrencyLimits.getConcurrencyLimit,[m.value],d),t=s(()=>b.response);function f(){p.push(R.concurrencyLimits())}const L=s(()=>t.value?`Concurrency Limit: ${t.value.tag}`:"Concurrency Limit");return D(L),(j,A)=>{const v=a("p-tabs"),C=a("p-layout-well");return r(),c(C,{class:"concurrencyLimit"},{header:n(()=>[e(t)?(r(),c(e(x),{key:0,"concurrency-limit":e(t),onDelete:f},null,8,["concurrency-limit"])):o("",!0)]),well:n(()=>[e(t)?(r(),c(e(u),{key:0,alternate:"","concurrency-limit":e(t)},null,8,["concurrency-limit"])):o("",!0)]),default:n(()=>[N(v,{tabs:e(_)},{details:n(()=>[e(t)?(r(),c(e(u),{key:0,"concurrency-limit":e(t)},null,8,["concurrency-limit"])):o("",!0)]),"active-task-runs":n(()=>{var i;return[(i=e(t))!=null&&i.activeSlots?(r(),c(e(T),{key:0,"active-slots":e(t).activeSlots},null,8,["active-slots"])):o("",!0)]}),_:1},8,["tabs"])]),_:1})}}});export{z as default};
