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