!function(){function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(n,o,i,u){var a=o&&o.prototype instanceof l?o:l,f=Object.create(a.prototype);return t(f,"_invoke",function(n,t,o){var i,u,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(n,t){return i=n,u=0,a=e,p.n=t,c}};function d(n,t){for(u=n,a=t,r=0;!s&&l&&!o&&r<f.length;r++){var o,i=f[r],d=p.p,y=i[2];n>3?(o=y===t)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(u=0,p.v=t,p.n=i[1]):d<y&&(o=n<3||i[0]>t||t>y)&&(i[4]=n,i[5]=t,p.n=y,u=0))}if(o||n>1)return c;throw s=!0,t}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,y),u=f,a=y;(r=u<2?e:a)||!s;){i||(u?u<3?(u>1&&(p.n=-1),d(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((r=(s=p.n<0)?a:n.call(t,p))!==c)break}catch(r){i=e,u=1,a=r}finally{l=1}}return{value:r,done:s}}}(n,i,u),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(t(r={},i,function(){return this}),r),d=s.prototype=l.prototype=Object.create(p);function y(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,s):(n.__proto__=s,t(n,u,"GeneratorFunction")),n.prototype=Object.create(d),n}return f.prototype=s,t(d,"constructor",s),t(s,"constructor",f),f.displayName="GeneratorFunction",t(s,u,"GeneratorFunction"),t(d),t(d,u,"Generator"),t(d,i,function(){return this}),t(d,"toString",function(){return"[object Generator]"}),(n=function(){return{w:a,m:y}})()}function t(n,e,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(n){i=0}t=function(n,e,r,o){function u(e,r){t(n,e,function(n){return this._invoke(e,r,n)})}e?i?i(n,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):n[e]=r:(u("next",0),u("throw",1),u("return",2))},t(n,e,r,o)}function e(n,t,e,r,o,i,u){try{var a=n[i](u),c=a.value}catch(n){return void e(n)}a.done?t(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy105.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy103.js?v=1761009159","./column-legacy.js?v=1761009159","./validator-legacy.js?v=1761009159","./index-legacy319.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./store-legacy5.js?v=1761009159"],function(t,r){"use strict";var o,i,u,a,c,l,f,s,p,d,y,v,m,h,g,_,b,j,w,O,x;return{setters:[function(n){o=n._},function(n){i=n.p,u=n.M,a=n.l},function(n){c=n.c,l=n.s,f=n.r,s=n.H,p=n.v,d=n.N,y=n.B,v=n.e,m=n.y,h=n.Q,g=n.C,_=n.I,b=n.G},function(n){j=n._},function(n){w=n.u},function(n){O=n.f},function(n){x=n.H},null,null,null],execute:function(){t("default",c({__name:"monitor-path",setup:function(t){var r,c,G=x(),T=l(G).malwareData,k=G.setMalwareConfig,P=f(!1),S=f(""),C=f([{prop:"name",label:"路径",showOverflowTooltip:!0,minWidth:690},w([{title:"删除",onClick:(r=n().m(function t(e){return n().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,i({title:"删除监控目录",content:"删除【"+e.name+"】后，系统将不再对该目录内的文件或内容进行检测"});case 1:return n.n=2,k({delete_monitor_path:e.name});case 2:return n.a(2)}},t)}),c=function(){var n=this,t=arguments;return new Promise(function(o,i){var u=r.apply(n,t);function a(n){e(u,o,i,a,c,"next",n)}function c(n){e(u,o,i,a,c,"throw",n)}a(void 0)})},function(n){return c.apply(this,arguments)})}])]),E=function(){return S.value?"/"===S.value?u.error("不能添加全盘路径"):(k({add_monitor_path:S.value}),void(S.value="")):u.error("请输入或选择目录路径")},F=function(){O({type:"dir",path:S.value,change:function(n){S.value=n}})};return function(n,t){var e=j,r=b,i=a,u=o,c=s("bt-loading");return p(),d(u,null,{"header-left":y(function(){return[v(e,{class:"mr-[12px]",modelValue:m(S),"onUpdate:modelValue":t[0]||(t[0]=function(n){return h(S)?S.value=n:null}),icon:"el-folder-opened",onIconClick:F,width:"32rem",placeholder:"请填写或选择目录路径"},null,8,["modelValue"]),v(r,{type:"primary",onClick:E},{default:y(function(){return t[1]||(t[1]=[g(" 添加 ",-1)])}),_:1,__:[1]})]}),content:y(function(){return[_(v(i,{"max-height":"370",column:m(C),data:m(T).monitor_dirs},null,8,["column","data"]),[[c,m(P)]])]}),_:1})}}}))}}})}();
