"use strict";(self.webpackChunkserver_side_rendering=self.webpackChunkserver_side_rendering||[]).push([[8229],{68229:(e,t,n)=>{n.d(t,{r:()=>at});var i=n(6856),o=n(73753),r=n(42974),s=n(61982),a=n(41306),c=n(22311),l=n(50536),d=n(8566),g=n(79346),u=n(34207),m=n(84704),p=n(72558),h=n(36873),f=n(25938),v=n(8807),x=n(34725),S=n(88323),b=n(57826);let C=(()=>{class e{constructor(e){this.storage=e}init(){const e=this.storage.get("loginAttemptsCounter");if(!e)return this.counter=[],void this.save();this.counter=JSON.parse(e),this.save()}save(){this.storage.set("loginAttemptsCounter",JSON.stringify(this.counter))}resetCount(e){const t=this.counter.findIndex((t=>t&&t.email===e));-1!==t&&(this.counter.splice(t,1),this.save())}getCount(e){const t=this.counter.findIndex((t=>t&&t.email===e));return-1===t?0:this.counter[t].count}increment(e){const t=this.counter.findIndex((t=>t&&t.email===e));-1===t?this.addUser(e):(this.counter[t].count++,this.save())}addUser(e){this.counter.push({email:e,count:1}),this.save()}}return e.ɵfac=function(t){return new(t||e)(b["ɵɵinject"](S.n))},e.ɵprov=b["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var I=n(4309),w=n(42998),E=n(16462),k=n(51794);let y=(()=>{class e{constructor(e,t){this.contentService=e,this.contentBlockCsmMapper=t,this.LOGIN_FORM_CONTENT_BLOCK_SLUG="login-form-description"}resolve(){return this.contentService.getContentBySlug(this.LOGIN_FORM_CONTENT_BLOCK_SLUG,"section").pipe((0,w.map)((e=>this.contentBlockCsmMapper.map(e).data)),(0,w.catchError)((()=>(0,I.of)(null))))}}return e.ɵfac=function(t){return new(t||e)(b["ɵɵinject"](E._),b["ɵɵinject"](k.y))},e.ɵprov=b["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})();var _=n(64762),M=n(40475),j=n(95556),L=n(73475),A=n(3336),T=n(81465),F=n(93744),N=n(55640),P=n(82846),O=n(79308),R=n(81899),B=n(48108),G=n(81577),V=n(45965),D=n(64375),W=n(12596),q=n(99576),U=n(84245),H=n(93144),K=n(82319),$=n(71835),Y=n(58960),z=n(92947),J=n(16339),Q=n(46268),X=n(33098),Z=n(22953),ee=n(71063),te=n(66900),ne=n(24144),ie=n(43640),oe=n(84860),re=n(58447),se=n(74195),ae=n(86014),ce=n(2986),le=n(97241);const de=["rme"];function ge(e,t){1&e&&(b["ɵɵelementStart"](0,"figure",17),b["ɵɵtext"](1,"\n "),b["ɵɵelement"](2,"i",18),b["ɵɵtext"](3,"\n "),b["ɵɵelementStart"](4,"figcaption",19),b["ɵɵtext"](5,"login.session.expired.message"),b["ɵɵelementEnd"](),b["ɵɵtext"](6,"\n "),b["ɵɵelementEnd"]())}function ue(e,t){if(1&e&&(b["ɵɵelementStart"](0,"bx-content-block",20),b["ɵɵtext"](1,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵproperty"]("data",e.descriptionContentBlock)}}function me(e,t){1&e&&(b["ɵɵelementStart"](0,"div",21),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"h5",22),b["ɵɵtext"](3,"login.softBlocked.memberInTrip"),b["ɵɵelementEnd"](),b["ɵɵtext"](4,"\n "),b["ɵɵelementStart"](5,"p",23),b["ɵɵtext"](6,"login.softBlocked.join"),b["ɵɵelementEnd"](),b["ɵɵtext"](7,"\n "),b["ɵɵelementEnd"]())}function pe(e,t){if(1&e&&(b["ɵɵelementStart"](0,"div",24),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"div",25),b["ɵɵtext"](3,"\n "),b["ɵɵelementStart"](4,"header",26),b["ɵɵtext"](5,"\n "),b["ɵɵelementStart"](6,"h3",27),b["ɵɵtext"](7,"login.requiredActionsOneWorks.title"),b["ɵɵelementEnd"](),b["ɵɵtext"](8,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](9,"\n "),b["ɵɵelementStart"](10,"section",28),b["ɵɵtext"](11,"\n "),b["ɵɵelement"](12,"p",29),b["ɵɵtext"](13,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](14,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](15,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](12),b["ɵɵproperty"]("innerHTML",e.requiredActionsMessage,b["ɵɵsanitizeHtml"])}}function he(e,t){1&e&&(b["ɵɵelementStart"](0,"div"),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"p",30),b["ɵɵtext"](3,"login.error.password_rules"),b["ɵɵelementEnd"](),b["ɵɵtext"](4,"\n "),b["ɵɵelementEnd"]())}const fe=function(e){return{label:e,tag:"textContent"}};function ve(e,t){if(1&e&&(b["ɵɵelementStart"](0,"span",33),b["ɵɵtext"](1,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](3);b["ɵɵproperty"]("bxTranslate",b["ɵɵpureFunction1"](1,fe,e.loginSuccessMessage))}}function xe(e,t){if(1&e&&(b["ɵɵelementStart"](0,"figure",31),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"figcaption"),b["ɵɵtext"](3,"\n "),b["ɵɵtemplate"](4,ve,2,3,"span",32),b["ɵɵtext"](5,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](6,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](4),b["ɵɵproperty"]("ngIf",e.loginSuccessMessage)}}function Se(e,t){if(1&e&&(b["ɵɵelementStart"](0,"span",33),b["ɵɵtext"](1,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](3);b["ɵɵproperty"]("bxTranslate",b["ɵɵpureFunction1"](1,fe,e.loginErrorMessage))}}function be(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"div"),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"span",19),b["ɵɵtext"](3,"login.error.blocked.part1"),b["ɵɵelementEnd"](),b["ɵɵtext"](4,"\n "),b["ɵɵelementStart"](5,"a",35),b["ɵɵlistener"]("click",(function(t){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"](3).openChat(t)})),b["ɵɵtext"](6,"login.error.blocked.part2"),b["ɵɵelementEnd"](),b["ɵɵtext"](7,"\n "),b["ɵɵelementStart"](8,"span",19),b["ɵɵtext"](9,"login.error.blocked.part3"),b["ɵɵelementEnd"](),b["ɵɵtext"](10,"\n "),b["ɵɵelementEnd"]()}}function Ce(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"div"),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"span",36),b["ɵɵtext"](3,"login.error.attempt_two.part1"),b["ɵɵelementEnd"](),b["ɵɵtext"](4," \n "),b["ɵɵelementStart"](5,"a",37),b["ɵɵlistener"]("click",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"](3).goToForgotPassword()})),b["ɵɵtext"](6,"login.error.attempt_two.part2"),b["ɵɵelementEnd"](),b["ɵɵtext"](7,"\n "),b["ɵɵelementStart"](8,"span",38),b["ɵɵtext"](9,"login.error.attempt_two.part3"),b["ɵɵelementEnd"](),b["ɵɵtext"](10,"\n "),b["ɵɵelementEnd"]()}}function Ie(e,t){if(1&e&&(b["ɵɵelementStart"](0,"figure",34),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"figcaption"),b["ɵɵtext"](3,"\n "),b["ɵɵtemplate"](4,Se,2,3,"span",32),b["ɵɵtext"](5,"\n "),b["ɵɵtemplate"](6,be,11,0,"div",9),b["ɵɵtext"](7,"\n "),b["ɵɵtemplate"](8,Ce,11,0,"div",9),b["ɵɵtext"](9,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](10,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](4),b["ɵɵproperty"]("ngIf",e.loginErrorMessage),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",e.loginErrorMessageParts&&!e.loginErrorMessage),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",!e.loginErrorMessageParts&&!e.loginErrorMessage&&e.failedAttemptsMessages)}}function we(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"div",39),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"input",40),b["ɵɵlistener"]("change",(function(){b["ɵɵrestoreView"](e);const t=b["ɵɵnextContext"](2);return t.rememberMeValue=!t.rememberMeValue})),b["ɵɵelementEnd"](),b["ɵɵtext"](3,"\n "),b["ɵɵelementStart"](4,"label",41),b["ɵɵtext"](5,"login.remember_me.label"),b["ɵɵelementEnd"](),b["ɵɵtext"](6,"\n "),b["ɵɵelementEnd"]()}if(2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](2),b["ɵɵproperty"]("checked",e.rememberMeValue)}}const Ee=function(e){return[e]};function ke(e,t){if(1&e&&(b["ɵɵelementStart"](0,"a",44),b["ɵɵtext"](1,"login.joinNow"),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](3);b["ɵɵproperty"]("ngClass",b["ɵɵpureFunction1"](1,Ee,e.loginConfig.joinNowStyleClass||"tertiary"))}}function ye(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"a",45),b["ɵɵlistener"]("click",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"](3).goToForgotPassword()})),b["ɵɵtext"](1,"login.forgotPassword"),b["ɵɵelementEnd"]()}}function _e(e,t){if(1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵtemplate"](1,ke,2,3,"a",42),b["ɵɵtext"](2,"\n "),b["ɵɵtemplate"](3,ye,2,0,"a",43),b["ɵɵtext"](4,"\n ")),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](1),b["ɵɵproperty"]("ngIf",e.showJoinCta()),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",e.showForgotPasswordLink())}}const Me=function(){return{utm_source:"OW",utm_medium:"app"}};function je(e,t){if(1&e&&(b["ɵɵelementStart"](0,"a",48),b["ɵɵtext"](1,"login.joinNow"),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"](3);b["ɵɵproperty"]("queryParams",b["ɵɵpureFunction0"](2,Me))("ngClass",b["ɵɵpureFunction1"](3,Ee,e.loginConfig.joinNowStyleClass||"tertiary"))}}function Le(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"a",49),b["ɵɵlistener"]("click",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"](3).goToForgotPassword({utm_source:"OW",utm_medium:"app"})})),b["ɵɵtext"](1,"login.forgotPassword"),b["ɵɵelementEnd"]()}}function Ae(e,t){if(1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵtemplate"](1,je,2,5,"a",46),b["ɵɵtext"](2,"\n "),b["ɵɵtemplate"](3,Le,2,0,"a",47),b["ɵɵtext"](4,"\n ")),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](1),b["ɵɵproperty"]("ngIf",e.showJoinCta()),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",e.showForgotPasswordLink())}}function Te(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementContainerStart"](0),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"a",50),b["ɵɵlistener"]("click",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"](2).goToForgotPassword()})),b["ɵɵtext"](3,"login.forgotPassword"),b["ɵɵelementEnd"](),b["ɵɵtext"](4,"\n "),b["ɵɵelementStart"](5,"div"),b["ɵɵtext"](6,"\n "),b["ɵɵelementStart"](7,"span",51),b["ɵɵtext"](8,"login.contactUs"),b["ɵɵelementEnd"](),b["ɵɵtext"](9,"\n "),b["ɵɵelementStart"](10,"a",52),b["ɵɵtext"](11),b["ɵɵelementEnd"](),b["ɵɵtext"](12,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](13,"\n "),b["ɵɵelementContainerEnd"]()}if(2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](2),b["ɵɵproperty"]("ngClass",b["ɵɵpureFunction1"](3,Ee,e.loginConfig.joinNowStyleClass||"tertiary")),b["ɵɵadvance"](8),b["ɵɵpropertyInterpolate1"]("href","mailto:",e.contactusEmail,"",b["ɵɵsanitizeUrl"]),b["ɵɵadvance"](1),b["ɵɵtextInterpolate1"]("\n ",e.contactusEmail,"\n ")}}function Fe(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"div",2),b["ɵɵtext"](1,"\n "),b["ɵɵtemplate"](2,ge,7,0,"figure",3),b["ɵɵtext"](3,"\n "),b["ɵɵtemplate"](4,ue,2,1,"bx-content-block",4),b["ɵɵtext"](5,"\n "),b["ɵɵtemplate"](6,me,8,0,"div",5),b["ɵɵtext"](7,"\n "),b["ɵɵtemplate"](8,pe,16,1,"div",6),b["ɵɵtext"](9,"\n "),b["ɵɵelementStart"](10,"bx-form",7),b["ɵɵlistener"]("ngSubmit",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"]().submit()})),b["ɵɵtext"](11,"\n "),b["ɵɵelementStart"](12,"bx-form-group",8),b["ɵɵpipe"](13,"bxTranslationKeys"),b["ɵɵtext"](14,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](15,"\n "),b["ɵɵtemplate"](16,he,5,0,"div",9),b["ɵɵtext"](17,"\n "),b["ɵɵtemplate"](18,xe,7,1,"figure",10),b["ɵɵtext"](19,"\n "),b["ɵɵtemplate"](20,Ie,11,3,"figure",11),b["ɵɵtext"](21,"\n\n "),b["ɵɵtemplate"](22,we,7,1,"div",12),b["ɵɵtext"](23,"\n\n "),b["ɵɵelementStart"](24,"div",13),b["ɵɵtext"](25,"\n "),b["ɵɵelementStart"](26,"button",14),b["ɵɵlistener"]("click",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"]().submit()})),b["ɵɵtext"](27,"\n login.submit.label\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](28,"\n\n "),b["ɵɵtemplate"](29,_e,5,2,"ng-template",15),b["ɵɵtext"](30,"\n "),b["ɵɵtemplate"](31,Ae,5,2,"ng-template",null,16,b["ɵɵtemplateRefExtractor"]),b["ɵɵtext"](33,"\n\n "),b["ɵɵtemplate"](34,Te,14,5,"ng-container",9),b["ɵɵtext"](35,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](36,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](37,"\n "),b["ɵɵelementEnd"]()}if(2&e){const e=b["ɵɵreference"](32),t=b["ɵɵnextContext"]();b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.sessionExpired),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.descriptionContentBlock&&!t.showSoftBlockedMessageAndHeader()),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.showSoftBlockedMessageAndHeader()),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.showPendingActionsMessageForOneWorks()),b["ɵɵadvance"](2),b["ɵɵproperty"]("formGroup",t.formGroup),b["ɵɵadvance"](2),b["ɵɵproperty"]("model",b["ɵɵpipeBind2"](13,17,t.formModel,"login"))("controlGroup",t.formGroup),b["ɵɵadvance"](4),b["ɵɵproperty"]("ngIf",t.showPasswordRulesMessage),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.loginSuccessMessage),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",!t.loginSuccessMessage&&(t.loginErrorMessage||t.loginErrorMessageParts||t.failedAttemptsMessages)),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",!t.loginConfig.hideRememberMe),b["ɵɵadvance"](4),b["ɵɵclassProp"]("full-opacity",t.loginConfig.loginButtonFullOpacity),b["ɵɵproperty"]("disabled",t.processingCall),b["ɵɵadvance"](3),b["ɵɵproperty"]("ngIf",!t.isLoginFromOneWorksApp())("ngIfElse",e),b["ɵɵadvance"](5),b["ɵɵproperty"]("ngIf",t.showForgotPasswordCta())}}const Ne="username";let Pe=(()=>{class e{constructor(t,n,i,o,r,s,a,c,l,d,g,u,m,p,h,f,v,x,S,b,C,w,E,k,y,_,M){this.sessionStorage=t,this.profileService=n,this.router=i,this.route=o,this.loginService=r,this.jsonFormParser=s,this.formService=a,this.formBuilder=c,this.translateService=l,this.toastNotificationService=d,this.sessionService=g,this.languageService=u,this.storageService=m,this.deviceProtectService=p,this.cookieStorageService=h,this.siteConfigService=f,this.loginConfig=v,this.prepopulateService=x,this.platformId=S,this.analyticsService=b,this.windowService=C,this.reCaptchaV3Service=w,this.customEventsService=E,this.phoneValidationService=k,this.recaptchaInjectorService=y,this.reactiveChatService=_,this.counterService=M,this.subscriptions=new I.Subscription,this.FORGOT_PASSWORD_LINK="[{text}](/forgot-password)",this.CONTACT_US_LINK="[{text}](/contact-us)",this.LOGIN_EMAIL_KEY="loginEmail",this.FORGOT_PASSWORD_URL="/forgot-password",this.LOGIN_ACTION="login",this.HEADLESS_LOGIN="headless_login",this.REQUIRED_ACTION_NAVIGATION=(()=>{const e=e=>(t,n)=>{this.navigateToRequiredActionPage(`/${e}`,t,n)};return{forcePasswordReset:e(J.b),forcePinReset:e(X.S),forcePhoneNumberReset:e(Q.O)}})(),this.loginErrorMessageParts=!1,this.rememberMeValue=!1,this.processingCall=!1,this.fieldId="",this.pendingRequiredActions=!1,this.isLoginFromOWApp=!1,this.showPasswordRulesMessage=!1,this.BLACK_SPACE=" ",this.EMPTY="",this.recaptchaReady$=new I.ReplaySubject(1),this.TIMEOUT_MS=15e3,this.toErrorNotification=t=>e.toNotification("error",t),this.toLoadingNotification=t=>e.toNotification("loading",t,3e3,2e3),this.sessionExpired=!!this.route.snapshot.queryParams.sessionExpired,this.descriptionContentBlock=this.route.snapshot.data.cms,this.showLogin=!this.sessionService.isAuthenticated(),this.sessionStorage.get("alternativeSite")&&this.sessionStorage.get("alternativeSite").trim().length>0&&(this.alternativeSite=this.sessionStorage.get("alternativeSite")),this.sessionStorage.get("customBlockMessage")&&(this.customBlockMessage=!!this.sessionStorage.get("customBlockMessage")),this.alternativeSiteLink="[{text}]("+this.alternativeSite+")",this.contactusEmail=this.siteConfigService.getSiteConfigProp("contactusToAddress"),this.createFormModel(),this.translateService.translate("login.requiredActionsOneWorks.message").subscribe((e=>{this.requiredActionsMessage=e}))}createFormModel(){this.formModel=new H.f({id:"login",elements:{username:new K.b({id:"login-username",type:"email",focused:!0,validators:{required:null,maxLength:100}}),password:new K.b({id:"login-password",type:"password",validators:{required:null,maxLength:64}})}}),(0,i.isPlatformServer)(this.platformId)&&(this.formModel.elements.username.value=this.BLACK_SPACE,this.formModel.elements.password.value=this.BLACK_SPACE,this.formModel.elements.password.type=this.EMPTY)}ngOnInit(){if(this.sessionService.isAuthenticated())this.showSuccessMessage();else{this.isLoginFromOWApp=this.route.snapshot.queryParams.owapp,this.formGroup=this.formBuilder.group({});const e=this.siteConfigService.getSiteConfigProp("profileIdentifiers");let t="";if(0===e.length||e.includes("username")&&e.includes("email")?(t="login.usernameOrEmail.label",this.fieldId="usernameOrEmail"):e.includes("email")?(t="login.email.label",this.fieldId="email"):e.includes("username")?(t="login.username.label",this.fieldId="username"):(t="login.usernameOrEmail.label",this.fieldId="usernameOrEmail"),this.formModel&&this.formModel.elements&&this.formModel.elements.username){let e=this.formModel.elements.username;e.type="text",e.label=t,e.id=this.fieldId;let n={};n[e.id]=e,n.password=this.formModel.elements.password,this.formModel.elements=n}let n=this.jsonFormParser.parseFromJson(this.formModel);if(this.prepopulateService.isActive){const e=this.prepopulateService.getPokerBridgeCredentials(),t=e&&0!==Object.keys(e).length;if(t){const t=n.elements[this.fieldId];t.value=e.username||"";const i=n.elements.password;i.value=e.password||"",t.value&&!i.value&&(i.focused=!0)}this.formGroup=this.formService.createFormControl(n),this.formModel=n,t&&(e.username||e.password)&&(this.formGroup.controls[this.fieldId].markAsTouched(),this.rememberMeValue=!0)}else{let e=this.storageService.get(Ne);e&&(n.elements[this.fieldId].value=e,n.elements.password.focused=!0),this.formGroup=this.formService.createFormControl(n),this.formModel=n,e&&(this.formGroup.controls[this.fieldId].markAsTouched(),this.rememberMeValue=!0)}"success"===this.storageService.get("resetPasswordSuccessful")&&(this.loginSuccessMessage="login.resetPassword.success.message",this.storageService.remove("resetPasswordSuccessful"))}this.handleReCaptchaReady()}submit(){if(this.formGroup.valid){if(this.processingCall)return;this.processingCall=!0,this.recaptchaReady$.pipe((0,w.take)(1),(0,w.timeout)(this.TIMEOUT_MS),(0,w.catchError)((e=>{const t=Date.now(),n=window.performance.now();return this.reportMetrics("login_recaptcha_load_fails",t,n),(0,I.throwError)(e)}))).subscribe((()=>this.reCaptchaV3Service.generateToken(this.getAction()).pipe((0,w.catchError)((()=>{const e=Date.now(),t=window.performance.now();return this.reportMetrics("login_recaptcha_fails",e,t),(0,I.throwError)("")}))).subscribe((e=>{this.translateService.translate("login.loading").pipe((0,w.take)(1),(0,w.map)(this.toLoadingNotification)).subscribe((e=>{this.publishNotification(e)}));const t=this.formGroup.value,n={username:t[this.fieldId].trim(),password:t.password},i={...n,rememberMe:this.rememberMeValue};this.loginService.login(i,""+e,void 0,this.isLoginFromOneWorksApp()).subscribe((e=>{this.trackLoginSuccess(),this.clearNotification(),this.publishLoginSuccess(e.sessionId,e.attributes.language,n.username),this.deviceProtectService.generateBlackBox(),this.sendSessionIdForGames(e.sessionId),this.clearPhoneAttemptsFromLocalStorage()}),(e=>{this.clearNotification(),this.publishLoginFailure(e,n.username),this.processingCall=!1}))}),(()=>{this.clearNotification(),this.publishDefaultErrorNotification(),this.processingCall=!1}))),(()=>{this.clearNotification(),this.publishLoadScriptErrorNotification()}))}else this.markAsTouched(this.formGroup),this.publishInvalidFormFailure(),this.processingCall=!1}getAction(){return this.windowService.window().navigator.userAgent.includes("Electron")?this.HEADLESS_LOGIN:this.LOGIN_ACTION}joinEnabled(){return this.siteConfigService.getSiteConfigProp("joinEnabled")}showJoinCta(){return this.joinEnabled()&&!this.showForgotPasswordCta()&&!this.sessionStorage.get("softBlocked")}showForgotPasswordLink(){return!this.showForgotPasswordCta()&&!this.sessionStorage.get("softBlocked")}showForgotPasswordCta(){return this.loginConfig.changeSignupForSetupPassword}showSoftBlockedMessageAndHeader(){return this.sessionStorage.get("softBlocked")}showPendingActionsMessageForOneWorks(){return this.pendingRequiredActions}isLoginFromOneWorksApp(){return this.isLoginFromOWApp}goToForgotPassword(e){this.storeUsernameIfIsEmail(),this.router.navigate([this.FORGOT_PASSWORD_URL],{queryParams:e})}isCustomerSupportChatAndNovomindOrAlvariaEnabled(){return this.reactiveChatService.getChatConfig().pipe((0,w.map)((e=>(0,ie.t_)(e.type)&&this.siteConfigService.getSiteConfigProp("customerSupportChat"))))}openChat(e){e.preventDefault(),this.reactiveChatService.openChat()}SoftBlockedSetMessage(e){this.alternativeSitePlaceholder=this.alternativeSite.replace(/^https?:\/\/www\./,""),this.translateService.translate(e,{alternativeSite:this.alternativeSitePlaceholder}).pipe((0,w.filter)((t=>t!==e))).subscribe((e=>{this.translateService.injectCategory({softBlockedError:{"softBlockedError.label":Z.x.replaceLinks(e,[this.alternativeSiteLink])}}),this.loginSoftBlockedLabel="softBlockedError.label"}))}static toNotification(e,t,n=3e3,i=0){return{msg:t,modal:!0,type:e,timeout:n,delay:i}}publishNotification(e){return this.toastNotificationService.add(e,this.loginConfig.messageOverlay?"messageOverlay":"")}clearNotification(){this.toastNotificationService.close(),this.toastNotificationService.close("messageOverlay")}clearPhoneAttemptsFromLocalStorage(){this.siteConfigService.getSiteConfigProp(Y.hx)&&this.phoneValidationService.getLastPhoneNumberAttempt()&&this.phoneValidationService.clearPhoneAttemptsDataFromLocalStorage()}publishLoginSuccess(e,t,n){this.sessionService.session=e,this.counterService.init(),this.counterService.resetCount(n),this.languageService.setLanguage(t),this.setRememberMeOnSuccessfulLogin(n),this.showSuccessMessage()}showSuccessMessage(){this.getNicknameAndSetCookiePinCode().pipe((0,w.mergeMap)((e=>this.buildWelcomeMessage(e).pipe((0,w.map)(this.toSuccessNotification()))))).subscribe((e=>this.publishNotification(e)))}getNicknameAndSetCookiePinCode(){return this.profileService.getProfileDetailsPlayer().pipe((0,w.map)((e=>(e.hasPinCode||this.siteConfigService.hasFeature("ams.profile.skip_pincode")||this.isLoginFromOneWorksApp()||this.cookieStorageService.set("cf_spc",Math.random().toString().replace(".","")),this.storageService.set(j.mj.CUSTOMERID_KEY,e.accountNumber),e.nickname))))}buildWelcomeMessage(e){let t="login.welcome"+(e?"":".withoutNickname");return this.translateService.translate(t,{nickname:e})}publishLoginFailure(e,t){this.loginSuccessMessage=null,this.showPasswordRulesMessage=!0;const n=e.error;if(401==e.status)switch(n.errorCode){case"invalid_grant":if(this.loginErrorMessageParts=!1,!this.siteConfigService.isFeaturePresent(oe.L.multipleAttemptsFailure))return void(this.loginErrorMessage="login.error.invalid_user_or_password");this.counterService.init(),this.counterService.increment(t),1===this.counterService.getCount(t)?this.loginErrorMessage="login.error.invalid_user_or_password":(this.loginErrorMessage=null,this.failedAttemptsMessages=!0);break;case"invalid_grant_captcha_enforcement":this.loginErrorMessage="login.error.invalid_user_or_password_or_code";break;case"pre_blocked":this.translateService.translate("login.error.last_attempt").subscribe((e=>{this.translateService.injectCategory({loginErrorLastAttempt:{"loginErrorLastAttempt.label":Z.x.replaceLinks(e,[this.FORGOT_PASSWORD_LINK,this.CONTACT_US_LINK])}}),this.loginErrorMessage="loginErrorLastAttempt.label"}));break;case"blocked":this.subscriptions.add(this.isCustomerSupportChatAndNovomindOrAlvariaEnabled().subscribe((e=>{e?(this.loginErrorMessageParts=!0,this.loginErrorMessage=""):this.translateService.translate("login.error.blocked").subscribe((e=>{this.translateService.injectCategory({loginErrorBlocked:{"loginErrorBlocked.label":Z.x.replaceLinks(e,[this.CONTACT_US_LINK])}}),this.loginErrorMessage="loginErrorBlocked.label"})),this.showPasswordRulesMessage=!1,this.counterService.init(),this.counterService.resetCount(t)})));break;case"DISABLED_PROFILE":this.loginErrorMessage="login.error.disabled_profile",this.showPasswordRulesMessage=!1;break;default:this.publishDefaultErrorNotification()}else if(428==e.status)if(this.setRequiredActionFlag(),this.setRememberMeOnSuccessfulLogin(t),this.isLoginFromOneWorksApp())this.pendingRequiredActions=!0;else{const{action:e,token:t,profileInfo:i}=n;this.REQUIRED_ACTION_NAVIGATION[e](t||"",JSON.stringify(i||{}))}else this.publishDefaultErrorNotification()}publishDefaultErrorNotification(){this.translateService.translate("login.error_message").pipe((0,w.map)(this.toErrorNotification)).subscribe((e=>this.publishNotification(e)))}publishLoadScriptErrorNotification(){this.translateService.translate("login.error_message_script_load").pipe((0,w.map)(this.toErrorNotification)).subscribe((e=>this.publishNotification(e)))}navigateToRequiredActionPage(e,t,n){t?this.router.navigate([e],{queryParams:{token:t,profileInfo:n}}):this.router.navigate([e])}toSuccessNotification(){return t=>{let n=e.toNotification("success",t);return n.onRemove=()=>{this.loginService.sendLoginEvent(),this.processingCall=!1},n}}setRememberMeOnSuccessfulLogin(e){this.rememberMeValue?this.storageService.set(Ne,e):this.storageService.remove(Ne)}publishInvalidFormFailure(){this.translateService.translate("login.error_message_invalid").pipe((0,w.map)(this.toErrorNotification)).subscribe((e=>this.publishNotification(e)))}markAsTouched(e){e instanceof M.FormGroup||e instanceof M.FormArray?Object.keys(e.controls).forEach((t=>this.markAsTouched(e.get(t)))):e.markAsTouched()}trackLoginSuccess(){const e=this.getPathFromUrl(this.windowService.window().location.href);this.analyticsService.sendEvent("click",`${this.formModel.id}:success`,!0,{2:e})}getPathFromUrl(e){return e.split("?")[0]}sendSessionIdForGames(e){const t=document.createElement("iframe");t.style.display="none";const n=this.windowService.location().host.split(".");n.shift(),n.unshift(this.siteConfigService.getSiteConfig().casino.gameSubdomain);const i=n.join("."),o=`${this.windowService.location().protocol}//${i}/static/casino/casino-games-minigames-widget/assets/iframe/iframe-set-session-id-gateway.html`;window.addEventListener("message",(n=>{n.data&&"minigames-widget-iframe-ready"===n.data.name&&t.contentWindow.postMessage(JSON.stringify({name:"setSessionId",sessionId:e}),`${this.windowService.location().protocol}//${i}`)})),window.document.body.appendChild(t),t.src=o}setRequiredActionFlag(){this.sessionStorage.set("requiredAction","true")}isEmail(e){return Z.x.emailRegularExpression.test(e.toLowerCase())}storeUsernameIfIsEmail(){let e=this.formGroup.controls[this.fieldId].value;e&&this.isEmail(e)?this.sessionStorage.set(this.LOGIN_EMAIL_KEY,this.formGroup.controls[this.fieldId].value):this.sessionStorage.remove(this.LOGIN_EMAIL_KEY)}reportMetrics(e,t,n){try{this.customEventsService.emit(new T.g(e,t,n,window.performance.now()))}catch(e){console.debug("Error reporting execution time:",e)}}handleReCaptchaReady(){this.recaptchaInjectorService.getReCaptchaScriptReady().subscribe((e=>this.recaptchaReady$.next(e)))}}return e.ɵfac=function(t){return new(t||e)(b["ɵɵdirectiveInject"](O.u),b["ɵɵdirectiveInject"](z.H),b["ɵɵdirectiveInject"](o.Router),b["ɵɵdirectiveInject"](o.ActivatedRoute),b["ɵɵdirectiveInject"](ee.r6),b["ɵɵdirectiveInject"]($.l),b["ɵɵdirectiveInject"](U.o),b["ɵɵdirectiveInject"](M.FormBuilder),b["ɵɵdirectiveInject"](W.s),b["ɵɵdirectiveInject"](q.i),b["ɵɵdirectiveInject"](j.mj),b["ɵɵdirectiveInject"](B.T),b["ɵɵdirectiveInject"](N.z),b["ɵɵdirectiveInject"](f.Xp),b["ɵɵdirectiveInject"](P.G),b["ɵɵdirectiveInject"](V.r),b["ɵɵdirectiveInject"](L.$),b["ɵɵdirectiveInject"](te.d),b["ɵɵdirectiveInject"](b.PLATFORM_ID),b["ɵɵdirectiveInject"](A.y),b["ɵɵdirectiveInject"](R.u),b["ɵɵdirectiveInject"](c.Y),b["ɵɵdirectiveInject"](F.V),b["ɵɵdirectiveInject"](G.j),b["ɵɵdirectiveInject"](D.F),b["ɵɵdirectiveInject"](ne.R),b["ɵɵdirectiveInject"](C))},e.ɵcmp=b["ɵɵdefineComponent"]({type:e,selectors:[["bx-login"]],viewQuery:function(e,t){if(1&e&&b["ɵɵviewQuery"](de,5),2&e){let e;b["ɵɵqueryRefresh"](e=b["ɵɵloadQuery"]())&&(t.rememberMeCheckbox=e.first)}},decls:5,vars:1,consts:[["src","content/images/background_pixel.gif",1,"pixel-monitor"],["class","login",4,"ngIf"],[1,"login"],["class","custom-notification alert info",4,"ngIf"],["id","login-description-content-block",3,"data",4,"ngIf"],["class","softblocked-message",4,"ngIf"],["class","dark-overlay modal-overlay",4,"ngIf"],[3,"formGroup","ngSubmit"],[3,"model","controlGroup"],[4,"ngIf"],["id","loginSuccess","class","custom-notification alert success high-contrast",4,"ngIf"],["id","loginError","class","custom-notification alert error high-contrast",4,"ngIf"],["class","custom-checkbox native-toggle",4,"ngIf"],[1,"full-width-ctas"],["type","submit","id","login-submit",1,"custom-cta","primary","cta-large",3,"disabled","bxTranslate","click"],[3,"ngIf","ngIfElse"],["joinCtaForOW",""],[1,"custom-notification","alert","info"],[1,"icon","icon-info"],[3,"bxTranslate"],["id","login-description-content-block",3,"data"],[1,"softblocked-message"],[1,"h5-heading",3,"bxTranslate"],[1,"text-help",3,"bxTranslate"],[1,"dark-overlay","modal-overlay"],[1,"modal-content","modal-small","screen-center","pending-actions-message"],[1,"modal-header"],[1,"h4-heading",3,"bxTranslate"],[1,"modal-body"],[1,"modal-msg",3,"innerHTML"],[1,"password-rules",3,"bxTranslate"],["id","loginSuccess",1,"custom-notification","alert","success","high-contrast"],["anchorClickHandler","",3,"bxTranslate",4,"ngIf"],["anchorClickHandler","",3,"bxTranslate"],["id","loginError",1,"custom-notification","alert","error","high-contrast"],["href","",3,"bxTranslate","click"],["id","failed_login_attempts_part_1",3,"bxTranslate"],["id","failed_login_attempts_part_2","href","javascript:void(0)",3,"bxTranslate","click"],["id","failed_login_attempts_part_3",3,"bxTranslate"],[1,"custom-checkbox","native-toggle"],["type","checkbox","role","checkbox","id","remember-me",3,"checked","change"],["id","remember-me-label","for","remember-me",3,"bxTranslate"],["id","join-now","class","custom-cta","role","button","routerLink","/join",3,"ngClass","bxTranslate",4,"ngIf"],["id","forgot-password","class","custom-link","role","button","href","javascript:void(0)",3,"bxTranslate","click",4,"ngIf"],["id","join-now","role","button","routerLink","/join",1,"custom-cta",3,"ngClass","bxTranslate"],["id","forgot-password","role","button","href","javascript:void(0)",1,"custom-link",3,"bxTranslate","click"],["id","join-now-owapp","class","custom-cta","role","button","routerLink","/join","target","_blank",3,"queryParams","ngClass","bxTranslate",4,"ngIf"],["id","forgot-password-owapp","class","custom-link","role","button","href","javascript:void(0)","target","_blank",3,"bxTranslate","click",4,"ngIf"],["id","join-now-owapp","role","button","routerLink","/join","target","_blank",1,"custom-cta",3,"queryParams","ngClass","bxTranslate"],["id","forgot-password-owapp","role","button","href","javascript:void(0)","target","_blank",1,"custom-link",3,"bxTranslate","click"],["id","forgot-password-cta","role","button","href","javascript:void(0)",1,"custom-cta",3,"ngClass","bxTranslate","click"],["id","contact-us-span",3,"bxTranslate"],["id","contact-us-link","role","button",1,"custom-link",3,"href"]],template:function(e,t){1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵelement"](1,"img",0),b["ɵɵtext"](2,"\n "),b["ɵɵtemplate"](3,Fe,38,20,"div",1),b["ɵɵtext"](4,"\n ")),2&e&&(b["ɵɵadvance"](3),b["ɵɵproperty"]("ngIf",t.showLogin))},directives:[i.NgIf,re.U,M.NgControlStatusGroup,M.FormGroupDirective,se.E,ae.P,ce.T,o.RouterLinkWithHref,i.NgClass],pipes:[le.o],encapsulation:2}),e})();var Oe=n(65340),Re=n(75330),Be=n(97637),Ge=n(84853),Ve=n(38458),De=n(90566);function We(e,t){1&e&&(b["ɵɵelementContainerStart"](0),b["ɵɵtext"](1,"\n "),b["ɵɵelementContainerEnd"]())}function qe(e,t){1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵelement"](1,"bx-login"),b["ɵɵtext"](2,"\n "))}function Ue(e,t){if(1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵelementStart"](1,"bx-dynamic-loader-component",3),b["ɵɵtext"](2,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](3,"\n ")),2&e){const e=b["ɵɵnextContext"]();b["ɵɵadvance"](1),b["ɵɵproperty"]("component",e.loginConfig.customLoginComponent)}}let He=(()=>{class e{constructor(e){this.loginConfig=e}}return e.ɵfac=function(t){return new(t||e)(b["ɵɵdirectiveInject"](L.$))},e.ɵcmp=b["ɵɵdefineComponent"]({type:e,selectors:[["bx-login-placeholder"]],decls:9,vars:1,consts:[[4,"ngTemplateOutlet"],["bxDefaultLogin",""],["bxCustomLogin",""],[3,"component"]],template:function(e,t){if(1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵtemplate"](1,We,2,0,"ng-container",0),b["ɵɵtext"](2,"\n\n "),b["ɵɵtemplate"](3,qe,3,0,"ng-template",null,1,b["ɵɵtemplateRefExtractor"]),b["ɵɵtext"](5,"\n\n "),b["ɵɵtemplate"](6,Ue,4,1,"ng-template",null,2,b["ɵɵtemplateRefExtractor"]),b["ɵɵtext"](8,"\n ")),2&e){const e=b["ɵɵreference"](4),n=b["ɵɵreference"](7);b["ɵɵadvance"](1),b["ɵɵproperty"]("ngTemplateOutlet",t.loginConfig.customLoginComponent?n:e)}},directives:[i.NgTemplateOutlet,Pe,De.W],encapsulation:2}),e})();function Ke(e,t){if(1&e&&(b["ɵɵelementStart"](0,"h2",5),b["ɵɵtext"](1),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"]();b["ɵɵadvance"](1),b["ɵɵtextInterpolate1"]("\n ",e.sessionExpired?"login.session.expired.title":"login.title","\n ")}}function $e(e,t){if(1&e&&(b["ɵɵelementStart"](0,"h3",6),b["ɵɵtext"](1),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵnextContext"]();b["ɵɵadvance"](1),b["ɵɵtextInterpolate1"]("\n ",e.sessionExpired?"login.session.expired.title":"login.title","\n ")}}function Ye(e,t){if(1&e&&b["ɵɵelement"](0,"i",12),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵproperty"]("ngClass",e.loginConfig.softBlockedIconClass)}}const ze=function(e){return{site:e}},Je=function(e){return{tag:"textContent",values:e}},Qe=function(e){return[e]};function Xe(e,t){if(1&e){const e=b["ɵɵgetCurrentView"]();b["ɵɵelementStart"](0,"figcaption"),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"span",13),b["ɵɵtext"](3,"\n login.softblocked.exit1\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](4,"\n "),b["ɵɵelementStart"](5,"a",14),b["ɵɵlistener"]("click",(function(){return b["ɵɵrestoreView"](e),b["ɵɵnextContext"](2).onClick()})),b["ɵɵtext"](6,"login.softblocked.exit2"),b["ɵɵelementEnd"](),b["ɵɵtext"](7,"\n "),b["ɵɵelementStart"](8,"span",13),b["ɵɵtext"](9,"\n login.softblocked.exit3\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](10,"\n "),b["ɵɵelementEnd"]()}if(2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](2),b["ɵɵproperty"]("bxTranslate",b["ɵɵpureFunction1"](5,Qe,b["ɵɵpureFunction1"](3,Je,b["ɵɵpureFunction1"](1,ze,e.playerSite))))}}const Ze=function(e){return{label:e,tag:"textContent"}};function et(e,t){if(1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵelementStart"](1,"figcaption"),b["ɵɵtext"](2,"\n "),b["ɵɵelementStart"](3,"span",15),b["ɵɵtext"](4,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](5,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](6,"\n ")),2&e){const e=b["ɵɵnextContext"](2);b["ɵɵadvance"](3),b["ɵɵproperty"]("bxTranslate",b["ɵɵpureFunction1"](3,Qe,b["ɵɵpureFunction1"](1,Ze,e.loginSoftBlockedLabel)))}}function tt(e,t){if(1&e&&(b["ɵɵelementStart"](0,"div",7),b["ɵɵtext"](1,"\n "),b["ɵɵelementStart"](2,"figure",8),b["ɵɵtext"](3,"\n "),b["ɵɵtemplate"](4,Ye,1,1,"i",9),b["ɵɵtext"](5,"\n "),b["ɵɵtemplate"](6,Xe,11,7,"figcaption",10),b["ɵɵtext"](7,"\n "),b["ɵɵtemplate"](8,et,7,5,"ng-template",null,11,b["ɵɵtemplateRefExtractor"]),b["ɵɵtext"](10,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](11,"\n "),b["ɵɵelementEnd"]()),2&e){const e=b["ɵɵreference"](9),t=b["ɵɵnextContext"]();b["ɵɵadvance"](4),b["ɵɵproperty"]("ngIf",t.loginConfig.softBlockedIconClass),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.showCustomMessageIfIsEnabledFF&&t.customBlockMessage)("ngIfElse",e)}}const nt=function(e){return{unpadded:e}};class it extends Pe{constructor(e,t,n,i,o,r,s,a,c,l,d,g,u,m,p,h,f,v,x,S,b,C,I,w,E,k,y,_){super(e,t,n,i,o,r,s,a,c,l,d,g,u,m,p,h,f,v,x,S,b,C,I,w,k,y,_),this.overlayNotificationsService=E,this.counterService=_,this.showCustomMessageIfIsEnabledFF=!0}ngAfterViewInit(){this.overlayNotificationsService.notifyOverlayOpen()}ngOnInit(){if(this.playerSite=this.siteConfigService.getSiteConfigProp("brandLabel"),this.showCustomMessageIfIsEnabledFF=this.siteConfigService.getSiteConfigProp("customBlockedMessage"),null!=this.alternativeSite)this.SoftBlockedSetMessage("login.softBlocked.recommendedSite");else{const e=this.customBlockMessage?"login.softblocked.pendingToExit":"login.softBlocked.noRecommendedSite";this.translateService.translate(e).subscribe((e=>{this.loginSoftBlockedLabel=e}))}}hideCloseButton(){return this.siteConfigService.evalFeature("site.config.sitewide_auth_required")||!!this.sessionStorage.get("softBlocked")}onClick(){this.reactiveChatService.openChat({novomind:{urlTag:"softBlockedChat"}})}}it.ɵfac=function(e){return new(e||it)(b["ɵɵdirectiveInject"](O.u),b["ɵɵdirectiveInject"](z.H),b["ɵɵdirectiveInject"](o.Router),b["ɵɵdirectiveInject"](o.ActivatedRoute),b["ɵɵdirectiveInject"](ee.r6),b["ɵɵdirectiveInject"]($.l),b["ɵɵdirectiveInject"](U.o),b["ɵɵdirectiveInject"](M.FormBuilder),b["ɵɵdirectiveInject"](W.s),b["ɵɵdirectiveInject"](q.i),b["ɵɵdirectiveInject"](j.mj),b["ɵɵdirectiveInject"](B.T),b["ɵɵdirectiveInject"](N.z),b["ɵɵdirectiveInject"](f.Xp),b["ɵɵdirectiveInject"](P.G),b["ɵɵdirectiveInject"](V.r),b["ɵɵdirectiveInject"](L.$),b["ɵɵdirectiveInject"](te.d),b["ɵɵdirectiveInject"](b.PLATFORM_ID),b["ɵɵdirectiveInject"](A.y),b["ɵɵdirectiveInject"](R.u),b["ɵɵdirectiveInject"](c.Y),b["ɵɵdirectiveInject"](F.V),b["ɵɵdirectiveInject"](G.j),b["ɵɵdirectiveInject"](Oe.v),b["ɵɵdirectiveInject"](D.F),b["ɵɵdirectiveInject"](ne.R),b["ɵɵdirectiveInject"](C))},it.ɵcmp=b["ɵɵdefineComponent"]({type:it,selectors:[["bx-login-overlay"]],features:[b["ɵɵInheritDefinitionFeature"]],decls:18,vars:7,consts:[["overlayType","medium"],[3,"ngClass","invisibleCloseButton"],["role","heading","class","h2-heading",3,"bxTranslate",4,"ngIf"],["role","heading","class","h4-heading",3,"bxTranslate",4,"ngIf"],["class","softblocked-message",4,"ngIf"],["role","heading",1,"h2-heading",3,"bxTranslate"],["role","heading",1,"h4-heading",3,"bxTranslate"],[1,"softblocked-message"],[1,"softblocked-login"],["class","icon",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["StandardSoftblock",""],[1,"icon",3,"ngClass"],[1,"softBlockedMessage",3,"bxTranslate"],[1,"custom-link",3,"bxTranslate","click"],["anchorClickHandler","",1,"softBlockedMessage",3,"bxTranslate"]],template:function(e,t){1&e&&(b["ɵɵtext"](0,"\n "),b["ɵɵelementStart"](1,"bx-overlay-container",0),b["ɵɵtext"](2,"\n "),b["ɵɵelementStart"](3,"bx-overlay-header",1),b["ɵɵtext"](4,"\n "),b["ɵɵtemplate"](5,Ke,2,1,"h2",2),b["ɵɵtext"](6,"\n "),b["ɵɵtemplate"](7,$e,2,1,"h3",3),b["ɵɵtext"](8,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](9,"\n "),b["ɵɵtemplate"](10,tt,12,3,"div",4),b["ɵɵtext"](11,"\n "),b["ɵɵelementStart"](12,"bx-overlay-body"),b["ɵɵtext"](13,"\n "),b["ɵɵelement"](14,"bx-login-placeholder"),b["ɵɵtext"](15,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](16,"\n "),b["ɵɵelementEnd"](),b["ɵɵtext"](17,"\n ")),2&e&&(b["ɵɵadvance"](3),b["ɵɵproperty"]("ngClass",b["ɵɵpureFunction1"](5,nt,t.loginConfig.unpaddedHeader))("invisibleCloseButton",t.hideCloseButton()),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",t.loginConfig.headerLevel2),b["ɵɵadvance"](2),b["ɵɵproperty"]("ngIf",!t.loginConfig.headerLevel2),b["ɵɵadvance"](3),b["ɵɵproperty"]("ngIf",t.showSoftBlockedMessageAndHeader()))},directives:[Be.l,Ge.z,i.NgClass,i.NgIf,Ve.l,He,ae.P],encapsulation:2}),(0,_.__decorate)([(0,Re.uh)("login:form_view",!0),(0,_.__metadata)("design:type",Function),(0,_.__metadata)("design:paramtypes",[]),(0,_.__metadata)("design:returntype",void 0)],it.prototype,"ngAfterViewInit",null);var ot=n(76460),rt=n(51930);let st=class extends rt.W{};st.ɵfac=function(){let e;return function(t){return(e||(e=b["ɵɵgetInheritedFactory"](st)))(t||st)}}(),st.ɵprov=b["ɵɵdefineInjectable"]({token:st,factory:st.ɵfac}),st=(0,_.__decorate)([(0,rt.U)(["login"])],st);let at=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=b["ɵɵdefineNgModule"]({type:e}),e.ɵinj=b["ɵɵdefineInjector"]({providers:[st,y,C,c.Y],imports:[[v.E,r.n,m.a,l.j,ot.y,i.CommonModule,s.s,o.RouterModule.forChild([{path:"",component:it,data:{overlayComponentStyle:"noHorizontalScroll"},resolve:{translations:st,cms:y}}]),h.U8,p.PQ,x.x,u.$,f.L1,g.C,a.I,d.B]]}),e})()},22953:(e,t,n)=>{n.d(t,{x:()=>i});let i=(()=>{class e{static replaceLinks(e,t){return(e.match(/\[.*?]/g)||[]).map((e=>e.slice(1,-1))).reduce(((e,n,i)=>e.replace(`[${n}]`,t[i].replace("{text}",n))),e)}}return e.emailRegularExpression=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,e})()}}]);