1"use strict";(self.webpackChunke_care=self.webpackChunke_care||[]).push([[4142],{14142:function(e,r,s){s.d(r,{v:function(){return _}});var t=s(3679),a=s(22238),o=s(75344),n=s(25885),i=s(37716),d=s(47203),c=s(89498),u=s(8481),l=s(38583),p=s(98295),g=s(83166),w=s(76627),h=s(30815),m=s(29790);function f(e,r){1&e&&(i.TgZ(0,"mat-error",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.requiredField")))}function P(e,r){1&e&&(i.TgZ(0,"mat-error",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.requiredField")))}function Z(e,r){if(1&e&&(i.TgZ(0,"form",9),i.TgZ(1,"mat-form-field",10),i._UZ(2,"input",11),i.ALo(3,"translate"),i.YNc(4,f,3,3,"mat-error",12),i.qZA(),i.TgZ(5,"mat-form-field",10),i._UZ(6,"input",13),i.ALo(7,"translate"),i.YNc(8,P,3,3,"mat-error",12),i.qZA(),i.qZA()),2&e){const e=i.oxw();i.Q6J("formGroup",e.changeUsernameForm),i.xp6(2),i.s9C("placeholder",i.lcZ(3,5,"eon.enterNewUsername")),i.xp6(2),i.Q6J("ngIf",!1),i.xp6(2),i.s9C("placeholder",i.lcZ(7,7,"eon.repeatNewUsername")),i.xp6(2),i.Q6J("ngIf",!1)}}function x(e,r){1&e&&(i.TgZ(0,"mat-error",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.requiredField")))}function q(e,r){if(1&e&&(i.TgZ(0,"div"),i.YNc(1,x,3,3,"mat-error",22),i.qZA()),2&e){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.changePasswordForm.get("currentPassword").errors.required)}}function N(e,r){1&e&&(i.TgZ(0,"mat-error",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.requiredField")))}function b(e,r){1&e&&(i.TgZ(0,"mat-error",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.passwordHint2")))}function A(e,r){if(1&e&&(i.TgZ(0,"div"),i.YNc(1,N,3,3,"mat-error",22),i.YNc(2,b,3,3,"mat-error",22),i.qZA()),2&e){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.changePasswordForm.get("newPassword").errors.required),i.xp6(1),i.Q6J("ngIf",e.changePasswordForm.get("newPassword").errors.pattern)}}function C(e,r){1&e&&(i.TgZ(0,"mat-error",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.requiredField")))}function v(e,r){1&e&&(i.TgZ(0,"mat-error",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.passwordHint2")))}function T(e,r){1&e&&(i.TgZ(0,"mat-error",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"validationMessage.passwordMismatch")))}function I(e,r){if(1&e&&(i.TgZ(0,"div"),i.YNc(1,C,3,3,"mat-error",22),i.YNc(2,v,3,3,"mat-error",22),i.YNc(3,T,3,3,"mat-error",22),i.qZA()),2&e){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.changePasswordForm.get("repeatNewPassword").errors.required),i.xp6(1),i.Q6J("ngIf",e.changePasswordForm.get("repeatNewPassword").errors.pattern),i.xp6(1),i.Q6J("ngIf",e.changePasswordForm.get("repeatNewPassword").errors&&e.changePasswordForm.get("repeatNewPassword").errors[0]&&e.changePasswordForm.get("repeatNewPassword").errors[0].passwordMismatch)}}function J(e,r){if(1&e){const e=i.EpF();i.TgZ(0,"form",9),i.TgZ(1,"div",15),i.TgZ(2,"mat-form-field",16),i._UZ(3,"input",17),i.ALo(4,"translate"),i.TgZ(5,"mat-icon",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.hideCurrentPass=!r.hideCurrentPass}),i._uU(6),i.qZA(),i.qZA(),i.YNc(7,q,2,1,"div",19),i.qZA(),i.TgZ(8,"div",15),i.TgZ(9,"mat-form-field",16),i.TgZ(10,"input",20),i.NdJ("input",function(){return i.CHM(e),i.oxw().onPasswordInput()}),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-icon",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.hideNewPass=!r.hideNewPass}),i._uU(13),i.qZA(),i.qZA(),i.YNc(14,A,3,2,"div",19),i.qZA(),i.TgZ(15,"div",15),i.TgZ(16,"mat-form-field",16),i.TgZ(17,"input",21),i.NdJ("input",function(){return i.CHM(e),i.oxw().onPasswordInput()}),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"mat-icon",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.hideConfirmNewPass=!r.hideConfirmNewPass}),i._uU(20),i.qZA(),i.qZA(),i.YNc(21,I,4,3,"div",19),i.qZA(),i.qZA()}if(2&e){const e=i.oxw();i.Q6J("formGroup",e.changePasswordForm),i.xp6(3),i.s9C("placeholder",i.lcZ(4,13,"eon.enterCurrentPass")),i.Q6J("type",e.hideCurrentPass?"password":"text"),i.xp6(3),i.Oqu(e.hideCurrentPass?"visibility_off":"visibility"),i.xp6(1),i.Q6J("ngIf",e.changePasswordSubmitted&&e.changePasswordForm.get("currentPassword").errors),i.xp6(3),i.s9C("placeholder",i.lcZ(11,15,"eon.enterNewPass")),i.Q6J("type",e.hideNewPass?"password":"text"),i.xp6(3),i.Oqu(e.hideNewPass?"visibility_off":"visibility"),i.xp6(1),i.Q6J("ngIf",e.changePasswordSubmitted&&e.changePasswordForm.get("newPassword").errors),i.xp6(3),i.s9C("placeholder",i.lcZ(18,17,"eon.confirmNewPass")),i.Q6J("type",e.hideConfirmNewPass?"password":"text"),i.xp6(3),i.Oqu(e.hideConfirmNewPass?"visibility_off":"visibility"),i.xp6(1),i.Q6J("ngIf",e.changePasswordSubmitted&&e.changePasswordForm.get("repeatNewPassword").errors)}}function y(e,r){1&e&&(i.TgZ(0,"button",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.Q6J("ladda",!1),i.xp6(1),i.Oqu(i.lcZ(2,2,"eon.submit")))}function F(e,r){if(1&e){const e=i.EpF();
1i.TgZ(0,"button",25),i.NdJ("click",function(){return i.CHM(e),i.oxw().changePassword()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&e){const e=i.oxw();i.Q6J("ladda",e.isChangePasswordSubmitted),i.xp6(1),i.Oqu(i.lcZ(2,2,"eon.submit"))}}let _=(()=>{class e{constructor(e,r,s,t,a,o,n){this.formBuilder=e,this.dialog=r,this.dialogRef=s,this.eonService=t,this.cryptoService=a,this.trs=o,this.data=n,this.hideCurrentPass=!0,this.hideNewPass=!0,this.hideConfirmNewPass=!0,this.changePasswordSubmitted=!1,this.isChangePasswordSubmitted=!1}get repeatNewPassword(){return this.changePasswordForm.get("repeatNewPassword")}ngOnInit(){this.changeUsernameForm=this.formBuilder.group({username:["",[t.kI.required]],usernameRepeat:["",[t.kI.required]]}),this.changePasswordForm=this.formBuilder.group({currentPassword:["",[t.kI.required]],newPassword:["",[t.kI.required,t.kI.pattern(n.v.passwordRegexPattern)]],repeatNewPassword:["",[t.kI.required]]},{validator:this.passwordMatchValidator})}passwordMatchValidator(e){return e.get("newPassword").value===e.get("repeatNewPassword").value?null:{passwordMismatch:!0}}onPasswordInput(){this.changePasswordForm.hasError("passwordMismatch")?this.repeatNewPassword.setErrors([{passwordMismatch:!0}]):this.repeatNewPassword.setErrors(null)}changePassword(){if(this.changePasswordSubmitted=!0,this.isChangePasswordSubmitted=!0,this.changePasswordForm.invalid)this.isChangePasswordSubmitted=!1;else{const e=this.cryptoService.encryptPassword(this.changePasswordForm.controls.currentPassword.value),r=this.cryptoService.encryptPassword(this.changePasswordForm.controls.repeatNewPassword.value);this.changePasswordSubmitted=!1,this.changePasswordMethod(r,e)}}changePasswordMethod(e,r){this.eonService.changeEonPassword(e,r).subscribe(e=>{e.status&&"OK"===e.status&&(this.openConfirmationDialog("success"),this.closeDialog())},e=>{console.log("Error occurred while change password: ",e),this.closeDialog(),this.handleError(e)})}openConfirmationDialog(e,r){this.dialog.open(o.i,{width:"420px",panelClass:["global-dialog","blue-bg","fix-confirmation-dialog"],hasBackdrop:!1,data:{type:e,title:"error"===e?this.trs.trsTs("error"):"",description:"error"===e?r:this.trs.trsTs("eon.successPasswordChange")}}).afterClosed().subscribe(()=>{})}handleError(e){switch(e.status){case 401:return void this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.password401"));case 406:return void this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.password406"));case 408:return void this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.password408"));default:return void this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.default"))}}closeDialog(){this.dialogRef.close()}}return e.\u0275fac=function(r){return new(r||e)(i.Y36(t.qu),i.Y36(a.uw),i.Y36(a.so),i.Y36(d.x),i.Y36(c.$),i.Y36(u.D),i.Y36(a.WI))},e.\u0275cmp=i.Xpm({type:e,selectors:[["app-change-username-password-dialog"]],decls:14,vars:13,consts:[[1,"dialog-header"],[1,"title"],[1,"description","mb24"],[1,"dialog-content"],[3,"formGroup",4,"ngIf"],[1,"download-wrapper","mobile-fix","button-modal","pb-0","space"],[3,"disabled","click"],["class","btn-1 radius100 background-2 ladda-fix",3,"ladda",4,"ngIf"],["class","btn-1 radius100 background-2 ladda-fix",3,"ladda","click",4,"ngIf"],[3,"formGroup"],["floatLabel","never",1,"input-type","style-type-1","w100","w-100","mb-16"],["matInput","","formControlName","username","autocomplete","off",3,"placeholder"],["class","font-regular font-size-14",4,"ngIf"],["matInput","","formControlName","usernameRepeat","autocomplete","off",3,"placeholder"],[1,"font-regular","font-size-14"],[1,"mb-16"],["floatLabel","never",1,"input-type","style-type-1","w100","w-100"],["matInput","","formControlName","currentPassword","autocomplete","off",3,"type","placeholder"],["matSuffix","",1,"show-pass-icon",3,"click"],[4,"ngIf"],["matInput","","formControlName","newPassword","autocomplete","off","maxlength","64",3,"type","placeholder","input"],["matInput","","formControlName","repeatNewPassword","autocomplete","off","maxlength","64",3,"type","placeholder","input"],["class","mat-custom-error",4,"ngIf"],[1,"mat-custom-error"],[1,"btn-1","radius100","background-2","ladda-fix",3,"ladda"],[1,"btn-1","radius100","background-2","ladda-fix",3,"ladda","click"]],template:function(e,r){1&e&&(i.TgZ(0,"header",0),i.TgZ(1,"h3",1),i._uU(2),i.qZA(),i.TgZ(3,"div",2),i._uU(4),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.YNc(6,Z,9,9,"form",4),i.YNc(7,J,22,19,"form",4),i.qZA(),i.TgZ(8,"footer",5),i.TgZ(9,"button",6),i.NdJ("
1click",function(){return r.closeDialog()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.YNc(12,y,3,4,"button",7),i.YNc(13,F,3,4,"button",8),i.qZA()),2&e&&(i.xp6(2),i.hij(" ",r.trs.trsTs("username"===r.data.type?"eon.changeUsername":"eon.changePassword")," "),i.xp6(2),i.hij(" ",r.trs.trsTs("username"===r.data.type?"eon.changeUsernameDesc":"eon.changePasswordDesc")," "),i.xp6(2),i.Q6J("ngIf","username"===r.data.type),i.xp6(1),i.Q6J("ngIf","password"===r.data.type),i.xp6(2),i.Gre("btn-1 radius100 background-4 download ",r.isChangePasswordSubmitted?"disabled":"",""),i.Q6J("disabled",r.isChangePasswordSubmitted),i.xp6(1),i.hij(" ",i.lcZ(11,11,"cancel")," "),i.xp6(2),i.Q6J("ngIf","username"===r.data.type),i.xp6(1),i.Q6J("ngIf","password"===r.data.type))},directives:[l.O5,t._Y,t.JL,t.sg,p.KE,g.Nt,t.Fj,t.JJ,t.u,p.TO,w.Hw,p.R9,t.nD,h.d_],pipes:[m.X$],encapsulation:2}),e})()}}]);
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.