File: /www/server/panel/BTPanel/static/js/index-legacy560.js
!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 r,t,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function c(e,o,u,a){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return n(s,"_invoke",function(e,n,o){var u,a,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(e,n){return u=e,a=0,c=r,p.n=n,i}};function d(e,n){for(a=e,c=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,u=s[t],d=p.p,v=u[2];e>3?(o=v===n)&&(c=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=r):u[0]<=d&&((o=e<2&&d<u[1])?(a=0,p.v=n,p.n=u[1]):d<v&&(o=e<3||u[0]>n||n>v)&&(u[4]=e,u[5]=n,p.n=v,a=0))}if(o||e>1)return i;throw f=!0,n}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,v),a=s,c=v;(t=a<2?r:c)||!f;){u||(a?a<3?(a>1&&(p.n=-1),d(a,c)):p.n=c:p.v=c);try{if(l=2,u){if(a||(o="next"),t=u[o]){if(!(t=t.call(u,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=u.return)&&t.call(u),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=r}else if((t=(f=p.n<0)?c:e.call(n,p))!==i)break}catch(t){u=r,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(e,u,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var p=[][u]?t(t([][u]())):(n(t={},u,function(){return this}),t),d=f.prototype=l.prototype=Object.create(p);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=f,n(d,"constructor",f),n(f,"constructor",s),s.displayName="GeneratorFunction",n(f,a,"GeneratorFunction"),n(d),n(d,a,"Generator"),n(d,u,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:v}})()}function n(e,r,t,o){var u=Object.defineProperty;try{u({},"",{})}catch(e){u=0}n=function(e,r,t,o){function a(r,t){n(e,r,function(e){return this._invoke(r,t,e)})}r?u?u(e,r,{value:t,enumerable:!o,configurable:!o,writable:!o}):e[r]=t:(a("next",0),a("throw",1),a("return",2))},n(e,r,t,o)}function r(e,n,r,t,o,u,a){try{var c=e[u](a),i=c.value}catch(e){return void r(e)}c.done?n(i):Promise.resolve(i).then(t,o)}function t(e){return function(){var n=this,t=arguments;return new Promise(function(o,u){var a=e.apply(n,t);function c(e){r(a,o,u,c,i,"next",e)}function i(e){r(a,o,u,c,i,"throw",e)}c(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./page-legacy12.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy110.js?v=1777008528","./use-file-editor-legacy.js?v=1777008528","./index-legacy432.js?v=1777008528"],function(n,r){"use strict";var o,u,a,c,i,l,s,f,p,d,v,y,m,b,h,g;return{setters:[function(e){o=e.O,u=e.f},function(e){a=e.e,c=e.D,i=e.c,l=e.x,s=e.y,f=e.z,p=e.bm},function(e){d=e.d,v=e.b,y=e.F,m=e.f},function(e){b=e.a8,h=e.a9,g=e.aa},null,null,null,null],execute:function(){var r={class:"p-[20px]"};n("default",i({__name:"index",props:{compData:{}},setup:function(n,i){var j,w,_,x=i.expose,O=n,k=p(),q=null==k?void 0:k.appContext.config.globalProperties.close,S=function(n,r){var i,l,s,f={url:null!==(i=null==r?void 0:r.url)&&void 0!==i?i:"",frequency:null!==(l=null==r?void 0:r.frequency)&&void 0!==l?l:30,cycle:null!==(s=null==r?void 0:r.cycle)&&void 0!==s?s:60},p=o({data:function(){return f},options:[d([v("URL","url",{rules:[{required:!0,message:"请输入URL"}],attrs:{placeholder:"例如: /api/data",disabled:"edit"===n}}),y(function(){return a("span",{class:"mt-[1rem] ml-4"},[c("* 不能带参数的URL")])})]),d([v("访问次数","frequency",{rules:[{required:!0,message:"请输入访问次数"}],attrs:{placeholder:"次",type:"number",min:1}}),y(function(){return a("span",{class:"mt-[1rem] ml-4"},[c("次")])})]),d([v("时间周期","cycle",{rules:[{required:!0,message:"请输入时间周期"}],attrs:{placeholder:"秒",type:"number",min:1}}),y(function(){return a("span",{class:"mt-[1rem] ml-4"},[c("秒")])})]),m("",b.map(function(e){return{content:e}}))]}),j=p.BtForm,w=p.param,_=p.validate;function x(){return(x=t(e().m(function r(){var t;return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,_();case 1:if(e.v){e.n=2;break}return e.a(2,!1);case 2:if(t=!1,"add"!==n){e.n=4;break}return e.n=3,h(w.value.url,w.value.frequency,w.value.cycle);case 3:t=e.v,e.n=6;break;case 4:return e.n=5,g(w.value.url,w.value.frequency,w.value.cycle);case 5:t=e.v;case 6:if(!t){e.n=7;break}return u().success("add"===n?"添加成功":"修改成功"),e.a(2,!0);case 7:return e.a(2,!1)}},r)}))).apply(this,arguments)}return{BtForm:j,param:w,handleSubmit:function(){return x.apply(this,arguments)}}}((null===(j=O.compData)||void 0===j?void 0:j.mode)||"add",null===(w=O.compData)||void 0===w?void 0:w.row),F=S.BtForm,P=S.handleSubmit;return x({onConfirm:(_=t(e().m(function n(){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,P();case 1:if(!e.v){e.n=2;break}return null==q||q(),e.a(2,!0);case 2:return e.a(2,!1)}},n)})),function(){return _.apply(this,arguments)})}),function(e,n){return l(),s("div",r,[a(f(F))])}}}))}}})}();