import{d as m,f as d,M as _,e as o,Y as b,h as v,c as r,i as c,j as h,o as t,m as k,u as l,bR as y,l as C,bS as x,bT as g,F as S,a as T}from"./index-bD6G21oH.js";import{u as V}from"./usePageTitle-27XdpEbQ.js";const N=m({__name:"Variables",setup(B){const n=d(),a=()=>{var e;s.value.refresh(),(e=n.value)==null||e.refreshSubscriptions()},u=_(),s=o(()=>b(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 V(v.info.variables),(e,E)=>{const f=h("p-layout-default");return t(),r(f,{class:"variables"},{header:c(()=>[k(l(y),{onCreate:a})]),default:c(()=>[p.value?(t(),C(S,{key:0},[i.value?(t(),r(l(x),{key:0,onCreate:a})):(t(),r(l(g),{key:1,ref_key:"table",ref:n,onDelete:a,onUpdate:a},null,512))],64)):T("",!0)]),_:1})}}});export{N as default};
