import{d as m,h as d,M as _,g as o,f as b,i as v,c as r,j as c,l as k,o as t,n as h,u as n,bT as y,m as C,bU as g,bV as x,F as V,a as B}from"./index-bJiZR03d.js";import{u as M}from"./usePageTitle-wT6f1BZv.js";const U=m({__name:"Variables",setup(T){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 M(v.info.variables),(e,F)=>{const f=k("p-layout-default");return t(),r(f,{class:"variables"},{header:c(()=>[h(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{U as default};
