1"use strict";(self.webpackChunkselfcarearea=self.webpackChunkselfcarearea||[]).push([[7848],{17848(B,g,t){t.d(g,{LoginEmailContainerModule:()=>X});var M=t(44181),c=t(23321),A=t(51772),I=t(37754),d=t(92019),h=t(16317),S=t(75089),y=t(79608),C=t(74683),p=t(97253),v=t(48857),F=t(15510),L=t(50596),R=t(82305),r=t(28941),s=t(20340),N=t(13709),l=function(e){return e.UserNotFoundException="UserNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.ResourceNotFoundException="ResourceNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.InvalidParameterException="InvalidParameterException",e.InternalErrorException="InternalErrorException",e}(l||{});const T=new Map([[l.UserNotFoundException,"emailNotRegistered"],[l.TooManyRequestsException,"tooManyRequests"],[l.ResourceNotFoundException,"resourceNotFound"],[l.NotAuthorizedException,"notAuthorizedServiceCall"],[l.InvalidParameterException,"serviceCallWithInvalidParameter"],[l.InternalErrorException,"invalidParameter"]]),u="email",E="username";var x=t(82480),n=t(51203),O=t(31628),U=t(51364),V=t(38946);let b=(()=>{class e extends C.tH{constructor(a,i,o,m,$){super(),this.loginEmailFacade=a,this.googleAnalyticsService=i,this.recaptchaService=o,this.translateService=m,this.activatedRoute=$,this.payOff={title:this.translateService.instant(r.KA.EMAIL.PAGE_TITLE),subtitle:this.translateService.instant(r.KA.EMAIL.PAGE_SUBTITLE)},this.enableSubmit=new p.B,this.createEmailForm(),this.subscribeVerifyUserError(),this.trackPageView(),this.formStatusChange()}onSubmitClick(){this.trackPageEvent(s.n5,s.S3,s.Op),this.loginEmailFacade.loadLoginEmail(this.emailForm.value.email?.trim()),this.recaptchaService.getReCaptchaAssessment(d._7.Login).subscribe()}createEmailForm(){this.formMap=new Map([[u,{valid:new p.B,formControlName:u,input:{inputFieldClasses:"dw-input-field-login",label:this.translateService.instant(r.KA.EMAIL.LABEL),leftIcon:"e-mail",inputType:u,inputId:E,inputName:E,placeholder:this.translateService.instant(r.KA.EMAIL.PLACEHOLDER),invalidMessage:this.translateService.instant(r.KA.EMAIL.FORMAT_ERROR)}}]]),this.emailForm=new c.J3({email:new c.hs(null,{validators:[c.k0.required],asyncValidators:[N.E.emailValidator(/^.+@.+\..{2,4}$/,this.formMap)]})})}subscribeVerifyUserError(){const a=this.formMap.get(u);this.loginEmailFacade.error$.pipe((0,v.Q)(this.componentIsDestroyed())).subscribe(i=>{const o=i?.error&&i.error,m=T.get(o)||null;a.valid.next(!1),a.input.invalidMessage=this.translateService.instant(o===l.UserNotFoundException?r.KA.EMAIL.USER_NOT_FOUND:r.KA.EMAIL.GENERIC_ERROR),o&&this.trackPageEvent(s.ff,s.S3,m)})}formStatusChange(){this.emailForm.statusChanges.pipe((0,v.Q)(this.componentIsDestroyed()),(0,F.F)(),(0,L.p)(a=>a===S.dE.Invalid)).subscribe(()=>{this.formMap.get(u).input.invalidMessage=this.translateService.instant(r.KA.EMAIL.FORMAT_ERROR)})}trackPageView(){this.activatedRoute.queryParams.pipe((0,R.s)(1)).subscribe(a=>{this.googleAnalyticsService.trackPageView({vehicleType:s.x3,creationNode:s.x3,appName:s.PA,pageName:s.BE,version:s.qN,businessType:null,campaignSource:a&&a[s.VU]?a[s.VU]:null})})}trackPageEvent(a,i,o,m){this.googleAnalyticsService.trackEvent(a,i,o,null,m)}static{this.\u0275fac=function(i){return new(i||e)(n.rXU(x.c),n.rXU(y.p),n.rXU(d.zJ),n.rXU(O.c$),n.rXU(U.nX))}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["conte-dw-login-email-container"]],standalone:!1,features:[n.Vt3],decls:1,vars:4,consts:[[3,"$emitSubmitClick","payOff","formMap","formGroup","enableSubmit"]],template:function(i,o){1&i&&(n.j41(0,"conte-dw-pure-login",0),n.bIt("$emitSubmitClick",function(){return o.onSubmitClick()}),n.k0s()),2&i&&n.Y8G("payOff",o.payOff)("formMap",o.formMap)("formGroup",o.emailForm)("enableSubmit",o.emailForm.valid)},dependencies:[V.X,c.cb,c.j4],encapsulation:2})}}return e})();var f=t(80226);const G=[{path:"",component:b}];let K=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=n.$C({type:e})}static{this.\u0275inj=f.G2t({imports:[h.iI.forChild(G),h.iI]})}}return e})(),X=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=n.$C({type:e})}static{this.\u0275inj=f.G2t({imports:[M.MD,K,A.Wmh,c.X1,d.Wh,I.h.forChild()]})}}return 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.