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