import{_ as a}from"./index105.js?v=1761009159";import{p as e,M as o,l as t}from"./utils-lib.js?v=1761009159";import{c as l,s as r,r as s,H as i,v as n,N as m,B as p,e as d,y as u,Q as c,C as _,I as f,G as h}from"./base-lib.js?v=1761009159";import{_ as j}from"./index103.js?v=1761009159";import{u as v}from"./column.js?v=1761009159";import{f as w}from"./validator.js?v=1761009159";import{H as x}from"./index319.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./store5.js?v=1761009159";const b=l({__name:"monitor-path",setup(l){const b=x(),{malwareData:y}=r(b),{setMalwareConfig:C}=b,g=s(!1),k=s(""),H=s([{prop:"name",label:"路径",showOverflowTooltip:!0,minWidth:690},v([{title:"删除",onClick:async a=>{await e({title:"删除监控目录",content:"删除【"+a.name+"】后，系统将不再对该目录内的文件或内容进行检测"}),await C({delete_monitor_path:a.name})}}])]),V=()=>k.value?"/"===k.value?o.error("不能添加全盘路径"):(C({add_monitor_path:k.value}),void(k.value="")):o.error("请输入或选择目录路径"),I=()=>{w({type:"dir",path:k.value,change:a=>{k.value=a}})};return(e,o)=>{const l=j,r=h,s=t,v=a,w=i("bt-loading");return n(),m(v,null,{"header-left":p(()=>[d(l,{class:"mr-[12px]",modelValue:u(k),"onUpdate:modelValue":o[0]||(o[0]=a=>c(k)?k.value=a:null),icon:"el-folder-opened",onIconClick:I,width:"32rem",placeholder:"请填写或选择目录路径"},null,8,["modelValue"]),d(r,{type:"primary",onClick:V},{default:p(()=>o[1]||(o[1]=[_(" 添加 ",-1)])),_:1,__:[1]})]),content:p(()=>[f(d(s,{"max-height":"370",column:u(H),data:u(y).monitor_dirs},null,8,["column","data"]),[[w,u(g)]])]),_:1})}}});export{b as default};
