PageSourceSearch

https://www.avantiwestcoast.co.uk/train-tickets/981.4c7c5f3593db41be.js

js avantiwestcoast.co.uk collected 2026-09-24 17:12:21 UTC 92,326 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkPICOWeb=self.webpackChunkPICOWeb||[]).push([[981],{67981(ci,U,d){d.d(U,{LoginSignUpModule:()=>li});var h=d(49769),s=d(89417),X=d(72811),z=d(12616),x=d(93049),a=d(85802),w=d(30584),g=d(70631),F=d(95440),A=d(5859),V=d(9486),O=d(80459),M=d(34062),c=d(70307),Z=d(45312),f=d(36554),C=d(10017),_=d(39241),p=d(90647),e=d(35547),v=d(88834),$=d(92367),E=d(21518),b=d(33746),u=d(37936),k=d(13600),R=d(16675),P=d(93583),y=d(32079),j=d(84275);const I=i=>({"error-input-focus":i}),H=()=>[32];function K(i,n){1&i&&(e.j41(0,"li",51)(1,"p",54)(2,"Span",55),e.EFF(3,"Email :"),e.k0s(),e.EFF(4," Email is not valid."),e.k0s()())}function Q(i,n){1&i&&(e.j41(0,"li",52)(1,"p",56)(2,"span",57),e.EFF(3,"Email :"),e.k0s(),e.EFF(4," Please complete this mandatory field."),e.k0s()())}function W(i,n){1&i&&(e.j41(0,"li",52)(1,"p",56)(2,"span",57),e.EFF(3,"Email :"),e.k0s(),e.EFF(4," Invalid email address length. Please enter a valid email address."),e.k0s()())}function ee(i,n){1&i&&(e.j41(0,"li",53)(1,"p",58)(2,"span",59),e.EFF(3,"Password :"),e.k0s(),e.EFF(4," Please complete this mandatory field."),e.k0s()())}function te(i,n){if(1&i&&(e.j41(0,"div",48)(1,"ul",50),e.nVh(2,K,5,0,"li",51),e.nVh(3,Q,5,0,"li",52),e.nVh(4,W,5,0,"li",52),e.nVh(5,ee,5,0,"li",53),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.vxM(t.form.get("username").hasError("emailRegexError")&&t.isSubmitted?2:-1),e.R7$(),e.vxM(t.form.get("username").hasError("required")&&t.isSubmitted?3:-1),e.R7$(),e.vxM(t.form.get("username").hasError("maxlength")&&t.isSubmitted?4:-1),e.R7$(),e.vxM(t.form.get("password").hasError("required")&&t.isSubmitted?5:-1)}}function ie(i,n){1&i&&(e.j41(0,"div",49)(1,"p",60),e.EFF(2," Hmm, that\u2019s not quite right:\u200b \u200bThe details you\u2019ve typed are incorrect. Please try again "),e.k0s()())}function se(i,n){if(1&i&&(e.j41(0,"div",8)(1,"div",43)(2,"div",44),e.nrm(3,"img",45),e.k0s(),e.j41(4,"div",46)(5,"h2",47),e.EFF(6," Please amend the errors in the following mandatory fields. "),e.k0s(),e.nVh(7,te,6,4,"div",48),e.nVh(8,ie,3,0,"div",49),e.k0s()()()),2&i){const t=e.XpG();e.R7$(7),e.vxM(t.isSubmitted?7:-1),e.R7$(),e.vxM(t.invalidCredential?8:-1)}}function oe(i,n){1&i&&(e.j41(0,"div",15)(1,"span",61),e.EFF(2," Please complete this mandatory field. "),e.k0s()())}function ne(i,n){1&i&&(e.j41(0,"div",16)(1,"span",62),e.EFF(2," Email is not valid. "),e.k0s()())}function re(i,n){1&i&&(e.j41(0,"div",17)(1,"span",63),e.EFF(2," Invalid email address length. Please enter a valid email address. "),e.k0s()())}function ae(i,n){1&i&&(e.j41(0,"span",27),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function de(i,n){1&i&&(e.j41(0,"p",28),e.EFF(1," Caps lock is on "),e.k0s())}let le=(()=>{class i{constructor(t,r){this.formbulider=t,this.injector=r,this.showBanner=!1,this.verifyPasswordFieldTextType=!1,this.invalidCredential=!1,this.isLoginButtonDisabled=!1,this.isSubmitted=!1,this.form=this.formbulider.group({username:["",[s.k0.required,s.k0.maxLength(253)]],password:["",[s.k0.required]],rememberme:[""]},{validator:[(0,p.kV)("username")]}),this.submitEM=new a.bkB,this.customerServiceService=this.injector.get(w.B),this.router=this.injector.get(g.Ix),this.sharedServices=this.injector.get(F.d),this.storageDataService=this.injector.get(V.h),this.myAccountService=this.injector.get(M.j),this.appRouteEnum=this.injector.get(c.Gg),this.spinnerService=this.injector.get(f.ex),this.commonService=this.injector.get(C.e),this.ga4dataLayerService=this.injector.get(_.j),this.getPreferencesRequest=new O.QJ}ngOnInit(){this.sharedServices.capsLockOn.subscribe(t=>{this.capsLock="sip-password-input"==t.id||"sip-password-visible-hide-icon"==t.id?t.value:2}),this.ga4dataLayerService.loadGA4DataLayerAllPages(!0),null!==localStorage.getItem("RememberMe")?(this.form.get("username").setValue(localStorage.getItem("UserNameRM")),this.form.get("password").setValue(""),this.form.get("rememberme").setValue(!0)):this.form.reset(),this.spinnerService.hide()}forgotPassword(){this.router.navigate(["./"+this.appRouteEnum.ForgotPassword])}registerForm(){this.router.navigate(["./"+this.appRouteEnum.Register])}submit(){if(this.invalidCredential=!1,this.form.patchValue({username:this.form?.value?.username?.trim()}),this.form.valid){this.submitEM.emit(this.form.value);let t=this.form.value;t.rememberme?(localStorage.setItem("UserNameRM",t.username),localStorage.setItem("RememberMe","true")):(localStorage.removeItem("UserNameRM"),localStorage.removeItem("RememberMe")),this.checkCustomerLogin(t)}else this.isSubmitted=!0,this.showBanner=!0,this.ga4dataLayerService.loadGA4DataLayerForLoginFailure(this.form.get("username").value,this.form.get("password").value)}checkCustomerLogin(t){this.commonService.loaderRequired=!0,this.customerLoginRequest=new A.h,this.customerLoginRequest.Password=t.password,this.customerLoginRequest.UserEmail=t.username,this.customerServiceService.checkCustomerLogin(this.customerLoginRequest).subscribe(r=>{null!=r&&(this.responseData=r,"200"==this.responseData.ResponseCode?(this.isLoginButtonDisabled=!0,this.customerLoginResponse=this.responseData.Data,this.customerLoginResponse.IsAuthenticated?(this.invalidCredential=!1,this.showBanner=!1,localStorage.setItem("CustomerKey",this.customerLoginResponse.CustomerDetail.CustomerKey),sessionStorage.setItem("CustomerKey",this.customerLoginResponse.CustomerDetail.CustomerKey),localStorage.getItem("CustomerKey")?(localStorage.setItem("Title",this.customerLoginResponse.CustomerDetail.Title),this.storageDataService.clearLocalStorageData("customerLoginResponse"),this.storageDataService.setLocalStorageData("customerLoginResponse",this.customerLoginResponse,!0),localStorage.setItem("Email",this.customerLoginResponse.CustomerDetail.Email),localStorage.setItem("OriginalEmail",this.customerLoginResponse.CustomerDetail.OriginalEmail),localStorage.setItem("FirstName",this.customerLoginResponse.CustomerDetail.FirstName),localStorage.setItem("LastName",this.customerLoginResponse.CustomerDetail.LastName),localStorage.setItem("UserName",this.customerLoginResponse.CustomerDetail.UserName),sessionStorage.setItem("Email",this.customerLoginResponse.CustomerDetail.Email),this.sharedServices.sendCustomerData(this.customerLoginResponse.CustomerDetail.FirstName,this.customerLoginResponse.CustomerDetail.LastName),this.ga4dataLayerService.loadGA4DataLayerForLoginSuccess(),this.getMyPreferences(this.customerLoginResponse.CustomerDetail)):(this.isLoginButtonDisabled=!1,this.showBanner=!0,this.invalidCredential=!0,this.spinnerService.hide(),this.accountLockoutMessage="You\u2019ll need to enable required cookies in your browser settings to continue using our website. This way we can provide you with personalised information.")):(this.isLoginButtonDisabled=!1,this.showBanner=!0,this.invalidCredential=!0,this.spinnerService.hide(),this.accountLockoutMessage=this.responseData.Data.ResponseMessage)):(this.spinnerService.hide(),this.isLoginButtonDisabled=!1))},r=>{this.spinnerService.hide()})}getMyPreferences(t){this.commonService.loaderRequired=!0,this.getPreferencesRequest.CustomerKey=t.CustomerKey,this.getPreferencesRequest.Email=t.Email,this.getPreferencesRequest.IsMasterData=!1,this.getPreferencesRequest.IsMyPreferencesPage=!1,this.myAccountService.getMyPreferences(this.getPreferencesRequest).subscribe(r=>{null!=r?(this.responseData=r,"200"==this.responseData.ResponseCode&&(this.myPreferencesResponse=this.responseData.Data,this.storageDataService.clearLocalStorageData("myPreferencesResponse"),this.storageDataService.setLocalStorageData("myPreferencesResponse",this.myPreferencesResponse,!0),this.router.url.includes(this.appRouteEnum.MyBookings)?this.router.navigateByUrl("/"+this.appRouteEnum.MyBookings):this.router.url.includes(this.appRouteEnum.MyPreferences)?this.router.navigateByUrl("/"+this.appRouteEnum.MyPreferences):this.router.url.includes(this.appRouteEnum.PaymentsAndVouchers)?this.router.navigateByUrl("/"+this.appRouteEnum.PaymentsAndVouchers):this.router.url.includes(this.appRouteEnum.MyProfile)?this.router.navigateByUrl("/"+this.appRouteEnum.MyProfile):window.location.href=Z.c.qttUrl)):this.spinnerService.hide()})}hideBanner(){this.showBanner=!1}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(s.ok),e.rXU(a.zZn))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-login"]],inputs:{error:"error"},outputs:{submitEM:"submitEM"},standalone:!1,decls:55,vars:20,consts:[["id","sip-main",1,"sign-in-page-main","old-signin","text-center"],["id","sip-container",1,"container","plr-xs-5"],["id","sip-row",1,"row"],["
1id","sip-col",1,"col-md-12","p-0","d-flex","justify-content-center","mobile-sign-in-page"],["id","sip-form",3,"formGroup"],["id","sip-form-body",1,"sing-in-form-body"],["id","sip-header",1,"sign-in-form-header"],["id","sip-title",1,"sign-in-page-title"],["id","sip-error-body","role","alert",1,"common-error-container","text-start"],["id","email",1,"mb-12"],["id","sip-email-label",1,"font-dark","font-700","f-16","lh-22","mb-8","text-start"],["id","sip-email-mand",1,"dark-spark","font-700","f-16","lh-22"],["id","sip-email-mat-form","floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-input"],["id","sip-email-input","matInput","","placeholder","Enter your email address","type","text","formControlName","username","autocomplete","off","aria-labelledby","email",3,"ngClass","prevent-keys"],["id","sip-email-mat-error"],["id","sip-email-mand-div"],["id","sip-email-valid-error"],["id","sip-email-length-error"],["id","password",1,"mb-8","new-version-input"],["id","sip-password-label",1,"font-dark","font-700","f-16","lh-22","mb-8","text-start"],["id","sip-password-mand",1,"dark-spark","font-700","f-16","lh-22"],["id","sip-password-mat-form","floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-input"],["capsLockDetect","","id","sip-password-input","matInput","","aria-label","password","placeholder","Enter your password","formControlName","password",3,"capsLockOn","ngClass","type"],["id","sip-password-visible-btn","type","button","mat-icon-button","","matSuffix","",3,"click"],["id","sip-password-visible-mat-icon",1,"sign-in-mat-icon"],["id","sip-password-visible-hide-icon",1,"material-symbols-outlined","icon-font-size"],["id","sip-password-mat-error",1,"forgot-password-error"],["id","sip-password-mand-error",1,"dark-spark","f-12","lh-16","mb-0"],[1,"capslock-txt","mb-8"],["id","sip-forgot-password-div",1,"text-start","mb-24","forgot-password-sign-in"],["id","sip-forgot-password-btn","type","button","mat-button","",1,"font-700","f-16","lh-20","dark-spark","p-0","m-0","lh-0","price-promise",3,"click"],["id","sip-remember-main",1,"text-start","mb-24"],["id","sip-remember-label","for","remembermeInput",1,"c-pointer","mb-0"],["id","sip-remember-p",1,"f-14","lh-21","font-400","mb-0","d-flex","align-items-center","gap-08","word-break-word"],["id","sip-remember-input-area",1,"new-input-checkbox","top-3","position-relative"],["type","checkbox","id","remembermeInput","formControlName","rememberme"],["id","sip-remember-title",1,"text-21"],["id","sip-sign-btn","type","submit","mat-button","",1,"new-default-btn","w-100","w-xs-100",3,"click","disabled"],["id","sip-creat-an-account-area",1,"mt-24"],["id","sip-creat-an-account-btn","mat-button","",1,"font-700","f-16","lh-20","dark-spark","p-0","m-0","lh-0","price-promise",3,"click"],["id","sip-creat-an-account-icon",1,"ml-04","change-password-arrow"],["width","8","height","12","viewBox","0 0 8 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1.92989 0.666504L7.33073 5.99984L1.92989 11.3332L0.664062 10.0832L4.79908 5.99984L0.664062 1.9165L1.92989 0.666504Z","fill","#E42B00"],["id","sip-error-row",1,"common-error-row"],["id","sip-error-icon",1,"common-error-icon"],["id","sip-error-img","src","assets/images/change-email-error.svg","alt",""],["id","sip-error-msg-body",1,"common-error-msg"],["id","sip-error-msg-title",1,"text-start"],["id","sip-error-mand-email-password"],["id","sip-error-invalid"],["id","sip-error-mand-list",1,"signin-error-list"],["id","sip-error-email-valid"],["id","sip-error-email-mand"],["id","sip-error-password-mand"],["id","sip-error-email-valid-msg"],["id","sip-error-email-title",1,"font-500"],["id","sip-error-email-mand-msg"],["id","sip-error-email-mand-title",1,"font-500"],["id","sip-error-password-mand-msg"],["id","sip-error-password-mand-title",1,"font-500"],["id","sip-error-invalid-msg"],["id","sip-email-mand-msg",1,"dark-spark","f-12","lh-16","mb-0"],["id","sip-email-valid-error-msg",1,"dark-spark","f-12","lh-16","mb-0"],["id","sip-email-length-error-msg",1,"dark-spark","f-12","lh-16","mb-0"]],template:function(r,o){1&r&&(e.nrm(0,"app-header"),e.j41(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"form",4)(6,"div",5)(7,"div",6)(8,"h1",7),e.EFF(9,"Sign in to your account"),e.k0s()(),e.nVh(10,se,9,2,"div",8),e.j41(11,"div",9)(12,"div",10),e.EFF(13," Email"),e.j41(14,"span",11),e.EFF(15,"*"),e.k0s()(),e.j41(16,"mat-form-field",12),e.nrm(17,"input",13),e.j41(18,"mat-error",14),e.nVh(19,oe,3,0,"div",15),e.nVh(20,ne,3,0,"div",16),e.nVh(21,re,3,0,"div",17),e.k0s()()(),e.j41(22,"div",18)(23,"div",19),e.EFF(24," Password"),e.j41(25,"span",20),e.EFF(26,"*"),e.k0s()(),e.j41(27,"mat-form-field",21)(28,"input",22),e.bIt("capsLockOn",function(m){return o.capsLock=m}),e.k0s(),e.j41(29,"button",23),e.bIt("click",function(){return o.verifyPasswordFieldTextType=!o.verifyPasswordFieldTextType}),e.j41(30,"mat-icon",24)(31,"span",25),e.EFF(32),e.k0s()()(),e.j41(33,"mat-error",26),e.nVh(34,ae,2,0,"span",27),e.k0s()()(),e.nVh(35,de,2,0,"p",28),e.j41(36,"div",29)(37,"button",30),e.bIt("click",function(){return o.forgotPassword()}),e.EFF(38,"Forgotten password?"),e.k0s()(),e.j41(39,"div",31)(40,"label",32)(41,"p",33)(42,"span",34),e.nrm(43,"input",35),e.k0s(),e.j41(44,"span",36),e.EFF(45," Remember me on this device "),e.k0s()()()(),e.j41(46,"button",37),e.bIt("click",function(){return o.submit()}),e.EFF(47," Sign in "),e.k0s(),e.j41(48,"div",38)(49,"button",39),e.bIt("click",function(){return o.registerForm()})("click",function(){return o.registerForm()}),e.EFF(50," Create an account "),e.j41(51,"span",40),a.qSk(),e.j41(52,"svg",41),e.nrm(53,"path",42),e.k0s()()()()()()()()()(),a.joV(),e.nrm(54,"app-footer")),2&r&&(e.R7$(5),e.Y8G("formGroup",o.form),e.R7$(5),e.vxM(o.form.invali
1d&&o.showBanner||o.invalidCredential&&o.showBanner?10:-1),e.R7$(7),e.Y8G("ngClass",e.eq3(15,I,o.form.controls.username.invalid&&o.isSubmitted))("prevent-keys",e.lJ4(17,H)),e.R7$(2),e.vxM(o.form.get("username").hasError("required")&&o.isSubmitted?19:-1),e.R7$(),e.vxM(o.form.get("username").hasError("emailRegexError")&&o.isSubmitted?20:-1),e.R7$(),e.vxM(o.form.get("username").hasError("maxlength")&&o.isSubmitted?21:-1),e.R7$(7),e.Y8G("ngClass",e.eq3(18,I,o.form.controls.password.invalid&&o.isSubmitted))("type",o.verifyPasswordFieldTextType?"text":"password"),e.R7$(),e.BMQ("aria-label",o.verifyPasswordFieldTextType?"Hide password":"Show password")("aria-pressed",o.verifyPasswordFieldTextType),e.R7$(3),e.SpI(" ",o.verifyPasswordFieldTextType?"visibility":"visibility_off"," "),e.R7$(2),e.vxM(o.form.get("password").hasError("required")&&o.isSubmitted?34:-1),e.R7$(),e.vxM(1===o.capsLock?35:-1),e.R7$(11),e.Y8G("disabled",o.isLoginButtonDisabled))},dependencies:[h.YU,v.$z,$.iY,E.An,b.fg,u.rl,u.TL,u.yw,s.qT,s.me,s.Zm,s.BC,s.cb,s.j4,s.JD,k.PW,R.l,P.n,y.P,j.X],styles:[".sign-in-page-main[_ngcontent-%COMP%]{padding:96px 0}.sign-in-page-title[_ngcontent-%COMP%]{color:#004f59;text-align:center;font-size:28px;font-weight:600;line-height:35px;margin-bottom:36px}.sing-in-form-body[_ngcontent-%COMP%]{width:538px}.change-password-arrow[_ngcontent-%COMP%]{top:-1px;left:0;position:relative}.error-input-focus[_ngcontent-%COMP%]{border:1px solid #E42B00!important;box-shadow:none!important;border-radius:5px}@media(max-width:767px){.sign-in-page-main[_ngcontent-%COMP%]{padding:64px 10px}.forgot-password-sign-in[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:0!important}.sign-in-mat-icon[_ngcontent-%COMP%]{font-size:20px!important}.icon-font-size[_ngcontent-%COMP%]{font-size:92%!important}.sing-in-form-body[_ngcontent-%COMP%]{padding:0 20px!important}}@media(max-width:539px){.mobile-sign-in-page[_ngcontent-%COMP%]{width:100%;display:block!important;padding:0 20px!important}.sing-in-form-body[_ngcontent-%COMP%]{width:100%;padding:0!important}}"]})}}return i})();var ce=d(77352),S=d(40291);const me=i=>({"error-input-focus":i}),pe=()=>[32];function ue(i,n){1&i&&(e.j41(0,"span",15),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function he(i,n){1&i&&(e.j41(0,"span",16),e.EFF(1," Email is not valid. "),e.k0s())}function ge(i,n){1&i&&(e.j41(0,"span",17),e.EFF(1," Invalid email address length. Please enter a valid email address. "),e.k0s())}function fe(i,n){if(1&i&&(e.j41(0,"p",18),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.error," ")}}function Ce(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",3)(1,"form",5),e.bIt("ngSubmit",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.submit())}),e.j41(2,"div",6)(3,"h1",7),e.EFF(4,"Reset Password"),e.k0s(),e.j41(5,"p",8),e.EFF(6," We\u2019ll email you a link to reset your password. "),e.k0s(),e.j41(7,"div",9)(8,"div",10),e.EFF(9," Email address"),e.j41(10,"span",11),e.EFF(11,"*"),e.k0s()(),e.j41(12,"mat-form-field",12),e.nrm(13,"input",13),e.j41(14,"mat-error",14),e.nVh(15,ue,2,0,"span",15),e.nVh(16,he,2,0,"span",16),e.nVh(17,ge,2,0,"span",17),e.k0s()(),e.nVh(18,fe,2,1,"p",18),e.j41(19,"div",19)(20,"span",20),e.EFF(21," Enter the email address associated with your account "),e.k0s()()(),e.j41(22,"button",21),e.EFF(23," Send email "),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("formGroup",t.sendMailToResetPassword),e.R7$(12),e.Y8G("ngClass",e.eq3(7,me,t.sendMailToResetPassword.controls.email.invalid&&t.isSubmitted))("prevent-keys",e.lJ4(9,pe)),e.R7$(2),e.vxM(t.sendMailToResetPassword.get("email").hasError("required")&&t.isSubmitted?15:-1),e.R7$(),e.vxM(t.sendMailToResetPassword.get("email").hasError("emailRegexError")&&t.isSubmitted?16:-1),e.R7$(),e.vxM(t.sendMailToResetPassword.get("email").hasError("maxlength")&&t.isSubmitted?17:-1),e.R7$(),e.vxM(t.error?18:-1)}}function _e(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",4)(1,"div",22)(2,"div",23),e.nrm(3,"img",24),e.j41(4,"h1",25),e.EFF(5,"Password reset link sent!"),e.k0s(),e.j41(6,"p",26),e.EFF(7," You'll get an email in the next few minutes with a link to reset your password. "),e.k0s(),e.j41(8,"p",27),e.EFF(9," If the email doesn't arrive in the next few minutes: "),e.k0s(),e.j41(10,"ul",28)(11,"li",29),e.EFF(12," 1. Make sure the email address you typed is correct "),e.k0s(),e.j41(13,"li",30),e.EFF(14," 2. Check your junk or spam folders "),e.k0s(),e.j41(15,"li",31),e.EFF(16," 3. If the email address isn't already registered with us, "),e.j41(17,"span",32),e.EFF(18,"you can "),e.j41(19,"a",33),e.bIt("click",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.commonService.goToSignUp())}),e.EFF(20,"Sign up here"),e.k0s()()()()()()()}}let ve=(()=>{class i{constructor(t,r,o){this.formBuilder=t,this.injector=r,this.router=o,this.error=!1,this.isSubmitted=!1,this.IsEmailSend=!1,this.invalidEmailError=!1,this.isResetPassword=!0,this.sendMailToResetPassword=this.formBuilder.group({email:new s.MJ("",[s.k0.required,s.k0.maxLength(253)])},{validator:[(0,p.kV)("email")]}),this.commonService=this.injector.get(C.e),this.datalayerService=this.injector.get(S.h),this.gA4DatalayerService=this.injector.get(_.j),this.spinnerService=this.injector.get(f.ex),this.forgotPasswordMsgEnum=this.injector.get(c.d),this.myAccountService=this.injector.get(M.j),this.appRouteEnum=this.injector.get(c.Gg)}ngOnInit(){this.datalayerService.loadGTMDataLayerOnPageUpdate(),this.gA4DatalayerService.loadGA4DataLayerAllPages(!0),this.spinnerService.hide(),this.myAccountService.sendEmailSuccess$.subscribe(t=>{this.IsEmailSend=t,this.isResetPassword=!1})}submit(){if(this.sendMailToResetPassword.valid){let t=this.sendMailToResetPassword.value;this.customerSendMailRequst=new ce.k7,this.customerSendMailRequst.UserEmail=t.email,this.myAccountService.sendEmailToResetPassword(this.customerSendMailRequst,!1,"")}this.isSubmitted=!0}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(s.ok),e.rXU(a.zZn),e.rXU(g.Ix))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-forgot"]],standalone:!1,decls:7,vars:2,consts:[["id","fc-main",1,"reset-password-page","text-center"],["id","fc-container",1,"container","plr-xs-5","my-profile-container"],["id","fc-row",1,"row","mlr-xs-5"],["id","fc-field-col",1,"col-md-12","p-0"],["id","fc-success-main",1,"col-md-12","p-0"],["id","fc-field-form",3,"ngSubmit","formGroup"],["id","divFormHideShow",1,"reset-email-success"],["id","fc-field-title",1,"mb-0","f-32","font-600","lh-40","link-tag","mobile-mb-12"],["id","fc-field-title-msg",1,"text-center","f-16","lh-22","font-dark","mb-12"],["id","emailaddress",1,"mb-24"],["id","fc-field-label",1,"font-d
1ark","font-700","f-16","lh-22","mb-8","text-start"],["id","fc-field-mand",1,"dark-spark","font-700","f-16","lh-22"],["id","fc-field-mat-form","floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-input"],["id","fc-field-input","matInput","","formControlName","email","type","text","aria-labelledby","emailaddress","placeholder","Enter your email address",3,"ngClass","prevent-keys"],["id","fc-field-mat-error",1,"forgot-password-error"],["id","fc-field-error-msg",1,"dark-spark","f-12","lh-16","mb-0"],["id","fc-field-error-msg2",1,"dark-spark","f-12","lh-16","mb-0"],["id","fc-field-error-msg3",1,"dark-spark","f-12","lh-16","mb-0"],["id","fc-field-error-msg3",1,"m-0","error"],["id","fc-field-caption",1,"common-caption","text-start","mt-8"],["id","fc-field-caption-title",1,"common-caption-txt"],["id","fc-field-send-email-btn","mat-button","",1,"new-default-btn","w-100"],["id","fc-success-inner-div"],["id","fc-success-sent-msg",1,"reset-email-success"],["id","fc-success-icon","src","assets/images/reset-email-success.svg","alt","Success",1,"mb-20","width-54"],["id","fc-success-title",1,"mb-12","f-32","font-600","lh-40","link-tag"],["id","fc-success-title-msg",1,"text-center","f-16","lh-22","font-dark","mb-16"],["id","fc-success-list",1,"text-center","f-14","lh-20","font-700","font-dark","mb-12"],["id","fc-success-ul-list",1,"m-0","p-0"],["id","fc-success-email-correct",1,"f-14","lh-20","font-dark","mb-12"],["id","fc-success-check-email",1,"f-14","lh-20","font-dark","mb-12"],["id","fc-success-already-register",1,"f-14","lh-20","font-dark"],["id","fc-success-you-can",1,"d-block"],["id","fc-success-sign-up-btn",1,"dark-spark","c-pointer",3,"click"]],template:function(r,o){1&r&&(e.nrm(0,"app-header"),e.j41(1,"div",0)(2,"div",1)(3,"div",2),e.nVh(4,Ce,24,10,"div",3),e.nVh(5,_e,21,0,"div",4),e.k0s()()(),e.nrm(6,"app-footer")),2&r&&(e.R7$(4),e.vxM(o.isResetPassword?4:-1),e.R7$(),e.vxM(o.IsEmailSend?5:-1))},dependencies:[h.YU,v.$z,b.fg,u.rl,u.TL,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,k.PW,R.l,P.n,y.P],styles:[".reset-password-page[_ngcontent-%COMP%]{padding:96px 0}.reset-password-page[_ngcontent-%COMP%]   .my-profile-container[_ngcontent-%COMP%]{width:100%;max-width:504px}.reset-password-page[_ngcontent-%COMP%]   .new-input[_ngcontent-%COMP%]   input.error-input-focus[_ngcontent-%COMP%]{border:1px solid #E42B00!important;box-shadow:inset 0 0 0 .1rem #e42b00!important;border-radius:5px}.reset-password-page[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none}.width-54[_ngcontent-%COMP%]{width:54px}@media(max-width:767px){.reset-password-page[_ngcontent-%COMP%]{padding:64px 10px}#divFormHideShow[_ngcontent-%COMP%]   .f-32[_ngcontent-%COMP%]{font-size:24px!important;line-height:30px}#divFormHideShow[_ngcontent-%COMP%]   .f-14[_ngcontent-%COMP%]{font-size:14px!important}.mobile-mb-12[_ngcontent-%COMP%]{margin-bottom:12px!important}#fc-success-inner-div[_ngcontent-%COMP%]   .f-14[_ngcontent-%COMP%]{font-size:14px!important}}"]})}}return i})();var be=d(4911),ke=d(23897),D=d(49731),Re=d(25808),N=d(75263),T=d(454),B=d(97586),ye=d(29751),xe=d(7554),we=d(34006),Fe=d(70854),Me=d(82798),Ee=d(29808);const Pe=["dobField"],q=i=>({"is-invalid":i}),L=()=>[32],je=()=>[32,34,35,38,39,40,41,42,43,96,9,128,123,124,125,126];function Se(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Email: Email is not valid. "),e.k0s())}function Te(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Email: Please complete this mandatory field. "),e.k0s())}function Le(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Email: Invalid email address length. Please enter a valid email address. "),e.k0s())}function Ae(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Repeat Email: Please complete this mandatory field. "),e.k0s())}function Ve(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Repeat Email: Email must be a match "),e.k0s())}function Oe(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Other Title: Please complete this mandatory field. "),e.k0s())}function $e(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," First Name: Please complete this mandatory field. "),e.k0s())}function Ie(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," First Name: First Name is invali
1d. "),e.k0s())}function De(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Surname: Please complete this mandatory field. "),e.k0s())}function Ne(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Surname: Surname is invalid. "),e.k0s())}function Be(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Surname: Surname must contain at least 2 characters. "),e.k0s())}function qe(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," DOB: Please enter a valid date of birth (mm/yyyy) "),e.k0s())}function Ge(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," DOB: You have to be over 16 years old to join Club Avanti "),e.k0s())}function Ye(i,n){if(1&i&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.SpI(" Password: ",t.formValidationMsg.PASSWORD_COMPLEXITY_MSG," ")}}function Je(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Password: Please complete this mandatory field. "),e.k0s())}function Ue(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Password: 10 or more characters, at least 1 number. 1 uppercase letter, 1 lowercase letter and 1 special character (!,-_.@;:$%^[\\]?=>/<). "),e.k0s())}function Xe(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Postcode: Please complete this mandatory field. "),e.k0s())}function ze(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Postcode: Incorrect postcode format, please check and re-enter. "),e.k0s())}function Ze(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Postcode: Postcode is invalid. "),e.k0s())}function He(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," First Line: Please complete this mandatory field. "),e.k0s())}function Ke(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," First Line: First Line is invalid. "),e.k0s())}function Qe(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Second Line: Second Line is invalid. "),e.k0s())}function We(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Third Line: Third Line is invalid. "),e.k0s())}function et(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," City/Town: Please complete this mandatory field. "),e.k0s())}function tt(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," City/Town: City is invali
1d. "),e.k0s())}function it(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Country: Country is invalid. "),e.k0s())}function st(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Mobile Number: Mobile number should between 11 and 14 digits,Mobile number should be start with 0 or +. "),e.k0s())}function ot(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," Mobile Number: Mobile number should not contain any letter "),e.k0s())}function nt(i,n){1&i&&(e.j41(0,"li"),e.EFF(1," T & C: Please complete this mandatory field. "),e.k0s())}function rt(i,n){if(1&i&&(e.j41(0,"div",101)(1,"ul",102),e.nVh(2,Se,2,0,"li"),e.nVh(3,Te,2,0,"li"),e.nVh(4,Le,2,0,"li"),e.nVh(5,Ae,2,0,"li"),e.nVh(6,Ve,2,0,"li"),e.nVh(7,Oe,2,0,"li"),e.nVh(8,$e,2,0,"li"),e.nVh(9,Ie,2,0,"li"),e.nVh(10,De,2,0,"li"),e.nVh(11,Ne,2,0,"li"),e.nVh(12,Be,2,0,"li"),e.nVh(13,qe,2,0,"li"),e.nVh(14,Ge,2,0,"li"),e.nVh(15,Ye,2,1,"li"),e.nVh(16,Je,2,0,"li"),e.nVh(17,Ue,2,0,"li"),e.nVh(18,Xe,2,0,"li"),e.nVh(19,ze,2,0,"li"),e.nVh(20,Ze,2,0,"li"),e.nVh(21,He,2,0,"li"),e.nVh(22,Ke,2,0,"li"),e.nVh(23,Qe,2,0,"li"),e.nVh(24,We,2,0,"li"),e.nVh(25,et,2,0,"li"),e.nVh(26,tt,2,0,"li"),e.nVh(27,it,2,0,"li"),e.nVh(28,st,2,0,"li"),e.nVh(29,ot,2,0,"li"),e.nVh(30,nt,2,0,"li"),e.k0s()()),2&i){const t=e.XpG(3);e.R7$(2),e.vxM(t.register.get("email").touched&&t.register.get("email").hasError("emailRegexError")?2:-1),e.R7$(),e.vxM(t.register.get("email").touched&&t.register.get("email").hasError("required")?3:-1),e.R7$(),e.vxM(t.register.get("email").touched&&t.register.get("email").hasError("maxlength")?4:-1),e.R7$(),e.vxM(t.register.get("confirmEmail").touched&&t.register.get("confirmEmail").hasError("required")?5:-1),e.R7$(),e.vxM(t.register.get("confirmEmail").touched&&t.register.get("confirmEmail").errors&&!t.register.get("confirmEmail").hasError("required")?6:-1),e.R7$(),e.vxM(t.register.get("other").hasError("other")?7:-1),e.R7$(),e.vxM(t.register.get("firstName").touched&&t.register.get("firstName").hasError("required")?8:-1),e.R7$(),e.vxM(t.register.get("firstName").touched&&t.register.get("firstName").hasError("pattern")?9:-1),e.R7$(),e.vxM(t.register.get("lastName").touched&&t.register.get("lastName").hasError("required")?10:-1),e.R7$(),e.vxM(t.register.get("lastName").touched&&t.register.get("lastName").hasError("pattern")?11:-1),e.R7$(),e.vxM(t.register.get("lastName").touched&&t.register.get("lastName").hasError("minlength")?12:-1),e.R7$(),e.vxM(t.register.get("dobMonth").touched&&t.register.get("dobMonth").invalid&&!t.register.get("dobMonth").hasError("isClubAvantiError")||t.register.get("dobYear").touched&&t.register.get("dobYear").invalid?13:-1),e.R7$(),e.vxM(t.register.get("dobMonth").touched&&t.register.get("dobMonth").hasError("isClubAvantiError")?14:-1),e.R7$(),e.vxM(!t.register.get("password").untouched||t.register.get("password").hasError("pattern")||t.register.get("password").hasError("specialCharMoreThanOne")?-1:15),e.R7$(),e.vxM(t.register.get("password").touched&&t.register.get("password").hasError("required")?16:-1),e.R7$(),e.vxM(t.register.get("password").touched&&(t.register.get("password").hasError("pattern")||t.register.get("password").hasError("specialCharMoreThanOne"))?17:-1),e.R7$(),e.vxM(t.register.get("postCode").touched&&t.register.get("postCode").hasError("required")?18:-1),e.R7$(),e.vxM(t.register.get("postCode").touched&&t.register.get("postCode").hasError("minlength")?19:-1),e.R7$(),e.vxM(t.register.get("postCode").touched&&t.register.get("postCode").hasError("pattern")?20:-1),e.R7$(),e.vxM(t.register.get("address1").touched&&t.register.get("address1").hasError("required")?21:-1),e.R7$(),e.vxM(t.register.get("address1").touched&&t.register.get("address1").hasError("pattern")?22:-1),e.R7$(),e.vxM(t.register.get("address2").touched&&t.register.get("address2").hasError("pattern")?23:-1),e.R7$(),e.vxM(t.register.get("address3").touched&&t.register.get("address3").hasError("pattern")?24:-1),e.R7$(),e.vxM(t.register.get("city").touched&&t.register.get("city").hasError("required")?25:-1),e.R7$(),e.vxM(t.register.get("city").touched&&t.register.get("city").hasError("pattern")?26:-1),e.R7$(),e.vxM(t.register.get("
1country").touched&&t.register.get("country").hasError("pattern")?27:-1),e.R7$(),e.vxM(t.register.get("mobile").touched&&t.register.get("mobile").hasError("checkZeroPosition")?28:-1),e.R7$(),e.vxM(t.register.get("mobile").hasError("letterError")?29:-1),e.R7$(),e.vxM(t.register.get("confirmPolicy").hasError("required")&&t.isSubmitted?30:-1)}}function at(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",13)(1,"h2",98)(2,"button",99),e.bIt("click",function(){a.eBV(t);const o=e.XpG(2);return a.Njj(o.hideBanner())}),e.nrm(3,"img",100),e.k0s(),e.EFF(4," Please amend the errors in the following mandatory fields. "),e.k0s(),e.nVh(5,rt,31,29,"div",101),e.k0s()}if(2&i){const t=e.XpG(2);e.R7$(5),e.vxM(t.isSubmitted?5:-1)}}function dt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function lt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Email is not valid. "),e.k0s())}function ct(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Invalid email address length. Please enter a valid email address. "),e.k0s())}function mt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function pt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Email must be a match "),e.k0s())}function ut(i,n){if(1&i&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&i){const t=n.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(t)}}function ht(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function gt(i,n){if(1&i&&(e.j41(0,"div",15)(1,"div",16)(2,"label",103),e.EFF(3," Other Title "),e.j41(4,"span",18),e.EFF(5,"*"),e.k0s()(),e.j41(6,"mat-form-field",19),e.nrm(7,"input",104),e.j41(8,"mat-error"),e.nVh(9,ht,2,0,"span",21),e.k0s()()()()),2&i){const t=e.XpG(2);e.R7$(9),e.vxM(t.register.get("other").hasError("other")?9:-1)}}function ft(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function Ct(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," First Name is invalid. "),e.k0s())}function _t(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function vt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Surname must contain at least 2 characters. "),e.k0s())}function bt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Surname is invalid. "),e.k0s())}function kt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," You have to be over 16 years old to join Club Avanti "),e.k0s())}function Rt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please enter a valid date of birth (mm/yyyy) "),e.k0s())}function yt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function xt(i,n){1&i&&(e.j41(0,"p",46),e.EFF(1," Caps lock is on "),e.k0s())}function wt(i,n){if(1&i&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.formValidationMsg.PASSWORD_COMPLEXITY_MSG," ")}}function Ft(i,n){1&i&&(e.j41(0,"span",49),e.EFF(1," 10 or more characters, at least 1 number. 1 uppercase letter, 1 lowercase letter and 1 special character (!,-_.@;:$%^[\\]?=>/<). "),e.k0s())}function Mt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function Et(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Address is invalid. "),e.k0s())}function Pt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function jt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Incorrect postcode format, please check and re-enter. "),e.k0s())}function St(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Postcode is invalid. "),e.k0s())}function Tt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function Lt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," First Line is invalid. "),e.k0s())}function At(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Second Line is invalid. "),e.k0s())}function Vt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Third Line is invalid. "),e.k0s())}function Ot(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function $t(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," City is invali
1d. "),e.k0s())}function It(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Country is invalid. "),e.k0s())}function Dt(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",105),e.bIt("click",function(){a.eBV(t);const o=e.XpG(2);return a.Njj(o.showOtherAddressFields())}),e.EFF(1," Enter address manually "),e.k0s()}}function Nt(i,n){if(1&i){const t=e.RV6();e.j41(0,"button",105),e.bIt("click",function(){a.eBV(t);const o=e.XpG(2);return a.Njj(o.showOtherAddressFields())}),e.EFF(1," Search for address "),e.k0s()}}function Bt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Mobile number should between 11 and 14 digits, Mobile number should be start with 0 or +. "),e.k0s())}function qt(i,n){1&i&&(e.j41(0,"span",21),e.EFF(1," Mobile number should not contain any letter "),e.k0s())}function Gt(i,n){1&i&&(e.j41(0,"div",15)(1,"span",106),e.EFF(2,"Please complete this mandatory field."),e.k0s()())}function Yt(i,n){if(1&i&&(e.j41(0,"p",96),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.error," ")}}function Jt(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",3)(1,"div",5)(2,"div",6)(3,"div",5)(4,"div",7)(5,"div",8)(6,"div",9)(7,"h1",10),e.EFF(8,"Create an Account"),e.k0s(),e.nrm(9,"div",11),e.k0s(),e.j41(10,"div",12),e.nVh(11,at,6,1,"div",13),e.j41(12,"form",14),e.bIt("ngSubmit",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.submit())}),e.j41(13,"div",5)(14,"div",15)(15,"div",16)(16,"label",17),e.EFF(17," Email "),e.j41(18,"span",18),e.EFF(19,"*"),e.k0s()(),e.j41(20,"mat-form-field",19),e.nrm(21,"input",20),e.j41(22,"mat-error"),e.nVh(23,dt,2,0,"span",21),e.nVh(24,lt,2,0,"span",21),e.nVh(25,ct,2,0,"span",21),e.k0s()()()(),e.j41(26,"div",15)(27,"div",16)(28,"label",22),e.EFF(29," Repeat Email "),e.j41(30,"span",18),e.EFF(31,"*"),e.k0s()(),e.j41(32,"mat-form-field",19),e.nrm(33,"input",23),e.j41(34,"mat-error"),e.nVh(35,mt,2,0,"span",21),e.j41(36,"span",24,0),e.EFF(38," Please Type your Email again "),e.k0s(),e.nVh(39,pt,2,0,"span",21),e.k0s()()()(),e.j41(40,"div",25)(41,"div",26)(42,"label",27),e.EFF(43," Title "),e.k0s(),e.j41(44,"mat-form-field",28)(45,"mat-select",29),e.mxI("valueChange",function(o){a.eBV(t);const l=e.XpG();return e.DH7(l.selected,o)||(l.selected=o),a.Njj(o)}),e.j41(46,"mat-option",30),e.EFF(47,"Choose Title"),e.k0s(),e.Z7z(48,ut,2,2,"mat-option",31,e.fX1),e.k0s()()()(),e.nVh(50,gt,10,1,"div",15),e.j41(51,"div",15)(52,"div",16)(53,"label",32),e.EFF(54," First Name "),e.j41(55,"span",18),e.EFF(56,"*"),e.k0s()(),e.j41(57,"mat-form-field",19),e.nrm(58,"input",33),e.j41(59,"mat-error"),e.nVh(60,ft,2,0,"span",21),e.nVh(61,Ct,2,0,"span",21),e.k0s()()()(),e.j41(62,"div",15)(63,"div",16)(64,"label",34),e.EFF(65," Surname "),e.j41(66,"span",18),e.EFF(67,"*"),e.k0s()(),e.j41(68,"mat-form-field",19),e.nrm(69,"input",35),e.j41(70,"mat-error"),e.nVh(71,_t,2,0,"span",21),e.nVh(72,vt,2,0,"span",21),e.nVh(73,bt,2,0,"span",21),e.k0s()()()(),e.j41(74,"div",15)(75,"div",16)(76,"label",27),e.EFF(77," Date of Birth "),e.k0s(),e.j41(78,"div",5)(79,"div",36)(80,"mat-form-field",19)(81,"input",37),e.bIt("blur",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.convertMonth())}),e.k0s()()(),e.j41(82,"div",38)(83,"mat-form-field",19),e.nrm(84,"input",39,1),e.k0s()()(),e.j41(86,"mat-error"),e.nVh(87,kt,2,0,"span",21),e.nVh(88,Rt,2,0,"span",21),e.k0s()()(),e.j41(89,"div",40)(90,"div",41)(91,"label",42),e.EFF(92," Password "),e.j41(93,"span",18),e.EFF(94,"*"),e.k0s()(),e.j41(95,"mat-form-field",19)(96,"input",43),e.bIt("capsLockOn",function(o){a.eBV(t);const l=e.XpG();return a.Njj(l.capsLock=o)}),e.k0s(),e.j41(97,"button",44),e.bIt("click",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.fieldTextType=!o.fieldTextType)}),e.j41(98,"mat-icon",45),e.EFF(99),e.k0s()(),e.j41(100,"mat-error"),e.nVh(101,yt,2,0,"span",21),e.k0s()(),e.nVh(102,xt,2,0,"p",46),e.j41(103,"div",47),e.nVh(104,wt,2,1,"span",48),e.nVh(105,Ft,2,0,"span",49),e.k0s()()(),e.j41(106,"div",50)(107,"div",51)(108,"label",52),e.EFF(109," Address "),e.j41(110,"span",18),e.EFF(111,"*"),e.k0s()(),e.j41(112,"mat-form-field",19),e.nrm(113,"input",53),e.j41(114,"button",54)(115,"span"),a.qSk(),e.j41(116,"svg",55),e.nrm(117,"path",56),e.k0s()()(),a.joV(),e.j41(118,"mat-error"),e.nV
1h(119,Mt,2,0,"span",21),e.nVh(120,Et,2,0,"span",21),e.k0s()()(),e.j41(121,"div",57),e.nrm(122,"input",58)(123,"input",59)(124,"input",60)(125,"input",61)(126,"input",62)(127,"input",63),e.k0s()(),e.j41(128,"div",50)(129,"div",5)(130,"div",15)(131,"div",16)(132,"label",64),e.EFF(133," Postcode "),e.j41(134,"span",18),e.EFF(135,"*"),e.k0s()(),e.j41(136,"mat-form-field",19),e.nrm(137,"input",65),e.j41(138,"mat-error"),e.nVh(139,Pt,2,0,"span",21),e.nVh(140,jt,2,0,"span",21),e.nVh(141,St,2,0,"span",21),e.k0s()()()(),e.j41(142,"div",15)(143,"div",16)(144,"label",66),e.EFF(145," First Line "),e.j41(146,"span",18),e.EFF(147,"*"),e.k0s()(),e.j41(148,"mat-form-field",19),e.nrm(149,"input",67),e.j41(150,"mat-error"),e.nVh(151,Tt,2,0,"span",21),e.nVh(152,Lt,2,0,"span",21),e.k0s()()()(),e.j41(153,"div",15)(154,"div",16)(155,"label",68),e.EFF(156," Second Line "),e.k0s(),e.j41(157,"mat-form-field",19),e.nrm(158,"input",69),e.j41(159,"mat-error"),e.nVh(160,At,2,0,"span",21),e.k0s()()()(),e.j41(161,"div",15)(162,"div",16)(163,"label",70),e.EFF(164," Third Line "),e.k0s(),e.j41(165,"mat-form-field",19),e.nrm(166,"input",71),e.j41(167,"mat-error"),e.nVh(168,Vt,2,0,"span",21),e.k0s()()()(),e.j41(169,"div",15)(170,"div",16)(171,"label",72),e.EFF(172," City/Town "),e.j41(173,"span",18),e.EFF(174,"*"),e.k0s()(),e.j41(175,"mat-form-field",19),e.nrm(176,"input",73),e.j41(177,"mat-error"),e.nVh(178,Ot,2,0,"span",21),e.nVh(179,$t,2,0,"span",21),e.k0s()()()(),e.j41(180,"div",15)(181,"div",51)(182,"label",74),e.EFF(183," Country "),e.k0s(),e.j41(184,"mat-form-field",19),e.nrm(185,"input",75),e.j41(186,"mat-error"),e.nVh(187,It,2,0,"span",21),e.k0s()()()()()(),e.j41(188,"div",76),e.nVh(189,Dt,2,0,"button",77),e.nVh(190,Nt,2,0,"button",77),e.k0s(),e.j41(191,"div",15)(192,"div",78)(193,"label",79),e.EFF(194," Mobile "),e.k0s(),e.j41(195,"mat-form-field",19)(196,"input",80),e.bIt("keydown",function(o){a.eBV(t);const l=e.XpG();return a.Njj(l.CheckLetterPresence(o))}),e.k0s(),e.j41(197,"mat-error"),e.nVh(198,Bt,2,0,"span",21),e.nVh(199,qt,2,0,"span",21),e.k0s()(),e.j41(200,"div",47)(201,"span",48),e.EFF(202," Get live travel updates sent straight to your phone. "),e.k0s()()()(),e.j41(203,"div",81)(204,"label",82)(205,"p",83)(206,"span",84),e.nrm(207,"input",85),e.k0s(),e.j41(208,"span"),e.EFF(209," Join Club Avanti, our loyalty program to earn free travel and exclusive discounts. I also confirm I am 16+ and accept the "),e.j41(210,"a",86),e.EFF(211," Club Avanti Terms and Conditions "),e.k0s()()()()(),e.j41(212,"div",87)(213,"label",88)(214,"p",83)(215,"span",89),e.nrm(216,"input",90),e.k0s(),e.j41(217,"span"),e.EFF(218," I accept the "),e.j41(219,"a",91),e.EFF(220," Privacy Policy "),e.k0s(),e.EFF(221," and "),e.j41(222,"a",92),e.EFF(223," Terms and Conditions "),e.k0s()()()()(),e.nVh(224,Gt,3,0,"div",15),e.j41(225,"div",15)(226,"label",93)(227,"p",94)(228,"span",89),e.nrm(229,"input",95),e.k0s(),e.j41(230,"span"),e.EFF(231," Remember me on this device "),e.k0s()()()(),e.j41(232,"div",76),e.nVh(233,Yt,2,1,"p",96),e.k0s(),e.j41(234,"div",15)(235,"button",97),e.EFF(236," Next "),e.k0s()()()()()()()()()()()}if(2&i){const t=e.XpG();e.R7$(11),e.vxM(t.register.invalid&&t.showBanner?11:-1),e.R7$(),e.Y8G("formGroup",t.register),e.R7$(9),e.Y8G("ngClass",e.eq3(51,q,t.register.get("email").errors&&t.isSubmitted))("prevent-keys",e.lJ4(53,L)),e.R7$(2),e.vxM(t.register.get("email").touched&&t.register.get("email").hasError("required")?23:-1),e.R7$(),e.vxM(t.register.get("email").touched&&t.register.get("email").hasError("emailRegexError")?24:-1),e.R7$(),e.vxM(t.register.get("email").touched&&t.register.get("email").hasError("maxlength")?25:-1),e.R7$(8),e.Y8G("ngClass",e.eq3(54,q,t.register.get("confirmEmail").errors&&t.isSubmitted))("prevent-keys",e.lJ4(56,L)),e.R7$(2),e.vxM(t.register.get("confirmEmail").touched&&t.register.get("confirmEmail").hasError("required")?35:-1),e.R7$(4),e.vxM(t.register.get("confirmEmail").touched&&t.register.get("confirmEmail").errors&&!t.register.get("confirmEmail").hasError("required")?39:-1),e.R7$(6),e.R50("value",t.selected),e.R7$(3),e.Dyx(t.commonService.titleListArray),e.R7$(2),e.vxM("Other"==t.register.get("title").value?50:-1),e.R7$(10),e.vxM(t.register.get("firstName").touched&&t.register.get("firstName").hasError("required")?60:-1),e.R7$(),e.vxM(t.register.get("firstName").touched&&t.register.get("firstName").hasError("pattern")?61:-1),e.R7$(10),e.vxM(t.register.get("lastName").touched&&t.register.get("lastName").hasError("required")?71:-1),e.R7$(),e.vxM(t.register.get("lastName").touched&&t.register.get("lastName").hasError("minlength")?72:-1),e.R7$(),e.vxM(t.register.get("lastName").touched&&t.register.get("lastName").hasError("pattern")?73:-1),e.R7$(14),e.vxM(t.register.get("dobMonth").touched&&t.register.get("dobMonth").hasError("isClubAvantiError")?87:-1),e.R7$(),e.vxM(t.register.get("dobMonth").touched&&t.register.get("dobMonth").invalid&&!t.register.get("dobMonth").hasError("isClubAvantiError")||t.register.get("dobYear").touched&&t.register.get("dobYear").invalid?88:-1),e.R7$(8),e.Y8G("type",t.fieldTextType?"text":"password")("prevent-keys",e.lJ4(57,je)),e.R7$(),e.BMQ("aria-label","Hide password")("aria-pressed",t.fieldTextType),e.R7$(2),e.SpI(" ",t.fieldTextType?"visibility":"visibility_off"," "),e.R7$(2),e.vxM(t.register.get("password").touched&&t.register.get("password").hasError("required")?101:-1),e.R7$(),e.vxM(1===t.capsLock?102:-1),e.R7$(2),e.vxM(!t.register.get("password").untouched||t.register.get("password").hasError("pattern")||t.register.get("password").hasError("specialCharMoreThanOne")?-1:104),e.R7$(),e.vxM(t.register.get("password").touched&&(t.register.get("password").hasError("pattern")||t.register.get("password").hasError("specialCharMoreThanOne"))?105:-1),e.R7$(),e.Y8G("ngClass",t.isManualAddressSelected?"hide-full-Address":"show-full-Address"),e.R7$(7),e.Y8G("prevent-keys",e.lJ4(58,L)),e.R7$(6),e.vxM(t.register.get("formattedAddress").touched&&t.register.get("formattedAddress").hasError("required")?119:-1),e.R7$(),e.vxM(t.register.get("formattedAddress").touched&&t.register.get("formattedAddress").hasError("pattern")?120:-1),e.R7$(8),e.Y8G("ngClass",t.isManualAddressSelected?"show-full-Address":"hide-full-Address"),e.R7$(11),e.vxM(t.register.get("postCode").touched&&t.register.get("postCode").hasError("required")?139:-1),e.R7$(),e.vxM(t.register.get("postCode").touched&&t.register.get("postCode").hasError("minlength")&&!t.register.get("postCode").hasError("pattern")?140:-1),e.R7$(),e.vxM(t.register.get("postCode").touched&&t.register.get("postCode").hasError("pattern")?141:-1),e.R7$(10),e.vxM(t.register.get("address1").touched&&t.register.get("address1").hasError("required")?151:-1),e.R7$(),e.vxM(t.register.get("address1").touched&&t.register.get("address1").hasError("pattern")?152:-1),e.R7$(8),e.vxM(t.register.get("address2").touched&&t.register.get("address2").hasError("pattern")?160:-1),e.R7$(8),e.vxM(t.register.get("address3").touched&&t.register.get("address3").hasError("pattern")?168:-1),e.R7$(10),e.vxM(t.register.get("
1city").touched&&t.register.get("city").hasError("required")?178:-1),e.R7$(),e.vxM(t.register.get("city").touched&&t.register.get("city").hasError("pattern")?179:-1),e.R7$(8),e.vxM(t.register.get("country").touched&&t.register.get("country").hasError("pattern")?187:-1),e.R7$(2),e.vxM(t.isManualAddressSelected?-1:189),e.R7$(),e.vxM(t.isManualAddressSelected?190:-1),e.R7$(8),e.vxM(t.register.get("mobile").touched&&t.register.get("mobile").hasError("checkZeroPosition")?198:-1),e.R7$(),e.vxM(t.register.get("mobile").hasError("letterError")?199:-1),e.R7$(20),e.Y8G("href",null==t.footerNavigationLinkEnum?null:t.footerNavigationLinkEnum.privacyPolicy,e.B4B),e.R7$(5),e.vxM(t.register.get("confirmPolicy").hasError("required")&&t.isSubmitted?224:-1),e.R7$(9),e.vxM(t.error?233:-1)}}function Ut(i,n){if(1&i){const t=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",5)(4,"div",7)(5,"div",8)(6,"div",9)(7,"div",107)(8,"span"),a.qSk(),e.j41(9,"svg",108),e.nrm(10,"circle",109)(11,"path",110),e.k0s()()(),a.joV(),e.j41(12,"h1",111),e.EFF(13,"Account created"),e.k0s()(),e.j41(14,"div",12)(15,"form",112),e.bIt("ngSubmit",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.checkCustomerLogin())}),e.nrm(16,"div",113),e.j41(17,"div",114)(18,"button",115),e.EFF(19," Submit "),e.k0s()()()()()()()()()()}}const Xt={parse:{dateInput:"LL"},display:{dateInput:"LL",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let zt=(()=>{class i{constructor(t,r,o,l,m){this.formbuilder=t,this._renderer2=r,this._document=o,this.injector=l,this.dialog=m,this.showBanner=!1,this.isSubmitted=!1,this.error=!1,this.maxDate=new Date,this.mxMonth=12,this.mxYear=this.maxDate.getFullYear(),this.minDate=this.maxDate.setFullYear(this.maxDate.getFullYear()-15),this.hiddenAddressIdsArray=["formattedAddress","postCodeFA","address1FA","address2FA","address3FA","cityFA","countryFA"],this.isReg=!0,this.fieldTextType=!1,this.repeatFieldTextType=!1,this.invalidCredential=!1,this.isManualAddressSelected=!1,this.formValidationMsg=c.$z,this.register=this.formbuilder.group({email:new s.MJ("",[s.k0.required,s.k0.maxLength(253)]),confirmEmail:new s.MJ("",[s.k0.required]),title:new s.MJ(""),other:new s.MJ(""),firstName:new s.MJ("",[s.k0.required,s.k0.pattern(c.lE.NAME)]),lastName:new s.MJ("",[s.k0.required,s.k0.minLength(2),s.k0.pattern(c.lE.NAME)]),date:new s.MJ,dobMonth:new s.MJ("",[s.k0.pattern(/^[0-9]+$/),s.k0.minLength(2),s.k0.maxLength(2)]),dobYear:new s.MJ("",[s.k0.pattern(/^[0-9]+$/),s.k0.minLength(4),s.k0.maxLength(4)]),password:new s.MJ("",[s.k0.required,s.k0.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!,-_.@;:$%^[\\\\?=>\]/<])[A-Za-z\d!,-_.@;:$%^[\\\\?=>\]/<]{10,}$/)]),formattedAddress:new s.MJ("",[s.k0.required,s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),postCode:new s.MJ(""),address1:new s.MJ(""),address2:new s.MJ(""),address3:new s.MJ(""),city:new s.MJ(""),country:new s.MJ(""),mobile:new s.MJ(""),confirmPolicy:new s.MJ(""),rememberme:new s.MJ(""),confirmClubAvanti:new s.MJ(""),postCodeFA:new s.MJ(""),address1FA:new s.MJ(""),address2FA:new s.MJ(""),address3FA:new s.MJ(""),cityFA:new s.MJ(""),countryFA:new s.MJ("")},{validator:[(0,p.tb)("dobMonth"),(0,p.el)("dobYear","dobMonth"),(0,p.pk)("email","confirmEmail",!0),(0,p.Cf)("mobile"),(0,p.VU)("password"),(0,p.kV)("email")]}),this.router=this.injector.get(g.Ix),this.customerService=this.injector.get(w.B),this.notificationService=this.injector.get(D.J),this.appRouteEnum=this.injector.get(c.Gg),this.sharedService=this.injector.get(F.d),this.sharedServiceCache=this.injector.get(Re.J),this.storageDataService=this.injector.get(V.h),this.spinnerService=this.injector.get(f.ex),this.el=this.injector.get(e.aKT),this.myAccountService=this.injector.get(M.j),this.commonService=this.injector.get(C.e),this.dataLayerService=this.injector.get(S.h),this.ga4dataLayerService=this.injector.get(_.j),this.ga4DatalayeEventNameEnum=this.injector.get(c.Yl),this.localStorageKeyEnum=this.injector.get(c.ZM),this.quickBuyEnum=this.injector.get(c.Tv),this.trimSpacesFromFormattedAddressFormControl(),this.enhancedAppRouteEnum=this.injector.get(c.yH),this.enhancedLoginCommonService=this.injector.get(xe.q),this.footerNavigationLinkEnum=this.injector.get(c.D7)}ngOnInit(){this.sharedService.capsLockOn.subscribe(t=>{this.capsLock="password"==t.id||"rc-password-visible-hide-icon"==t.id?t.value:2}),this.dataLayerService.loadGTMDataLayerOnPageUpdate(),this.ga4dataLayerService.loadGA4DataLayerAllPages(!0),this.setMaxDate(),this.spinnerService.hide()}checkClubAvntiChecked(){let t=this.register.get("dobMonth").value,r=this.register.get("dobYear").value;return!t||!r||this.calculateAge(t,r)>=16}calculateAge(t,r){const o=new Date;let l=o.getFullYear()-r;return o.getMonth()-t<0&&l--,l}call(){this.register.get("address1").setErrors(null),this.register.get("
1city").setErrors(null)}CheckLetterPresence(t){this.register.get("mobile").hasError("letterError")&&(0,p.$w)(t,this.register.get("mobile"))}setMaxMonth(){this.register.get("dobYear").value==this.mxYear&&this.register.get("dobMonth").value>(new Date).getMonth()+1||this.register.get("dobMonth").value>12?this.register.get("dobMonth").setErrors({invalid:!0}):this.register.get("dobMonth").setErrors(null)}setMaxYear(){4!=this.register.get("dobYear").value.length||this.register.get("dobYear").value>this.mxYear?this.register.get("dobYear").setErrors({invalid:!0}):this.register.get("dobYear").value==this.mxYear?this.setMaxMonth():(this.register.get("dobYear").setErrors(null),this.register.get("dobMonth").value<=12&&this.register.get("dobMonth").setErrors(null))}convertMonth(){let t=this.register.get("dobMonth").value;1===t.length&&(t=`0${t}`,this.register.patchValue({dobMonth:t}))}checkBothDobField(){let t=this.register.get("dobMonth").value,r=this.register.get("dobYear").value;!t&&r&&this.register.get("dobMonth").setErrors({monthError:!0}),t&&!r&&this.register.get("dobYear").setErrors({yearError:!0})}submit(){this.convertMonth(),this.checkBothDobField(),this.register.markAllAsTouched();let t=this.register.value;if(t.confirmClubAvanti&&!this.checkClubAvntiChecked()&&(this.register.get("dobMonth").setErrors({isClubAvantiError:!0}),this.register.controls.dobMonth.invalid))return this.dobYearField.nativeElement.focus(),this.isSubmitted=!0,this.showBanner=!0,!1;const r=this.register.controls.other;if(""==r.value&&"Other"==t.title)return r.setErrors({other:!0}),!1;r.setErrors(null);let o=document.getElementById("formattedAddress").value;this.register.controls.formattedAddress.setValue(o),o&&this.hiddenAddressIdsArray.forEach(m=>{let J=document.getElementById(m).value;this.register.controls[m].setValue(J)});for(const m of Object.keys(this.register.controls))if(this.register.controls[m].invalid){this.el.nativeElement.querySelector('[formcontrolname="'+m+'"]').focus();break}this.registerData(t),this.isSubmitted=!0,this.showBanner=!0}registerData(t){if(this.register.valid){t=this.register.value,this.customerRegisterRequest=new be.$,this.customerRegisterRequest.Email=t.email?.trim(),this.customerRegisterRequest.FirstName=t.firstName,this.customerRegisterRequest.LastName=t.lastName,this.customerRegisterRequest.Title="Other"==t.title?t.other:t.title,this.customerRegisterRequest.Password=t.password;let r=`${t.dobMonth}/${t.dobYear}`;this.customerRegisterRequest.DateOfBirth=7===r.length?r:"",this.customerRegisterRequest.Address=new ke.pV,this.isManualAddressSelected?(this.customerRegisterRequest.Address.Address1=t.address1,this.customerRegisterRequest.Address.Address2=t.address2,this.customerRegisterRequest.Address.Address3=t.address3,this.customerRegisterRequest.Address.City=t.city,this.customerRegisterRequest.Address.Country=t.country,this.customerRegisterRequest.Address.CountryCode=t.countryCode,this.customerRegisterRequest.Address.PostCode=t.postCode):(this.customerRegisterRequest.Address.FullAddress=t.formattedAddress,this.customerRegisterRequest.Address.Address1=t.address1FA,this.customerRegisterRequest.Address.Address2=t.address2FA,this.customerRegisterRequest.Address.Address3=t.address3FA,this.customerRegisterRequest.Address.City=t.cityFA,this.customerRegisterRequest.Address.Country=t.countryFA,this.customerRegisterRequest.Address.CountryCode=t.countryCodeFA,this.customerRegisterRequest.Address.PostCode=t.postCodeFA),this.customerRegisterRequest.Mobile=t.mobile,this.customerRegisterRequest.EnrolForLoyality=!!t.confirmClubAvanti&&t.confirmClubAvanti,t.rememberme?(localStorage.setItem("UserNameRM",t.email?.trim()),localStorage.setItem("RememberMe","true")):(localStorage.removeItem("UserNameRM"),localStorage.removeItem("RememberMe")),this.registerCustomer(this.customerRegisterRequest)}}setMaxDate(){let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),0).getDate(),o=t.getMonth()-1,l=t.getFullYear()-15,m=new Date(new Date(new Date((new Date).setFullYear(l)).setMonth(o)).setDate(r));this.maxDate=m}registerCustomer(t){this.customerService.registerCustomer(this.customerRegisterRequest).subscribe(r=>{null!=r&&(this.responseData=r,"200"==this.responseData.ResponseCode?(this.customerRegisterResponse=this.responseData.Data,this.checkReg
1istrationResponse(),this.isCheckedJoinClubAvanti(t)):this.notificationService.warn("oneStepCustomerInternalRegistration:"==this.responseData.ResponseMessage?"You are temporarily unable to create an account because an account with this email address was only recently deleted.":this.responseData.ResponseMessage))})}isCheckedJoinClubAvanti(t){t.EnrolForLoyality&&(this.customerRegisterResponse.EnrolledForLoyality?this.ga4dataLayerService.loadGALayerForClubAvanti(this.ga4DatalayeEventNameEnum.sucessfullyAccCreatedForClubAvanti):this.ga4dataLayerService.loadGALayerForClubAvanti(this.ga4DatalayeEventNameEnum.accountFailedForClubAvanti,this.customerRegisterResponse.ResponseMessage))}checkRegistrationResponse(){this.customerRegisterResponse.IsRegistered?(localStorage.setItem("CustomerKey",this.customerRegisterResponse.CustomerKey),this.sharedService.registrationCustomerEmail=this.customerRegisterResponse.CustomerEmail,this.sharedService.registrationCustomerPassword=this.customerRegisterResponse.CustomerPassword,this.sharedService.registrationIsLoginFromJE=this.customerService.isLoginFromJE,this.sharedService.registrationIsLoginFromSeason=this.customerService.isLoginFromSeason,this.sharedService.registrationReturnUrl=this.customerService.returnUrl,this.sharedService.setSharedCache(),this.storageDataService.clearStorageData("sharedSibling"),this.storageDataService.setStorageData("sharedSibling",this.sharedServiceCache,!0),this.customerRegisterRequest.EnrolForLoyality&&!this.customerRegisterResponse.EnrolledForLoyality?this.clubAvantiErrorPopup():this.concentricData()):this.customerRegisterResponse.IsEmailExist&&this.notificationService.warn(this.customerRegisterResponse.ResponseMessage)}afterRegSuccess(t){const r=this._renderer2.createElement("script");r.innerHTML='\n                let widget_config = {\n                  templateId: "7S8B8rg7uRC",\n                  hideButtons: true,\n                  token: "'+t+'",\n                  widgetId: "6PRHtVLFAoe",\n                }\n              ',this._renderer2.appendChild(this._document.body,r);const o=this._renderer2.createElement("script");o.src="https://widget.consentric.io/public/init.js",o.id="init",this._renderer2.appendChild(this._document.body,o)}chosenYearHandler(t){const r=this.register.controls.date;r.setValue(B(this.minDate)),r.value.year(t.year()),r.setValue(r.value)}chosenMonthHandler(t,r){const o=this.register.controls.date;o.setValue(B(this.minDate)),o.value.month(t.month()),o.value.year(t.year()),o.setValue(o.value),r.close()}checkCustomerLogin(){this.commonService.loaderRequired=!0,this.customerLoginRequest=new A.h,this.customerLoginRequest.Password=this.customerRegisterResponse.CustomerPassword,this.customerLoginRequest.UserEmail=this.customerRegisterResponse.CustomerEmail,this.customerService.checkCustomerLogin(this.customerLoginRequest).subscribe(t=>{null!=t&&(this.responseData=t,"200"==this.responseData.ResponseCode?(this.customerLoginResponse=this.responseData.Data,this.customerLoginResponse.IsAuthenticated?(this.invalidCredential=!1,localStorage.setItem("Title",this.customerLoginResponse.CustomerDetail.Title),this.storageDataService.clearLocalStorageData("customerLoginResponse"),this.storageDataService.setLocalStorageData("customerLoginResponse",this.customerLoginResponse,!0),localStorage.setItem("Email",this.customerLoginResponse.CustomerDetail.Email),localStorage.setItem("OriginalEmail",this.customerLoginResponse.CustomerDetail.OriginalEmail),localStorage.setItem("CustomerKey",this.customerLoginResponse.CustomerDetail.CustomerKey),localStorage.setItem("FirstName",this.customerLoginResponse.CustomerDetail.FirstName),localStorage.setItem("LastName",this.customerLoginResponse.CustomerDetail.LastName),localStorage.setItem("UserName",this.customerLoginResponse.CustomerDetail.UserName),this.sharedService.sendCustomerData(this.customerLoginResponse.CustomerDetail.FirstName,this.customerLoginResponse.CustomerDetail.LastName),this.getMyPreferences(this.customerLoginResponse.CustomerDetail),this.redirectedAfterLogin()):this.invalidCredential=!0):console.log(this.responseData.ResponseMessage))})}redirectedAfterLogin(){if(this.customerService.isLoginFromJE)this.commonService.doesDeliveryPageSkipped()?(localStorage.setItem(this.appRouteEnum.isBrowserBackButton,"true"),localStorage.setItem(this.localStorageKeyEnum.isQuickBuyOrContinue,this.quickBuyEnum.default),this.router.navigate(["./"+this.appRouteEnum.deliveryAndReviewbuy])
1):this.router.navigate(["./"+this.appRouteEnum.DeliveryMode]);else if(this.customerService.isLoginFromSeason)this.router.navigate(["./"+this.appRouteEnum.JourneyExtras]);else if(null!=this.customerService.returnUrl&&null!=this.customerService.returnUrl)this.customerService.returnUrl.includes(this.appRouteEnum.MixingDeck)||this.customerService.returnUrl.includes(this.appRouteEnum.SeasonSolutions)||this.customerService.returnUrl.includes(this.appRouteEnum.JourneyExtras)?this.router.navigateByUrl(this.customerService.returnUrl):this.router.navigate(["./"+this.appRouteEnum.MyBookings]);else if(this.customerService?.isLoginFromEnhancedSelectTicketAndClass){this.commonService.createRequestForGetDeliveryAndBasketJourneyAPI(this.customerService?.nreJourneyExtrasResponse,this.customerService?.travelSolution,this.customerService?.cameFromFlexibleReturn,this.customerService?.searchResponse),this.sharedService.sendSearchRequest(this.customerService?.mixingDeckSearchRequest);let t=this.sharedService.enhancedGetDeliveryAndBasketJourneyRequest;t.PreviousCache=this.sharedService.reviewBuyCache,this.enhancedLoginCommonService.callGetDeliveryAndBasketJourneyApi(t)}else this.router.navigate(["./"+this.appRouteEnum.MyBookings])}getMyPreferences(t){this.commonService.loaderRequired=!0,this.getPreferencesRequest=new O.QJ,this.getPreferencesRequest.CustomerKey=t.CustomerKey,this.getPreferencesRequest.Email=t.Email,this.getPreferencesRequest.IsMasterData=!1,this.getPreferencesRequest.IsMyPreferencesPage=!1,this.myAccountService.getMyPreferences(this.getPreferencesRequest).subscribe(r=>{null!=r&&(this.responseData=r,"200"==this.responseData.ResponseCode&&(this.myPreferencesResponse=this.responseData.Data,this.storageDataService.clearLocalStorageData("myPreferencesResponse"),this.storageDataService.setLocalStorageData("myPreferencesResponse",this.myPreferencesResponse,!0)))})}clearDate(){this.register.controls.date.setValue(null)}hideBanner(){this.showBanner=!1}clubAvantiErrorPopup(){this.dialog.open(ye.k,{disableClose:!0,width:"600px",data:{Message:this.customerRegisterResponse.EnrolmentFailureMessage,CTAText:"Complete account registration"}}).afterClosed().subscribe(()=>{this.concentricData()})}concentricData(){if(this.customerRegisterResponse.IsConcentricRegistered){let t=this.customerRegisterResponse.consentrictoken;this.isReg=!1,this.afterRegSuccess(t)}else this.notificationService.warn("Concentric not registered."),this.checkCustomerLogin()}showOtherAddressFields(){this.isManualAddressSelected=!this.isManualAddressSelected,this.setValidationOnAddressField(),this.hiddenAddressIdsArray.forEach(t=>{document.getElementById(t).value=""}),this.resetManualAddressField(),this.register.markAsUntouched()}setValidationOnAddressField(){this.register.markAsUntouched(),this.isManualAddressSelected?this.addValidationonAddressControls():this.clearValidationFromAddressControls()}addValidationonAddressControls(){this.register.get("postCode").setValidators([s.k0.required,s.k0.minLength(4),s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),this.register.get("postCode").updateValueAndValidity(),this.register.get("address1").setValidators([s.k0.required,s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),this.register.get("address1").updateValueAndValidity(),this.register.get("address2").setValidators([s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),this.register.get("address2").updateValueAndValidity(),this.register.get("address3").setValidators([s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),this.register.get("address3").updateValueAndValidity(),this.register.get("city").setValidators([s.k0.required,s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),this.register.get("city").updateValueAndValidity(),this.register.get("country").setValidators([s.k0.pattern(/^[^\s]+(\s+[^\s]+)*$/)]),this.register.get("country").updateValueAndValidity(),this.register.get("formattedAddress").clearValidators()}resetManualAddressField(){this.register.patchValue({postCode:"",address1:"",address2:"",address3:"",city:"",country:""})}clearValidationFromAddressControls(){this.register.get("formattedAddress").setValidators([s.k0.required]),this.register.get("formattedAddress").updateV
1alueAndValidity(),this.register.get("postCode").clearValidators(),this.register.get("address1").clearValidators(),this.register.get("address2").clearValidators(),this.register.get("address3").clearValidators(),this.register.get("country").clearValidators(),this.register.get("city").clearValidators()}trimSpacesFromFormattedAddressFormControl(){this.formattedAddressValueChangeSubscription=this.register.controls.formattedAddress.valueChanges.subscribe(t=>{t?.includes(" ")&&this.register.controls.formattedAddress.setValue(t.trim().replace(/\s/g,""))})}ngOnDestroy(){this.formattedAddressValueChangeSubscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(s.ok),e.rXU(e.sFG),e.rXU(a.qQL),e.rXU(a.zZn),e.rXU(we.bZ))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-registration"]],viewQuery:function(r,o){if(1&r&&e.GBs(Pe,5),2&r){let l;e.mGM(l=e.lsd())&&(o.dobYearField=l.first)}},standalone:!1,features:[e.Jv_([{provide:T.MJ,useClass:N.QH,deps:[T.Ju,N.ij]},{provide:T.de,useValue:Xt}])],decls:5,vars:2,consts:[["val_err",""],["dobField",""],[1,"offers-headline-container"],[1,"container-fluid","register-page-container","old-register-page"],[1,"container-fluid","register-page-container"],[1,"row"],[1,"container"],[1,"col-12","mobile-padding-0"],[1,"account-box","bg-white"],[1,"account-box-title"],[1,"m-0","color-graphene","font-600","text-center"],[1,"account-title-border"],[1,"account-box-middle"],["role","alert",1,"error-banner-bx"],[1,"upgrade-post-edit-form",3,"ngSubmit","formGroup"],[1,"col-12"],[1,"mb-24"],["for","emailid",1,"font-dark","font-700","f-16","lh-22","mb-8"],[1,"dark-spark","font-700","f-16","lh-22"],["floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-input"],["matInput","","type","text","formControlName","email","required","","id","emailid","aria-label","Eamil address",3,"ngClass","prevent-keys"],[1,"dark-spark","f-12","lh-16","mb-0"],["for","repeatemailid",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","type","text","placeholder","Confirm email address","formControlName","confirmEmail","id","repeatemailid","aria-label","Repeat email address",3,"ngClass","prevent-keys"],[1,"dark-spark","f-12","lh-16","mb-0","d-none"],["id","title",1,"col-12"],[1,"mb-24","upgrade-mat-select"],[1,"font-dark","font-700","f-16","lh-22","mb-8"],["floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-select"],["aria-labelledby","title","aria-busy","true","formControlName","title",1,"border-gray","f-16",3,"valueChange","value"],["value",""],[3,"value"],["for","firstName",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","firstName","type","text","formControlName","firstName","maxlength","50","aria-label","First name"],["for","lastName",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","lastName","type","text","formControlName","lastName","minlength","2","maxlength","50","aria-label","Surname"],["id","mm",1,"col-6"],["aria-label","Month of date of birth","matInput","","type","text","placeholder","MM","formControlName","dobMonth","maxlength","2","id","dateofbirth",3,"blur"],["id","yy",1,"col-6"],["aria-label","Year of date of birth","matInput","","type","text","placeholder","YYYY","formControlName","dobYear","maxlength","4"],[1,"col-12","new-version-input"],[1,"mb-24","registration-password-field"],["for","password",1,"font-dark","font-700","f-16","lh-22","mb-8"],["capsLockDetect","","matInput","","id","password","placeholder","Use 10 or more characters","formControlName","password","maxlength","25","aria-label","Password",3,"capsLockOn","type","prevent-keys"],["mat-button","","type","button","matSuffix","",1,"f-16",3,"click"],["id","rc-password-visible-hide-icon"],[1,"capslock-txt"],[1,"common-caption","common-caption-position"],[1,"common-caption-txt"],[1,"common-caption-txt","dark-spark"],[1,"col-12",3,"ngClass"],[1,"mb-8"],["for","formattedAddress",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","formattedAddress","type","text","formControlName","formattedAddress","aria-label","Address","placeholder","Enter your address or postcode",3,"prevent-keys"],["mat-button","","type","button","matSuffix","","aria-label","Search Address",1,"f-14","addressInput"],["width","15","height","14","viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.425 13.7314L8.49375 8.8002C8.11875 9.1252 7.68151 9.37832 7.18202 9.55957C6.68253 9.74082 6.15103 9.83145 5.5875 9.83145C4.23548 9.83145 3.09122 9.3627 2.15473 8.4252C1.21824 7.4877 0.75 6.35645 0.75 5.03145C0.75 3.70645 1.21875 2.5752 2.15625 1.6377C3.09375 0.700195 4.22813 0.231445 5.55938 0.231445C6.89063 0.231445 8.02188 0.700195 8.95312 1.6377C9.88438 2.5752 10.35 3.70738 10.35 5.03426C10.35 5.56988 10.2625 6.0877 10.087
15 6.5877C9.9125 7.0877 9.65 7.55645 9.3 7.99395L14.25 12.9064L13.425 13.7314ZM5.56875 8.70645C6.58438 8.70645 7.44766 8.34707 8.15859 7.62832C8.86953 6.90957 9.225 6.04395 9.225 5.03145C9.225 4.01895 8.86953 3.15332 8.15859 2.43457C7.44766 1.71582 6.58438 1.35645 5.56875 1.35645C4.54271 1.35645 3.67057 1.71582 2.95234 2.43457C2.23411 3.15332 1.875 4.01895 1.875 5.03145C1.875 6.04395 2.23411 6.90957 2.95234 7.62832C3.67057 8.34707 4.54271 8.70645 5.56875 8.70645Z","fill","black"],[1,"hide-full-Address"],["matInput","","id","postCodeFA","type","text","formControlName","postCodeFA"],["matInput","","id","address1FA","type","text","formControlName","address1FA"],["matInput","","id","address2FA","type","text","formControlName","address2FA"],["matInput","","id","address3FA","type","text","formControlName","address3FA"],["matInput","","id","cityFA","type","text","formControlName","cityFA"],["matInput","","id","countryFA","type","text","formControlName","countryFA"],["for","postCode",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","pc","type","text","formControlName","postCode","maxlength","10","aria-label","Postcode"],["for","address1",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","add1","type","text","formControlName","address1","aria-label","First line of address","maxlength","50"],["for","address2",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","add2","type","text","formControlName","address2","aria-label","Second line of address","maxlength","50"],["for","address3",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","add3","type","text","formControlName","address3","aria-label","Third line of address","maxlength","50"],["for","city",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","ci","type","text","formControlName","city","aria-label","City Town","maxlength","58"],["for","country",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","co","type","text","formControlName","country","aria-label","Country","maxlength","58"],[1,"col-12","mb-24"],["type","button","mat-button","",1,"p-0","lh-16","f-12","font-400","font-dark","underline","mobile-pad-0","upgrade-f-12",2,"padding","0 !important"],[1,"mobile-container"],["for","Mobile",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","Mobile","type","text","formControlName","mobile","aria-label","Mobile","maxlength","14","appOnlyMobilenumber","",3,"keydown"],[1,"col-12","mb-16","mt-50"],["for","chk_joinClub",1,"c-pointer","mb-0"],[1,"f-14","lh-21","font-400","mb-0","d-flex","align-items-center","gap-08","word-break-word"],[1,"new-input-checkbox","top-6","position-relative"],["type","checkbox","id","chk_joinClub","formControlName","confirmClubAvanti"],["href","https://www.avantiwestcoast.co.uk/tickets-and-savings/club-avanti#ts&cs","target","_blank","rel","noopener",1,"dark-spark","underline","font-400"],[1,"col-12","mb-16"],["for","chk_privacyPolicy",1,"c-pointer","mb-0"],[1,"new-input-checkbox","top-3","position-relative"],["type","checkbox","id","chk_privacyPolicy","formControlName","confirmPolicy","required",""],["target","_blank","rel","noopener",1,"dark-spark","underline","font-400",3,"href"],["href","https://www.avantiwestcoast.co.uk/about-us/policies-and-procedures/terms-and-conditions","target","_blank","rel","noopener",1,"dark-spark","underline","font-400"],["for","chk_remeberMe",1,"c-pointer","mb-0"],["id","para2",1,"f-14","lh-21","font-400","mb-0","d-flex","align-items-center","gap-08","word-break-word"],["type","checkbox","id","chk_remeberMe","formControlName","rememberme"],[1,"error","m-0"],["mat-button","","type","submit",1,"new-default-btn","w-100"],[1,"f-18","text-spark-dark"],[1,"simple-btn",3,"click"],["src","assets/images/close-orange.svg","alt","close_icon"],[1,"ps-2"],[1,"text-spark-dark","font-500"],["for","other",1,"font-dark","font-700","f-16","lh-22","mb-8"],["matInput","","id","other","type","text","formControlName","other","aria-label","Other title"],["type","button","mat-button","",1,"p-0","lh-16","f-12","font-400","font-dark","underline","mobile-pad-0","upgrade-f-12",2,"padding","0 !important",3,"click"],[1,"validation-err"],[1,"account-create-icon","mb-04","d-flex","justify-center"],["width","29","height","28","viewBox","0 0 29 28","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","14.5","cy","14","r","14","fill","#6CAF35"],["d","M12.1326 19.5641L21.6769 10.0198L20.5957 8.90137L12.1326 17.3644L8.81451 14.009L7.69604 15.1275L12.1326 19.5641Z","fill","white","stroke","white","stroke-width","0.75"],[1,"m-0","font-600","text-center","f-32imp","lh-38","font-dark"],[3,"ngSubmit"],["id","widget-container",1,"page"],[1,"col-12","mt-24"],["mat-button","","type","submit","data-submit-widget","","mat-button","",1,"new-default-btn","w-100"]],template:function(r,o){1&r&&(e.nrm(0,"app-header"),e.j41(1,"div",2),e.nrm(2,"usp-banner"),e.k0s(),e.nVh(3,Jt,237,59,"div",3),e.nVh(4,Ut,20,0,"div",4)),2&r&&(e.R7$(3),e.vxM(o.isReg?3:-1),e.R7$(),e.vxM(o.isReg?-1:4))},dependencies:[h.YU,Fe.wT,v.$z,E.An,b.fg,u.rl,u.TL,u.yw,Me.VO,s.qT,s.me,s.Zm,s.BC,s.cb,s.YS,s.xh,s.tU,s.xq,s.cV,s.j4,s.JD,k.PW,R.l,y.P,Ee.A,j.X],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;padding:0 0 23px;
1height:100%;min-height:100%}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.5rem}body   [_nghost-%COMP%]   .default-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{box-sizing:border-box}mat-card-title[_ngcontent-%COMP%], mat-card-content[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-flow:column}mat-card[_ngcontent-%COMP%]{background:#fff;color:#000000de;border-top:4px solid #204555;border-radius:0!important}mat-card[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{width:100%;min-width:270px;padding-top:3%;align-self:center}.create-register-btn[_ngcontent-%COMP%]{background:#ff4713!important;color:#131e29!important;margin-top:10px!important;font-size:16px!important;font-weight:500!important;line-height:19px!important;width:200px!important;text-align:center!important;border-radius:4px!important;padding:9px!important;height:48px;margin-left:auto}.spinner[_ngcontent-%COMP%]{display:none}.spinner--show[_ngcontent-%COMP%]{display:block}.validation-err[_ngcontent-%COMP%]{color:#d02d00;display:block;margin-top:5px;margin-bottom:5px}.readonly-bg-white[_ngcontent-%COMP%]{background:#fff}#val_err[_ngcontent-%COMP%]{padding:16px;width:300px;color:#fff}.example-month-picker[_ngcontent-%COMP%]   .mat-calendar-period-button[_ngcontent-%COMP%]{pointer-events:none}.example-month-picker[_ngcontent-%COMP%]   .mat-calendar-arrow[_ngcontent-%COMP%]{display:none}.link-spark[_ngcontent-%COMP%]{text-decoration:underline}.link-spark[_ngcontent-%COMP%]:hover, .link-spark[_ngcontent-%COMP%]:active, .link-spark[_ngcontent-%COMP%]:focus{color:#ff4713}.remove-date[_ngcontent-%COMP%]{cursor:pointer;font-weight:700;color:#ff4713;margin-top:5px}.delete-icon-btn[_ngcontent-%COMP%]{right:40px;position:absolute;top:7px}button.delete-icon-btn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;margin-bottom:-10px}button.delete-icon-btn[_ngcontent-%COMP%]{line-height:22px!important;color:#ff4713;font-size:14px;border:none}.password-hint-message[_ngcontent-%COMP%]{color:gray;display:block;margin-bottom:5px;margin-top:5px}.hide-full-Address[_ngcontent-%COMP%]{display:none}.show-full-Address[_ngcontent-%COMP%]{display:block}.show-full-Address[_ngcontent-%COMP%]   .mdc-button[_ngcontent-%COMP%]{position:absolute;right:5px;top:-23px;margin-top:0!important;min-width:46px;width:38px!important;margin-right:0!important;padding:0;border-radius:0 4px 4px 0}#formattedAddress[_ngcontent-%COMP%]{padding-right:48px!important}.addressInput[_ngcontent-%COMP%]{height:46px!important;width:46px!important;border-radius:0 4px 4px 0;margin-right:-9px}.addressInput[_ngcontent-%COMP%]:focus{background-color:#eee}.datepicker-icon[_ngcontent-%COMP%]{right:67px}.offers-headline-container[_ngcontent-%COMP%]{position:relative;top:0}@media(max-width:767px){.delete-icon-btn[_ngcontent-%COMP%]{top:4px}button.delete-icon-btn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-bottom:-2px}.datepicker-icon[_ngcontent-%COMP%]{top:-12px}}@media(max-width:521px){mat-card[_ngcontent-%COMP%]   .w-50[_ngcontent-%COMP%]{width:100%!important}}"]})}}return i})();class Zt{}const G=i=>({"error-input-focus":i}),Y=()=>[32,34,35,38,39,40,41,42,43,96,9,128,123,124,125,126],Ht=i=>[i];
1function Kt(i,n){if(1&i&&(e.j41(0,"div",4)(1,"h1",9),e.EFF(2,"Reset Password"),e.k0s(),e.j41(3,"p",10),e.EFF(4,"In order to "),e.j41(5,"span",11),e.EFF(6,"protect your account,"),e.k0s(),e.EFF(7," make sure your password is,"),e.k0s(),e.j41(8,"ul",12)(9,"li",13),e.EFF(10," 1. Use 10 or more characters "),e.k0s(),e.j41(11,"li",14),e.EFF(12),e.k0s()()()),2&i){const t=e.XpG();e.R7$(12),e.SpI(" 2. ",t.formValidationMsg.PASSWORD_COMPLEXITY_MSG," ")}}function Qt(i,n){1&i&&(e.j41(0,"span",26),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function Wt(i,n){1&i&&(e.j41(0,"span",27),e.EFF(1," The password must be at least 10 characters. It should contain at least one uppercase letter, one lowercase letter, at least one number and at least one special character (!,-_.@;:$%^[\\]?=>/<). "),e.k0s())}function ei(i,n){1&i&&(e.j41(0,"p",28),e.EFF(1," Caps lock is on "),e.k0s())}function ti(i,n){1&i&&(e.j41(0,"span",38),e.EFF(1," Please complete this mandatory field. "),e.k0s())}function ii(i,n){1&i&&(e.j41(0,"span",39),e.EFF(1," Password must match "),e.k0s())}function si(i,n){1&i&&(e.j41(0,"p",28),e.EFF(1," Caps lock is on "),e.k0s())}function oi(i,n){if(1&i&&(e.j41(0,"p",40),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.error," ")}}function ni(i,n){if(1&i){const t=e.RV6();e.j41(0,"form",15),e.bIt("ngSubmit",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.submit())}),e.j41(1,"div",16)(2,"div",17)(3,"div",18)(4,"label",19),e.EFF(5," New password "),e.j41(6,"span",20),e.EFF(7,"*"),e.k0s()(),e.j41(8,"mat-form-field",21)(9,"input",22),e.bIt("capsLockOn",function(o){a.eBV(t);const l=e.XpG();return a.Njj(l.isNewPswCapsLock=o)}),e.k0s(),e.j41(10,"button",23),e.bIt("click",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.fieldTextType=!o.fieldTextType)}),e.j41(11,"mat-icon",24),e.EFF(12),e.k0s()(),e.j41(13,"mat-error",25),e.nVh(14,Qt,2,0,"span",26),e.nVh(15,Wt,2,0,"span",27),e.k0s()(),e.nVh(16,ei,2,0,"p",28),e.k0s()(),e.j41(17,"div",29)(18,"div",30)(19,"label",31),e.EFF(20," Confirm password "),e.j41(21,"span",32),e.EFF(22,"*"),e.k0s()(),e.j41(23,"mat-form-field",33)(24,"input",34),e.bIt("capsLockOn",function(o){a.eBV(t);const l=e.XpG();return a.Njj(l.isConfrmPswCapsLock=o)}),e.k0s(),e.j41(25,"button",35),e.bIt("click",function(){a.eBV(t);const o=e.XpG();return a.Njj(o.repeatFieldTextType=!o.repeatFieldTextType)}),e.j41(26,"mat-icon",36),e.EFF(27),e.k0s()(),e.j41(28,"mat-error",37),e.nVh(29,ti,2,0,"span",38),e.nVh(30,ii,2,0,"span",39),e.k0s()(),e.nVh(31,si,2,0,"p",28),e.k0s()(),e.nVh(32,oi,2,1,"p",40),e.j41(33,"div",41)(34,"button",42),e.EFF(35,"Reset Password"),e.k0s()()()()}if(2&i){const t=e.XpG();e.Y8G("formGroup",t.resetPassword),e.R7$(9),e.Y8G("ngClass",e.eq3(21,G,t.resetPassword.controls.password.invalid&&t.isSubmitted))("type",t.fieldTextType?"text":"password")("prevent-keys",e.lJ4(23,Y)),e.R7$(),e.BMQ("aria-label",t.fieldTextType?"Hide password":"Show password")("aria-pressed",t.fieldTextType),e.R7$(2),e.JRh(t.fieldTextType?"visibility":"visibility_off"),e.R7$(2),e.vxM(t.resetPassword.get("password").hasError("required")&&t.isSubmitted?14:-1),e.R7$(),e.vxM((t.resetPassword.get("password").hasError("pattern")||t.resetPassword.get("password").hasError("specialCharMoreThanOne"))&&t.isSubmitted?15:-1),e.R7$(),e.vxM(1===t.isNewPswCapsLock?16:-1),e.R7$(8),e.Y8G("ngClass",e.eq3(24,G,t.resetPassword.controls.confirmPassword.invalid&&t.isSubmitted))("type",t.repeatFieldTextType?"text":"password")("prevent-keys",e.lJ4(26,Y)),e.R7$(),e.BMQ("aria-label",t.repeatFieldTextType?"Hide password":"Show password")("aria-pressed",t.repeatFieldTextType),e.R7$(2),e.JRh(t.repeatFieldTextType?"visibility":"visibility_off"),e.R7$(2),e.vxM(t.resetPassword.get("confirmPassword").hasError("required")&&t.isSubmitted?29:-1),e.R7$(),e.vxM(t.resetPassword.get("confirmPassword").hasError("mustMatch")&&t.isSubmitted?30:-1),e.R7$(),e.vxM(1===t.isConfrmPswCapsLock?31:-1),e.R7$(),e.vxM(t.error?32:-1),e.R7$(2),e.Y8G("ngClass",t.resetPassword.invalid?"error-input-focus":"")}}function ri(i,n){if(1&i&&(e.j41(0,"div",8)(1,"div",43)(2,"div",44)(3,"p",45),e.EFF(4," Thank y
1ou. Your request to reset your password is being processed, and you should receive an email in the next few minutes. "),e.k0s(),e.j41(5,"p",46),e.EFF(6," If you do not receive this email in the next few minutes: "),e.k0s(),e.j41(7,"ul",47)(8,"li",48),e.EFF(9," 1. Check that you have entered the correct email address. "),e.k0s(),e.j41(10,"li",49),e.EFF(11," 2. Check your junk or spam folders. "),e.k0s()(),e.j41(12,"button",50),e.EFF(13,"Continue"),e.k0s()()()()),2&i){const t=e.XpG();e.R7$(12),e.Y8G("routerLink",e.eq3(1,Ht,"/"+t.appRouteEnum.Login))}}const ai=[{pathMatch:"full",path:"login",component:le},{pathMatch:"full",path:"forgotten-password",component:ve},{pathMatch:"full",path:"register",component:zt},{pathMatch:"full",path:"reset-password",component:(()=>{class i{constructor(t,r){this.formbuilder=t,this.injector=r,this.formValidationMsg=c.$z,this.isSubmitted=!1,this.error=!1,this.IsPasswordChanged=!1,this.fieldTextType=!1,this.repeatFieldTextType=!1,this.resetPassword=this.formbuilder.group({password:new s.MJ("",[s.k0.required,s.k0.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!,-_.@;:$%^[\\\\?=>\]/<])[A-Za-z\d!,-_.@;:$%^[\\\\?=>\]/<]{10,}$/)]),confirmPassword:new s.MJ("",[s.k0.required])},{validator:[(0,p.pk)("password","confirmPassword",!1),(0,p.VU)("password")]}),this.appRouteEnum=this.injector.get(c.Gg),this.customerService=this.injector.get(w.B),this.notificationService=this.injector.get(D.J),this.activatedRoute=this.injector.get(g.nX),this.router=this.injector.get(g.Ix),this.commonService=this.injector.get(C.e),this.datalayerService=this.injector.get(S.h),this.ga4dataLayerService=this.injector.get(_.j),this.spinnerService=this.injector.get(f.ex),this.sharedService=this.injector.get(F.d),this.commonService.loadGTMDataLayerAllPages()}ngOnInit(){this.sharedService.capsLockOn.subscribe(t=>{"password"==t.id||"rp-body-np-mat-icon"==t.id?(this.isNewPswCapsLock=t.value,this.isConfrmPswCapsLock=2):"rp-body-cp-input"==t.id||"rp-body-cp-mat-icon"==t.id?(this.isConfrmPswCapsLock=t.value,this.isNewPswCapsLock=2):(this.isConfrmPswCapsLock=2,this.isNewPswCapsLock=2)}),this.ga4dataLayerService.loadGA4DataLayerAllPages(!0),this.activatedRoute.queryParams.subscribe(t=>{this.idToken=t.idToken,this.Token=t.token}),this.spinnerService.hide()}signUpHere(){this.router.navigate(["./"+this.appRouteEnum.Register])}submit(){if(this.resetPassword.valid){let t=this.resetPassword.value;this.customerResetPasswordRequst=new Zt,this.customerResetPasswordRequst.NewPassword=t.password,this.customerResetPasswordRequst.IdToken=this.idToken,this.customerResetPasswordRequst.Token=this.Token,this.resetPasswordCustomer(this.customerResetPasswordRequst)}this.isSubmitted=!0}resetPasswordCustomer(t){this.customerService.resetPasswordCustomer(this.customerResetPasswordRequst).subscribe(r=>{null!=r&&(this.responseData=r,"200"==this.responseData.ResponseCode?(this.customerResetPasswordResponse=this.responseData.Data,this.customerResetPasswordResponse.IsPasswordReset?(this.IsPasswordChanged=!0,this.datalayerService.loadGTMDataLayerOnResetPassword("Password Reset",!0,"")):(this.notificationService.error(this.customerResetPasswordResponse.ResponseMessage),this.datalayerService.loadGTMDataLayerOnResetPassword("Password Reset",!1,this.customerResetPasswordResponse.ResponseMessage))):(this.notificationService.error(this.responseData.ResponseMessage),this.datalayerService.loadGTMDataLayerOnResetPassword("Password Reset",!1,this.responseData.ResponseMessage)))})}static{this.\u0275fac=function(r){return new(r||i)(e.rXU(s.ok),e.rXU(a.zZn))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-reset-password"]],standalone:!1,decls:11,vars:3,consts:[["id","rp-container",1,"container"],["id","rp-row",1,"row"],["
1id","rp-col",1,"col-12"],["id","rp-inner",1,"reset-password"],["id","rp-header-main",1,"reset-password-header"],["id","rp-body-main",1,"reset-password-body"],["id","rp-body-inner",1,"reset-password-form"],["id","rp-body-form",3,"formGroup"],["id","rp-footer-main",1,"reset-password-footer"],["id","rp-header-title",1,"link-tag","font-600","lh-40","f-32","text-center","m-0"],["id","rp-header-msg",1,"lh-22","f-16","font-dark","text-center","mt-04","mb-04"],["id","rp-header-account-protect",1,"font-700"],["id","rp-header-ul",1,"mb-12","p-0","text-center","reset-password-hint"],["id","rp-header-use-characters",1,"p-0","font-dark","f-14","lh-20","mb-12"],["id","rp-header-character-req",1,"m-0","p-0","font-dark","f-14","lh-20"],["id","rp-body-form",3,"ngSubmit","formGroup"],["id","rp-body-row",1,"row"],["id","rp-body-np-col",1,"col-12"],["id","rp-body-np-margin",1,"mb-12","new-version-input","new-version-input-my-profile"],["id","rp-body-np-label",1,"font-dark","font-700","f-16","lh-22","mb-8"],["id","rp-body-np-mand",1,"dark-spark","font-700","f-16","lh-22"],["id","rp-body-np-mat-form-field","floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-input"],["capsLockDetect","","matInput","","placeholder","New Password","id","password","formControlName","password","maxlength","25",3,"capsLockOn","ngClass","type","prevent-keys"],["id","rp-body-np-icon","type","button","mat-icon-button","","matSuffix","",1,"mt-5px","focus-icon",3,"click"],["id","rp-body-np-mat-icon"],["id","rp-body-np-mat-error"],["id","rp-body-np-mand-msg",1,"dark-spark","f-12","lh-16","mb-0"],["id","rp-body-np-password-msg",1,"dark-spark","f-12","lh-16","mb-0"],[1,"capslock-txt","mb-8"],["id","rp-body-cp-col",1,"col-12"],["id","rp-body-cp-margin",1,"mb-12","new-version-input","new-version-input-my-profile"],["id","rp-body-cp-label",1,"font-dark","font-700","f-16","lh-22","mb-8"],["id","rp-body-cp-mand",1,"dark-spark","font-700","f-16","lh-22"],["id","rp-body-cp-mat-form-field","floatLabel","never",1,"d-block","example-full-width","default-input","default-input-brdr","new-input"],["capsLockDetect","","id","rp-body-cp-input","matInput","","placeholder","Confirm New Password","formControlName","confirmPassword","maxlength","25",3,"capsLockOn","ngClass","type","prevent-keys"],["id","rp-body-cp-icon","type","button","mat-icon-button","","matSuffix","",1,"mt-5px","focus-icon",3,"click"],["id","rp-body-cp-mat-icon"],["id","rp-body-cp-mat-error"],["id","rp-body-cp-mand-msg",1,"dark-spark","f-12","lh-16","mb-0"],["id","rp-body-cp-match",1,"dark-spark","f-12","lh-16","mb-0"],["id","rp-body-error-col",1,"col-12","dark-spark","f-12","lh-16","mb-0"],["id","rp-body-btn-area",1,"col-12","mt-12"],["id","rp-body-btn","mat-button","","type","submit",1,"new-default-btn","w-100",3,"ngClass"],["id","rp-footer-inner"],["id","rp-footer-form-group",1,"form-group","m-0"],["id","rp-footer-ty-msg",1,"lh-22","f-16","font-dark","text-center","mt-04","mb-04"],["id","rp-footer-receive-email",1,"lh-22","f-16","font-dark","text-center","mt-04","mb-04"],["id","rp-footer-ul",1,"mb-12","p-0","text-center","reset-password-hint"],["id","rp-footer-li",1,"p-0","font-dark","f-14","lh-20","mb-12"],["id","rp-footer-li-2",1,"m-0","p-0","font-dark","f-14","lh-20"],["id","rp-footer-continue-btn","mat-button","",1,"new-default-btn","w-100",3,"routerLink"]],template:function(r,o){1&r&&(e.nrm(0,"app-header"),e.j41(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),e.nVh(5,Kt,13,1,"div",4),e.j41(6,"div",5)(7,"div",6),e.nVh(8,ni,36,27,"form",7),e.k0s()(),e.nVh(9,ri,14,3,"div",8),e.k0s()()()(),e.nrm(10,"app-footer")),2&r&&(e.R7$(5),e.vxM(o.IsPasswordChanged?-1:5),e.R7$(3),e.vxM(o.IsPasswordChanged?-1:8),e.R7$(),e.vxM(o.IsPasswordChanged?9:-1))},dependencies:[h.YU,x.Wk,v.$z,$.iY,E.An,b.fg,u.rl,u.TL,u.yw,s.qT,s.me,s.BC,s.cb,s.tU,s.j4,s.JD,k.PW,R.l,P.n,y.P,j.X],styles:["[_nghost-%COMP%]{display:flex;justify-content:center}.login-bx[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-bottom:1.5rem}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.5rem}body   [_nghost-%COMP%]   .default-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{box-sizing:border-box}mat-form-field[_ngcontent-%COMP%]{width:100%}.validation-err[_ngcontent-%COMP%]{color:red;display:block;margin-bottom:5px}mat-card-title[_ngcontent-%COMP%], mat-card-content[_ngcontent-%COMP%]{display:flex;justify-content:center}mat-card[_ngcontent-%COMP%]{background:#fff;color:#000000de;border-top:4px solid #204555;border-radius:0!important}mat-card[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{width:50%;padding-top:4%}.pass-eye-btn[_ngcontent-%COMP%]{position:absolute;top:35px;right:10px}.ng-invalid.is-invalid[_ngcontent-%COMP%] ~ .pass-eye-btn[_ngcontent-%COMP%]{right:30px}.reset-password[_ngcontent-%COMP%]{padding:96px 0;min-width:504px;max-width:504px;margin:0 auto}.reset-password-header[_ngcontent-%COMP%]   .reset-password-hint[_ngcontent-%COMP%], .reset-password-footer[_ngcontent-%COMP%]   .reset-password-hint[_ngcontent-%COMP%]{list-style-type:none}.reset-password[_ngcontent-%COMP%]   .reset-password-body[_ngcontent-%COMP%]   .reset-password-form[_ngcontent-%COMP%]   .new-default-btn[_ngcontent-%COMP%], .reset-password[_ngcontent-%COMP%]   .reset-password-footer[_ngcontent-%COMP%]   .new-default-btn[_ngcontent-%COMP%]{height:48px!important}.reset-password[_ngcontent-%COMP%]   .reset-password-body[_ngcontent-%COMP%]   .reset-password-form[_ngcontent-%COMP%]   .mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#e42b00!important}.reset-password[_ngcontent-%COMP%]   .reset-password-body[_ngcontent-%COMP%]   .reset-password-form[_ngcontent-%COMP%]   .new-input[_ngcontent-%COMP%]   input.error-input-focus[_ngcontent-%COMP%]{border:1px solid #E42B00!important;box-shadow:0 0 0 .1rem #e42b00!important}.focus-icon[_ngcontent-%COMP%]:hover, .focus-icon[_ngcontent-%COMP%]:focus{background-color:#f2f2f2}@media(max-width:768px){.reset-password-header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:24px;line-height:30px}.reset-password-header[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .reset-password-footer[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px!important;line-height:20px!important}.reset-password[_ngcontent-%COMP%]   .reset-password-body[_ngcontent-%COMP%]   .reset-password-form[_ngcontent-%COMP%]   .mt-5px[_ngcontent-%COMP%]{margin-top:7px!important}}@media(max-width:600px){.reset-password[_ngcontent-%COMP%]{padding:64px 0;min-width:auto;max-width:none}}"]})}}return i})()}];let di=(()=>
1{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=a.G2t({imports:[x.iI.forChild(ai),x.iI]})}}return i})(),li=(()=>{class i{static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=a.G2t({imports:[h.MD,di,X.e,z.G,s.X1]})}}return i})()}}]);

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.