import{_ as l}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{h as _}from"./index-BTglIPU2.js?v=1773287522785";import{u as g}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{a as n}from"./setting-DouXuJGW.js?v=1773287522785";import{k as d,R as h,a0 as i,$ as b,Z as S,S as c}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a8 as k}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const y={class:"p-20px"},$=d({__name:"config",props:{status:{type:Boolean}},emits:["refresh"],setup(r,{emit:f}){const m=r,s=f,{t}=h(),{table:o,columns:u}=g([{key:"title",title:t("Waf.Setting.config_129"),width:120},{key:"ps",title:t("Waf.Setting.config_130")},{key:"status",title:t("Public.Table.Status"),width:60,render:a=>i(k,{value:a.status,onUpdateValue:async e=>{e?(await n({obj:"from_data"}),a.status=e,s("refresh",e)):_({title:t("Waf.Setting.config_131"),content:t("Waf.Setting.config_132"),onConfirm:async()=>{await n({obj:"from_data"}),a.status=e,s("refresh",e)}})}},null)}]);return o.data.push({title:t("Waf.Setting.config_133"),ps:t("Waf.Setting.config_134"),status:m.status}),(a,e)=>{const p=l;return b(),S("div",y,[i(p,{"max-height":340,data:c(o).data,columns:c(u)},null,8,["data","columns"])])}}});export{$ as default};
