1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8650],{4517(S,y,l){l.d(y,{n:()=>E});var s=l(41360),i=l(97586),C=l(15441),k=l(22491),_=l(63897),v=l(16213),b=l(75281),T=l(14616);const I=u=>({"small-footer":u}),R=u=>({param:u});function M(u,F){if(1&u){const g=s.RV6();s.j41(0,"div",6)(1,"ion-button",7),s.bIt("click",function(){s.eBV(g);const m=s.XpG();return s.Njj(m.footerClicked.emit())}),s.nrm(2,"ion-icon",8),s.EFF(3),s.nI1(4,"translate"),s.k0s()()}if(2&u){const g=s.XpG();s.R7$(),s.BMQ("data-test-automation",g.dataAutomation+".button.makeAnotherBooking"),s.R7$(2),s.SpI(" ",s.bMT(4,2,"btn.makeAnotherBooking")," ")}}function e(u,F){if(1&u&&(s.j41(0,"div",9),s.nrm(1,"ion-img",10),s.k0s()),2&u){const g=s.XpG();s.R7$(),s.Y8G("src","assets/images/logos/full-logo"+g.darkModeUrl+".png")}}let E=(()=>{class u{constructor(g,h,m){this.router=g,this.dataAutomationAttributeService=h,this.uiService=m,this.footerBtn=!1,this.smallFooter=!1,this.footerClicked=new s.bkB,this.darkModeUrl="",this.dataAutomation=this.dataAutomationAttributeService.dataAutomatioAttr(g,"edea-counter.")}ngOnInit(){this.year=i().format("YYYY"),this.darkModeUrl=this.uiService.isDarkMode?"_white":""}static{this.\u0275fac=function(h){return new(h||u)(s.rXU(C.Ix),s.rXU(k.Fm),s.rXU(_.o))}}static{this.\u0275cmp=s.VBU({type:u,selectors:[["footer"]],inputs:{footerBtn:"footerBtn",smallFooter:"smallFooter"},outputs:{footerClicked:"onClick"},standalone:!1,decls:15,vars:18,consts:[[1,"ion-no-border",3,"ngClass"],[1,"edea-footer"],["class","edea-footer-button",4,"ngIf"],["class","footer-logo-content",4,"ngIf"],[1,"footer-text-content"],["href","https://www.calmac.co.uk/privacy-and-cookie-policy","target","_blank",1,"href-link-color","pointer"],[1,"edea-footer-button"],["fill","clear","color","secondary",3,"click"],["slot","start","src","assets/icons/b2c-add-cards.svg"],[1,"footer-logo-content"],[3,"src"]],template:function(h,m){1&h&&(s.j41(0,"ion-footer",0)(1,"ion-toolbar")(2,"div",1),s.DNE(3,M,5,4,"div",2)(4,e,2,1,"div",3),s.j41(5,"div",4)(6,"span"),s.EFF(7),s.nI1(8,"translate"),s.k0s(),s.j41(9,"span"),s.EFF(10),s.nI1(11,"translate"),s.j41(12,"a",5),s.EFF(13),s.nI1(14,"translate"),s.k0s()()()()()()),2&h&&(s.Y8G("ngClass",s.eq3(14,I,m.smallFooter)),s.R7$(3),s.Y8G("ngIf",m.footerBtn),s.R7$(),s.Y8G("ngIf",!m.smallFooter),s.R7$(3),s.JRh(s.i5U(8,7,"lbl.footerCopyRight",s.eq3(16,R,m.year))),s.R7$(3),s.SpI("",s.bMT(11,10,"lbl.footerCompanyNr")," "),s.R7$(2),s.BMQ("data-test-automation",m.dataAutomation+".anchor.privacyPolicy"),s.R7$(),s.SpI("",s.bMT(14,12,"lbl.privacyCookiePolicy")," "))},dependencies:[v.YU,v.bT,b.Jm,b.M0,b.iq,b.KW,b.ai,T.D9],encapsulation:2})}}return u})()},48650(S,y,l){l.d(y,{RegisterPageModule:()=>Fe});var s=l(16213),i=l(89417),f=l(75281),C=l(25207),k=l(10467),_=l(67376),v=l(97586),b=l(84282),T=l(56012),I=function(o){return o.MOBILE="MOBILE",o.HOME="HOME",o.OFFICE="OFFICE",o}(I||{}),R=function(o){return o.BILLING="BILLING",o.RESIDENCE="RESIDENCE",o.DELIVERY="DELIVERY",o.CONTACT="CONTACT ",o}(R||{}),M=l(9893),e=l(41360),E=l(15441),u=l(22491),F=l(71426),g=l(15889),h=l(26288),m=l(14616),O=l(3362),N=l(63897),B=l(91115),V=l(4517),D=l(27603),A=l(68410);const x=["postCode"],G=o=>({"disabled-input":o}),Y=()=>({min:1,max:50}),L=()=>({min:1,max:40}),q=o=>({"psw-circle-active":o});function U(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function J(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function X(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function K(o,c){if(1&o&&(e.j41(0,"ion-item",37)(1,"ion-radio",38),e.EFF(2),e.k0s()()),2&o){const t=c.$implicit;e.R7$(),e.Y8G("value",t.name),e.R7$(),e.SpI(" ",t.description,"")}}function z(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function W(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function Z(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}
1function H(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function Q(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.i5U(2,1,"lbl.fieldMustContainMinMax",e.lJ4(4,Y))," "))}function ee(o,c){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",15)(2,"ion-label",32),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"edea-select",78),e.nI1(6,"translate"),e.DNE(7,Z,3,3,"p",18),e.k0s(),e.j41(8,"div",15)(9,"ion-label",32),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span",33),e.nrm(13,"ion-icon",79)(14,"edea-popover",80),e.nI1(15,"translate"),e.k0s(),e.j41(16,"ion-input",81),e.bIt("keypress",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.noSpace(n))}),e.k0s(),e.DNE(17,H,3,3,"p",18)(18,Q,3,5,"p",18),e.k0s(),e.bVm()}if(2&o){const t=e.XpG();e.R7$(3),e.JRh(e.bMT(4,12,"lbl.typeOfConcession")),e.R7$(2),e.Y8G("list",t.concessionList)("required",!0)("controller",t.formControl("concessionCardType"))("selectedValue",t.setConcessionValue)("normalInput",!0)("dropdownLabel",e.bMT(6,14,"lbl.typeOfConcession")),e.R7$(2),e.Y8G("ngIf",t.form.get("concessionCardType").hasError("required")),e.R7$(3),e.JRh(e.bMT(11,16,"lbl.concessionCardNumber")),e.R7$(4),e.FS9("text",e.bMT(15,18,"lbl.concessionNumberTooltip")),e.R7$(3),e.Y8G("ngIf",t.form.get("concessionCardNumber").hasError("required")),e.R7$(),e.Y8G("ngIf",t.form.get("concessionCardNumber").hasError("minlength")||t.form.get("concessionCardNumber").hasError("maxlength"))}}function te(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function ne(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.i5U(2,1,"lbl.fieldMustContainMinMax",e.lJ4(4,L))," "))}function oe(o,c){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div",15)(2,"ion-label",82),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"ion-input",83),e.bIt("keypress",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.noSpace(n))})("paste",function(n){e.eBV(t);const a=e.XpG();return e.Njj(a.onPasteTrim(n))}),e.k0s(),e.DNE(6,te,3,3,"p",18)(7,ne,3,5,"p",18),e.k0s(),e.bVm()}if(2&o){const t=e.XpG();e.R7$(3),e.JRh(e.bMT(4,3,"lbl.blueBadgeNumber")),e.R7$(3),e.Y8G("ngIf",t.form.get("blueBadgeNumber").hasError("required")),e.R7$(),e.Y8G("ngIf",t.form.get("blueBadgeNumber").hasError("minlength")||t.form.get("blueBadgeNumber").hasError("maxlength"))}}function ie(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function se(o,c){if(1&o&&(e.j41(0,"div",15)(1,"ion-label",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"edea-select",84),e.nI1(5,"translate"),e.nI1(6,"translate"),e.DNE(7,ie,3,3,"p",18),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,8,"lbl.specialCareLbl")),e.R7$(2),e.Y8G("label",e.bMT(5,10,"lbl.specialCareLbl"))("list",t.ssr)("required",!0)("controller",t.formControl("specialCare"))("normalInput",!0)("dropdownLabel",e.bMT(6,12,"lbl.specialCareLbl")),e.R7$(3),e.Y8G("ngIf",t.submitted&&t.form.get("specialCare").hasError("required"))}}function re(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function ae(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function le(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function ce(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function pe(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function de(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function ue(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.phoneNumberValid")," "))}function me(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function fe(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.emailMustBeValid")," "))}function ge(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.emailMustMatch")," "))}function he(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function be(o,c){if(1&o){const t=e.RV6();e.j41(0,"ion-icon",85),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onClickViewPsw())}),e.k0s()}}function _e(o,c){if(1&o){const t=e.RV6();e.j41(0,"ion-icon",86),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onClickViewPsw())}),e.k0s()}}function Ce(o,c){if(1&o){const t=e.RV6();e.j41(0,"ion-icon",85),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onClickViewConfirmPsw())}),e.k0s()}}function ve(o,c){if(1&o){const t=e.RV6();e.j41(0,"ion-icon",86),e.bIt("click",function(){e.eBV(t);const n=e.XpG();return e.Njj(n.onClickViewConfirmPsw())}),e.k0s()}}function Ie(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.fieldCannotBeEmpty")," "))}function Re(o,c){1&o&&(e.j41(0,"p",77),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"lbl.confirmPasswordMustMatch")," "))}function ye(o,c){if(1&o&&(e.j41(0,"p",87)(1,"span",88),e.nrm(2,"ion-icon",89),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()),2&o){const t=c.$implicit;e.R7$(),e.Y8G("ngClass",e.eq3(4,q,t.isValid)),e.R7$(2),e.SpI("",e.bMT(4,2,t.label)," ")}}const ke=[{path:"",component:(()=>{class o{constructor(t,r,n,a,p,d,w,P,j,$,we,Pe){this.formBuilder=t,this.router=r,this.dataAutomationAttributeService=n,this.accountService=a,this.myAccountStore=p,this.store=d,this.translate=w,this.lookUpService=P,this.jwtService=j,this.uiService=$,this.spinner=we,this.appConfigService=Pe,this.submitted=!1,this.ssr=[],this.genders=[],this.countries=[],this.countryImg="assets/icons/b2c-world.png",this.countryValue="",this.prefixes=[],this.prefixImg="assets/icons/b2c-world.png",this.prefixValue="",this.travellerType=[],this.setTravellerType="",this.setPostCode="",this.concessionList=new Array,this.setConcessionValue="",this.agreementCode="",this.addressLookUp=!1,this.postcodeInputCtrl=new i.hs,this.postcodeSpinner=!1,this.postCodeList=[],this.postCodeValue="",this.pswValidators=[{label:"lbl.characterLength",isValid:!1},{label:"lbl.includeUpperLowerCase",isValid:!1},{label:"lbl.leastOneNr",isValid:!1},{label:"lbl.leastPunctuationChar",isValid:!1}],this.pswType="password",this.pswConfirmType="password",this.nationalityImg="assets/icons/b2c-world.png",this.nationalityValue="",this.dataAutomation=this.dataAutomationAttributeService.dataAutomatioAttr(r,"register-page.")}ngOnInit(){this.form=this.formBuilder.group({title:new i.hs(null),firstName:new i.hs(null,i.k0.required),lastName:new i.hs(null,i.k0.required),gender:new i.hs(null,i.k0.required),day:new i.hs(null,i.k0.required),month:new i.hs(null,i.k0.required),year:new i.hs(null,i.k0.required),travellerType:new i.hs(null,i.k0.required),concessionCard:new i.hs(!1),concessionCardType:new i.hs(null),concessionCardNumber:new i.hs(null),assistanceBoarding:new i.hs(!1,i.k0.required),specialCare:new i.hs(!1),assistanceEmergency:new i.hs(!1),country:new i.hs(null,i.k0.required),postcode:new i.hs(null,i.k0.required),addressLineOne:new i.hs(null,i.k0.required),addressLineTwo:new i.hs({disabled:!0,value:null}),city:new i.hs(null,i.k0.required),nationality:new i.hs(null,i.k0.required),prefix:new i.hs(null,i.k0.required),number:new i.hs(null,[
1i.k0.required,i.k0.pattern("^[0-9]+$")]),email:new i.hs(null,[i.k0.required,i.k0.pattern("^(?=.{1,64}@)[\\+A-Za-z0-9_-]+(\\.[\\+A-Za-z0-9_-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$")]),email_c:new i.hs(null,i.k0.required),password:new i.hs(null,[i.k0.required,i.k0.pattern("^(?=\\S*[a-z])(?=\\S*[A-Z])(?=\\S*\\d)(?=\\S*[_\\W])\\S{8,}$")]),password_c:new i.hs(null,i.k0.required),serviceConnection:new i.hs(!1),blueBadge:new i.hs(!1),blueBadgeNumber:new i.hs(null)},{validator:[this.mustMatch("password","password_c"),this.mustMatch("email","email_c")]}),this.countries=this.store.baseDataStore.nationalitiesWithFlags,this.prefixes=this.store.baseDataStore.prefixes,this.travellerType=this.myAccountStore.baseDataStore.personTitle,this.ssr=this.store.baseDataStore.ssrOptions,this.createGenericArray(),this.validatePassword(),this.checkConcessionValidity(),this.checkBlueBadgeValidity(),this.findAgreementCodeFromConfig(),this.findAddressLookupConfig(),this.initDataArrays(),this.getConfiguration()}createCompletePerson(){const t=this.form.value;let r=null;const n=new M.N;if(t.assistanceBoarding&&(n.name=t.specialCare.name,n.description=t.specialCare.description),this.form.get("year")?.value&&this.form.get("month")?.value&&this.form.get("day")?.value){const w=1===String(this.form.get("day")?.value).length?"0"+String(this.form.get("day")?.value):String(this.form.get("day")?.value),P=1===String(this.form.get("month")?.value).length?"0"+String(this.form.get("month")?.value):String(this.form.get("month")?.value),j=String(this.form.get("year")?.value);r=v(w+"-"+P+"-"+j,"DD-MM-YYYY").format("YYYY-MM-DDT00:00:00")}const a={accountId:null,consentGiven:!0,externalId:null,newsletterSubscription:t.serviceConnection,status:"ACTIVE",username:t.email,birthDate:r},p={addresses:[this.createAddressObject()],phoneNumbers:[this.createPhoneNumberObject()]};return{id:null,email:t.email,password:t.password,title:t.travellerType.name,name:t.firstName,surname:t.lastName,gender:"male"===t.gender?"M":"F",username:t.email,concessionNumber:t.concessionCardNumber,concessionType:t.concessionCardType?t.concessionCardType.name:null,birthDate:r,vatNumber:"",account:a,nationality:t.nationality?.alpha2.toUpperCase(),routes:null,vehicles:null,companions:null,documents:null,contactDetails:p,cards:[],specialCares:n,agreement:t.blueBadge?this.agreementCode:null,agreementNumber:t.blueBadgeNumber?t.blueBadgeNumber:null}}createAddressObject(){const t=this.form.value;return new b.t(null,null,R.RESIDENCE,t.country.alpha2.toUpperCase(),"",t.addressLineOne+(this.addressTwo?", "+this.addressTwo:""),"",this.postCodeValue?this.postCodeValue:t.postcode,"","",t.city,!0)}createPhoneNumberObject(){const t=this.form.value;return new T.M(null,null,I.OFFICE,t.prefix.dial_code,t.number,!0)}onRegister(){var t=this;return(0,k.A)(function*(){try{t.spinner.show();const r=t.createCompletePerson();yield t.accountService.addPerson(r).subscribe(n=>{t.spinner.hide();const a={color:"primary",icon:"b2c-info-v2",title:t.translate.instant("lbl.newAccountCreated"),desc:t.translate.instant("lbl.verifyYourMail"),confirmBtn:!0,confirmBtnTitle:t.translate.instant("btn.ok"),cancelBtn:!1};t.uiService.openConfirmationDialog(a),t.uiService.didConfirmationDialogDismiss.subscribe(p=>{t.jwtService.destroyKeycloakToken(),t.router.navigate(["/auth/login"])})},n=>{t.spinner.hide(),t.jwtService.destroyKeycloakToken(),t.uiService.infoMessage("Info",n.error.errors[0])})}catch(r){t.spinner.hide(),t.jwtService.destroyKeycloakToken(),t.uiService.infoMessage("Info",r.error.message)}})()}onPressDate(t){isNaN(+this.form.get(t).value)&&this.form.get(t).reset()}onPasteTrim(t){t.preventDefault();const r=t.clipboardData?.getData("text")?.trim();void 0!==r&&this.form.get("blueBadgeNumber")?.setValue(r)}noSpace(t){return/^[a-zA-Z0-9]+$/.test(t.key)}numericOnly(t){return/^([0-9])$/.test(t.key)}onBlurDate(t){isNaN(+this.form.get(t).value)?this.form.get(t).reset():"day"===t?this.form.get(t).value&&((this.form.get(t).value<1||this.form.get(t).value>31)&&this.form.get(t).reset(),1==String(this.form.get(t).value).length&&this.form.get(t).setValue(String(0+this.form.get(t).value))):"month"===t?this.form.get(t).value&&((this.form.get(t).value<1||this.form.get(t).value>12)&&this.form.get(t).reset(),1==String(this.form.get(t).value).length&&this.form.get(t).setValue(String(0+this.form.get(t).value))):"year"===t&&this.form.get(t).value&&((this.form.get(t).value<1900||this.form.get(t).value>this.getMaxYear())&&this.form.get(t).reset(),4!==String(this.form.get(t).value).length&&this.form.get(t).reset())}formControl(t){return this.form.get(t)}
1createGenericArray(){this.countries.forEach(n=>{n.key=n.alpha2,n.value=n.name,n.icon=n.alpha2}),this.prefixes.forEach(n=>{n.key=n.dial_code,n.value="("+n.dial_code+") "+n.name,n.icon=n.code.toLocaleLowerCase()}),this.travellerType.forEach(n=>{n.key=n.name,n.value=n.description}),this.genders=_.cloneDeep(this.myAccountStore.baseDataStore.genders),this.genders.forEach(n=>{n.description!==this.translate.instant("lbl."+n.description)&&(n.description=this.translate.instant("lbl."+n.description))});const r=this.genders.findIndex(n=>"other"==n.name);r>=0&&this.genders.splice(r,1),this.ssr.forEach(n=>{n.key=n.name,n.value=n.description})}detectSsrChange(){this.form.get("assistanceBoarding").valueChanges.subscribe(t=>{this.form.get("specialCare").reset(),1==t?this.form.get("specialCare").setValidators([i.k0.required]):this.form.get("specialCare").setValidators([]),this.form.get("specialCare").updateValueAndValidity(),this.form.updateValueAndValidity()})}onSelectedCountry(t){t&&(this.countryImg="assets/icons/flags/"+t.icon+".png"),this.clearFormAdressLookup(),this.postCodeList=[],this.postCodeValue="",this.setPostCode=""}onSelectedPrefix(t){t&&(this.prefixImg="assets/icons/flags/"+t.icon+".png")}findElements(t,r){return 0==t.length&&r?null:t.find(n=>n.name==r)}findCountry(t,r){return t.find(n=>n.name==r)}onClickFindAddress(){const t=this.form.get("postcode").value,r=this.jwtService.getDivisionToken();t&&(this.postcodeSpinner=!0,this.lookUpService.getAddressDetailsByPostCode(t,r).subscribe(n=>{const a=n.addressDetail;this.postCodeList=this.generateArrayOfLookup(a),a&&a.length>0&&this.postCode.initInput(this.postCodeList),this.postcodeSpinner=!1},n=>{this.postcodeSpinner=!1,this.uiService.infoMessage("Info",this.lookUpService.getStringError(n))}))}onSelectedPostCode(t){this.clearFormAdressLookup(),t&&t.key&&this.fillFromAddressLookup(t.key)}generateArrayOfLookup(t){const r=[];return t.forEach(n=>{let a=n.line_1;n.line_2&&(a=a+", "+n.line_2),r.push({key:_.cloneDeep(n),value:n.postcode+", "+a})}),r}clearFormAdressLookup(){this.postcodeInputCtrl.setValue(null,{emitEvent:!1}),this.form.patchValue({postcode:null,addressLineOne:null,addressLineTwo:null,city:null})}fillFromAddressLookup(t){this.addressTwo=t.line_2,console.log("fill form from address"),this.postcodeInputCtrl.setValue(t.postcode,{emitEvent:!1}),this.postCodeValue=t.postcode,this.form.patchValue({postcode:t.postcode,addressLineOne:t.line_1,addressLineTwo:t.line_2,city:t.post_town},{emitEvent:!1})}isCountryGB(){return!!this.form.get("country").value&&"gb"==this.form.get("country").value.alpha2}findPrefix(t,r){return t.find(n=>n.dial_code==r)}mustMatch(t,r){return n=>{const p=n.controls[r];p.errors&&!p.errors.mustMatch||p.setErrors(n.controls[t].value!==p.value?{mustMatch:!0}:null)}}validatePassword(){this.form.get("password").valueChanges.subscribe(t=>{this.pswValidators[0].isValid=/^.{8,20}$/.test(t),this.pswValidators[1].isValid=/(?=.*[a-z])(?=.*[A-Z])/.test(t),this.pswValidators[2].isValid=/\d/.test(t),this.pswValidators[3].isValid=/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+/.test(t)})}checkConcessionValidity(){this.form.get("concessionCard").valueChanges.subscribe(t=>{this.form.get("concessionCardType").reset(),this.form.get("concessionCardNumber").reset(),this.setConcessionValue=null,t?(this.form.get("concessionCardType").setValidators(i.k0.required),this.form.get("concessionCardNumber").setValidators([i.k0.required,i.k0.minLength(1),i.k0.maxLength(50)])):(this.form.get("concessionCardType").setValidators([]),this.form.get("concessionCardNumber").setValidators([])),this.form.get("concessionCardType").updateValueAndValidity(),this.form.get("concessionCardNumber").updateValueAndValidity()})}checkBlueBadgeValidity(){this.form.get("blueBadge").valueChanges.subscribe(t=>{this.form.get("blueBadgeNumber").reset(),t?this.form.get("blueBadgeNumber").setValidators([i.k0.required,i.k0.minLength(1),i.k0.maxLength(40)]):this.form.get("blueBadgeNumber").setValidators([]),this.form.get("blueBadgeNumber").updateValueAndValidity()})}initDataArrays(){this.concessionList=this.store.baseDataStore.concessions,this.concessionList.forEach(t=>{t.key=t.name,t.value=t.description}),this.concessionList=_.sortBy(this.concessionList,"description")}findAgreementCodeFromConfig(){const t=this.appConfigService.getCustomConfiguration(),r=this.jwtService.getDivisionToken();
1if(t&&t.concession_agreement_config){const n=t.concession_agreement_config.find(a=>a.divisionName==r);this.agreementCode=n.code}}findAddressLookupConfig(){const t=this.appConfigService.getCustomConfiguration(),r=this.jwtService.getDivisionToken();if(t&&t.address_look_up){const n=t.address_look_up.find(a=>a.divisionName==r);this.addressLookUp=n.enable}}onDebounce(t){this.addressLookUp&&this.isCountryGB()&&this.onClickFindAddress()}getMaxYear(){return(new Date).getFullYear()}numberOnly(t){const r=new RegExp("^[0-9 ]+$"),n=String.fromCharCode(t.charCode?t.charCode:t.which);return!!r.test(n)||(t.preventDefault(),!1)}onPaste(t){return t.preventDefault(),!1}onClickViewPsw(){this.pswType="password"==this.pswType?"text":"password"}onClickViewConfirmPsw(){this.pswConfirmType="password"==this.pswConfirmType?"text":"password"}onSelectedNationality(t){t&&(this.nationalityImg="assets/icons/flags/"+t.icon+".png")}getConfiguration(){const t=this.appConfigService.getCustomConfiguration(),r=this.jwtService.getDivisionToken();if(t&&t.prefill_fields){const n=t.prefill_fields.find(p=>p.divisionName==r);if(n&&!n.enable)return;const a=n.registerPage;if(a?.prefix){const p=this.prefixes.find(d=>d.key===a.prefix);this.form.get("prefix").setValue(p),this.onSelectedPrefix(p),this.prefixValue=p.key}}}static{this.\u0275fac=function(r){return new(r||o)(e.rXU(i.ze),e.rXU(E.Ix),e.rXU(u.Fm),e.rXU(F.j),e.rXU(g.T),e.rXU(h.t),e.rXU(m.c$),e.rXU(O.s),e.rXU(u.bT),e.rXU(N.o),e.rXU(u.Ui),e.rXU(u.NO))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-register"]],viewQuery:function(r,n){if(1&r&&e.GBs(x,5),2&r){let a;e.mGM(a=e.lsd())&&(n.postCode=a.first)}},standalone:!1,decls:250,vars:232,consts:[["postCode",""],[3,"brandName","contentOnLeft"],[1,"home-page-account"],[1,"md:container","md:mx-auto"],["form-content",""],[1,"login-page"],[1,"login-elements"],[1,"top-part","pb-10"],[1,"icon-content"],["src","assets/icons/b2c-profile.svg"],[1,"step-title-text","mb-2","dark-color"],[1,"normal-text","muted-color","title-width-content"],[1,"b2c-dashed-line"],[1,"form-content","pt-5"],[3,"formGroup"],[1,"b2c-input"],["position","stacked",1,"required","bold"],["dataAuto","travellerType",3,"label","list","required","controller","selectedValue","normalInput","dropdownLabel"],["class","error-message",4,"ngIf"],["type","text","required","","formControlName","firstName","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],["type","text","required","","formControlName","lastName","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],["formControlName","gender","mode","md"],["lines","none",4,"ngFor","ngForOf"],["dataAuto","nationality",3,"onSelect","label","required","img","controller","normalInput","list","selectedValue","dropdownLabel"],[1,"small-title-text","dark-color","bold","mt-4"],[1,"normal-text","muted-color","mb-3"],[1,"flex","flex-nowrap","gap-3","input-size-content"],[1,"date-inputs","flex-1"],["required","","type","text","formControlName","day","placeholder","DD","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"keypress","ionBlur","ionChange"],["required","","type","text","formControlName","month","placeholder","MM","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"keypress","ionBlur","ionChange"],["required","","type","text","formControlName","year","placeholder","YYYY","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"keypress","ionBlur"],[1,"b2c-input","b2c-email-input"],["position","stacked",1,"bold"],[1,"label-tooltip"],["id","concessionPopoverId","src","assets/icons/b2c-info.svg"],["id","concessionPopoverId",3,"text"],["formControlName","concessionCard","mode","md"],["lines","none"],["labelPlacement","end","slot","start","color","secondary",3,"value"],[4,"ngIf"],["id","blueBadgeHolder","src","assets/icons/b2c-info.svg"],["id","blueBadgeHolder",3,"text"],["formControlName","blueBadge","mode","md"],["id","doesPassengerReqAssitance","src","assets/icons/b2c-info.svg"],["id","doesPassengerReqAssitance",3,"text"],["formControlName","assistanceBoarding","mode","md"],["class","b2c-input",4,"ngIf"],[1,"small-title-text","dark-color","bold","mt-10","mb-3"],["dataAuto","country",3,"onSelect","label","required","img","controller","normalInput","list","selectedValue","dropdownLabel"],[1,"b2c-input","b2c-input-smaller"],["dataAuto","postCode",3,"debounce","onSelect","list","required","controller","normalInput","input","dropdownLabel","spinner"],["type","text","required","","formControlName","addressLineOne","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],["position","stacked",1,"bold",3,"ngClass"],["type","text","formControlName","addressLineTwo","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],["type","text","required","","formControlName","city","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],[1,"b2c-prefix-phone"],["dataAuto","prefix",3,"onSelect","list","required","img","controller","normalInput","label","selectedValue","dropdownLabel","showKeyAsFilled"],[1,"vr-line"],["type","tel","required","","formControlName","number","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],["type","email","required","","formControlName","email","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],[1,"b2c-input","mb-5"],["type","email","required","","formControlName","email_c","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none"],[1,"password-content","flex","flex-nowrap"],[1,"left-password-content"],[1,"b2c-input","b2c-input-smaller","b2c-input-psw"],["required","","formControlName","password","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"type"],["name","eye-outline",3,"click",4,"ngIf"],["name","eye-off-outline",3,"click",4,"ngIf"],[1,"b2c-input","b2c-input-smaller","mb-10","password-input","b2c-input-psw"],["required","","formControlName","password_c","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"type"],[1,"right-password-content","flex-1","pl-10"],[1,"n
1ormal-text","dark-color"],["class","normal-text muted-color",4,"ngFor","ngForOf"],[1,"medium-text","muted-color","mt-5"],["formControlName","serviceConnection","mode","md"],[1,"w-full","text-center","pb-10"],["color","primary",1,"lower-border-radius","register-btn","mb-3","mt-8",3,"click","disabled"],[1,"error-message"],["dataAuto","typeOfConcession",3,"list","required","controller","selectedValue","normalInput","dropdownLabel"],["id","concessionNumberTooltip","src","assets/icons/b2c-info.svg"],["id","concessionNumberTooltip",3,"text"],["type","text","required","","formControlName","concessionCardNumber","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"keypress"],["position","stacked",1,"bold","required"],["formControlName","blueBadgeNumber","autocomplete","off","autocomplete","nope","list","autocompleteOff","aria-autocomplete","none",3,"keypress","paste"],["dataAuto","specialCare",3,"label","list","required","controller","normalInput","dropdownLabel"],["name","eye-outline",3,"click"],["name","eye-off-outline",3,"click"],[1,"normal-text","muted-color"],[1,"psw-circle",3,"ngClass"],["src","assets/icons/b2c-check.svg"]],template:function(r,n){if(1&r){const a=e.RV6();e.nrm(0,"navbar",1),e.j41(1,"ion-content")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),e.nrm(9,"ion-icon",9),e.k0s(),e.j41(10,"div",10),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",11),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",12),e.j41(17,"div",13)(18,"form",14)(19,"div",15)(20,"ion-label",16),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.nrm(23,"edea-select",17),e.nI1(24,"translate"),e.nI1(25,"translate"),e.DNE(26,U,3,3,"p",18),e.k0s(),e.j41(27,"div",15)(28,"ion-label",16),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.nrm(31,"ion-input",19),e.DNE(32,J,3,3,"p",18),e.k0s(),e.j41(33,"div",15)(34,"ion-label",16),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.nrm(37,"ion-input",20),e.DNE(38,X,3,3,"p",18),e.k0s(),e.j41(39,"div",15)(40,"ion-label",16),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.j41(43,"ion-radio-group",21),e.DNE(44,K,3,2,"ion-item",22),e.k0s(),e.DNE(45,z,3,3,"p",18),e.k0s(),e.j41(46,"div",15)(47,"ion-label",16),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"edea-select",23),e.nI1(51,"translate"),e.nI1(52,"translate"),e.bIt("onSelect",function(d){return e.eBV(a),e.Njj(n.onSelectedNationality(d))}),e.k0s()(),e.j41(53,"div",24),e.EFF(54),e.nI1(55,"translate"),e.k0s(),e.j41(56,"div",25),e.EFF(57),e.nI1(58,"translate"),e.k0s(),e.j41(59,"div",26)(60,"div",27)(61,"div",15)(62,"ion-label",16),e.EFF(63),e.nI1(64,"translate"),e.k0s(),e.j41(65,"ion-input",28),e.bIt("keypress",function(d){return e.eBV(a),e.Njj(n.numericOnly(d))})("ionBlur",function(){return e.eBV(a),e.Njj(n.onBlurDate("day"))})("ionChange",function(){return e.eBV(a),e.Njj(n.onPressDate("day"))}),e.k0s()()(),e.j41(66,"div",27)(67,"div",15)(68,"ion-label",16),e.EFF(69),e.nI1(70,"translate"),e.k0s(),e.j41(71,"ion-input",29),e.bIt("keypress",function(d){return e.eBV(a),e.Njj(n.numericOnly(d))})("ionBlur",function(){return e.eBV(a),e.Njj(n.onBlurDate("month"))})("ionChange",function(){return e.eBV(a),e.Njj(n.onPressDate("month"))}),e.k0s()()(),e.j41(72,"div",27)(73,"div",15)(74,"ion-label",16),e.EFF(75),e.nI1(76,"translate"),e.k0s(),e.j41(77,"ion-input",30),e.bIt("keypress",function(d){return e.eBV(a),e.Njj(n.numericOnly(d))})("ionBlur",function(){return e.eBV(a),e.Njj(n.onBlurDate("year"))}),e.k0s()()()(),e.DNE(78,W,3,3,"p",18),e.j41(79,"div",31)(80,"ion-label",32),e.EFF(81),e.nI1(82,"translate"),e.k0s(),e.j41(83,"span",33),e.nrm(84,"ion-icon",34)(85,"edea-popover",35),e.nI1(86,"translate"),e.k0s(),e.j41(87,"ion-radio-group",36)(88,"ion-item",37)(89,"ion-radio",38),e.EFF(90),e.nI1(91,"translate"),e.k0s()(),e.j41(92,"ion-item",37)(93,"ion-radio",38),e.EFF(94),e.nI1(95,"translate"),e.k0s()()()(),e.DNE(96,ee,19,20,"ng-container",39),e.j41(97,"div",31)(98,"ion-label",32),e.EFF(99),e.nI1(100,"translate"),e.k0s(),e.j41(101,"span",33),e.nrm(102,"ion-icon",40)(103,"edea-popover",41),e.nI1(104,"translate"),e.k0s(),e.j41(105,"ion-radio-group",42)(106,"ion-item",37)(107,"ion-radio",38),e.EFF(108),e.nI1(109,"translate"),e.k0s()(),e.j41(110,"ion-item",37)(111,"ion-radio",38),e.EFF(112),e.nI1(113,"translate"),e.k0s()()()(),e.DNE(114,oe,8,5,"ng-container",39),e.j41(115,"div",31)(116,"ion-label",16),e.EFF(117),e.nI1(118,"translate"),e.k0s(),e.j41(119,"span",33),e.nrm(120,"ion-icon",43)(121,"edea-popover",44),e.nI1(122,"translate"),e.k0s(),e.j41(123,"ion-radio-group",45)(124,"ion-item",37)(125,"ion-radio",38),e.EFF(126),e.nI1(127,"translate"),e.k0s()(),e.j41(128,"ion-item",37)(129,"ion-radio",38),e.EFF(130),e.nI1(131,"translate"),e.k0s()()()(),e.DNE(132,se,8,14,"div",46),e.nrm(133,"div",12),e.j41(134,"p",47),e.EFF(135),e.nI1(136,"translate"),e.k0s(),e.j41(137,"div",15)(138,"ion-label",16),e.EFF(139),e.nI1(140,"translate"),e.k0s(),e.j41(141,"edea-select",48),e.nI1(142,"translate"),e.nI1(143,"translate"),e.bIt("onSelect",function(d){return e.eBV(a),e.Njj(n.onSelectedCountry(d))}),e.k0s(),e.DNE(144,re,3,3,"p",18),e.k0s(),e.j41(145,"div",49)(14
16,"ion-label",16),e.EFF(147),e.nI1(148,"translate"),e.k0s(),e.j41(149,"edea-select",50,0),e.nI1(151,"translate"),e.bIt("debounce",function(d){return e.eBV(a),e.Njj(n.onDebounce(d))})("onSelect",function(d){return e.eBV(a),e.Njj(n.onSelectedPostCode(d))}),e.k0s(),e.DNE(152,ae,3,3,"p",18),e.k0s(),e.j41(153,"div",49)(154,"ion-label",16),e.EFF(155),e.nI1(156,"translate"),e.k0s(),e.nrm(157,"ion-input",51),e.DNE(158,le,3,3,"p",18),e.k0s(),e.j41(159,"div",49)(160,"ion-label",52),e.EFF(161),e.nI1(162,"translate"),e.k0s(),e.nrm(163,"ion-input",53),e.DNE(164,ce,3,3,"p",18),e.k0s(),e.j41(165,"div",49)(166,"ion-label",16),e.EFF(167),e.nI1(168,"translate"),e.k0s(),e.nrm(169,"ion-input",54),e.DNE(170,pe,3,3,"p",18),e.k0s(),e.nrm(171,"div",12),e.j41(172,"p",47),e.EFF(173),e.nI1(174,"translate"),e.k0s(),e.j41(175,"div",49)(176,"ion-label",16),e.EFF(177),e.nI1(178,"translate"),e.k0s(),e.j41(179,"div",55)(180,"edea-select",56),e.nI1(181,"translate"),e.nI1(182,"translate"),e.bIt("onSelect",function(d){return e.eBV(a),e.Njj(n.onSelectedPrefix(d))}),e.k0s(),e.nrm(183,"div",57)(184,"ion-input",58),e.k0s()(),e.DNE(185,de,3,3,"p",18)(186,ue,3,3,"p",18),e.j41(187,"div",15)(188,"ion-label",16),e.EFF(189),e.nI1(190,"translate"),e.k0s(),e.nrm(191,"ion-input",59),e.DNE(192,me,3,3,"p",18)(193,fe,3,3,"p",18),e.k0s(),e.j41(194,"div",60)(195,"ion-label",16),e.EFF(196),e.nI1(197,"translate"),e.k0s(),e.nrm(198,"ion-input",61),e.DNE(199,ge,3,3,"p",18),e.k0s(),e.nrm(200,"div",12),e.j41(201,"p",47),e.EFF(202),e.nI1(203,"translate"),e.k0s(),e.j41(204,"div",62)(205,"div",63)(206,"div",64)(207,"ion-label",16),e.EFF(208),e.nI1(209,"translate"),e.k0s(),e.nrm(210,"ion-input",65),e.DNE(211,he,3,3,"p",18)(212,be,1,0,"ion-icon",66)(213,_e,1,0,"ion-icon",67),e.k0s(),e.j41(214,"div",68)(215,"ion-label",16),e.EFF(216),e.nI1(217,"translate"),e.k0s(),e.nrm(218,"ion-input",69),e.DNE(219,Ce,1,0,"ion-icon",66)(220,ve,1,0,"ion-icon",67)(221,Ie,3,3,"p",18)(222,Re,3,3,"p",18),e.k0s()(),e.j41(223,"div",70)(224,"p",71),e.EFF(225),e.nI1(226,"translate"),e.k0s(),e.DNE(227,ye,5,6,"p",72),e.k0s()(),e.nrm(228,"div",12),e.j41(229,"p",47),e.EFF(230),e.nI1(231,"translate"),e.k0s(),e.j41(232,"div",73),e.EFF(233),e.nI1(234,"translate"),e.k0s(),e.j41(235,"div",31)(236,"ion-radio-group",74)(237,"ion-item",37)(238,"ion-radio",38),e.EFF(239),e.nI1(240,"translate"),e.k0s()(),e.j41(241,"ion-item",37)(242,"ion-radio",38),e.EFF(243),e.nI1(244,"translate"),e.k0s()()()(),e.j41(245,"div",75)(246,"ion-button",76),e.bIt("click",function(){return e.eBV(a),e.Njj(n.onRegister())}),e.EFF(247),e.nI1(248,"translate"),e.k0s()()()()()()()()(),e.nrm(249,"footer"),e.k0s()}2&r&&(e.Y8G("brandName",!0)("contentOnLeft",!0),e.R7$(11),e.SpI(" ",e.bMT(12,126,"lbl.loginForAnOnlineAccount")," "),e.R7$(3),e.SpI(" ",e.bMT(15,128,"lbl.pleaseCompleteThisFormAboveChild")," "),e.R7$(4),e.Y8G("formGroup",n.form),e.R7$(3),e.JRh(e.bMT(22,130,"lbl.travellerType")),e.R7$(2),e.Y8G("label",e.bMT(24,132,"lbl.travellerType"))("list",n.travellerType)("required",!0)("controller",n.formControl("travellerType"))("selectedValue",n.setTravellerType)("normalInput",!0)("dropdownLabel",e.bMT(25,134,"lbl.travellerTypeAZ")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("travellerType").hasError("required")),e.R7$(3),e.JRh(e.bMT(30,136,"lbl.firstName")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("firstName").hasError("required")),e.R7$(3),e.JRh(e.bMT(36,138,"lbl.lastName")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("lastName").hasError("required")),e.R7$(3),e.JRh(e.bMT(42,140,"lbl.gender")),e.R7$(3),e.Y8G("ngForOf",n.genders),e.R7$(),e.Y8G("ngIf",n.submitted&&n.form.get("gender").hasError("required")),e.R7$(3),e.JRh(e.bMT(49,142,"lbl.nationality")),e.R7$(2),e.Y8G("label",e.bMT(51,144,"lbl.nationality"))("required",!0)("img",n.nationalityImg)("controller",n.formControl("nationality"))("normalInput",!0)("list",n.countries)("selectedValue",n.nationalityValue)("dropdownLabel",e.bMT(52,146,"lbl.allNationalitiesAZ")),e.R7$(4),e.SpI(" ",e.bMT(55,148,"lbl.dateOfBirth")," "),e.R7$(3),e.SpI(" ",e.bMT(58,150,"lbl.useNumbersOnlyWhenEnteringDateOfBirth")," "),e.R7$(6),e.JRh(e.bMT(64,152,"lbl.day")),e.R7$(6),e.JRh(e.bMT(70,154,"lbl.month")),e.R7$(6),e.JRh(e.bMT(76,156,"lbl.year")),e.R7$(3),e.Y8G("ngIf",n.submitted&&(n.form.get("day").hasError("required")||n.form.get("month").hasError("required")||n.form.get("year").hasError("required"))),e.R7$(3),e.SpI("",e.bMT(82,158,"lbl.doYouHaveAConcessionCard"),"?"),e.R7$(4),e.FS9("text",e.bMT(86,160,"lbl.concessionTypeTooltip")),e.R7$(4),e.Y8G("value",!0),e.R7$(),e.SpI(" ",e.bMT(91,162,"lbl.yes"),""),e.R7$(3),e.Y8G("value",!1),e.R7$(),e.SpI(" ",e.bMT(95,164,"lbl.no"),""),e.R7$(2),e.Y8G("ngIf",n.form.get("concessionCard").value),e.R7$(3),e.SpI("",e.bMT(100,166,"lbl.blueBadgeHolder"),"?"),e.R7$(4),e.FS9("text",e.bMT(104,168,"lbl.blueBadgeHolderTooltip")),e.R7$(4),e.Y8G("value",!0),e.R7$(),e.SpI(" ",e.bMT(109,170,"lbl.yes")," "),e.R7$(3),e.Y8G("value",!1),e.R7$(),e.SpI(" ",e.bMT(113,172,"lbl.no")," "),e.R7$(2),e.Y8G("ngIf",n.formControl("blueBadge").value),e.R7$(3),e.JRh(e.bMT(118,174,"lbl.doesPassengerReqAssitance")),e.R7$(4),e.FS9("text",e.bMT(122,176,"lbl.passengerAssistanceTooltip")),e.R7$(4),e.Y8G("value",!0),e.R7$(),e.SpI(" ",e.bMT(127,178,"lbl.yes"),""),e.R7$(3),e.Y8G("value",!1),e.R7$(),e.JRh(e.bMT(131,180,"lbl.no")),e.R7$(2),e.Y8G("ngIf",1==n.form.get("assistanceBoarding").value),e.R7$(3),e.SpI(" ",e.bMT(136,182,"lbl.address")," "),e.R7$(4),e.JRh(e.bMT(140,184,"lbl.country")),e.R7$(2),e.Y8G("label",e.bMT(142,186,"lbl.country"))("required",!0)("img",n.countryImg)("controller",n.formControl("country"))("normalInput",!0)("list",n.countries)("selectedValue",n.countryValue)("dropdownLabel",e.bMT(143,188,"lbl.allCountriesAZ")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("country").hasError("required")),e.R7$(3),e.JRh(e.bMT(148,190,"lbl.postCode")),e.R7$(2),e.Y8G("list",n.postCodeList)("required",!0)("controller",n.formControl("postcode"))("normalInput",!1)("input",n.postcodeInputCtrl)("dropdownLabel",e.bMT(151,192,"lbl.postCodeAZ"))("debounce",!0)("spinner",n.postcodeSpinner),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("postcode").hasError("required")),e.R7$(3),e.JRh(e.bMT(156,194,"lbl.addressLineOne")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("addressLineOne").hasError("required")),e.R7$(2),e.Y8G("ngClass",e.eq3(230,G,n.form.get("addressLineTwo").disabled)),e.R7$(),e.JRh(e.bMT(162,196,"lbl.addressLineTwo")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("addressLineTwo").hasError("required")),e.R7$(3),e.JRh(e.bMT(168,198,"lbl.townCity")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("city").hasError("required")),e.R7$(3),e.SpI(" ",e.bMT(174,200,"lbl.contactDetails")," "),e.R7$(4),e.JRh(e.bMT(178,202,"lbl.mobile")),e.R7$(3),e.Y8G("list",n.prefixes)("required",!0)("img",n.prefixImg)("controller",n.formControl("prefix"))("normalInput",!0)("label",e.bMT(181,204,"lbl.prefix"))("selectedValue",n.prefixValue)("dropdownLabel",e.bMT(182,206,"lbl.allPrefixedAZ"))("showKeyAsFilled",!0),e.R7$(5),e.Y8G("ngIf",n.submitted&&(n.form.get("prefix").hasError("required")||n.form.get("number").hasError("required"))),e.R7$(),e.Y8G("ngIf",n.form.get("number").hasError("pattern")),e.R7$(3),e.JRh(e.bMT(190,208,"lbl.emailAddress")),e.R7$(3),e.Y8G("ngIf",n.submitted&&n.form.get("email").hasError("required")),e.R7$(),e.Y8G("ngIf",n.form.get("email").hasError("pattern")),e.R7$(3),e.JRh(e.bMT(197,210,"lbl.confirmEmailAddress")),e.R7$(3),e.Y8G("ngIf",n.form.get("email_c").hasError("mustMatch")),e.R7$(3),e.SpI(" ",e.bMT(203,212,"lbl.password")," "),e.R7$(6),e.JRh(e.bMT(209,214,"lbl.password")),e.R7$(2),e.Y8G("type",n.pswType),e.R7$(),e.Y8G("ngIf",n.submitted&&n.form.get("password").hasError("required")),e.R7$(),e.Y8G("ngIf","password"==n.pswType),e.R7$(),e.Y8G("ngIf","text"==n.pswType),e.R7$(3),e.JRh(e.bMT(217,216,"lbl.confirmPassword")),e.R7$(2),e.Y8G("type",n.pswConfirmType),e.R7$(),e.Y8G("ngIf","password"==n.pswConfirmType),e.R7$(),e.Y8G("ngIf","text"==n.pswConfirmType),e.R7$(),e.Y8G("ngIf",n.submitted&&n.form.get("password_c").hasError("required")),e.R7$(),e.Y8G("ngIf",n.form.get("password_c").hasError("mustMatch")),e.R7$(3),e.SpI(" ",e.bMT(226,218,"lbl.pswFormatted")," "),e.R7$(2),e.Y8G("ngForOf",n.pswValidators),e.R7$(3),e.SpI(" ",e.bMT(231,220,"lbl.signUpNewsletter")," "),e.R7$(3),e.SpI(" ",e.bMT(234,222,"lbl.companyServiceConnection")," "),e.R7$(5),e.Y8G("value",!0),e.R7$(),e.SpI(" ",e.bMT(240,224,"lbl.yes"),""),e.R7$(3),e.Y8G("value",!1),e.R7$(),e.SpI(" ",e.bMT(244,226,"lbl.no"),""),e.R7$(3),e.Y8G("disabled",n.form.invali
1d),e.BMQ("data-test-automation",n.dataAutomation+".button.register"),e.R7$(),e.SpI(" ",e.bMT(248,228,"btn.register")," "))},dependencies:[s.YU,s.Sq,s.bT,i.qT,i.BC,i.cb,i.YS,f.Jm,f.W9,f.iq,f.$w,f.uz,f.he,f.KO,f.f0,f.Je,f.Gw,i.j4,i.JD,B._,V.n,D.h,A.W,m.D9],styles:[".top-part[_ngcontent-%COMP%]{text-align:center;margin-top:70px}.top-part[_ngcontent-%COMP%] .icon-content[_ngcontent-%COMP%]{font-size:50px;color:var(--ion-color-primary)}.find-address[_ngcontent-%COMP%]{padding-top:24px}.find-address[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{margin:0;height:50px!important}.card-title-text[_ngcontent-%COMP%]{font-size:20px!important}.form-content[_ngcontent-%COMP%] .b2c-input[_ngcontent-%COMP%]{width:100%;max-width:530px}.form-content[_ngcontent-%COMP%] .b2c-input[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{--padding-start: 0;--min-height: 35px}.form-content[_ngcontent-%COMP%] .b2c-input[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-radio[_ngcontent-%COMP%]{margin-right:5px}.form-content[_ngcontent-%COMP%] .b2c-input[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-checkbox[_ngcontent-%COMP%]{margin-right:5px}.form-content[_ngcontent-%COMP%] .b2c-input-smaller[_ngcontent-%COMP%]{width:100%;max-width:350px}.form-content[_ngcontent-%COMP%] .b2c-input-smallest[_ngcontent-%COMP%]{width:100%;max-width:210px}.form-content[_ngcontent-%COMP%] .b2c-input-smallest[_ngcontent-%COMP%] .expiry-date-separator[_ng
1content-%COMP%]{position:relative;top:43px}.form-content[_ngcontent-%COMP%] .input-size-content[_ngcontent-%COMP%]{width:100%;max-width:350px}.form-content[_ngcontent-%COMP%] .form-action-buttons[_ngcontent-%COMP%]{min-width:190px;margin-top:15px;margin-bottom:15px}.password-content[_ngcontent-%COMP%] .left-password-content[_ngcontent-%COMP%]{width:350px}.password-content[_ngcontent-%COMP%] .right-password-content[_ngcontent-%COMP%]{line-height:35px}.password-content[_ngcontent-%COMP%] .right-password-content[_ngcontent-%COMP%] .psw-circle[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;background-color:var(--ion-color-background-lighter-medium);color:var(--ion-color-dark);font-size:11px;line-height:20px;text-align:center;border-radius:50%;margin-right:5px}.password-content[_ngcontent-%COMP%] .right-password-content[_ngcontent-%COMP%] .psw-circle-active[_ngcontent-%COMP%]{background-color:var(--ion-color-success);color:var(--ion-color-white)}.title-width-content[_ngcontent-%COMP%]{padding:0 20%}.register-btn[_ngcontent-%COMP%]{width:100%;max-width:350px}.b2c-input-psw[_ngcontent-%COMP%]{position:relative}.b2c-input-psw[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{position:absolute;right:15px;top:51px;z-index:100}.b2c-input-psw[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]:hover{cursor:pointer}@media(max-width:991px){.password-content[_ngcontent-%COMP%]{flex-wrap:wrap!important}.password-content[_ngcontent-%COMP%] .left-password-content[_ngcontent-%COMP%]{width:100%!important}.password-content[_ngcontent-%COMP%] .left-password-content[_ngcontent-%COMP%] .password-input[_ngcontent-%COMP%]{margin-bottom:0!important}.password-content[_ngcontent-%COMP%] .right-password-content[_ngcontent-%COMP%]{width:100%;padding-left:0!important}.home-page-account[_ngcontent-%COMP%]{padding:13px}}"]})}}return o})()}];let Te=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({imports:[C.iI.forChild(ke),C.iI]})}}return o})();var Me=l(12975),Ee=l(65542);let Fe=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({imports:[s.MD,i.YN,f.bv,Te,Ee.j,i.X1,Me.H,m.h]})}}return o})()}}]);
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.