import{_ as a}from"./index105.js?v=1761009159";import{u as s,P as e,l as t,p as n}from"./utils-lib.js?v=1761009159";import{_ as o}from"./index126.js?v=1761009159";import{c as r,r as l,V as i,q as c,H as m,v as p,x as d,e as u,B as _,I as b,y as f,an as j}from"./base-lib.js?v=1761009159";import{az as v,aA as g}from"./firewall.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const h=r({__name:"index",setup(r){s();const h=l(!1),w=i([]),x=async()=>{await e({loading:h,request:v(),data:{php_versions:[Array,w]}})},y=[{label:"版本",prop:"version"},{label:"站点数量",prop:"site_count"},{label:"防护状态",render:a=>u(j,{size:"small",modelValue:1==a.state,onClick:s=>{(async a=>{const s=!a.state;await n({title:"".concat(s?"开启":"关闭","防护"),icon:"warning-filled",content:"".concat(s?"开启":"关闭","后，").concat(a.version,"版本的站点将").concat(s?"":"不再","受到安全防护，是否继续？")}),await e({loading:"正在"+(s?"开启":"关闭")+"防护状态，请稍后...",request:g({php_version:a.v,enable:Number(s)}),message:!0}),x()})(a)}},null)}];return c(()=>x()),(s,e)=>{const n=o,r=t,l=a,i=m("bt-loading");return p(),d("div",null,[u(l,null,{"header-right":_(()=>[u(n,{onRefresh:x})]),content:_(()=>[b(u(r,{ref:"Table",column:y,data:f(w),description:"暂无木马文件"},null,8,["data"]),[[i,f(h)],[i,"正在加载列表，请稍后...","title"]])]),_:1})])}}});export{h as default};
