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