!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 e,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.toStringTag||"@@toStringTag";function u(t,o,i,c){var u=o&&o.prototype instanceof a?o:a,f=Object.create(u.prototype);return r(f,"_invoke",function(t,r,o){var i,c,u,a=0,f=o||[],l=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,r){return i=t,c=0,u=e,p.n=r,s}};function v(t,r){for(c=t,u=r,n=0;!l&&a&&!o&&n<f.length;n++){var o,i=f[n],v=p.p,m=i[2];t>3?(o=m===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=v&&((o=t<2&&v<i[1])?(c=0,p.v=r,p.n=i[1]):v<m&&(o=t<3||i[0]>r||r>m)&&(i[4]=t,i[5]=r,p.n=m,c=0))}if(o||t>1)return s;throw l=!0,r}return function(o,f,m){if(a>1)throw TypeError("Generator is already running");for(l&&1===f&&v(f,m),c=f,u=m;(n=c<2?e:u)||!l;){i||(c?c<3?(c>1&&(p.n=-1),v(c,u)):p.n=u:p.v=u);try{if(a=2,i){if(c||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,c<2&&(c=0)}else 1===c&&(n=i.return)&&n.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((n=(l=p.n<0)?u:t.call(r,p))!==s)break}catch(n){i=e,c=1,u=n}finally{a=1}}return{value:n,done:l}}}(t,i,c),!0),f}var s={};function a(){}function f(){}function l(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),v=l.prototype=a.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,r(t,c,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=l,r(v,"constructor",l),r(l,"constructor",f),f.displayName="GeneratorFunction",r(l,c,"GeneratorFunction"),r(v),r(v,c,"Generator"),r(v,i,function(){return this}),r(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:u,m:m}})()}function r(t,e,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}r=function(t,e,n,o){function c(e,n){r(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(c("next",0),c("throw",1),c("return",2))},r(t,e,n,o)}function e(t,r,e,n,o,i,c){try{var u=t[i](c),s=u.value}catch(t){return void e(t)}u.done?r(s):Promise.resolve(s).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise(function(o,i){var c=t.apply(r,n);function u(t){e(c,o,i,u,s,"next",t)}function s(t){e(c,o,i,u,s,"throw",t)}u(void 0)})}}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./useMethod-legacy4.js?v=1761009159"],function(r,e){"use strict";var o,i,c,u,s,a,f,l,p,v,m,y,d,g,h,b,x,_,w,j;return{setters:[function(t){o=t.q,i=t.M,c=t.e},function(t){u=t.c,s=t.o,a=t.g,f=t.w,l=t.q,p=t.v,v=t.x,m=t.z,y=t.K,d=t.y,g=t.A,h=t.L,b=t.e,x=t.B,_=t.C,w=t.D},function(t){j=t.m}],execute:function(){var e={class:"flex items-center"},O={class:"flex flex-1 items-center"},S={class:"mr-[12px] text-small min-w-[16rem] max-w-30rem"},k={class:"flex items-center"},T={key:0,class:"flex items-center"};r("_",u({__name:"index",props:{server:{default:function(){return{sid:0,ip:""}}}},setup:function(r){var u=r,G=s({status:!1,msg:"检查中...",error:!1}),P=a(function(){return G.status?"svgtofont-el-success-filled text-primary":"svgtofont-el-circle-close-filled text-[#EF0808]"}),C=function(){var r=n(t().m(function r(){return t().w(function(t){for(;;)switch(t.n){case 0:F(),i.success("刷新成功");case 1:return t.a(2)}},r)}));return function(){return r.apply(this,arguments)}}(),E=function(){i.msg({dangerouslyUseHTMLString:!0,message:String(G.error)||"暂无异常信息",type:"error",showClose:!0,duration:0})},F=function(){var r=n(t().m(function r(){var e,n,c,s;return t().w(function(t){for(;;)switch(t.n){case 0:if(!o(u.server.sid)){t.n=1;break}return t.a(2,i.error("查询失败"));case 1:return G.msg="连接中...",t.n=2,j(u.server.sid);case 2:e=t.v,n=e.db_status,c=e.msg,s=e.err_msg,G.status=n,G.msg=n?"正常":c,G.error=!n&&s;case 3:return t.a(2)}},r)}));return function(){return r.apply(this,arguments)}}();return f(function(){return u.server.sid},function(t){!o(t)&&F()},{immediate:!0}),l(function(){}),function(t,r){var n=c;return p(),v("div",e,[m("i",{class:y("text-medium mr-[4px] ".concat(d(P)))},null,2),m("div",O,[m("div",S,[m("span",null,g(t.server.ip)+"状态：",1),m("span",{style:h("color:#".concat(d(G).status?"20a53a":"ef0808"))},g(d(G).msg),5)]),m("div",k,[r[2]||(r[2]=m("i",{class:"svgtofont-icon-refresh text-base mr-[4px] text-primary"},null,-1)),b(n,{onClick:C},{default:x(function(){return r[0]||(r[0]=[_("刷新",-1)])}),_:1,__:[0]}),d(G).error?(p(),v("div",T,[b(n,{onClick:E,class:"ml-8px"},{default:x(function(){return r[1]||(r[1]=[_("| 查看异常信息",-1)])}),_:1,__:[1]})])):w("",!0)])])])}}}))}}})}();
