PageSourceSearch

https://www.cewe.be/nl/asset/account/831.a3590c9668b1bb26.js

js cewe.be collected 2026-10-01 15:56:16 UTC 15,645 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaccount=self.webpackChunkaccount||[]).push([[831],{3831(N,y,l){l.d(y,{LoginDataComponent:()=>$});var r=l(6563),o=l(7323),p=l(53),u=l(4456),f=l(2333),w=l(1559),d=l(9546),_=l(271),h=l(4574),m=l(701),C=l(1615),e=l(6124);const v=(a,c)=>[a,c];function b(a,c){1&a&&e.nrm(0,"cw-global-loading")}function M(a,c){if(1&a&&(e.j41(0,"div",2)(1,"p"),e.EFF(2),e.nI1(3,"t"),e.k0s(),e.j41(4,"p",3),e.EFF(5),e.k0s()()),2&a){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"change.email.heading.current")),e.R7$(3),e.JRh(t.currentUser.login)}}function S(a,c){if(1&a){const t=e.RV6();e.j41(0,"div",4),e.nrm(1,"cw-hint",5),e.nI1(2,"t"),e.k0s(),e.j41(3,"cw-button",6),e.nI1(4,"t"),e.bIt("click",function(){r.eBV(t);const s=e.XpG();return r.Njj(s.goToSsoMyAccount())}),e.k0s()}2&a&&(e.R7$(),e.Y8G("text",e.bMT(2,4,"change.email.sso")),e.R7$(2),e.Y8G("dataItName","show-sso-account-button")("text",e.bMT(4,6,"change.email.sso.button"))("buttonType","primary"))}function P(a,c){if(1&a){const t=e.RV6();e.j41(0,"div")(1,"cw-address-layout-form",7),e.bIt("send",function(s){r.eBV(t);const i=e.XpG();return r.Njj(i.onSubmit(s))}),e.nrm(2,"cw-button",8),e.nI1(3,"t"),e.k0s()()}if(2&a){const t=e.XpG();e.R7$(),e.Y8G("addressLayout",t.layout)("focusAllowed",!1)("customValidators",e.l_i(8,v,t.LOGIN_VALIDATOR,t.CURRENT_LOGIN_IDENTICAL_VALIDATOR(t.currentUser))),e.R7$(),e.Y8G("dataItName","submit-email-change-button")("text",e.bMT(3,6,"change.email.submit"))("buttonType","primary")}}const T=a=>({validatorFn:c=>{const t="login",s=(0,o.Pd)(c,t),i=(0,o.Pd)(c,"login_repeat");return{success:!s.value||!i.value||a&&s.value!==a.login,fieldName:t,fieldPath:s.path,errorMessage:"change.email.validation.CURRENT_LOGIN_IDENTICAL"}}});let L=(()=>{class a extends f.Y{constructor(){super(),this.personalDataService=(0,r.WQX)(w.G),this.userSessionService=(0,r.WQX)(d.hG),this.calloutService=(0,r.WQX)(o._v),this.configService=(0,r.WQX)(m.H),this.redirectService=(0,r.WQX)(C.r),this.layout={rows:[{fields:[{name:"login",width:"100%",label:"change.email.form.new",mandatory:!0,maxLength:80,type:"email",isBonusCard:!1,minVisibleLength:null,autoComplete:"email"}]},{fields:[{name:"login_repeat",width:"100%",label:"change.email.form.confirm",mandatory:!0,maxLength:80,type:"email",isBonusCard:!1,minVisibleLength:null,autoComplete:"email"}]},{fields:[{name:"current_password",width:"100%",label:"change.email.form.current.pw",mandatory:!0,hasPasswordMeter:!1,autoComplete:"current-password",maxLength:80,type:"password",isBonusCard:!1,minVisibleLength:null,ignoreMinLength:!0,fieldHint:"change.email.form.current.pw.hint"}]}]},this.CURRENT_LOGIN_IDENTICAL_VALIDATOR=T,this.LOGIN_VALIDATOR=d.TM,this.userSessionService.getCurrentUserSession$().pipe((0,_.T)(t=>t.user)).subscribe(t=>this.currentUser=t)}onSubmit(t){if(t.valid){const n=(0,o.zi)(t),s=(0,o.on)(n,"login").value,i=(0,o.on)(n,"current_password").value;this.loading=!0,this.personalDataService.changeEmail(s,i).subscribe({next:g=>this.handleResult(t,g),error:()=>this.handleError(t)})}}handleResult(t,n){if(this.loading=!1,!n.error)return t.reset(),t.markAsUntouched(),this.addressLayoutForm.resetPasswordMeterInfo(),void this.calloutService.displayCloseableMsg({text:"change.email.success",type:"information-message"});this.calloutService.displayCloseableMsg(n.errorCode?{text:`change.email.fail.${n.errorCode}`,fallbackText:"change.email.fail",type:"warning-message"}:{text:"change.email.fail",type:"warning-message"})}handleError(t){this.loading=!1,this.calloutService.displayCloseableMsg({text:"change.email.fail",type:"warning-message"})}isSSO(){return 0!==this.configService.getKeyAccountConfig().ssoInformation.length}goToSsoMyAccount(){this.redirectService.redirectTo(this.configService.getKeyAccountConfig().ssoInformation[0].myAccountTarget)}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["cw-change-email"]],viewQuery:function(n,s){if(1&n&&e.GBs(h.Es,5),2&n){let i;e.mGM(i=e.lsd())&&(s.addressLayoutForm=i.first)}},features:[e.Vt3],decls:8,vars:6,consts:[[1,"email-tile"],[1,"email-tile-title"],[1,"email-tile-current"],[1,"email-tile-current-value"],[1,"sso-hint"],[3,"text"],[1,"button",3,"click","dataItName","text","buttonType"],[1,"email-tile-form",3,"send","addressLayout","focusAllowed","customValidators"],["type","submit",1,"button",3,"dataItName","text","buttonType"]],template:function(n,s){1&n&&(e.j41(0,"cw-tile",0),e.nVh(1,b,1,0,"cw-global-loading"),e.j41(2,"h2",1),e.EFF(3),e.nI1(4,"t"),e.k0s(),e.nVh(5,M,6,4,"div",2),e.nVh(6,S,5,8)(7,P,4,11,"div"),e.k0s()),2&n&&(e.R7$(),e.vxM(s.loading?1:-1),e.R7$(2),e.JRh(e.bMT(4,4,s.isSSO()?"change.login.data.sso":"change.email.heading")),e.R7$(2),e.vxM(s.currentUser?5:-1),e.R7$(),e.vxM(s.isSSO()?6:7))}
1,dependencies:[o.Qp,u.YN,u.X1,o.my,h.Es,o.h6,o.p5,p.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.email-tile[_ngcontent-%COMP%]{width:100%}@media(min-width:769px){.email-tile[_ngcontent-%COMP%]{padding:0 7rem}}.email-tile[_ngcontent-%COMP%]   .email-tile-form[_ngcontent-%COMP%]     .field{padding:0}.email-tile-current[_ngcontent-%COMP%]{margin:1rem 0 2rem}.email-tile-current-value[_ngcontent-%COMP%]{color:#6f6f6f}.button[_ngcontent-%COMP%]{display:flex;justify-content:center}.email-tile-title[_ngcontent-%COMP%]{font-size:18px;text-align:center;font-weight:700;padding-bottom:1rem}.sso-hint[_ngcontent-%COMP%]{margin:2rem 0}"]})}}return a})();function O(a,c){1&a&&e.nrm(0,"cw-global-loading")}let I=(()=>{class a extends f.Y{constructor(){super(),this.personalDataService=(0,r.WQX)(w.G),this.calloutService=(0,r.WQX)(o._v),this.configService=(0,r.WQX)(m.H),this.loading=!1,this.validators=[],this.errorMessageParams={change_password_password:this.configService.getMinPasswordLength().toString(),change_password_password_repeat:this.configService.getMinPasswordLength().toString()},this.layout={rows:[{fields:[{name:"change_password_current_password",width:"100%",label:"change.password.form.current",mandatory:!0,hasPasswordMeter:!1,autoComplete:"current-password",maxLength:80,type:"password",isBonusCard:!1,minVisibleLength:null,ignoreMinLength:!0}]},{fields:[{name:"change_password_password",width:"100%",label:"change.password.form.new",mandatory:!0,hasPasswordMeter:!0,autoComplete:"new-password",maxLength:80,type:"password",isBonusCard:!1,minVisibleLength:null}]},{fields:[{name:"change_password_password_repeat",width:"100%",label:"change.password.form.confirm",mandatory:!0,autoComplete:"new-password",maxLength:80,type:"password",isBonusCard:!1,minVisibleLength:null}]}]},this.validators.push((0,d.sC)("change_password_password","change_password_password_repeat")),this.configService.getAppConfig().strictPasswordCriteria&&this.validators.push((0,d.wi)("change_password_password"))}submitPassword(t){if(t.markAllAsTouched(),"VALID"===t.status){this.loading=!0;const n=(0,o.zi)(t),s=(0,o.on)(n,"change_password_password").value,i=(0,o.on)(n,"change_password_current_password").value;this.personalDataService.changePassword(i,s).subscribe({next:g=>this.handleResponse(t,g),error:()=>this.handleError()})}}handleResponse(t,n){if(this.loading=!1,!n.error)return t.reset(),t.markAsUntouched(),this.addressLayoutForm.resetPasswordMeterInfo(),void this.calloutService.displayCloseableMsg({text:"change.password.success",type:"information-message"});this.calloutService.displayCloseableMsg(n.errorCode?{text:`change.password.fail.${n.errorCode}`,fallbackText:"change.password.fail",type:"warning-message"}:{text:"change.password.fail",type:"warning-message"})}handleError(){this.loading=!1,this.calloutService.displayCloseableMsg({text:"change.password.fail",type:"warning-message"})}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["cw-change-password"]],viewQuery:function(n,s){if(1&n&&e.GBs(h.Es,5),2&n){let i;e.mGM(i=e.lsd())&&(s.addressLayoutForm=i.first)}},inputs:{loading:"loading"},features:[e.Vt3],decls:12,vars:18,consts:[[1,"change-pw-tile"],[1,"change-pw-title"],[1,"change-pw-hint"],[3,"send","addressLayout","loading","errorMessageParams","customValidators","focusAllowed"],[1,"change-pw-button"],[3,"dataItName","text","disabled","buttonType"]],template:function(n,s){1&n&&(e.j41(0,"cw-tile",0),e.nVh(1,O,1,0,"cw-global-loading"),e.j41(2,"h2",1),e.EFF(3),e.nI1(4,"t"),e.k0s(),e.j41(5,"p",2),e.EFF(6),e.nI1(7,"t"),e.k0s(),e.j41(8,"cw-address-layout-form",3),e.bIt("send",function(g){return s.submitPassword(g)}),e.j41(9,"div",4),e.nrm(10,"cw-button",5),e.nI1(11,"t"),e.k0s()()()),2&n&&(e.R7$(),e.vxM(s.loading?1:-1),e.R7$(2),e.JRh(e.bMT(4,12,"change.password.title")),e.R7$(3),e.JRh(e.bMT(7,14,"change.password.hint")),e.R7$(2),e.Y8G("addressLayout",s.layout)("loading",s.loading)("errorMessageParams",s.errorMessageParams)("customValidators",s.validators)("focusAllowed",!1),e.R7$(2),e.Y8G("dataItName","sumbmit-password-change-button")("text",e.bMT(11,16,"change.password.submit"))("disabled",s.loading)("buttonType","primary"))},dependencies:[o.my,u.X1,h.Es,o.Qp,o.h6,p.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}@media(min-width:769px){.change-pw-tile[_ngcontent-%COMP%]{padding:0 7rem}}.change-pw-tile[_ngcontent-%COMP%]     .field{padding:0}.change-pw-tile[_ngcontent-%COMP%]   .change-pw-hint[_ngcontent-%COMP%]{padding:1rem 0}.change-pw-tile[_ngcontent-%COMP%]   .change-pw-title[_ngcontent-%COMP%]{font-size:18px;text-align:center;font-weight:700;padding-bottom:1rem}.change-pw-tile[_ngcontent-%COMP%]   .change-pw-button[_ngcontent-%COMP%]{text-align:center}"]})}}return a})();var x=l(9307);let R=(()=>{class a extends f.Y{constructor(){super(),this.configService=(0,r.WQX)(m.H),this.redirectService=(0,r.WQX)(C.r),this.userSessionService=(0,r.WQX)(d.hG),this.personalDataService=(0,r.WQX)(w.G),this.calloutService=(0,r.WQX)(o._v),this.errorMessageParams={password:this.configService.getMinPasswordLength().toString(),password_repeat:this.configService.getMinPasswordLength().toString()},this.loading=!1,this.validators=[],this.layout={rows:[{fields:[{name:"password",width:"100%",label:"change.password.form.new",mandatory:!0,hasPasswordMeter:!0,autoComplete:"new-password",maxLength:80,type:"password",isBonusCard:!1,minVisibleLength:null},{name:"password_repeat",width:"100%",label:"change.password.form.confirm",mandatory:!0,autoComplete:"new-password",maxLength:80,type:"password",isBonusCard:!1,minVisibleLength:null}]}]},this.validators.push(d.T5),this.configService.getAppConfig().strictPasswordCriteria&&this.validators.push(d.rx)}getEmail(){return this.userSessionService.getCurrentSessionInfo().user.login}getSsoType(){return this.userSessionService.getCurrentSessionInfo().user.lastLoginWith}submitDisconnect(t){if(t.markAllAsTouched(),"VALID"===t.status){this.loading=!0;const n=(0,o.zi)(t),s=(0,o.on)(n,"password").value;this.safeSubscribe(this.personalDataService.disconnectSsoUser(s).subscribe({next:i=>this.handleResponse(t,i),error:()=>this.handleError()}))}}handleResponse(t,n){if(this.loading=!1,!n.error)return t.reset(),t.markAsUntouched(),this.addressLayoutForm.resetPasswordMeterInfo(),void this.configService.initKeyAccountConfig().subscribe(()=>{this.redirectService.localRedirectTo(x.eU).then(()=>{this.calloutService.displayCloseableMsg({text:"personal.data.sso.disconnect.success",type:"information-message"})})});this.calloutService.displayCloseableMsg(n.errorCode?{text:`personal.data.sso.disconnect.fail.${n.errorCode}`,fallbackText:"personal.data.sso.disconnect.fail",type:"warning-message"}:{text:"personal.data.sso.disconnect.fail",type:"warning-message"})}handleError(){this.loading=!1,this.calloutService.displayCloseableMsg({text:"personal.data.sso.disconnect.fail",type:"warning-message"})}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["cw-sso-disconnect"]],viewQuery:function(n,s){if(1&n&&e.GBs(h.Es,5),2&n){let i;e.mGM(i=e.lsd())&&(s.addressLayoutForm=i.first)}},features:[e.Vt3],decls:17,vars:29,consts:[[1,"sso-disconnect-title"],[1,"sso-disconnect-hints"],[1,"sso-disconnect-description"],[3,"innerHTML"],[3,"send","addressLayout","loading","errorMessageParams","customValidators","focusAllowed"],[1,"create-account-button"],[3,"text","disabled","buttonType"]],template:function(n,s){1&n&&(e.j41(0,"cw-tile")(1,"h2",0),e.EFF(2),e.nI1(3,"t"),e.nI1(4,"t"),e.k0s(),e.j41(5,"div",1)(6,"p",2),e.EFF(7),e.nI1(8,"t"),e.nI1(9,"t"),e.k0s(),e.nrm(10,"p",3),e.nI1(11,"t"),e.nI1(12,"t"),e.k0s(),e.j41(13,"cw-address-layout-form",4),e.bIt("send",function(g){return s.submitDisconnect(g)}),e.j41(14,"div",5),e.nrm(15,"cw-button",6),e.nI1(16,"t"),e.k0s()()()),2&n&&(e.R7$(2),e.SpI(" ",e.i5U(4,13,"personal.data.sso.disconnect.title",e.bMT(3,11,"personal.data.sso.type."+s.getSsoType()))),e.R7$(5),e.SpI(" ",e.i5U(9,18,"personal.data.sso.disconnect.description",e.bMT(8,16,"personal.data.sso.type."+s.getSsoType()))),e.R7$(3),e.Y8G("innerHTML",e.brH(12,23,"personal.data.sso.disconnect.email.hint",s.getEmail(),e.bMT(11,21,"personal.data.sso.type."+s.getSsoType())),e.npT),e.R7$(3),e.Y8G("addressLayout",s.layout)("loading",s.loading)("errorMessageParams",s.errorMessageParams)("customValidators",s.validators)("focusAllowed",!1),e.R7$(2),e.Y8G("text",e.bMT(16,27,"personal.data.sso.disconnect.submit"))("disabled",s.loading)("buttonType","primary"))},dependencies:[o.my,h.Es,o.Qp,p.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}cw-tile[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media(min-width:1024px){cw-tile[_ngcontent-%COMP%]{padding:0 5rem}}.sso-disconnect-title[_ngcontent-%COMP%]{font-size:18px;text-align:center;font-weight:700}.sso-disconnect-description[_ngcontent-%COMP%]{padding:2rem 0 3rem}@media(min-width:769px){.sso-disconnect-hints[_ngcontent-%COMP%]{padding:0 1rem 2rem}}.sso-disconnect-hints[_ngcontent-%COMP%]{padding-bottom:2rem}.create-account-button[_ngcontent-%COMP%]{text-align:center}"]})}}return a})();var E=l(9664);function V(a,c){1&a&&e.nrm(0,"cw-change-email")}function A(a,c){1&a&&e.nrm(0,"cw-change-password")}function D(a,c){1&a&&e.nrm(0,"cw-sso-disconnect")}let $=(()=>{class a{constructor(){this.configService=(0,r.WQX)(m.H),this.userSessionService=(0,r.WQX)(d.hG)}isSSO(){return 0!==this.configService.getKeyAccountConfig().ssoInformation.length}isThirdPartySSO(){return this.userSessionService.isThirdPartySsoUser()}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["cw-login-data"]],decls:4,vars:5,consts:[[3,"parent","page"]],template:function(n,s){1&n&&(e.j41(0,"cw-account-page-template",0),e.nVh(1,V,1,0,"cw-change-email"),e.nVh(2,A,1,0,"cw-change-password"),e.nVh(3,D,1,0,"cw-sso-disconnect"),e.k0s()),2&n&&(e.Y8G("parent","personal.data")("page","login.data"),e.R7$(),e.vxM(s.isThirdPartySSO()?-1:1),e.R7$(),e.vxM(s.isSSO()||s.isThirdPartySSO()?-1:2),e.R7$(),e.vxM(s.isThirdPartySSO()?3:-1))},dependencies:[E.k,L,I,R],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{--max-width-child: 768px}[_nghost-%COMP%]   cw-change-email[_ngcontent-%COMP%], [_nghost-%COMP%]   cw-change-password[_ngcontent-%COMP%], [_nghost-%COMP%]   cw-sso-disconnect[_ngcontent-%COMP%]{margin-bottom:2rem;width:100%}"]})}}return a})()}}]);

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.