File: /www/server/panel/BTPanel/static/js/update-password-legacy.js
!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:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(t,o,i,u){var a=o&&o.prototype instanceof s?o:s,l=Object.create(a.prototype);return e(l,"_invoke",function(t,e,o){var i,u,a,s=0,l=o||[],f=!1,p={p:0,n:0,v:r,a:m,f:m.bind(r,4),d:function(t,e){return i=t,u=0,a=r,p.n=e,c}};function m(t,e){for(u=t,a=e,n=0;!f&&s&&!o&&n<l.length;n++){var o,i=l[n],m=p.p,y=i[2];t>3?(o=y===e)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=r):i[0]<=m&&((o=t<2&&m<i[1])?(u=0,p.v=e,p.n=i[1]):m<y&&(o=t<3||i[0]>e||e>y)&&(i[4]=t,i[5]=e,p.n=y,u=0))}if(o||t>1)return c;throw f=!0,e}return function(o,l,y){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&m(l,y),u=l,a=y;(n=u<2?r:a)||!f;){i||(u?u<3?(u>1&&(p.n=-1),m(u,a)):p.n=a:p.v=a);try{if(s=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=r}else if((n=(f=p.n<0)?a:t.call(e,p))!==c)break}catch(n){i=r,u=1,a=n}finally{s=1}}return{value:n,done:f}}}(t,i,u),!0),l}var c={};function s(){}function l(){}function f(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(e(n={},i,function(){return this}),n),m=f.prototype=s.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,e(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t}return l.prototype=f,e(m,"constructor",f),e(f,"constructor",l),l.displayName="GeneratorFunction",e(f,u,"GeneratorFunction"),e(m),e(m,u,"Generator"),e(m,i,function(){return this}),e(m,"toString",function(){return"[object Generator]"}),(t=function(){return{w:a,m:y}})()}function e(t,r,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,r,n,o){function u(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?i?i(t,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[r]=n:(u("next",0),u("throw",1),u("return",2))},e(t,r,n,o)}function r(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528"],function(e,n){"use strict";var o,i,u,a,c,s,l,f,p,m,y,v;return{setters:[function(t){o=t.X,i=t.du,u=t.dB,a=t.M},function(t){c=t.c,s=t.aC,l=t.r,f=t.j,p=t.k,m=t.e,y=t.p},function(t){v=t.h},null,null],execute:function(){var n={class:"flex flex-col p-[1.6rem] lib-box"};e("default",c({__name:"update-password",props:{compData:{default:function(){return{id:"",path:"",isInit:!1,service_name:""}}}},setup:function(e,c){var d,b,h=c.expose,g=e,_=s("popupClose",function(){}),w=o({data:function(){return{mysql_path:"".concat(g.compData.path,"/").concat(g.compData.service_name).replace(/\/+/g,"/"),mysql_pwd:"",id:g.compData.id}},options:function(t){return l([v("新密码","mysql_pwd",{attrs:{class:"!w-[24rem]",placeholder:"请输入新密码"},rules:[{required:!0,message:"请输入新密码",trigger:["blur"]},{min:8,message:"密码长度至少8位",trigger:["blur"]},{validator:function(t,e,r){/"|[\u4e00-\u9fa5]/.test(e)?r(new Error("密码不能包含特殊字符")):r()},trigger:["blur"]}]},function(){t.value.mysql_pwd=i(16)})])},submit:(d=t().m(function e(r,n,o){var i;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n();case 1:return t.n=2,u({id:r.value.id,mysql_pwd:r.value.mysql_pwd,mysql_path:r.value.mysql_path});case 2:i=t.v,a.request(i),i.status&&_();case 3:return t.a(2)}},e)}),b=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=d.apply(t,e);function u(t){r(i,n,o,u,a,"next",t)}function a(t){r(i,n,o,u,a,"throw",t)}u(void 0)})},function(t,e,r){return b.apply(this,arguments)})}),j=w.BtForm;return h({onConfirm:w.submit}),function(t,e){return f(),p("div",n,[m(y(j))])}}}))}}})}();