import{_ as a}from"./index105.js?v=1761009159";import{u as s,V as t,P as e,l as n,$ as i,p as o}from"./utils-lib.js?v=1761009159";import{aq as l,ar as r,as as c}from"./firewall.js?v=1761009159";import{u as m}from"./column.js?v=1761009159";import{c as d,V as p,e as u,aD as w,q as f,H as b,v as j,x as _,B as g,I as h,y as q}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";const x=d({__name:"index",setup(d){s();const x=p([]),y=p(!1),k=[{content:"隔离箱是指将被感染的文件隔离到隔离箱中，隔离箱中的文件不会影响网站正常运行。"},{content:"隔离箱中的文件可以通过隔离箱管理功能进行查看、删除、恢复等操作。"}],C=async()=>{await e({loading:y,request:l(),data:[Array,x]})},v=[{label:"文件名",prop:"name"},{label:"原路径",render:a=>u("span",{class:"bt-link",onClick:()=>{}},[a.dname])},{label:"被隔离时间",width:150,render:a=>w("span",t(a.time))},m([{onClick:async a=>{await o({title:"恢复文件",width:"35rem",content:"从木马隔离箱中恢复【".concat(a.name,"】文件，是否继续？")}),await e({loading:"正在恢复文件，请稍后...",request:r({path:a.rname}),message:!0,success:a=>{a.status&&C()}})},title:"恢复"},{onClick:async a=>{await o({title:"删除文件",width:"35rem",content:"永久删除【".concat(a.name,"】文件后将无法恢复，是否继续？")}),await e({loading:"正在删除文件，请稍后...",request:c({path:a.rname}),message:!0,success:a=>{a.status&&C()}})},title:"永久删除",width:60}])];return f(()=>C()),(s,t)=>{const e=n,o=i,l=a,r=b("bt-loading");return j(),_("div",null,[u(l,null,{content:g(()=>[h(u(e,{column:v,data:q(x),description:"暂无木马文件"},null,8,["data"]),[[r,q(y)],[r,"正在加载列表，请稍后...","title"]])]),"footer-left":g(()=>[u(o,{options:k,class:"pl-[2rem]"})]),_:1})])}}});export{x as default};
