File: /www/server/panel/BTPanel/static/js/index-legacy404.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 s,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.toStringTag||"@@toStringTag";function a(e,n,o,c){var a=n&&n.prototype instanceof l?n:l,u=Object.create(a.prototype);return r(u,"_invoke",function(e,r,n){var o,c,a,l=0,u=n||[],d=!1,y={p:0,n:0,v:s,a:f,f:f.bind(s,4),d:function(e,r){return o=e,c=0,a=s,y.n=r,i}};function f(e,r){for(c=e,a=r,t=0;!d&&l&&!n&&t<u.length;t++){var n,o=u[t],f=y.p,v=o[2];e>3?(n=v===r)&&(a=o[(c=o[4])?5:(c=3,3)],o[4]=o[5]=s):o[0]<=f&&((n=e<2&&f<o[1])?(c=0,y.v=r,y.n=o[1]):f<v&&(n=e<3||o[0]>r||r>v)&&(o[4]=e,o[5]=r,y.n=v,c=0))}if(n||e>1)return i;throw d=!0,r}return function(n,u,v){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,v),c=u,a=v;(t=c<2?s:a)||!d;){o||(c?c<3?(c>1&&(y.n=-1),f(c,a)):y.n=a:y.v=a);try{if(l=2,o){if(c||(n="next"),t=o[n]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(a=TypeError("The iterator does not provide a '"+n+"' method"),c=1);o=s}else if((t=(d=y.n<0)?a:e.call(r,y))!==i)break}catch(t){o=s,c=1,a=t}finally{l=1}}return{value:t,done:d}}}(e,o,c),!0),u}var i={};function l(){}function u(){}function d(){}t=Object.getPrototypeOf;var y=[][o]?t(t([][o]())):(r(t={},o,function(){return this}),t),f=d.prototype=l.prototype=Object.create(y);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,c,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,r(f,"constructor",d),r(d,"constructor",u),u.displayName="GeneratorFunction",r(d,c,"GeneratorFunction"),r(f),r(f,c,"Generator"),r(f,o,function(){return this}),r(f,"toString",function(){return"[object Generator]"}),(e=function(){return{w:a,m:v}})()}function r(e,s,t,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}r=function(e,s,t,n){function c(s,t){r(e,s,function(e){return this._invoke(s,t,e)})}s?o?o(e,s,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[s]=t:(c("next",0),c("throw",1),c("return",2))},r(e,s,t,n)}function s(e,r,s,t,n,o,c){try{var a=e[o](c),i=a.value}catch(e){return void s(e)}a.done?r(i):Promise.resolve(i).then(t,n)}System.register(["./useStore-legacy8.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./useController-legacy5.js?v=1777008528","./firewall-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useStore-legacy10.js?v=1777008528"],function(r,t){"use strict";var n,o,c,a,i,l,u,d,y,f,v,p,m,_,x,g,b,h,w,j,S,k,T;return{setters:[function(e){n=e.g},function(e){o=e.c,c=e.aL,a=e.aI,i=e.r,l=e.V,u=e.w,d=e.o,y=e.j,f=e.k,v=e.p,p=e.e,m=e.bk,_=e.q,x=e.s,g=e.M,b=e.n},function(e){h=e.actionType,w=e.historyType},function(e){j=e.aC},function(e){S=e.k,k=e.cZ},function(e){T=e.L}],execute:function(){var t={class:"ssh-login-stats"},O={key:0,class:"skeleton-container"},N={key:1,class:"stats-content"},G={class:"stats-panels flex gap-12px"},P={class:"font-600 text-large text-primary mb-3"},C={class:"font-600 text-large text-danger mb-3"},F={class:"flex flex-1 flex-col justify-around"},L={class:"progress-item flex items-center"},E={class:"flex-1 flex items-center ml-4"},q={class:"progress-bar !h-[8px]"},A={class:"progress-numbers !text-base w-[6rem] flex ml-12px"},H={class:"success mr-4"},I={class:"error"},M={class:"progress-item flex items-center"},R={class:"flex-1 flex items-center ml-4"},B={class:"progress-bar"},V={class:"progress-numbers w-[6rem] flex ml-12px"},Z={class:"success mr-4"},z={class:"error"},D={class:"progress-item flex items-center"},J={class:"flex-1 flex items-center ml-4"},K={class:"progress-bar"},Q={class:"progress-numbers w-[6rem] flex ml-12px"},U={class:"success mr-4"},W={class:"error"},X=o({__name:"index",props:{hideTitle:{type:Boolean}},emits:["loaded"],setup:function(r,o){var k=o.emit,X=n().refs,Y=X.sshTabActive,$=(X.sshLoginType,c()),ee=T(),re=a(ee).isRefreshList,se=k,te=i(!1),ne=i(!1),oe=l({success:0,today_success:0,error:0,today_error:0,yesterday_success:0,yesterday_error:0,sevenday_success:0,sevenday_error:0}),ce=function(e,r){if(0===r)return 0;var s=Math.round(e/r*100);return e>0&&0===s?1:s},ae=function(){var r,t=(r=e().m(function r(){var s;return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,S({loading:te,request:j(),data:{success:Number,today_success:Number,error:Number,today_error:Number,yesterday_success:Number,yesterday_error:Number,sevenday_success:Number,sevenday_error:Number}});case 1:(s=e.v)&&(oe.value=s);case 2:return e.a(2)}},r)}),function(){var e=this,t=arguments;return new Promise(function(n,o){var c=r.apply(e,t);function a(e){s(c,n,o,a,i,"next",e)}function i(e){s(c,n,o,a,i,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}(),ie=function(e){h.value=e,w.value="7",Y.value="login","/firewall/ssh-manger"!==$.currentRoute.value.path?$.push("/firewall/ssh-manger"):(re.value=!1,b(function(){re.value=!0}))};return u(function(){return te.value},function(e){e||ne.value||(ne.value=!0,se("loaded"))}),d(ae),function(e,r){return y(),f("div",t,[v(te)?(y(),f("div",O,[p(v(m),{rows:1,animated:""})])):(y(),f("div",N,[_("div",G,[_("div",{class:"panels success flex flex-col items-center cursor-pointer",onClick:r[0]||(r[0]=function(e){return ie("Accepted")})},[_("div",P,x(v(oe).success),1),r[2]||(r[2]=_("span",{class:"text-secondary text-small"},"SSH成功登录",-1))]),_("div",{class:"panels error flex flex-col items-center cursor-pointer",onClick:r[1]||(r[1]=function(e){return ie("Failed")})},[_("div",C,x(v(oe).error),1),r[3]||(r[3]=_("span",{class:"text-secondary text-small"},"SSH失败尝试",-1))])]),_("div",F,[_("div",L,[r[4]||(r[4]=_("div",{class:"text-secondary text-base font-600 w-[3rem]"},"今日",-1)),_("div",E,[_("div",q,[_("div",{class:"progress-success",style:g({width:ce(v(oe).today_success,v(oe).today_success+v(oe).today_error)+"%"})},null,4),_("div",{class:"progress-error",style:g({width:ce(v(oe).today_error,v(oe).today_success+v(oe).today_error)+"%"})},null,4)]),_("div",A,[_("span",H,x(v(oe).today_success),1),_("span",I,x(v(oe).today_error),1)])])]),_("div",M,[r[5]||(r[5]=_("div",{class:"text-secondary text-small w-[3rem]"},"昨日",-1)),_("div",R,[_("div",B,[_("div",{class:"progress-success",style:g({width:ce(v(oe).yesterday_success||0,(v(oe).yesterday_success||0)+(v(oe).yesterday_error||0))+"%"})},null,4),_("div",{class:"progress-error",style:g({width:ce(v(oe).yesterday_error||0,(v(oe).yesterday_success||0)+(v(oe).yesterday_error||0))+"%"})},null,4)]),_("div",V,[_("span",Z,x(v(oe).yesterday_success||0),1),_("span",z,x(v(oe).yesterday_error||0),1)])])]),_("div",D,[r[6]||(r[6]=_("div",{class:"text-secondary text-small w-[3rem]"},"7天",-1)),_("div",J,[_("div",K,[_("div",{class:"progress-success",style:g({width:ce(v(oe).sevenday_success||0,(v(oe).sevenday_success||0)+(v(oe).sevenday_error||0))+"%"})},null,4),_("div",{class:"progress-error",style:g({width:ce(v(oe).sevenday_error||0,(v(oe).sevenday_success||0)+(v(oe).sevenday_error||0))+"%"})},null,4)]),_("div",Q,[_("span",U,x(v(oe).sevenday_success||0),1),_("span",W,x(v(oe).sevenday_error||0),1)])])])])]))])}}});r("S",k(X,[["__scopeId","data-v-7edfe3d1"]]))}}})}();