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