!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,n,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(t,o,u,a){var i=o&&o.prototype instanceof f?o:f,l=Object.create(i.prototype);return e(l,"_invoke",function(t,e,o){var u,a,i,f=0,l=o||[],s=!1,p={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function(t,e){return u=t,a=0,i=r,p.n=e,c}};function d(t,e){for(a=t,i=e,n=0;!s&&f&&!o&&n<l.length;n++){var o,u=l[n],d=p.p,v=u[2];t>3?(o=v===e)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=r):u[0]<=d&&((o=t<2&&d<u[1])?(a=0,p.v=e,p.n=u[1]):d<v&&(o=t<3||u[0]>e||e>v)&&(u[4]=t,u[5]=e,p.n=v,a=0))}if(o||t>1)return c;throw s=!0,e}return function(o,l,v){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&d(l,v),a=l,i=v;(n=a<2?r:i)||!s;){u||(a?a<3?(a>1&&(p.n=-1),d(a,i)):p.n=i:p.v=i);try{if(f=2,u){if(a||(o="next"),n=u[o]){if(!(n=n.call(u,i)))throw TypeError("iterator result is not an object");if(!n.done)return n;i=n.value,a<2&&(a=0)}else 1===a&&(n=u.return)&&n.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=r}else if((n=(s=p.n<0)?i:t.call(e,p))!==c)break}catch(n){u=r,a=1,i=n}finally{f=1}}return{value:n,done:s}}}(t,u,a),!0),l}var c={};function f(){}function l(){}function s(){}n=Object.getPrototypeOf;var p=[][u]?n(n([][u]())):(e(n={},u,function(){return this}),n),d=s.prototype=f.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=s,e(d,"constructor",s),e(s,"constructor",l),l.displayName="GeneratorFunction",e(s,a,"GeneratorFunction"),e(d),e(d,a,"Generator"),e(d,u,function(){return this}),e(d,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:v}})()}function e(t,r,n,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}e=function(t,r,n,o){function a(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?u?u(t,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[r]=n:(a("next",0),a("throw",1),a("return",2))},e(t,r,n,o)}function r(t,e,r,n,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void r(t)}i.done?e(c):Promise.resolve(c).then(n,o)}System.register(["./base-lib-legacy.js?v=1761009159","./index-legacy103.js?v=1761009159","./database-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./useStore-legacy2.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(e,n){"use strict";var o,u,a,i,c,f,l,s,p,d,v,y,b,g,m,h,w;return{setters:[function(t){o=t.c,u=t.o,a=t.r,i=t.v,c=t.x,f=t.e,l=t.B,s=t.y,p=t.R,d=t.ab,v=t.a9},function(t){y=t._},function(t){b=t.setAuthStatus,g=t.setupPassword},function(t){m=t.c4,h=t.P},function(t){w=t.g},null],execute:function(){var n={class:"px-[20px] py-[20px]"};e("default",o({__name:"index",props:{compData:{default:function(){return{rootPwd:"",refresh:function(){}}}}},setup:function(e,o){var P=o.expose,j=w(),_=j.refs.tabActive,x=j.refreshTableList,O=e,V={rootPwdValue:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,message:"密码长度至少为6位",trigger:["blur","change"]}]},S=u({rootPwdValue:O.compData.rootPwd||""}),T=a(),G=function(){var e,n=(e=t().m(function e(r){var n,o;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,T.value.validate();case 1:return t.n=2,h({loading:"正在设置密码, 请稍后...",request:"mongodb"==_.value?b({data:JSON.stringify({status:"1",password:S.rootPwdValue})}):g({password:S.rootPwdValue}),message:!0});case 2:x(),null===(n=(o=O.compData).refresh)||void 0===n||n.call(o),r();case 3:return t.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(o,u){var a=e.apply(t,n);function i(t){r(a,o,u,i,c,"next",t)}function c(t){r(a,o,u,i,c,"throw",t)}i(void 0)})});return function(t){return n.apply(this,arguments)}}();return P({onConfirm:G}),function(t,e){var r=y,o=d,u=v;return i(),c("div",n,[f(u,{model:s(S),ref_key:"rootPwdRef",ref:T,rules:V,onSubmit:e[2]||(e[2]=p(function(){},["prevent"]))},{default:l(function(){return[f(o,{label:"数据库密码",prop:"rootPwdValue"},{default:l(function(){return[f(r,{icon:"el-refresh",modelValue:s(S).rootPwdValue,"onUpdate:modelValue":e[0]||(e[0]=function(t){return s(S).rootPwdValue=t}),onIconClick:e[1]||(e[1]=function(){return s(S).rootPwdValue=s(m)(16)})},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model"])])}}}))}}})}();
