File: /www/server/panel/BTPanel/static/js/exclude-path.js
import{_ as C}from"./index118.js?v=1777008528";import{w,M as c,d3 as V}from"./utils-lib.js?v=1777008528";import{c as k,aI as I,r as n,I as R,j as S,C as T,v as l,e as r,p as a,Q as y,x as D,J as E,z as M}from"./base-lib.js?v=1777008528";import{_ as O}from"./index116.js?v=1777008528";import{g as B,w as H}from"./index3.js?v=1777008528";import{H as N}from"./index387.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";const Y=k({__name:"exclude-path",setup(P){const s=N(),{malwareData:_}=I(s),{setMalwareConfig:i}=s,u=n(!1),e=n(""),p=n([{prop:"name",label:"路径",showOverflowTooltip:!0,minWidth:690},B([{title:"删除",onClick:async t=>{await w({title:"删除排除目录",content:"是否删除【"+t.name+"】?删除后,该目录将不再被排除"}),await i({delete_exclude_path:t.name})}}])]),m=()=>{if(!e.value)return c.error("请输入或选择目录路径");if(e.value==="/")return c.error("不能添加全盘路径");i({add_exclude_path:e.value}),e.value=""},d=()=>{H({type:"dir",path:e.value,change:t=>{e.value=t}})};return(t,o)=>{const f=O,g=M,h=V,v=C,b=R("bt-loading");return S(),T(v,null,{"header-left":l(()=>[r(f,{class:"mr-[12px]",modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=x=>y(e)?e.value=x:null),icon:"el-folder-opened",onIconClick:d,width:"32rem",placeholder:"请填写或选择目录路径"},null,8,["modelValue"]),r(g,{type:"primary",onClick:m},{default:l(()=>[...o[1]||(o[1]=[D(" 添加 ",-1)])]),_:1})]),content:l(()=>[E(r(h,{"max-height":"370",column:a(p),data:a(_).exclude_dirs},null,8,["column","data"]),[[b,a(u)]])]),_:1})}}});export{Y as default};