import{d as m,af as d,g as _,i as o,G as v,c as r,j as c,k as b,t as k,o as s,l as y,m as l,cR as h,y as C,cS as g,cT as x,F as E,a as V}from"./index-DgpKcZLs.js";import{u as B}from"./usePageTitle-CgS480GG.js";const T=m({__name:"Variables",setup(F){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 B(v.info.variables),(e,S)=>{const f=b("p-layout-default");return s(),r(f,{class:"variables"},{header:c(()=>[y(l(h),{onCreate:a})]),default:c(()=>[p.value?(s(),C(E,{key:0},[i.value?(s(),r(l(g),{key:0,onCreate:a})):(s(),r(l(x),{key:1,ref_key:"table",ref:n,onDelete:a,onUpdate:a},null,512))],64)):V("",!0)]),_:1})}}});export{T as default};
//# sourceMappingURL=Variables-BALoWBEs.js.map
