"use strict";(self.webpackChunkserver_side_rendering=self.webpackChunkserver_side_rendering||[]).push([[8040],{8040:(e,t,n)=>{n.r(t),n.d(t,{ProfileRegistrationModule:()=>ce});var r=n(6856),i=n(88928),a=n(77976),o=n(23472),s=n(30331),l=n(44382),c=n(59288),g=n(24780),d=n(85464),m=n(89428),f=n(17128),u=n(57826),p=n(1541),v=n(73225),x=n(84881),h=n(73753),y=n(17602),b=n(71777),C=n(69566),S=n(48350),I=n(70794),E=n(48661),R=n(40475),F=n(9601);let k=(()=>{class e{constructor(e,t){this.overlay=e,this.translateService=t,this.alt=""}ngOnInit(){this.translateService.translate("registrationDeferred.secondary_message").subscribe((e=>{this.alt=e}))}submit(){this.closeDialog()}closeDialog(){this.overlay.closeOverlay()}}return e.ɵfac=function(t){return new(t||e)(u["ɵɵdirectiveInject"](I.Bs),u["ɵɵdirectiveInject"](E.s))},e.ɵcmp=u["ɵɵdefineComponent"]({type:e,selectors:[["bx-registration-deferred-form"]],decls:24,vars:1,consts:[[1,"registration"],[3,"ngSubmit"],[1,"full-width-ctas"],["src","/content/images/envelope-fly.svg",1,"img-responsive",3,"alt"],[1,"h2-heading",3,"bxTranslate"],[3,"bxTranslate"],[1,"fixedBottom"],["type","submit","id","registration-close",1,"custom-cta","primary","cta-large",3,"bxTranslate"]],template:function(e,t){1&e&&(u["ɵɵtext"](0,"\n "),u["ɵɵelementStart"](1,"div",0),u["ɵɵtext"](2,"\n "),u["ɵɵelementStart"](3,"form",1),u["ɵɵlistener"]("ngSubmit",(function(){return t.submit()})),u["ɵɵtext"](4,"\n "),u["ɵɵelementStart"](5,"div",2),u["ɵɵtext"](6,"\n "),u["ɵɵelement"](7,"img",3),u["ɵɵtext"](8,"\n "),u["ɵɵelementStart"](9,"h2",4),u["ɵɵtext"](10,"registrationDeferred.main_message"),u["ɵɵelementEnd"](),u["ɵɵtext"](11,"\n "),u["ɵɵelementStart"](12,"p",5),u["ɵɵtext"](13,"registrationDeferred.secondary_message"),u["ɵɵelementEnd"](),u["ɵɵtext"](14,"\n "),u["ɵɵelementStart"](15,"div",6),u["ɵɵtext"](16,"\n "),u["ɵɵelementStart"](17,"button",7),u["ɵɵtext"](18,"\n registrationDeferred.submit.label\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](19,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](20,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](21,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](22,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](23,"\n ")),2&e&&(u["ɵɵadvance"](7),u["ɵɵpropertyInterpolate"]("alt",t.alt))},directives:[R["ɵNgNoValidate"],R.NgControlStatusGroup,R.NgForm,F.P],encapsulation:2}),e})();function w(e,t){if(1&e&&u["ɵɵelement"](0,"bx-marketing-page",5),2&e){const e=u["ɵɵnextContext"](2);u["ɵɵproperty"]("data",e.marketingPage)}}function j(e,t){if(1&e&&(u["ɵɵelementContainerStart"](0),u["ɵɵtext"](1,"\n "),u["ɵɵelementStart"](2,"div",3),u["ɵɵtext"](3,"\n "),u["ɵɵtemplate"](4,w,1,1,"bx-marketing-page",4),u["ɵɵtext"](5,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](6,"\n "),u["ɵɵelementContainerEnd"]()),2&e){const e=u["ɵɵnextContext"]();u["ɵɵadvance"](4),u["ɵɵproperty"]("ngIf",!e.showRegistrationDeferredMessage)}}function N(e,t){1&e&&u["ɵɵelement"](0,"bx-profile-registration-form")}function P(e,t){if(1&e&&(u["ɵɵtext"](0,"\n "),u["ɵɵtemplate"](1,N,1,0,"bx-profile-registration-form",2),u["ɵɵtext"](2,"\n ")),2&e){const e=u["ɵɵnextContext"]();u["ɵɵadvance"](1),u["ɵɵproperty"]("ngIf",!e.showRegistrationDeferredMessage)}}function T(e,t){1&e&&u["ɵɵelement"](0,"bx-registration-deferred-form")}let _=(()=>{class e{constructor(e,t,n,r){this.registrationService=e,this.cmsFeatureFlagService=t,this.lazyRegistration=!1,this.isRegFormContentEnabled=!1,this.showRegistrationDeferredMessage=!1,r.resolve(n).subscribe((({marketingPage:e})=>{this.marketingPage=e;const t=this.cmsFeatureFlagService.isFeatureEnabled(y.u.REGISTRATION_FORM_CONTENT_FF);this.isRegFormContentEnabled=t&&this.marketingPage&&this.marketingPage.components&&this.marketingPage.components.length}))}ngOnInit(){this.registrationService.deferredEvent.subscribe((()=>{this.showRegistrationDeferredMessage=!0}))}}return e.ɵfac=function(t){return new(t||e)(u["ɵɵdirectiveInject"](b.H8),u["ɵɵdirectiveInject"](y.u),u["ɵɵdirectiveInject"](h.ActivatedRoute),u["ɵɵdirectiveInject"](C.E))},e.ɵcmp=u["ɵɵdefineComponent"]({type:e,selectors:[["bx-profile-registration-page"]],inputs:{lazyRegistration:"lazyRegistration"},decls:8,vars:3,consts:[[4,"ngIf","ngIfElse"],["registrationFormPage",""],[4,"ngIf"],[1,"content-overlay-container"],[3,"data",4,"ngIf"],[3,"data"]],template:function(e,t){if(1&e&&(u["ɵɵtext"](0,"\n "),u["ɵɵtemplate"](1,j,7,1,"ng-container",0),u["ɵɵtext"](2,"\n "),u["ɵɵtemplate"](3,P,3,1,"ng-template",null,1,u["ɵɵtemplateRefExtractor"]),u["ɵɵtext"](5,"\n "),u["ɵɵtemplate"](6,T,1,0,"bx-registration-deferred-form",2),u["ɵɵtext"](7,"\n ")),2&e){const e=u["ɵɵreference"](4);u["ɵɵadvance"](1),u["ɵɵproperty"]("ngIf",t.isRegFormContentEnabled&&!t.lazyRegistration)("ngIfElse",e),u["ɵɵadvance"](5),u["ɵɵproperty"]("ngIf",t.showRegistrationDeferredMessage)}},directives:[r.NgIf,S.n,o.CY,k],encapsulation:2}),e})(),D=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=u["ɵɵdefineComponent"]({type:e,selectors:[["bx-overlay-logo"]],decls:6,vars:0,consts:[[1,"modal-logo"],["src","/content/images/logo_overlay.svg"]],template:function(e,t){1&e&&(u["ɵɵtext"](0,"\n "),u["ɵɵelementStart"](1,"div",0),u["ɵɵtext"](2,"\n "),u["ɵɵelement"](3,"img",1),u["ɵɵtext"](4,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](5,"\n "))},encapsulation:2}),e})();function M(e,t){1&e&&u["ɵɵelement"](0,"bx-overlay-logo")}const O=function(e){return{brandName:e}},B=function(e){return{label:"profileRegistration.title",tag:"textContent",values:e}};function z(e,t){if(1&e&&(u["ɵɵelementStart"](0,"h2",5),u["ɵɵtext"](1,"\n "),u["ɵɵelementEnd"]()),2&e){const e=u["ɵɵnextContext"]();u["ɵɵproperty"]("bxTranslate",u["ɵɵpureFunction1"](3,B,u["ɵɵpureFunction1"](1,O,e.referringBrandSite)))}}function A(e,t){if(1&e&&(u["ɵɵelementStart"](0,"h3",6),u["ɵɵtext"](1,"\n "),u["ɵɵelementEnd"]()),2&e){const e=u["ɵɵnextContext"]();u["ɵɵproperty"]("bxTranslate",u["ɵɵpureFunction1"](3,B,u["ɵɵpureFunction1"](1,O,e.referringBrandSite)))}}const H=function(e){return{unpadded:e}};let G=(()=>{class e{constructor(e,t,n,r,i,a){this.registrationConfig=e,this.siteConfigService=t,this.analyticsService=n,this.overlayNotificationsService=r,this.overlay=i,this.cookieStorageService=a,this.referringBrandSite=this.cookieStorageService.get(f.PP)}ngAfterViewInit(){this.overlayNotificationsService.notifyOverlayOpen()}hideCloseButton(){return this.siteConfigService.evalFeature("site.config.sitewide_auth_required")}trackAndCloseOverlay(){this.analyticsService.sendEvent("click","close_registration",!0,{},{contentId:"registration"}),this.overlay.closeOverlay()}}return e.ɵfac=function(t){return new(t||e)(u["ɵɵdirectiveInject"](s.M),u["ɵɵdirectiveInject"](l.r),u["ɵɵdirectiveInject"](c.y),u["ɵɵdirectiveInject"](d.v),u["ɵɵdirectiveInject"](g.Bs),u["ɵɵdirectiveInject"](m.G))},e.ɵcmp=u["ɵɵdefineComponent"]({type:e,selectors:[["bx-registration-overlay"]],decls:18,vars:8,consts:[["overlayType","medium","extraClass","visitor"],[4,"ngIf"],[3,"ngClass","invisibleCloseButton","defaultCloseHandling","close"],["role","heading","class","h2-heading",3,"bxTranslate",4,"ngIf"],["role","heading","class","h4-heading",3,"bxTranslate",4,"ngIf"],["role","heading",1,"h2-heading",3,"bxTranslate"],["role","heading",1,"h4-heading",3,"bxTranslate"]],template:function(e,t){1&e&&(u["ɵɵtext"](0,"\n "),u["ɵɵelementStart"](1,"bx-overlay-container",0),u["ɵɵtext"](2,"\n "),u["ɵɵtemplate"](3,M,1,0,"bx-overlay-logo",1),u["ɵɵtext"](4,"\n "),u["ɵɵelementStart"](5,"bx-overlay-header",2),u["ɵɵlistener"]("close",(function(){return t.trackAndCloseOverlay()})),u["ɵɵtext"](6,"\n "),u["ɵɵtemplate"](7,z,2,5,"h2",3),u["ɵɵtext"](8,"\n "),u["ɵɵtemplate"](9,A,2,5,"h3",4),u["ɵɵtext"](10,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](11,"\n "),u["ɵɵelementStart"](12,"bx-overlay-body"),u["ɵɵtext"](13,"\n "),u["ɵɵelement"](14,"bx-profile-registration-page"),u["ɵɵtext"](15,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](16,"\n "),u["ɵɵelementEnd"](),u["ɵɵtext"](17,"\n ")),2&e&&(u["ɵɵadvance"](3),u["ɵɵproperty"]("ngIf",!t.registrationConfig.hideLogo),u["ɵɵadvance"](2),u["ɵɵproperty"]("ngClass",u["ɵɵpureFunction1"](6,H,t.registrationConfig.unpaddedHeader))("invisibleCloseButton",t.hideCloseButton())("defaultCloseHandling",!1),u["ɵɵadvance"](2),u["ɵɵproperty"]("ngIf",t.registrationConfig.headerLevel2),u["ɵɵadvance"](2),u["ɵɵproperty"]("ngIf",!t.registrationConfig.headerLevel2))},directives:[p.l,r.NgIf,v.z,r.NgClass,x.l,_,D,F.P],encapsulation:2}),e})();var L=n(89489),J=n(41039),X=n(18611),V=n(37337),Y=n(79983),q=n(42590),Q=n(80298),U=n(31829),Z=n(77602),K=n(56660),W=n(8468),$=n(36074),ee=n(76651),te=n(9651),ne=n(87533),re=n(22474),ie=n(9253),ae=n(50838),oe=n(98830),se=n(46426),le=n(71823);let ce=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u["ɵɵdefineNgModule"]({type:e,bootstrap:[_]}),e.ɵinj=u["ɵɵdefineInjector"]({providers:[Z.C,K.l,q.N,W.X,$.S,ee.w,Q.c,ie.p,U.J,C.E,le.S],imports:[[ne.E,a.a,r.CommonModule,i.j,L.x,J.PQ,X.d,g.U8,V.L1,re.I,h.RouterModule.forChild([{path:"",canActivate:[ae.X],component:G,resolve:{registration:W.X,referral:ee.w,translations:$.S,marketingPage:U.J},data:{overlayComponentStyle:"noHorizontalScroll"}}]),Y.Z,te.P,oe.G,se.J.withComponents([o.CY])]]}),e})()}}]);