import{Q as a,aC as s,$ as e,b as t,_ as l}from"./utils-lib.js?v=1761009159";import{c as o,s as n,r,v as m,x as i,e as u,y as p,Q as c,z as d,C as _,B as f,aS as x,an as v}from"./base-lib.js?v=1761009159";import{H as j}from"./index319.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store5.js?v=1761009159";const V={class:"p-20px"},b={class:"flex global-switch-malware"},C={class:"flex items-center"},g={class:"mr-[.8rem]"},S={class:"flex items-center"},h=l(o({__name:"index",setup(l){const o=t(),h=j(),{malwareData:w}=n(h),{setMalwareConfig:y}=h,I=r("monitorPath"),O=r([{label:"监控目录",name:"monitorPath",lazy:!0,render:()=>a(()=>import("./monitor-path.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)},{label:"排除目录",name:"excludePath",lazy:!0,render:()=>a(()=>import("./exclude-path.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)}]),z=async a=>{if(a&&!w.value.ossConfig.isHasMounts)return o.error("当前系统未挂载OSS目录，无法开启OSS扫描"),void(w.value.ossConfig.status=!1);w.value.ossConfig.status=a,await y({scan_oss:a})},P=async a=>{w.value.autoIntercept=a,await y({quarantine:a})};return(a,t)=>{const l=s,o=x,n=v,r=e;return m(),i("div",V,[u(l,{class:"w-full",type:"card",modelValue:p(I),"onUpdate:modelValue":t[0]||(t[0]=a=>c(I)?I.value=a:null),options:p(O)},null,8,["modelValue","options"]),d("div",b,[d("div",C,[d("span",g,[t[4]||(t[4]=_("OSS扫描 ",-1)),u(o,{content:"开启扫描OSS挂载目录",placement:"top"},{default:f(()=>t[3]||(t[3]=[d("span",{class:"ml-4px bt-ico-ask"},"?",-1)])),_:1,__:[3]})]),u(n,{class:"mr-[.8rem]",modelValue:p(w).ossConfig.status,"onUpdate:modelValue":t[1]||(t[1]=a=>p(w).ossConfig.status=a),size:"small",onChange:z},null,8,["modelValue"])]),t[6]||(t[6]=d("span",{class:"text-tertiary mx-[1.2rem]"},"|",-1)),d("div",S,[t[5]||(t[5]=d("span",{class:"mr-[.8rem]"},"自动隔离",-1)),u(n,{modelValue:p(w).autoIntercept,"onUpdate:modelValue":t[2]||(t[2]=a=>p(w).autoIntercept=a),size:"small",onChange:P},null,8,["modelValue"])])]),u(r,{options:[{content:"避免添加全盘路径的监控，如 /"}],class:"ml-[3rem]"})])}}}),[["__scopeId","data-v-bd62bcc6"]]);export{h as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
