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