import{d as w,bF as _,R as y,b as c,e as f,w as n,o as M,h as l,u as o,J as r,bG as h,s as i,bH as x,bI as R,bJ as v}from"./index-562c8470.js";const L=w({__name:"ConcurrencyLimits",setup(G){const{showModal:e,open:d}=_(),{showModal:t,open:p}=_(),m=[{label:"Global"},{label:"Task Run"}],u=y("tab","Global");return(g,s)=>{const b=c("p-button"),C=c("p-tabs"),k=c("p-layout-default");return M(),f(k,{class:"concurrency-limits"},{header:n(()=>[l(o(r),{crumbs:[{text:"Concurrency"}]})]),default:n(()=>[l(C,{selected:o(u),"onUpdate:selected":s[2]||(s[2]=a=>i(u)?u.value=a:null),tabs:m},{global:n(()=>[l(o(r),{size:"lg",crumbs:[{text:"Global Concurrency Limits"}]},{"after-crumbs":n(()=>[l(b,{small:"",icon:"PlusIcon",onClick:o(d)},null,8,["onClick"])]),_:1}),l(o(h),{showModal:o(e),"onUpdate:showModal":s[0]||(s[0]=a=>i(e)?e.value=a:null)},null,8,["showModal"]),l(o(x),{class:"concurrency-limits__global-table"})]),"task-run":n(()=>[l(o(r),{size:"lg",crumbs:[{text:"Task Run Concurrency Limits"}]},{"after-crumbs":n(()=>[l(b,{small:"",icon:"PlusIcon",onClick:o(p)},null,8,["onClick"])]),_:1}),l(o(R),{showModal:o(t),"onUpdate:showModal":s[1]||(s[1]=a=>i(t)?t.value=a:null)},null,8,["showModal"]),l(o(v),{class:"concurrency-limits__task-limits-table"})]),_:1},8,["selected"])]),_:1})}}});export{L as default};
