import{u as a,n as t,Q as e,P as s,l,j as o,b as n,p as i}from"./utils-lib.js?v=1761009159";import{_ as r}from"./index120.js?v=1761009159";import{_ as u}from"./index105.js?v=1761009159";import{B as m}from"./index115.js?v=1761009159";import{_ as d}from"./index126.js?v=1761009159";import{c as p,r as c,o as h,q as f,H as v,v as _,x as y,y as g,N as x,B as j,z as w,e as V,C as b,Q as k,I as C,G as q,an as A}from"./base-lib.js?v=1761009159";import{_ as E}from"./index106.js?v=1761009159";import{d as F,u as I}from"./column.js?v=1761009159";import{checkMonitorDir as S,setMonitorDir as P,webshellFileSingle as T,setHandleFile as U}from"./site.js?v=1761009159";import{S as B,u as H}from"./useStore4.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./ace.js?v=1761009159";const N={class:"flex items-center"},O={class:"p-20px"},Q=p({__name:"index",setup(p){const{getFileEvent:Q,saveFileEvent:R}=B(),z=n(),{payment:D}=a(),{siteInfo:G}=H(),J=c([]),L=c(!1),K=c(""),M=c(!1),W=c({}),X=c(!1),Y=h({title:"动态查杀-功能介绍",ps:"当查杀站点目录中的文件发生修改就会自动的进行木马查杀并进行隔离",source:185,desc:["网页内容修改检测","木马查杀隔离"],tabImgs:[{title:"概览",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/site/dynamic_kill.png"}]}),Z=()=>{t({isAsync:!0,title:"白名单",area:[70,55],component:()=>e(()=>import("./index463.js?v=1761009159"),__vite__mapDeps([]),import.meta.url),showFooter:!1})},$=async()=>{try{const a=await S({path:G.value.path});X.value=a.data.is_run}catch(a){}},aa=async a=>{await s({loading:"正在设置中，请稍后...",request:P(!a,{path:G.value.path}),message:!0}),$()},ta=async()=>{const a=await R({path:W.value.path,data:K.value,encoding:"utf-8"});z.request(a)},ea=async()=>{L.value=!0;try{const a=await T({path:(G.value.path+"/").replace("//","/")});J.value=Array.isArray(a.data)?a.data:[]}catch(a){}L.value=!1},sa=c([{label:"隔离时间",prop:"time"},F(),I([{width:80,onClick:async a=>{W.value=a;const t=await Q({path:a.path});if(!t.status)return z.request(t),!1;K.value=t.data.data||t.msg,M.value=!0},title:"样本文件"},{onClick:a=>{i({title:"删除文件",content:"是否要删除关联的源文件?",type:"check",icon:"warning",check:{content:"源文件",onConfirm:t=>{s({loading:"正在删除文件中，请稍后...",request:U({data:JSON.stringify({path:a.path,md5:a.md5,type:t?"delete":""})}),message:!0,success:a=>{a.status&&ea()}})}}})},title:"删除"}])]);return f(()=>{"ltd"===D.value.authType&&($(),ea())}),(a,t)=>{const e=q,s=E,n=A,i=d,p=l,c=m,h=o,f=u,F=r,I=v("bt-loading");return _(),y("div",null,["ltd"===g(D).authType?(_(),x(f,{key:0},{"header-left":j(()=>[w("div",N,[V(e,{type:"default",onClick:Z},{default:j(()=>t[3]||(t[3]=[b(" 白名单 ",-1)])),_:1,__:[3]}),V(s),t[4]||(t[4]=w("div",{class:"mr-8px"},"动态查杀站点",-1)),w("div",null,[V(n,{modelValue:g(X),"onUpdate:modelValue":t[0]||(t[0]=a=>k(X)?X.value=a:null),width:36,onChange:aa},null,8,["modelValue"])])])]),"header-right":j(()=>[V(i,{onRefresh:ea})]),content:j(()=>[C(V(p,{column:g(sa),"max-height":400,data:g(J)},null,8,["column","data"]),[[I,g(L)]])]),"footer-left":j(()=>t[5]||(t[5]=[w("ul",{class:"mt-8px leading-8 text-small list-disc ml-20px"},[w("li",null,"注意：隔离文件后的数字表示隔离文件总数。"),w("li",{class:"text-warning"},"动态查杀开启后，当查杀目录中的文件发生修改就会自动的进行木马查杀并进行隔离")],-1)])),"footer-right":j(()=>t[6]||(t[6]=[])),popup:j(()=>[V(h,{title:"在线编辑",showFooter:"",modelValue:g(M),"onUpdate:modelValue":t[2]||(t[2]=a=>k(M)?M.value=a:null),area:70,onConfirm:ta},{default:j(()=>[w("div",O,[V(c,{modelValue:g(K),"onUpdate:modelValue":t[1]||(t[1]=a=>k(K)?K.value=a:null),class:"!h-[40rem]"},null,8,["modelValue"])])]),_:1},8,["modelValue"])]),_:1})):(_(),x(F,{key:1,data:g(Y)},null,8,["data"]))])}}});export{Q as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
