!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(e,o,i,u){var a=o&&o.prototype instanceof l?o:l,s=Object.create(a.prototype);return n(s,"_invoke",function(e,n,o){var i,u,a,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,u=0,a=t,d.n=n,c}};function p(e,n){for(u=e,a=n,r=0;!f&&l&&!o&&r<s.length;r++){var o,i=s[r],p=d.p,y=i[2];e>3?(o=y===n)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=e<2&&p<i[1])?(u=0,d.v=n,d.n=i[1]):p<y&&(o=e<3||i[0]>n||n>y)&&(i[4]=e,i[5]=n,d.n=y,u=0))}if(o||e>1)return c;throw f=!0,n}return function(o,s,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,y),u=s,a=y;(r=u<2?t:a)||!f;){i||(u?u<3?(u>1&&(d.n=-1),p(u,a)):d.n=a:d.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=t}else if((r=(f=d.n<0)?a:e.call(n,d))!==c)break}catch(r){i=t,u=1,a=r}finally{l=1}}return{value:r,done:f}}}(e,i,u),!0),s}var c={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var d=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),p=f.prototype=l.prototype=Object.create(d);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,u,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,n(p,"constructor",f),n(f,"constructor",s),s.displayName="GeneratorFunction",n(f,u,"GeneratorFunction"),n(p),n(p,u,"Generator"),n(p,i,function(){return this}),n(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:y}})()}function n(e,t,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}n=function(e,t,r,o){function u(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r:(u("next",0),u("throw",1),u("return",2))},n(e,t,r,o)}function t(e,n,t,r,o,i,u){try{var a=e[i](u),c=a.value}catch(e){return void t(e)}a.done?n(c):Promise.resolve(c).then(r,o)}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy219.js?v=1761009159","./firewall-legacy.js?v=1761009159","./validator-legacy.js?v=1761009159","./useStore-legacy5.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./column-legacy.js?v=1761009159"],function(n,r){"use strict";var o,i,u,a,c,l,s,f,d,p,y,v,m,b,g,h,w,j,_,x,O;return{setters:[function(e){o=e.n,i=e.Q,u=e.P,a=e.k},function(e){c=e.c,l=e.aA,s=e.o,f=e.r,d=e.q,p=e.v,y=e.x,v=e.e,m=e.B,b=e.y,g=e.z,h=e.ab,w=e.a9},function(e){j=e._},function(e){_=e.bb},function(e){x=e.f},function(e){O=e.g},null,null,null],execute:function(){var S={class:"ml-[10rem]"};n("default",c({__name:"index",setup:function(n,c){var P=c.expose,G=O().refs.isRefreshSpywares,T=l("popupClose"),k=s({dirs:""}),F=f(),E=f(!1),z={dirs:[{validator:function(e,n,t){if(!(n.length>0))return t(new Error("请输入目录"));t()},trigger:["blur","change"]}]},D=[{content:"添加指定目录",event:function(){x({type:"dir",change:function(e){""!=k.dirs?k.dirs=k.dirs+"\n"+e:k.dirs=e}})}},{content:"添加网站目录",event:function(){return o({title:"添加网站目录",area:50,component:function(){return i(function(){return r.import("./add-website-dir-legacy.js?v=1761009159")},void 0,r.meta.url)},compData:k,showFooter:!0})}}],R=function(){var n,r=(n=e().m(function n(t){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,F.value.validate();case 1:u({request:_({data:JSON.stringify({dirs:k.dirs.split("\n")})}),loading:E,success:function(){T(),G.value=!0}});case 2:return e.a(2)}},n)}),function(){var e=this,r=arguments;return new Promise(function(o,i){var u=n.apply(e,r);function a(e){t(u,o,i,a,c,"next",e)}function c(e){t(u,o,i,a,c,"throw",e)}a(void 0)})});return function(e){return r.apply(this,arguments)}}();return d(function(){}),P({onConfirm:R}),function(e,n){var t=a,r=h,o=j,i=w;return p(),y("div",null,[v(i,{disabled:b(E),ref_key:"addDir",ref:F,rules:z,model:b(k),class:"p-[2rem] addDirFrom overflow-auto max-h-[60rem]","label-width":"5rem"},{default:m(function(){return[v(r,{label:"目录",prop:"dirs"},{default:m(function(){return[v(t,{type:"textarea",modelValue:b(k).dirs,"onUpdate:modelValue":n[0]||(n[0]=function(e){return b(k).dirs=e}),width:"30rem",class:"resize-none",autosize:{minRows:5,maxRows:5},placeholder:"如需填写多个目录请换行填写\n例：/www/aaa /www/bbb",clearable:""},null,8,["modelValue"])]}),_:1}),v(r,null,{default:m(function(){return[g("div",S,[v(o,{options:D})])]}),_:1})]}),_:1},8,["disabled","model"])])}}}))}}})}();
