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