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