import{d,f as m,b,e as o,i as _,c as r,g as c,h as v,t as h,o as s,n as k,j as n,bX as y,l as C,bY as g,bZ as x,F as V,a as B}from"./index-CPxpbp4R.js";import{u as w}from"./usePageTitle-CcH2lmI6.js";const j=d({__name:"Variables",setup(F){const l=m(),a=()=>{var e;t.value.refresh(),(e=l.value)==null||e.refreshSubscriptions()},u=b(),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 w(_.info.variables),(e,N)=>{const f=v("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(g),{key:0,onCreate:a})):(s(),r(n(x),{key:1,ref_key:"table",ref:l,onDelete:a,onUpdate:a},null,512))],64)):B("",!0)]),_:1})}}});export{j as default};
//# sourceMappingURL=Variables-BIxKXpT6.js.map
