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