import{d,ae as m,aE as _,e as o,C as v,c as r,f as c,g as b,t as h,o as s,h as y,i as n,cY as k,q as C,cZ as g,c_ as x,F as V,a as E}from"./index-BOEdKJ1D.js";import{u as B}from"./usePageTitle-BkurcLK2.js";const q=d({__name:"Variables",setup(F){const l=m(),a=()=>{var e;t.value.refresh(),(e=l.value)==null||e.refreshSubscriptions()},u=_(),t=o(()=>h(u.variables.getVariablesV2)),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,N)=>{const f=b("p-layout-default");return s(),r(f,{class:"variables"},{header:c(()=>[y(n(k),{onCreate:a})]),default:c(()=>[p.value?(s(),C(V,{key:0},[i.value?(s(),r(n(g),{key:0,onCreate:a})):(s(),r(n(x),{key:1,ref_key:"table",ref:l,onDelete:a,onUpdate:a},null,512))],64)):E("",!0)]),_:1})}}});export{q as default};
//# sourceMappingURL=Variables-Vc4eAlDB.js.map
