!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 r,e,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function c(t,o,u,i){var c=o&&o.prototype instanceof f?o:f,s=Object.create(c.prototype);return n(s,"_invoke",function(t,n,o){var u,i,c,f=0,s=o||[],l=!1,p={p:0,n:0,v:r,a:v,f:v.bind(r,4),d:function(t,n){return u=t,i=0,c=r,p.n=n,a}};function v(t,n){for(i=t,c=n,e=0;!l&&f&&!o&&e<s.length;e++){var o,u=s[e],v=p.p,y=u[2];t>3?(o=y===n)&&(c=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=r):u[0]<=v&&((o=t<2&&v<u[1])?(i=0,p.v=n,p.n=u[1]):v<y&&(o=t<3||u[0]>n||n>y)&&(u[4]=t,u[5]=n,p.n=y,i=0))}if(o||t>1)return a;throw l=!0,n}return function(o,s,y){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&v(s,y),i=s,c=y;(e=i<2?r:c)||!l;){u||(i?i<3?(i>1&&(p.n=-1),v(i,c)):p.n=c:p.v=c);try{if(f=2,u){if(i||(o="next"),e=u[o]){if(!(e=e.call(u,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,i<2&&(i=0)}else 1===i&&(e=u.return)&&e.call(u),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=r}else if((e=(l=p.n<0)?c:t.call(n,p))!==a)break}catch(e){u=r,i=1,c=e}finally{f=1}}return{value:e,done:l}}}(t,u,i),!0),s}var a={};function f(){}function s(){}function l(){}e=Object.getPrototypeOf;var p=[][u]?e(e([][u]())):(n(e={},u,function(){return this}),e),v=l.prototype=f.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,n(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=l,n(v,"constructor",l),n(l,"constructor",s),s.displayName="GeneratorFunction",n(l,i,"GeneratorFunction"),n(v),n(v,i,"Generator"),n(v,u,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:y}})()}function n(t,r,e,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}n=function(t,r,e,o){function i(r,e){n(t,r,function(t){return this._invoke(r,e,t)})}r?u?u(t,r,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[r]=e:(i("next",0),i("throw",1),i("return",2))},n(t,r,e,o)}function r(t,n,r,e,o,u,i){try{var c=t[u](i),a=c.value}catch(t){return void r(t)}c.done?n(a):Promise.resolve(a).then(e,o)}function e(t){return function(){var n=this,e=arguments;return new Promise(function(o,u){var i=t.apply(n,e);function c(t){r(i,o,u,c,a,"next",t)}function a(t){r(i,o,u,c,a,"throw",t)}c(void 0)})}}System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(n,r){"use strict";var o,u,i,c,a,f,s,l,p,v,y,d,m,b,g,h,w,_,j,x;return{setters:[function(t){o=t.c,u=t.r,i=t.w,c=t.q,a=t.a6,f=t.v,s=t.x,l=t.e,p=t.B,v=t.C,y=t.z,d=t.y,m=t.n,b=t.G},function(t){g=t.p,h=t.P,w=t.aK,_=t.b},function(t){j=t.clearCrontabLog,x=t.getCrontabLog},null],execute:function(){var r={class:"p-[20px]"},O={class:"pre-box bg-darkPrimary mt-[12px] text-white h-[48rem] overflow-auto p-[20px]"},T=["innerHTML"];n("default",o({__name:"log-detail",props:{compData:{default:{}}},setup:function(n){var o=_(),P=n,k=P.compData.id,G=u("正在获取中...."),S=u(null),C=function(){var n=e(t().m(function n(){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,g({title:"提示",content:"确定清空日志吗？",icon:"warning-filled"});case 1:h({loading:"正在清空日志，请稍后...",request:j({id:k}),message:!0,success:q});case 2:return t.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),q=function(){var n=e(t().m(function n(r){var e,u;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,x({id:k});case 1:e=t.v,G.value=e.msg,H(),r&&o.request({status:e.status,msg:e.status?"刷新成功":"刷新失败"}),t.n=3;break;case 2:t.p=2,u=t.v,w(u);case 3:return t.a(2)}},n,null,[[0,2]])}));return function(t){return n.apply(this,arguments)}}(),H=function(){m(function(){var t=document.querySelector(".pre-box");t.scrollTop=t.scrollHeight})};return i(function(){return P.compData},function(){q()},{immediate:!0}),c(function(){S.value=setInterval(e(t().m(function n(){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,q();case 1:return t.a(2)}},n)})),2e3)}),a(function(){clearInterval(S.value)}),function(t,n){var e=b;return f(),s("div",r,[l(e,{type:"primary",onClick:n[0]||(n[0]=function(t){return q(!0)})},{default:p(function(){return n[1]||(n[1]=[v("刷新日志",-1)])}),_:1,__:[1]}),l(e,{onClick:C,type:"default"},{default:p(function(){return n[2]||(n[2]=[v("清空日志",-1)])}),_:1,__:[2]}),y("div",O,[y("pre",{innerHTML:d(G)},null,8,T)])])}}}))}}})}();
