PageSourceSearch

https://qq882generasi.net/chunk-BOQF7W6Y.js

js qq882generasi.net collected 2026-10-09 18:08:59 UTC 14,797 bytes, 1 lines download raw bytes

1import{a as le}from"./chunk-GNSVSSEC.js";import{a as de}from"./chunk-AAEX34ES.js";import"./chunk-FFTXNXI6.js";import"./chunk-MFY6GL67.js";import"./chunk-FD55Q7R4.js";import{b as ce}from"./chunk-5LWFT2LT.js";import"./chunk-WQGKT4QG.js";import"./chunk-LBFZVMBI.js";import{b as ae,h as se}from"./chunk-SQXH55RY.js";import{A as ie,c as z,g as U,l as $,s as X,t as ee,u as te}from"./chunk-FZLMV5FP.js";import{t as re,x as oe}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{h as J,i as j,j as H,p as Z,q as G,r as Y,sa as ne}from"./chunk-LKIBVTZY.js";import"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{$a as k,A as h,B as f,Da as d,Ia as a,Ja as s,Ka as P,La as q,Ma as K,Oa as N,Ra as C,Sa as c,Va as B,Za as V,_a as L,ab as S,bb as p,cb as g,db as T,ga as n,ha as y,jb as E,kb as b,lb as F,nb as Q,p as W,pb as x,sb as _,tb as u,xa as m}from"./chunk-LZGEQQYD.js";import"./chunk-BW2TMJN6.js";import"./chunk-RNQ7BUHW.js";var pe=["OldPwd"],we=["NewPwd"],me=["ConfirmPwd"],ge=i=>({"web-window":i}),O=i=>({error:i}),R=i=>({show:i});function he(i,l){if(i&1&&(a(0,"option",33),p(1),_(2,"translate"),s()),i&2){let t=c().$implicit;d("value",t.id),n(),T(" ",t.id=="Main"?u(2,2,"changePasswordPage.mainAccount"):t.providerName," ")}}function fe(i,l){if(i&1&&(q(0),m(1,he,3,4,"option",32),K()),i&2){let t=l.$implicit;n(),d("ngIf",t.id=="Main"||t.providerName)}}function _e(i,l){if(i&1){let t=N();a(0,"select",30),F("ngModelChange",function(e){h(t);let r=c(2);return b(r.accountInfoService.changePwdForm.providerId,e)||(r.accountInfoService.changePwdForm.providerId=e),f(e)}),C("change",function(){h(t);let e=c(2);return f(e.providerOnChange())}),m(1,fe,2,1,"ng-container",31),s()}if(i&2){let t=c(2);E("ngModel",t.accountInfoService.changePwdForm.providerId),n(),d("ngForOf",t.pageData.providerList)("ngForTrackBy",t.trackById)}}function ue(i,l){if(i&1){let t=N();a(0,"input",39),C("click",function(){h(t);let e=c().$implicit,r=c(3);return f(r.providerOnChange(e.id))}),s()}if(i&2){let t=c().$implicit;B("id",t.id)}}function ve(i,l){if(i&1&&(a(0,"label",40),P(1,"i",41),p(2),_(3,"translate"),s()),i&2){let t=c().$implicit;B("for",t.id),n(2),g(t.id=="Main"?u(3,2,"changePasswordPage.mainAccount"):t.providerName)}}function Pe(i,l){if(i&1&&(a(0,"li"),m(1,ue,1,1,"input",37)(2,ve,4,4,"label",38),s()),i&2){let t=l.$implicit;n(),d("ngIf",t.id=="Main"||t.providerName),n(),d("ngIf",t.id=="Main"||t.providerName)}}function Ce(i,l){if(i&1&&(a(0,"div",34)(1,"div",35),p(2),_(3,"translate"),s(),P(4,"i",36),a(5,"ul"),m(6,Pe,3,2,"li",31),s()()),i&2){let t=c(2);n(2),T(" ",t.accountInfoService.changePwdForm.providerId=="Main"?u(3,3,"changePasswordPage.mainAccount"):t.accountInfoService.changePwdForm.providerName,""),n(4),d("ngForOf",t.pageData.providerList)("ngForTrackBy",t.trackById)}}function xe(i,l){i&1&&(a(0,"div")(1,"div",42),P(2,"i",43),a(3,"p"),p(4),_(5,"translate"),s()(),P(6,"br"),s()),i&2&&(n(4),T(" ",u(5,1,"getGameAccountNotice")," "))}function Me(i,l){if(i&1&&(a(0,"p",46),p(1),s()),i&2){let t=c(3);n(),g(t.oldPwdErrorMessage)}}function Ie(i,l){if(i&1&&(a(0,"span",47),p(1),s()),i&2){c();let t=S(6);n(),g(t.type==="text"?"Hide password":"Show password")}}function Se(i,l){if(i&1){let t=N();a(0,"div",11)(1,"label",44),p(2),_(3,"translate"),s(),a(4,"div",20)(5,"input",45,2),F("ngModelChange",function(e){h(t);let r=c(2);return b(r.accountInfoService.changePwdForm.oldPassword,e)||(r.accountInfoService.changePwdForm.oldPassword=e),f(e)}),s(),m(7,Me,2,1,"p",22),a(8,"button",23),C("click",function(){h(t);let e=c(2);return f(e.showOldPwd())}),m(9,Ie,2,1,"span",24),s()()()}if(i&2){let t=S(6),o=c(2);n(2),g(u(3,7,"changePasswordPage.oldPassword")),n(3),E("ngModel",o.accountInfoService.changePwdForm.oldPassword),d("ngClass",x(9,O,o.isOldPwdError))("placeholder",o.passwordRequirementMsg),n(2),d("ngIf",o.oldPwdErrorMessage),n(),d("ngClass",x(11,R,t.type==="text")),n(),d("ngIf",!o.globalData.isMobileStyle)}}function ye(i,l){if(i&1&&(a(0,"p",46),p(1),s()),i&2){let t=c(2);n(),g(t.newPwdErrorMessage===""?t.passwordRequirementMsg:t.newPwdErrorMessage)}}function Ee(i,l){if(i&1&&(a(0,"span",47),p(1),s()),i&2){c();let t=S(24);n(),g(t.type==="text"?"Hide password":"Show password")}}function be(i,l){if(i&1&&(a(0,"p",46),p(1),s()),i&2){let t=c(2);n(),g(t.confirmPwdErrorMessage===""?t.passwordRequirementMsg:t.confirmPwdErrorMessage)}}function Fe(i,l){if(i&1&&(a(0,"span",47),p(1),s()),i&2){c();let t=S(34);n(),g(t.type==="text"?"Hide password":"Show password")}}function Ne(i,l){if(i&1){let t=N();a(0,"div",9)(1,"div",10)(2,"div",11)(3,"label",12),p(4),_(5,"translate"),a(6,"span"),p(7,"*"),s()(),a(8,"div",13),m(9,_e,2,3,"select",14),s(),m(10,Ce,7,5,"div",15),s(),a(11,"div",11)(12,"label",16),p(13),_(14,"translate"),s(),a(15,"input",17),F("ngModelChange",function(e){h(t);let r=c();return b(r.name,e)||(r.name=e),f(e)}),s()(),m(16,xe,7,3,"div",8)(17,Se,10,13,"div",18),a(18,"div",11)(19,"label",19),p(20),_(21,"translate"),s(),a(22,"div",20)(23,"input",21,0),F("ngModelChange",function(e){h(t);let r=c();return b(r.accountInfoService.changePwdForm.newPassword,e)||(r.accountInfoService.changePwdForm.newPassword=e),f(e)}),s(),m(25,ye,2,1,"p",22),a(26,"button",23),C("click",function(){h(t);let e=c();return f(e.showNewPwd())}),m(27,Ee,2,1,"span",24),s()()(),a(28,"div",11)(29,"label",25),p(30),_(31,"translate"),s(),a(32,"div",20)(33,"input",26,1),F("ngModelChange",function(e){h(t);let r=c();return b(r.accountInfoService.changePwdForm.confirmPassword,e)||(r.accountInfoService.changePwdForm.confirmPassword=e),f(e)}),s(),m(35,be,2,1,"p",22),a(36,"button",23),C("click",function(){h(t);let e=c();return f(e.showConfirmPwd())}),m(37,Fe,2,1,"span",24),s()()(),a(38,"div",27)(39,"button",28),C("click",function(){h(t);let e=c();return f(e.resetChangePasswordInput())}),p(40),_(41,"translate"),s(),a(42,"button",29),C("click",function(){h(t);let e=c();return f(e.submitChangePassword())}),p(43),_(44,"translate"),s()()()()}if(i&2){let t=S(24),o=S(34),e=c();n(4),T("",u(5,23,"account")," "),n(5),d("ngIf",e.globalData.isMobileStyle),n(),d("ngIf",!e.globalData.isMobileStyle),n(3),g(u(14,25,"changePasswordPage.name")),n(2),E("ngModel",e.name),n(),d("ngIf",e.name==null),n(),d("ngIf",e.isMainProviderAccount),n(3),g(u(21,27,"changePasswordPage.newPassword")),n(3),d("ngClass",x(35,O,e.isNewPwdError)),E("ngModel",e.accountInfoService.changePwdForm.newPassword),d("placeholder",e.passwordRequirementMsg),n(2),d("ngIf",e.isNewPwdError),n(),d("ngClass",x(37,R,t.type==="text")),n(),d("ngIf",!e.globalData.isMobileStyle),n(3),g(u(31,29,"changePasswordPage.confirmPassword")),n(3),d("ngClass",x(39,O,e.isConfirmPwdError)),E("ngModel",e.accountInfoService.changePwdForm.confirmPassword),d("placeholder",e.passwordRequirementMsg),n(2),d("ngIf",e.isConfirmPwdError),n(),d("ngClass",x(41,R,o.type==="text")),n(),d("ngIf",!e.globalData.isMobileStyle),n(3),g(u(41,31,"reset")),n(3),g(u(44,33,"submit"))}}function Te(i,l){i&1&&P(0,"app-bottom-menu")}var He=(()=>{let l=class l{constructor(o,e,r,w,v){this.globalData=o,this.httpService=e,this.accountInfoService=r,this.translate=w,this.encryptService=v,this.oldPwdErrorMessage="",this.newPwdErrorMessage="",this.confirmPwdErrorMessage="",this.isOldPwdError=!1,this.isNewPwdError=!1,this.isConfirmPwdError=!1,this.isMainProviderAccount=!1}ngOnInit(){this.loadIndex()}trackById(o,e){return e.id}loadIndex(){this.isMainProviderAccount=!0,this.httpService.getChangePwdList({}).subscribe(o=>{if(this.globalData.loading=!0,o.code==0&&(this.pageData=o.data,this.pageData.providerList)){let e=this.pageData.providerList[0];this.isMainProviderAccount=e.id==="Main",this.accountInfoService.changePwdForm.providerId=e.id,this.accountInfoService.changePwdForm.providerName=e.providerName,e.id==="JKS"?this.name=this.getJKSName(e.account):this.name=e.account,this.passwordMinLength=e.min,this.passwordMaxLength=e.max,this.setPasswordRequirementMsg()}this.globalData.loading=!1})}resetChangePasswordInput(){this.accountInfoService.changePwdForm.oldPassword="",this.accountInfoService.changePwdForm.newPassword="",this.accountInfoService.changePwdForm.confirmPassword="",this.oldPwdErrorMessage="",this.newPwdErrorMessage="",this.confirmPwdErrorMessage="",this.isOldPwdError=!1,this.isNewPwdError=!1,this.isConfirmPwdError=!1}setPasswordRequirementMsg(){this.passwordMinLength!==null&&this.passwordMaxLength!==null?this.accountInfoService.changePwdForm.providerId=="INP"?this.passwordRequirementMsg=this.translate.instant("changePasswordPage.passwordMinMaxSymbolMessage").replace("{0}",this.passwordMinLength).replace("{1}",this.passwordMaxLength):this.passwordRequirementMsg=this.translate.instant("changePasswordPage.passwordMinMaxMessage").replace("{0}",this.passwordMinLength).replace("{1}",this.passwordMaxLength):this.passwordMinLength!==null&&this.passwordMaxLength===null?this.passwordRequirementMsg=this.translate.instant("changePasswordPage.passwordMinMessage").replace("{0}",this.passwordMinLength):this.passwordRequirementMsg=""}providerOnChange(o){this.name=null,this.resetChangePasswordInput();let e=this.pageData.providerList.find(I=>I.id==(o||this.accountInfoService.changePwdForm.providerId)),{id:r,providerName:w,account:v,min:D,max:M}=e;this.accountInfoService.changePwdForm.providerId=r,this.accountInfoService.changePwdForm.providerName=w,this.isMainProviderAccount=r==="Main",r==="JKS"?this.name=this.getJKSName(v):this.name=v,this.passwordMinLength=D,this.passwordMaxLength=M,this.setPasswordRequirementMsg()}showOldPwd(){this.oldPwd.nativeElement.type==="text"?this.oldPwd.nativeElement.type="password":this.oldPwd.nativeElement.type="text"}showNewPwd(){this.newPwd.nativeElement.type==="text"?this.newPwd.nativeElement.type="password":this.newPwd.nativeElement.type="text"}showConfirmPwd(){this.confirmPwd.nativeElement.type==="text"?this.confirmPwd.nativeElement.type="password":this.confirmPwd.nativeElement.type="text"}submitChangePassword(){this.oldPwdErrorMessage="",this.newPwdErrorMessage="",this.confirmPwdErrorMessage="";let{oldPassword:o,newPassword:e,confirmPassword:r}=this.accountInfoService.changePwdForm,w=".{".concat(this.passwordMinLength,",").concat(this.passwordMaxLength===null?"":this.passwordMaxLength,"}$"),v=new RegExp("^(?=.*[0-9])(?=.*[a-zA-Z])"+w);this.isMainProviderAccount&&o===""?(this.isOldPwdError=!0,this.oldPwdErrorMessage=this.translate.instant("codeMessage.40121")):this.isOldPwdError=!1,e===""?(this.isNewPwdError=!0,this.newPwdErrorMessage=this.translate.instant("codeMessage.40121")):e.length<8?(this.isNewPwdError=!0,this.newPwdErrorMessage=this.translate.instant("changePasswordPage.passwordMinMessage").replace("{0}","8")):v.test(e)?this.isNewPwdError=!1:(this.isNewPwdError=!0,this.newPwdErrorMessage=this.translate.instant("codeMessage.40138")),r?r!==e?(this.isConfirmPwdError=!0,this.confirmPwdErrorMessage=this.translate.instant("codeMessage.800015")):this.isConfirmPwdError=!1:(this.isConfirmPwdError=!0,this.confirmPwdErrorMessage=this.translate.instant("codeMessage.40121")),!this.isOldPwdError&&!this.isNewPwdError&&!this.isConfirmPwdError&&this.onSubmit()}onSubmit(){let{oldPassword:o,newPassword:e,confirmPassword:r,providerId:w}=this.accountInfoService.changePwdForm,v=this.encryptService.convertBASE64,D={oldPassword:v(o),newPassword:v(e),confirmPassword:v(r),providerId:w};this.httpService.changePassword(D).subscribe(M=>{if(this.globalData.loading=!0,M.code===0)this.pageData.providerList.map(I=>{let A=M.data.apiMemberId;A&&I.id===D.providerId&&(I.account=A,I.id==="JKS"?this.name=this.getJKSName(I.account):this.name=I.account)}),this.globalData.showDirectAlert("codeMessage.0",1);else if(re(M.code)==13)switch(M.code.toString().substring(2)){case"40121":this.newPwdErrorMessage=this.translate.instant("codeMessage.40121"),this.isNewPwdError=!0;break;case"30007":this.confirmPwdErrorMessage=this.translate.instant("codeMessage.30007"),this.isConfirmPwdError=!0;break;default:this.globalData.showAlert(M.code);break}this.resetChangePasswordInput(),this.globalData.loading=!1})}getJKSName(o){var r;let e={IDR:"F2ZZ",MYR:"F311",CNY:"F312",THB:"F313",KRW:"F315",USD:"F316"};if(o){let w=e[(r=this.globalData.acctInfo)==null?void 0:r.currency];if(w)return"".concat(w,".").concat(o)}return o}};l.\u0275fac=function(e){return new(e||l)(y(ne),y(oe),y(ae),y(J),y(se))},l.\u0275cmp=W({type:l,selectors:[["app-changepwd"]],viewQuery:function(e,r){if(e&1&&(V(pe,5),V(we,5),V(me,5)),e&2){let w;L(w=k())&&(r.oldPwd=w.first),L(w=k())&&(r.newPwd=w.first),L(w=k())&&(r.confirmPwd=w.first)}},standalone:!0,features:[Q],decls:12,vars:9,consts:[["NewPwd",""],["ConfirmPwd",""],["OldPwd",""],[1,"app",3,"ngClass"],[3,"title"],["data-show","web-window",1,"user-info-box"],[1,"icon-Avatar"],["class","acc-block under-user-info",4,"ngIf"],[4,"ngIf"],[1,"acc-block","under-user-info"],[1,"col"],[1,"form"],["for","fProvider"],["data-show","mobile",1,"select-box"],["name","fProvider",3,"ngModel","ngModelChange","change",4,"ngIf"],["data-show","web-window","class","select-dropdown","i
1d","dropdown01","name","fProvider",4,"ngIf"],["for","fName"],["type","text","name","fName","readonly","",3,"ngModelChange","ngModel"],["class","form",4,"ngIf"],["for","fNewPwd"],[1,"password-input"],["type","password","name","fNewPwd",3,"ngModelChange","ngClass","ngModel","placeholder"],["class","error",4,"ngIf"],[1,"password-btn",3,"click","ngClass"],["data-show","web-window","class","tooltip",4,"ngIf"],["for","fConfirmPwd"],["type","password","name","fConfirmPwd",3,"ngModelChange","ngClass","ngModel","placeholder"],[1,"btn-group"],[1,"btn-cancel",3,"click"],[1,"btn-submit",3,"click"],["name","fProvider",3,"ngModelChange","change","ngModel"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"value",4,"ngIf"],[3,"value"],["data-show","web-window","id","dropdown01","name","fProvider",1,"select-dropdown"],[1,"default"],[1,"arrow"],["type","radio","name","method",3,"id","click",4,"ngIf"],[3,"for",4,"ngIf"],["type","radio","name","method",3,"click","id"],[3,"for"],[1,"icon-Check"],[1,"form_info"],[1,"icon-Information"],["for","fOldPwd"],["type","password","name","fOldPwd",3,"ngModelChange","ngModel","ngClass","placeholder"],[1,"error"],["data-show","web-window",1,"tooltip"]],template:function(e,r){e&1&&(a(0,"div",3),P(1,"app-title-nav",4),_(2,"translate"),a(3,"main")(4,"div",5),P(5,"i",6),a(6,"p"),P(7,"app-vip-level"),a(8,"strong"),p(9),s()()(),m(10,Ne,45,43,"div",7),s(),m(11,Te,1,0,"app-bottom-menu",8),s()),e&2&&(d("ngClass",x(7,ge,!r.globalData.isMobileStyle)),n(),d("title",u(2,5,"accountPage.changePassword")),n(8),g(r.globalData.acctInfo==null?null:r.globalData.acctInfo.loginId),n(),d("ngIf",r.pageData&&r.accountInfoService.changePwdForm),n(),d("ngIf",r.globalData.isMobileStyle))},dependencies:[Z,le,ce,Y,ie,ee,te,z,X,U,$,G,de,H,j],encapsulation:2});let i=l;return i})();export{He as ChangepwdComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.