import{d as g,M as h,U as x,_ as I,h as l,q as M,I as R,am as U,f as D,k as i,c as n,l as c,o as a,u as t,bL as N,a as r,bM as m,n as S,bN as T,A as V,af as A}from"./index-gULJbqdd.js";import{u as B}from"./usePageTitle-HrbxxOEb.js";const $=g({__name:"ConcurrencyLimit",setup(q){const p=h(),y=x("concurrencyLimitId"),v=I(),d=l(()=>[{label:"Details",hidden:M.xl},{label:"Active Task Runs"}]),s=R("tab","Details"),{tabs:_}=U(d,s),b={interval:3e5},L=D(p.concurrencyLimits.getConcurrencyLimit,[y.value],b),e=l(()=>L.response);function f(){v.push(A.concurrencyLimits())}const k=l(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return B(k),(O,u)=>{const C=i("p-tabs"),w=i("p-layout-well");return a(),n(w,{class:"concurrencyLimit"},{header:c(()=>[e.value?(a(),n(t(N),{key:0,"concurrency-limit":e.value,onDelete:f},null,8,["concurrency-limit"])):r("",!0)]),well:c(()=>[e.value?(a(),n(t(m),{key:0,alternate:"","concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),default:c(()=>[S(C,{selected:t(s),"onUpdate:selected":u[0]||(u[0]=o=>V(s)?s.value=o:null),tabs:t(_)},{details:c(()=>[e.value?(a(),n(t(m),{key:0,"concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),"active-task-runs":c(()=>{var o;return[(o=e.value)!=null&&o.activeSlots?(a(),n(t(T),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{$ as default};
