import{c as t,a,h as s}from"./public.js?v=1763625242172";import{a as e}from"./setting.js?v=1763625242172";import{k as o,P as i,X as n,R as r,S as m,V as f}from"./vue.js?v=1763625242172";import{dj as l}from"./naive.js?v=1763625242172";import"./page_layout.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";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(),m("div",u,[n(e,{"max-height":340,data:f(d).data,columns:f(j)},null,8,["data","columns"])])}}});export{c as default};
