import{_}from"./index-DIKmrNCq.js?v=1773287522785";import{_ as c}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{n as f}from"./index-BTglIPU2.js?v=1773287522785";import{u as g}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{u as S}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{T as b}from"./setting-DouXuJGW.js?v=1773287522785";import{k,R as W,a0 as o,$ as h,Z as x,S as s,a9 as y,_ as e,aa as n,u as $}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{al as w}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const j={class:"p-20px"};function A(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!$(i)}const F=k({__name:"attack",setup(i){const{t:a}=W(),{table:l,columns:p,setLoading:r}=S([{key:"url",title:a("Waf.Setting.index_27"),minWidth:100,ellipsis:{tooltip:{width:"trigger"}},render:t=>o("a",{class:"bt-link",href:t.url,target:"_blank"},[t.url])},{key:"mode",title:a("Waf.Setting.index_28"),width:"20%",minWidth:100,render:()=>{let t;return o(w,{checked:!0},A(t=a("Waf.Setting.index_30"))?t:{default:()=>[t]})}},g({width:100,options:t=>[{label:a("Waf.Setting.index_29"),onClick:()=>{window.open(t.url)}}]})]);return(async()=>{try{r(!0);const{message:t}=await b();f(t)&&(l.data=t.map(m=>({url:m})))}finally{r(!1)}})(),(t,m)=>{const u=c,d=_;return h(),x("div",j,[o(u,{"loading-num":6,loading:s(l).loading,data:s(l).data,columns:s(p)},null,8,["loading","data","columns"]),o(d,{class:"mt-16px"},{default:y(()=>[e("li",null,n(t.$t("Waf.Setting.index_22")),1),e("li",null,n(t.$t("Waf.Setting.index_23")),1),e("li",null,n(t.$t("Waf.Setting.index_24")),1),e("li",null,n(t.$t("Waf.Setting.index_25")),1),e("li",null,n(t.$t("Waf.Setting.index_26")),1)]),_:1})])}}});export{F as default};
