PageSourceSearch

https://hub.cintilet.date/s/617.82e2351f012b2712.js

js cintilet.date collected 2026-10-07 21:26:54 UTC 23,845 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkonboarding_app=self.webpackChunkonboarding_app||[]).push([[617],{5263:(I,C,d)=>{d.d(C,{W:()=>c});var o=d(4650),u=d(6895);function t(m,b){if(1&m){const h=o.EpF();o.TgZ(0,"a",2),o.NdJ("click",function(){o.CHM(h);const F=o.oxw();return o.KtG(F.onCLick())}),o._uU(1,"<"),o.qZA()}if(2&m){const h=o.oxw();o.Gre("btn icon-button ",h.appearance,"")}}function v(m,b){if(1&m){const h=o.EpF();o.TgZ(0,"a",3),o.NdJ("click",function(){o.CHM(h);const F=o.oxw();return o.KtG(F.onCLick())}),o.qZA()}}class c{constructor(){this.appearance="btn-primary",this.hidden=!1,this.click=new o.vpe}onCLick(){this.click?.emit()}}c.\u0275fac=function(b){return new(b||c)},c.\u0275cmp=o.Xpm({type:c,selectors:[["app-back-button"]],inputs:{appearance:"appearance",hidden:"hidden"},outputs:{click:"click"},decls:2,vars:2,consts:[[3,"class","click",4,"ngIf"],["class","btn icon-button",3,"click",4,"ngIf"],[3,"click"],[1,"btn","icon-button",3,"click"]],template:function(b,h){1&b&&(o.YNc(0,t,2,3,"a",0),o.YNc(1,v,1,0,"a",1)),2&b&&(o.Q6J("ngIf",!h.hidden),o.xp6(1),o.Q6J("ngIf",h.hidden))},dependencies:[u.O5],styles:[".icon-button[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:10px;margin:0;padding:0;line-height:20px}"]})},7744:(I,C,d)=>{d.d(C,{I:()=>t});var o=d(4650);class t{constructor(){}}t.\u0275fac=function(c){return new(c||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-step-tip"]],hostAttrs:[2,"display","block"],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mt-2","mb-2"]],template:function(c,m){1&c&&(o.F$t(),o.TgZ(0,"p",0),o.Hsn(1),o.qZA())}})},5817:(I,C,d)=>{d.d(C,{G:()=>N});var o=d(4650),u=d(255),t=d(2709),v=d(8018),c=d(1103),m=d(2930),b=d(4896),h=d(6895),M=d(4175),F=d(4984),w=d(4463);class D{constructor(p,l,f){this.router=p,this.stepsService=l,this.store=f,this.nextStepClicked=new o.vpe,this.currentStep$=this.store.select(t.J9),this.steps$=this.store.select(t.QO),this.currentStepSubscription=this.stepsService.currentStep.subscribe(y=>{this.step=y}),this.nextStepSubscription=this.stepsService.nextStep.subscribe(y=>{this.next=y})}ngOnDestroy(){this.currentStepSubscription?.unsubscribe(),this.nextStepSubscription?.unsubscribe()}goToNextStep(){this.nextStepClicked.emit()}}D.\u0275fac=function(p){return new(p||D)(o.Y36(v.F0),o.Y36(c.K),o.Y36(m.yh))},D.\u0275cmp=o.Xpm({type:D,selectors:[["app-next-button"]],inputs:{submitting:"submitting",disabled:"disabled",buttonText:"buttonText"},outputs:{nextStepClicked:"nextStepClicked"},decls:4,vars:8,consts:[["id","next-button",1,"btn","btn-primary","button_main","mt-2","mb-2","btn-lg","col-6","fw-bold","pe-auto",3,"disabled","click"],[3,"inline","loading"]],template:function(p,l){1&p&&(o.TgZ(0,"button",0),o.NdJ("click",function(){return l.goToNextStep()}),o._uU(1),o.ALo(2,"translate"),o._UZ(3,"app-spinner",1),o.qZA()),2&p&&(o.ekj("disabled",l.disabled),o.Q6J("disabled",l.submitting),o.xp6(1),o.hij(" ",o.lcZ(2,6,(l.next?l.buttonText||(null==l.step?null:l.step.buttonText):"Enter")||"")," "),o.xp6(2),o.Q6J("inline",!0)("loading",l.submitting))},dependencies:[F.O,w.X$],styles:[".step[_ngcontent-%COMP%]{max-width:500px;min-height:500px}.header-container[_ngcontent-%COMP%]{padding-left:40px}.header-container[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:30px;height:30px;padding:0;margin-top:5px}"]});var E=d(5263);function P(g,p){if(1&g&&(o._UZ(0,"h6",23),o.ALo(1,"translate")),2&g){const l=o.oxw();o.Q6J("innerHtml",o.lcZ(1,1,l.subHeader),o.oJD)}}class N{constructor(p,l,f,y){this.router=p,this.stepsService=l,this.store=f,this.memberService=y,this.completed=0,this.previousStepClicked=new o.vpe,this.nextStepClicked=new o.vpe,this.currentStep$=this.store.select(t.J9),this.steps$=this.store.select(t.QO),this.member$=this.store.select(t.FC),this.memberSubscription=this.member$.subscribe(U=>{this.countryId=U.location?.countryId})}isUSA(){return this.countryId===u.x}processLabel(p){return(p??"").split("[example date]").join(this.isUSA()?"01/25/1990":"25/01/1990").split("[Day][Month][Year]").join(this.isUSA()?"[Month][Day][Year]":"[Day][Month][Year]")}ngOnInit(){window.setTimeout(()=>{const p=document.getElementsByTagName("input")?.[0];
1p&&!p.attributes.getNamedItem("nofocus")&&(p?.focus(),p?.setSelectionRange(0,9999))},100),this.currentStepSubscription=this.stepsService.currentStep.subscribe(p=>{if(p&&this.step?.name!==p.name){const l=this.stepsService.steps.findIndex(y=>y===p);this.completed=2+100*l/(this.stepsService.steps.length-1),this.memberService.save().subscribe(y=>{})}this.step=p}),this.nextStepSubscription=this.stepsService.nextStep.subscribe(p=>{this.next=p}),this.previousStepSubscription=this.stepsService.previousStep.subscribe(p=>{this.prev=p})}ngOnDestroy(){this.currentStepSubscription?.unsubscribe(),this.nextStepSubscription?.unsubscribe(),this.previousStepSubscription?.unsubscribe(),this.memberSubscription?.unsubscribe()}goToPreviousStep(){this.previousStepClicked.emit(),this.ignoreNavigation||this.stepsService.navigatePrev()}goToNextStep(){this.nextStepClicked.emit()}}N.\u0275fac=function(p){return new(p||N)(o.Y36(v.F0),o.Y36(c.K),o.Y36(m.yh),o.Y36(b.nh))},N.\u0275cmp=o.Xpm({type:N,selectors:[["app-wizard-step"]],hostAttrs:[2,"display","contents"],inputs:{submitting:"submitting",ignoreNavigation:"ignoreNavigation",disabled:"disabled",buttonText:"buttonText",header:"header",subHeader:"subHeader"},outputs:{previousStepClicked:"previousStepClicked",nextStepClicked:"nextStepClicked"},ngContentSelectors:["*"],decls:27,vars:24,consts:[[1,"su-main"],[1,"container-md","app-container","su-main-subheader"],[1,"row","flex-grow-1","su-progress-container-row"],[1,"d-flex","align-items-stretch","su-progress-container","mt-2"],["appearance","",1,"align-self-center","su-back-button",3,"hidden","click"],[1,"progress-bar-wrapper","d-flex","w-100","mt-2","mb-2","pe-4","position-relative","su-progress"],[1,"progress-bar-start"],[1,"align-self-center",3,"value","animate","max"],[1,"progress-bar-end"],[1,"row","flex-grow-1","su-step-header-row"],[1,"col-12","position-relative","header-container","mt-2","su-step-header"],[1,"ps-4","pe-4","text-start","mt-4",3,"innerHtml"],["class","ps-4 pe-4 text-start",3,"innerHtml",4,"ngIf"],[1,"flex-grow-1","h-100","container-md","app-container","overflow-auto","hub-scrollbar","su-step-body"],[1,"row"],[1,"col","d-flex","justify-content-center","text-start"],[1,"step","d-flex","flex-column","flex-1","su-step-container"],[1,"d-flex","flex-column","flex-grow-1","overflow-auto"],[1,"d-flex","flex-column","justify-content-center","flex-1","ps-4","pe-4","mb-2","mt-1"],[1,"btn-container","mt-4","text-center","su-desktop-button"],[3,"submitting","disabled","buttonText","nextStepClicked"],[1,"footer","mt-auto","py-3","bg-light","su-footer"],[1,"container","text-center","su-footer-button"],[1,"ps-4","pe-4","text-start",3,"innerHtml"]],template:function(p,l){1&p&&(o.F$t(),o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"app-back-button",4),o.NdJ("click",function(){return l.goToPreviousStep()}),o.qZA(),o.TgZ(5,"div",5),o._UZ(6,"div",6)(7,"progressbar",7)(8,"div",8),o.qZA()()(),o.TgZ(9,"div",9)(10,"div",10)(11,"header"),o._UZ(12,"h1",11),o.ALo(13,"translate"),o.YNc(14,P,2,3,"h6",12),o.qZA()()()(),o.TgZ(15,"div",13)(16,"div",14)(17,"div",15)(18,"section",16)(19,"div",17)(20,"div",18),o.Hsn(21),o.qZA(),o.TgZ(22,"div",19)(23,"app-next-button",20),o.NdJ("nextStepClicked",function(){return l.goToNextStep()}),o.qZA()()()()()()()(),o.TgZ(24,"footer",21)(25,"div",22)(26,"app-next-button",20),o.NdJ("nextStepClicked",function(){return l.goToNextStep()}),o.qZA()()()),2&p&&(o.xp6(4),o.Q6J("hidden",!l.prev),o.xp6(2),o.ekj("fill",l.completed>0),o.xp6(1),o.Q6J("value",l.completed)("animate",!0)("max",100),o.xp6(1),o.ekj("fill",l.completed>=99),o.xp6(4),o.Q6J("innerHtml",o.lcZ(13,22,l.processLabel(l.header||(null==l.step?null:l.step.header))),o.oJD),o.xp6(2),o.Q6J("ngIf",l.subHeader),o.xp6(4),o.ekj("submitted",null==l.step?null:l.step.submitted)("valid",null==l.step?null:l.step.valid)("not-valid",0==(null==l.step?null:l.step.valid)),o.xp6(5),o.Q6J("submitting",l.submitting)("disabled",l.disabled)("buttonText",l.buttonText),o.xp6(3),o.Q6J("submitting",l.submitting)("disabled",l.disabled)("buttonText",l.buttonText))},dependencies:[h.O5,M.O1,D,E.W,w.X$],styles:[".progress-bar-start[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:10px;border:solid 5px #e9ecef;margin-right:-2px}.progress-bar-end[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:10px;border:solid 5px #e9ecef;margin-left:-2px}
1.fill[_ngcontent-%COMP%]{background-color:var(--main-link-color);border-color:var(--main-link-color)}.hub-scrollbar[_ngcontent-%COMP%]{scrollbar-color:var(--main-link-color) var(--main-link-color-66)}.su-footer-button[_ngcontent-%COMP%]{display:none}.su-desktop-button[_ngcontent-%COMP%]{display:block}.footer[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 768px){.footer[_ngcontent-%COMP%]{display:block;z-index:999}.su-footer-button[_ngcontent-%COMP%]{display:block!important}.su-desktop-button[_ngcontent-%COMP%]{display:none!important}}@media screen and (max-height: 560px){.footer[_ngcontent-%COMP%]{display:block}.su-footer-button[_ngcontent-%COMP%]{display:block!important}.su-desktop-button[_ngcontent-%COMP%]{display:none!important}}"]})},617:(I,C,d)=>{d.r(C),d.d(C,{DateOfBirthModule:()=>B});var o=d(6895),u=d(4006),t=d(4650),v=d(9841),c=d(2709),m=d(9126),b=d(4896),h=d(2930),M=d(1103),F=d(2861),w=d(5817),D=d(7744),E=d(4358),P=d(4463);const Q=["dobday1"],N=["dobday2"],g=["dobmonth1"],p=["dobmonth2"],l=["dobyear1"],f=["dobyear2"];function y(s,r){1&s&&(t.TgZ(0,"div",4)(1,"div",12)(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&s&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"You")))}function U(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",6)(1,"input",13,14),t.NdJ("keyup",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.keyPress(n,"dobmonth1"))})("keypress",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.numberOnly(n))}),t.qZA()()}if(2&s){const e=t.oxw();
1t.xp6(1),t.Q6J("formControl",e.regForm.controls.dobmonth1)}}function R(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",6)(1,"input",15,14),t.NdJ("keyup",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.keyPress(n,"dobmonth1"))})("keypress",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.numberOnly(n))}),t.qZA()()}if(2&s){const e=t.oxw();t.xp6(1),t.Q6J("formControl",e.regForm.controls.dobmonth1)}}function $(s,r){if(1&s&&(t.TgZ(0,"alert",16),t._uU(1," This site is for 18-34's only please click "),t.TgZ(2,"a",17),t._uU(3,"here"),t.qZA(),t._uU(4," to continue your registration "),t.qZA()),2&s){const e=t.oxw();t.xp6(2),t.Q6J("href","https://app.theadulthub.com/s/register/dda8bed1-6181-44f3-85e6-00b75ead3129/t/"+e.authToken+"/date-of-birth?"+e.qsParams,t.LSH)}}function L(s,r){1&s&&(t.TgZ(0,"div",4)(1,"div",18)(2,"h3"),t._uU(3),t.ALo(4,"translate"),t.qZA()()()),2&s&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"Your Partner")))}function K(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",6)(1,"input",23,24),t.NdJ("keyup",function(n){t.CHM(e);const a=t.oxw(2);return t.KtG(a.keyPress(n,"dobmonth2"))})("keypress",function(n){t.CHM(e);const a=t.oxw(2);return t.KtG(a.numberOnly(n))}),t.qZA()()}if(2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.regForm.controls.dobmonth2)}}function q(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",6)(1,"input",23,24),t.NdJ("keyup",function(n){t.CHM(e);const a=t.oxw(2);return t.KtG(a.keyPress(n,"dobmonth2"))})("keypress",function(n){t.CHM(e);const a=t.oxw(2);return t.KtG(a.numberOnly(n))}),t.qZA()()}if(2&s){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.regForm.controls.dobmonth2)}}function j(s,r){if(1&s){const e=t.EpF();t.TgZ(0,"div",4),t.YNc(1,K,3,1,"div",5),t.TgZ(2,"div",6)(3,"input",19,20),t.NdJ("keyup",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.keyPress(n,"dobday2"))})("keypress",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.numberOnly(n))}),t.qZA()(),t.YNc(5,q,3,1,"div",5),t.TgZ(6,"div",6)(7,"input",21,22),t.NdJ("keyup",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.keyPress(n,"dobyear2"))})("keyup.enter",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.goToNextStep())})("keypress",function(n){t.CHM(e);const a=t.oxw();return t.KtG(a.numberOnly(n))}),t.qZA()()()}if(2&s){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.isUSA()),t.xp6(2),t.Q6J("formControl",e.regForm.controls.dobday2),t.xp6(2),t.Q6J("ngIf",!e.isUSA()),t.xp6(2),t.Q6J("formControl",e.regForm.controls.dobyear2)}}function z(s,r){1&s&&(t.TgZ(0,"alert",16),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"br"),t._uU(4),t.ALo(5,"translate"),t.qZA()),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"Oops_That_doesnt_look_right_Please_check_these_details_and_try_again")),t.xp6(3),t.Oqu(t.lcZ(5,4,"Please check these details and try again.")))}function W(s,r){1&s&&(t.TgZ(0,"alert",16),t._uU(1),t.ALo(2,"translate"),t._UZ(3,"br"),t._uU(4),t.ALo(5,"translate"),t.qZA()),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"Oops_That_doesnt_look_right_Please_check_these_details_and_try_again")),t.xp6(3),t.Oqu(t.lcZ(5,4,"Please check these details and try again.")))}function V(s,r){if(1&s&&(t.TgZ(0,"alert",16),t._uU(1," This site is for 18-34's only please click "),t.TgZ(2,"a",17),t._uU(3,"here"),t.qZA(),t._uU(4," to continue your registration "),t.qZA()),2&s){const e=t.oxw();t.xp6(2),t.Q6J("href","https://app.theadulthub.com/s/register/dda8bed1-6181-44f3-85e6-00b75ead3129/t/"+e.authToken+"/date-of-birth?"+e.qsParams,t.LSH)}}const G="date-of-birth",S=s=>s instanceof Date&&!isNaN(Number(s)),k=s=>s<10?`0${s}`:`${s}`,_=s=>{var r=Date.now()-new Date(s).getTime();return Math.floor(r/864e5/365.25)},Z=s=>(s??0)>0?s:void 0;class J{constructor(r,e,i,n,a){var s;this.store=r,this.stepsService=e,this.memberService=n,this.affiliateService=a,this.next=new t.vpe,this.member$=this.store.select(c.FC),this.currentStep$=this.store.select(c.J9),this.autoSubmitted=!1,this.configName=this.affiliateService.affiliateValue?.signupConfig.configName,this.regForm=i.group({dobday1:[""],dobmonth1:[""],dobyear1:[""],dobday2:[""],dobmonth2:[""],dobyear2:[""]},{validator:(s=this.isCouple(),e=>{const i=e.get("dobday1")?.value,n=e.get("dobmonth1")?.value,a=e.get("dobyear1")?.value,T=new Date(Date.parse(`${a}-${k(n)}-${k(i)}`));if(!S(T)||_(T)>=99)return{dob1:{invalidFormat:!0}};if(_(T)<=18)return{dob1:{under18:!0}};if(s){const A=e.get("dobday2")?.value,O=e.get("dobmonth2")?.value,Y=e.get("dobyear2")?.value,H=new Date(Date.parse(`${Y}-${k(O)}-${k(A)}`));if(!S(H)||_(H)>=99)return{dob2:{invalidFormat:!0}};if(_(H)<=18)return{dob2:{under18:!0}}}return{}})})}ngOnDestroy(){this.memberSubscription?.unsubscribe()}ngOnInit(){this.stepsService.setCurrentStep(G),this.memberSubscription=(0,v.a)([this.member$,this.stepsService.currentStep]).subscribe(([r,e])=>{if(r&&!this.memberType){const i=r.queryStringParams||{};this.qsParams=Object.keys(i).map(n=>`${n}=${i[n]}`).join("&"),this.dobday1=Z(r.dobday1),this.dobmonth1=Z(r.dobmonth1),this.dobyear1=Z(r.dobyear1),this.dobday2=Z(r.dobday2),this.dobmonth2=Z(r.dobmonth2),this.dobyear2=Z(r.dobyear2),this.memberType=r.memberType,this.countryId=r.location?.countryId,this.authToken=r.authToken,this.regForm.controls.dobday1.setValue(this.dobday1),this.regForm.controls.dobmonth1.setValue(this.dobmonth1),this.regForm.controls.dobyear1.setValue(this.dobyear1),this.regForm.controls.dobday2.setValue(this.dobday2),this.regForm.controls.dobmonth2.setValue(this.dobmonth2),this.regForm.controls.dobyear2.setValue(this.dobyear2),this.regForm.clearValidators(),this.focus(this.isUSA()?this.dobmonth1Ref:this.dobday1Ref)}r&&e&&(!this.autoSubmitted&&this.dobday1&&this.dobmonth1&&this.dobyear1&&typeof e.submitted>"u"&&(this.autoSubmitted=!0,window.setTimeout(()=>{this.goToNextStep()},100)),this.step=e)})}focus(r){window.setTimeout(()=>{r&&(r.nativeElement?.focus(),r.nativeElement?.select(),r.nativeElement?.setSelectionRange(0,0))},100)}valid(){this.regForm.controls.dobday1.setErrors(null),this.regForm.controls.dobmonth1.setErrors(null),this.regForm.controls.dobyear1.setErrors(null);const r=Number(this.regForm.controls.dobyear1.value),e=Number(this.regForm.controls.dobmonth1.value),i=Number(this.regForm.controls.dobday1.value),n=new Date(Date.parse(`${r}-${k(e)}-${k(i)}`));S(n)&&_(n)>=99&&this.regForm.controls.dobyear1.setErrors({required:!0}),S(n)&&_(n)<18&&this.regForm.controls.dobyear1.setErrors({required:!0}),(!r||r<1900)&&this.regForm.controls.dobyear1.setErrors({required:!0});let a=31;if(e>0&&e<13?this.regForm.controls.dobyear1.valid&&(a=new Date(r,e,0).getDate()):this.regForm.controls.dobmonth1.setErrors({required:!0}),Number(i)>0&&Number(i)<=a||this.regForm.controls.dobday1.setErrors({required:!0}),S(n)&&r>1900&&"EN_Excite 18-34"===this.configName&&_(n)>=35&&this.regForm.controls.dobyear1.setErrors({range1834:!0}),this.isCouple()){this.regForm.controls.dobday2.setErrors(null),this.regForm.controls.dobmonth2.setErrors(null),this.regForm.controls.dobyear2.setErrors(null);const x=Number(this.regForm.controls.dobyear2.value),T=Number(this.regForm.controls.dobmonth2.value),A=Number(this.regForm.controls.dobday2.value),O=new Date(Date.parse(`${x}-${k(T)}-${k(A)}`));S(O)&&_(O)>=99&&this.regForm.controls.dobyear2.setErrors({required:!0}),S(O)&&_(O)<18&&this.regForm.controls.dobyear2.setErrors({required:!0}),(!x||x<1900)&&this.regForm.controls.dobyear2.setErrors({required:!0});let Y=31;T>0&&T<13?this.regForm.controls.dobyear2.valid&&(Y=new Date(x,T,0).getDate()):this.regForm.controls.dobmonth2.setErrors({required:!0}),Number(A)>0&&Number(A)<=Y||this.regForm.controls.dobday2.setErrors({required:!0}),S(O)&&x>1900&&"EN_Excite 18-34"===this.configName&&_(O)>=35&&this.regForm.controls.dobyear2.setErrors({range1834:!0})}return this.regForm.valid}isUSA(){return this.countryId===b.xT}isCouple(){return 4===this.memberType}numberOnly(r){const e=r.which?r.which:r.keyCode;return!(e>31&&(e<48||e>57))}keyPress(r,e){if(e){const i=this.regForm.controls[e].value;let a,n=0;this.isUSA()?("dobday1"===e&&(n=2,a=this.dobyear1Ref),"dobmonth1"===e&&(n=2,a=this.dobday1Ref),"dobyear1"===e&&this.isCouple()&&(n=4,a=this.dobmonth2Ref),"dobday2"===e&&(n=2,a=this.dobyear2Ref),"dobmonth2"===e&&(n=2,a=this.dobday2Ref)):("dobday1"===e&&(n=2,a=this.dobmonth1Ref),"dobmonth1"===e&&(n=2,a=this.dobyear1Ref),"dobyear1"===e&&this.isCouple()&&(n=4,a=this.dobday2Ref),"dobday2"===e&&(n=2,a=this.dobmonth2Ref),"dobmonth2"===e&&(n=2,a=this.dobyear2Ref)),a&&n&&i&&i.length===n&&a.nativeElement.focus(),this.valid(),"13"===r.key&&this.submitForm(
1)}}submitForm(){this.goToNextStep()}saveState(){this.dobday1=this.regForm.controls.dobday1.value,this.dobmonth1=this.regForm.controls.dobmonth1.value,this.dobyear1=this.regForm.controls.dobyear1.value,this.dobday2=this.regForm.controls.dobday2.value,this.dobmonth2=this.regForm.controls.dobmonth2.value,this.dobyear2=this.regForm.controls.dobyear2.value;const{dobday1:r,dobmonth1:e,dobyear1:i,dobday2:n,dobmonth2:a,dobyear2:x}=this;this.store.dispatch(m._0.setDob({dobday1:r,dobmonth1:e,dobyear1:i,dobday2:n,dobmonth2:a,dobyear2:x}))}goToNextStep(){this.stepsService.submitted(G,this.valid()),this.valid()&&(this.saveState(),this.stepsService.navigateNext(),this.next.emit())}}J.\u0275fac=function(r){return new(r||J)(t.Y36(h.yh),t.Y36(M.K),t.Y36(u.qu),t.Y36(F.n),t.Y36(b.Cw))},J.\u0275cmp=t.Xpm({type:J,selectors:[["app-date-of-birth"]],viewQuery:function(r,e){if(1&r&&(t.Gf(Q,5),t.Gf(N,5),t.Gf(g,5),t.Gf(p,5),t.Gf(l,5),t.Gf(f,5)),2&r){let i;t.iGM(i=t.CRH())&&(e.dobday1Ref=i.first),t.iGM(i=t.CRH())&&(e.dobday2Ref=i.first),t.iGM(i=t.CRH())&&(e.dobmonth1Ref=i.first),t.iGM(i=t.CRH())&&(e.dobmonth2Ref=i.first),t.iGM(i=t.CRH())&&(e.dobyear1Ref=i.first),t.iGM(i=t.CRH())&&(e.dobyear2Ref=i.first)}},hostAttrs:[2,"display","contents"],outputs:{next:"next"},decls:21,vars:16,consts:[[3,"disabled","nextStepClicked","previousStepClicked"],["novalidate","",3,"formGroup","ngSubmit"],[1,"mb-2"],["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],["class","form-group col-4",4,"ngIf"],[1,"form-group","col-4"],["maxlength","2","placeholder","DD","type","tel","pattern","[0-9]{2}","id","dobday1","name","dobday1",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keypress"],["dobday1",""],["maxlength","4","placeholder","YYYY","type","tel","pattern","\\d*","id","dobyear1","name","dobyear1",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keyup.enter","keypress"],["dobyear1",""],["class","d-block mt-2 mb-2","type","danger",4,"ngIf"],[1,"form-group","col-12","mt-2"],["maxlength","2","placeholder","MM","type","tel","pattern","[0-9]{2}","id","dobmonth1","name","dobmonth1",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keypress"],["dobmonth1",""],["maxlength","2","placeholder","MM","type","tel","pattern","\\d*","id","dobmonth1","name","dobmonth1",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keypress"],["type","danger",1,"d-block","mt-2","mb-2"],[3,"href"],[1,"form-group","col-12","mt-3"],["maxlength","2","placeholder","DD","type","tel","id","dobday2","name","dobday2",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keypress"],["dobday2",""],["maxlength","4","placeholder","YYYY","type","tel","id","dobyear2","name","dobyear2",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keyup.enter","keypress"],["dobyear2",""],["maxlength","2","placeholder","MM","type","tel","id","dobmonth2","name","dobmonth2",1,"form-control","form-control-lg","col-12",3,"formControl","keyup","keypress"],["dobmonth2",""]],template:function(r,e){1&r&&(t.TgZ(0,"app-wizard-step",0),t.NdJ("nextStepClicked",function(){return e.goToNextStep()})("previousStepClicked",function(){return e.saveState()}),t.TgZ(1,"form",1),t.NdJ("ngSubmit",function(){return e.goToNextStep()}),t.TgZ(2,"app-step-tip",2),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,y,5,3,"div",3),t.TgZ(6,"div",4),t.YNc(7,U,3,1,"div",5),t.TgZ(8,"div",6)(9,"input",7,8),t.NdJ("keyup",function(n){return e.keyPress(n,"dobday1")})("keypress",function(n){return e.numberOnly(n)}),t.qZA()(),t.YNc(11,R,3,1,"div",5),t.TgZ(12,"div",6)(13,"input",9,10),t.NdJ("keyup",function(n){return e.keyPress(n,"dobyear1")})("keyup.enter",function(){return e.goToNextStep()})("keypress",function(n){return e.numberOnly(n)}),t.qZA()()(),t.YNc(15,$,5,1,"alert",11),t.YNc(16,L,5,3,"div",3),t.YNc(17,j,9,4,"div",3),t.YNc(18,z,6,6,"alert",11),t.YNc(19,W,6,6,"alert",11),t.YNc(20,V,5,1,"alert",11),t.qZA()()),2&r&&(t.Q6J("disabled",!e.valid()),t.xp6(1),t.Q6J("formGroup",e.regForm),t.xp6(2),t.Oqu(t.lcZ(4,14,"You must be at least 18 years old to use this site.")),t.xp6(2),t.Q6J("ngIf",e.isCouple()),t.xp6(2),t.Q6J("ngIf",e.isUSA()),t.xp6(2),t.Q6J("formControl",e.regForm.controls.dobday1),t.xp6(2),t.Q6J("ngIf",!e.isUSA()),t.xp6(2),t.Q6J("formControl",e.regForm.controls.dobyear1),t.xp6(2),t.Q6J("ngIf",(null==e.step?null:e.step.submitted)&&(null==e.regForm.controls.dobyear1||null==e.regForm.controls.dobyear1.errors?null:e.regForm.controls.dobyear1.errors.range1834)),t.xp6(1),t.Q6J("ngIf",e.isCouple()),t.xp6(1),t.Q6J("ngIf",e.isCouple()),t.xp6(1),t.Q6J("ngIf",(null==e.step?null:e.step.submitted)&&(null==e.regForm||null==e.regForm.errors||null==e.regForm.errors.dob2?null:e.regForm.errors.dob2.invalidFormat)),t.xp6(1),t.Q6J("ngIf",(null==e.step?null:e.step.submitted)&&(null==e.regForm||null==e.regForm.errors||null==e.regForm.errors.dob2?null:e.regForm.errors.dob2.under18)),t.xp6(1),t.Q6J("ngIf",(null==e.step?null:e.step.submitted)&&(null==e.regForm.controls.dobyear2||null==e.regForm.controls.dobyear2.errors?null:e.regForm.controls.dobyear2.errors.range1834)))},dependencies:[o.O5,w.G,D.I,u._Y,u.Fj,u.JJ,u.JL,u.nD,u.c5,u.oH,u.sg,E.wx,P.X$]});var tt=d(8018),et=d(5688);class B{}B.\u0275fac=function(r){return new(r||B)},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({imports:[o.ez,et.m,tt.Bz.forChild([{path:"",component:J}]),u.UX,E.nM,P.aw]})}}]);

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.