import{b as t,d as a,f as s}from"./public.js?v=1753954525509";import{a as e}from"./setting.js?v=1753954525509";import{k as o,P as i,Q as n,U as r,V as f,X as m}from"./vue.js?v=1753954525509";import{c5 as l}from"./naive.js?v=1753954525509";import"./page_layout.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";const u={class:"p-20px"},c=o({__name:"config",props:{status:{type:Boolean}},emits:["refresh"],setup(o,{emit:c}){const p=o,g=c,{t:_}=i(),{table:d,columns:j}=t([{key:"title",title:_("Waf.Setting.config_129"),width:120},{key:"ps",title:_("Waf.Setting.config_130")},{key:"status",title:_("Public.Table.Status"),width:60,render:t=>n(l,{value:t.status,onUpdateValue:async s=>{s?(await e({obj:"from_data"}),t.status=s,g("refresh",s)):a({title:_("Waf.Setting.config_131"),content:_("Waf.Setting.config_132"),onConfirm:async()=>{await e({obj:"from_data"}),t.status=s,g("refresh",s)}})}},null)}]);return d.data.push({title:_("Waf.Setting.config_133"),ps:_("Waf.Setting.config_134"),status:p.status}),(t,a)=>{const e=s;return r(),f("div",u,[n(e,{"max-height":340,data:m(d).data,columns:m(j)},null,8,["data","columns"])])}}});export{c as default};
