import{d as m,af as d,k as _,h as o,G as v,c as r,i as c,j as b,t as k,o as s,l as h,m as l,cQ as y,y as C,cR as x,cS as g,F as V,a as B}from"./index-7qezL2zM.js";import{u as P}from"./usePageTitle-k72s0--o.js";const j=m({__name:"Variables",setup(S){const n=d(),a=()=>{var e;t.value.refresh(),(e=n.value)==null||e.refreshSubscriptions()},u=_(),t=o(()=>k(u.variables.getVariables)),i=o(()=>{var e;return t.value.executed&&((e=t.value.response)==null?void 0:e.length)===0}),p=o(()=>t.value.executed);return P(v.info.variables),(e,E)=>{const f=b("p-layout-default");return s(),r(f,{class:"variables"},{header:c(()=>[h(l(y),{onCreate:a})]),default:c(()=>[p.value?(s(),C(V,{key:0},[i.value?(s(),r(l(x),{key:0,onCreate:a})):(s(),r(l(g),{key:1,ref_key:"table",ref:n,onDelete:a,onUpdate:a},null,512))],64)):B("",!0)]),_:1})}}});export{j as default};
//# sourceMappingURL=Variables-6gTkwMwV.js.map
