import{d,ae as m,e as _,g as o,D as v,c as r,h as c,i as b,f as h,o as t,j as k,k as n,cX as y,v as C,cY as g,cZ as x,F as V,a as B}from"./index-B5elPXvm.js";import{u as D}from"./usePageTitle-c6xxeh_y.js";const w=d({__name:"Variables",setup(F){const l=m(),a=()=>{var e;s.value.refresh(),(e=l.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 D(v.info.variables),(e,N)=>{const f=b("p-layout-default");return t(),r(f,{class:"variables"},{header:c(()=>[k(n(y),{onCreate:a})]),default:c(()=>[p.value?(t(),C(V,{key:0},[i.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-4DdpqZtT.js.map
