File: /www/server/panel/BTPanel/static/js/index-legacy333.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function i(t,o,a,c){var i=o&&o.prototype instanceof l?o:l,s=Object.create(i.prototype);return e(s,"_invoke",function(t,e,o){var a,c,i,l=0,s=o||[],f=!1,p={p:0,n:0,v:n,a:y,f:y.bind(n,4),d:function(t,e){return a=t,c=0,i=n,p.n=e,u}};function y(t,e){for(c=t,i=e,r=0;!f&&l&&!o&&r<s.length;r++){var o,a=s[r],y=p.p,v=a[2];t>3?(o=v===e)&&(i=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=n):a[0]<=y&&((o=t<2&&y<a[1])?(c=0,p.v=e,p.n=a[1]):y<v&&(o=t<3||a[0]>e||e>v)&&(a[4]=t,a[5]=e,p.n=v,c=0))}if(o||t>1)return u;throw f=!0,e}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&y(s,v),c=s,i=v;(r=c<2?n:i)||!f;){a||(c?c<3?(c>1&&(p.n=-1),y(c,i)):p.n=i:p.v=i);try{if(l=2,a){if(c||(o="next"),r=a[o]){if(!(r=r.call(a,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,c<2&&(c=0)}else 1===c&&(r=a.return)&&r.call(a),c<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=n}else if((r=(f=p.n<0)?i:t.call(e,p))!==u)break}catch(r){a=n,c=1,i=r}finally{l=1}}return{value:r,done:f}}}(t,a,c),!0),s}var u={};function l(){}function s(){}function f(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(e(r={},a,function(){return this}),r),y=f.prototype=l.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,e(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t}return s.prototype=f,e(y,"constructor",f),e(f,"constructor",s),s.displayName="GeneratorFunction",e(f,c,"GeneratorFunction"),e(y),e(y,c,"Generator"),e(y,a,function(){return this}),e(y,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:v}})()}function e(t,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}e=function(t,n,r,o){function c(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(c("next",0),c("throw",1),c("return",2))},e(t,n,r,o)}function n(t,e,n,r,o,a,c){try{var i=t[a](c),u=i.value}catch(t){return void n(t)}i.done?e(u):Promise.resolve(u).then(r,o)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./useStore-legacy9.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528"],function(e,r){"use strict";var o,a,c,i,u,l,s,f,p,y,v,m,b;return{setters:[function(t){o=t.c,a=t.aI,c=t.g,i=t.j,u=t.k,l=t.C,s=t.y,f=t.e,p=t.p,y=t.aV},function(t){v=t.X},function(t){m=t.i},function(t){b=t.L},null,null],execute:function(){var r={class:"p-[20px] flex flex-col"};e("default",o({__name:"index",props:{compData:{}},setup:function(e,o){var d,h,g=o.expose,j=e,w=b(),_=a(w),x=_.clearOptions,O=_.clearDataForm,D=c(function(){return"crontab"==j.compData.type?x.value.slice(0,x.value.length-1):x.value}),S=v({data:O.value,options:function(t){return c(function(){return["website"===j.compData.type?m("类型","type",[{label:"运行日志",value:"access"},{label:"异常日志",value:"error"}],{attrs:{class:"!w-[22rem]"}}):[],m("清理范围","day",D.value,{attrs:{class:"!w-[22rem]"}})]})},submit:(d=t().m(function e(n){var r,o,a;return t().w(function(t){for(;;)switch(t.n){case 0:return r=n.value,o=r.day,a=r.type,t.n=1,j.compData.clearEvent(o,a);case 1:return t.a(2,t.v)}},e)}),h=function(){var t=this,e=arguments;return new Promise(function(r,o){var a=d.apply(t,e);function c(t){n(a,r,o,c,i,"next",t)}function i(t){n(a,r,o,c,i,"throw",t)}c(void 0)})},function(t){return h.apply(this,arguments)})}),G=S.BtForm;return g({onConfirm:S.submit}),function(t,n){var o=y;return i(),u("div",r,[e.compData.tips?(i(),l(o,{key:0,closable:!1,title:e.compData.tips,type:"warning","show-icon":""},null,8,["title"])):s("",!0),f(p(G),{class:"mt-[8px]"})])}}}))}}})}();