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E1F,KAAM,WAAY0F,WAAY,yBAChC,CAAE1F,KAAM,SAAU0F,WAAY,uBAC9B,CAAE1F,KAAM,cAAeC,UAAWhC,GAAoB0H,YAAa,CAACC,OACpE,CAAE5F,KAAM,iBAAkBC,UAAWpF,GAAwB8K,YAAa,CAACC,KAAaC,OAExF,CAAE7F,KAAM,WAAYC,UAAW8D,GAAmB4B,YAAa,CAACC,KAAaC,OAC7E,CAAE7F,KAAM,KAAM0F,WAAY,oBAG9B,CAAE1F,KAAM,KAAM0F,WAAY,mBA6BrB,IAAMI,GAAgC,MAAvC,MAAOA,EAAP,YAAOA,EAAPC,+CAAOD,EAAgC,yBAAhCA,iCAFA,CAACE,MAAcC,SAvBxB1L,KACAC,KACAF,KACA4L,KACAC,KACAC,KAAcC,QAAQC,MACtB3L,KACA4L,KAAaC,SAASlB,IACtBlL,EACAM,KACA+L,KACA7L,IACA8L,QAaSZ,CAAgC","names":["SharedConsentsModule","_SharedConsentsModule","CommonModule","BrightsideUiModule","BrightsideUiServicesModule","FormsModule","SharedDesktopModule","ReactiveFormsModule","TranslateModule","CreateAccountComponent","constructor","analytics","_companyService","_env","_bsAuthService","_bsCacheService","_bsHubService","this","Subscription","isProd","production","ngOnInit","dispatch","RequiredVerificationsEnums","HUBCHANNEL","event","Promise","all","getItem","then","values","signupData","company","getCompany","length","ngOnDestroy","sub","unsubscribe","signUpWithAuth0","login","loginWithAuth0","_CreateAccountComponent","core","selectors","i0","ctx","RegistrationComponent","title","document","getElementsByTagName","_bodyEl","classList","add","registrationPage","window","location","pathname","includes","setTitle","remove","_RegistrationComponent","GetTheAppComponent","notSvc","router","route","bsHubService","ngAfterViewInit","statusIsTrue","map","status","phoneFormIsValid$","phoneForm","statusChanges","pipe","getTheApp","processing","sendGetTheAppMessage","libphonenumber","controls","mobile","value","navigator","userAgent","subscribe","resp","statusCode","message","navigate","relativeTo","_GetTheAppComponent","ROUTES_PATH","ROUTES","path","component","DisplayFormComponent","data","breadcrumb","skip","pageConfig","fbEventName","pageTitleKey","pageCtaLabelKey","pageFormControls","CONTROL_DOB","pageOnForwardCtaPath","pageOnBackCtaPath","processUpdater","injector","form","translatePipe","Observable","subscriber","birthday","get","key","InviteService","getPreCacheHousehold","cachedDetails","preCacheHousehold","fName","lName","dateOfBirth","moment","format","lastFourSSN","email","next","complete","pageSubTitleKey","CONTROL_FNAME","CONTROL_LNAME","CONTROL_ZIP","pageFormControlFullWidth","inviteService","registrationService","RegistrationService","companyService","CompanyService","employeeInfo","zipCode","verifyDependentEmployee","dependent","newRegistrationPrecheck","first_name","last_name","last_four_ssn","date_of_birth","BsCacheService","setItemStatic","clientType","setCompany","error","errorMessage","errorMessageTitle","response","ReferralComponent","regSvc","activatedRoute","assistant","imageName","titleKey","textBodyKey","optionalTextBodyKey","ctaKey","secondaryCtaKey","client","firstName","referralItems","referrerType","contentDisplay","referralContent","queryParams","params","referrerName","handleClick","notMe","skipAccountCreation","_ReferralComponent","routes","children","UNKNOWN_PATH","UNKNOWN_ROUTES","redirectTo","canActivate","NoAuthGuard","ReferralGuard","DesktopFeatureRegistrationModule","_DesktopFeatureRegistrationModule","TranslatePipe","imports","DesktopDataAccessSharedModule","MicroUiMoleculeModule","NgxMaskModule","forRoot","ngxMaskOptions","RouterModule","forChild","SharedDisplayModule","SharedAccountModule"],"sourceRoot":"webpack:///","sources":["./libs/shared/consents/src/lib/shared-consents.module.ts","./libs/desktop/feature/registration/src/lib/create-account/create-account.component.ts","./libs/desktop/feature/registration/src/lib/create-account/create-account.component.html","./libs/desktop/feature/registration/src/lib/registration/registration.component.ts","./libs/desktop/feature/registration/src/lib/registration/registration.component.html","./libs/desktop/feature/registration/src/lib/get-the-app/get-the-app.component.ts","./libs/desktop/feature/registration/src/lib/get-the-app/get-the-app.component.html","./libs/desktop/feature/registration/src/lib/routes/unknown.ts","./libs/desktop/feature/registration/src/lib/referral/referral.component.html","./libs/desktop/feature/registration/src/lib/referral/referral.component.ts","./libs/desktop/feature/registration/src/lib/desktop-feature-registration.module.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ConsentComponent } from './consent/consent.component';\nimport { BrightsideUiModule } from '@brightside/brightside-ui';\nimport { BrightsideUiServicesModule } from '@brightside/brightside-ui-services';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { ConsentModalComponent } from './consent-modal/consent-modal.component';\nimport { SharedConsentsComponent } from './consents/consents.component';\nimport { SharedDesktopModule } from '@brightside-web/shared/desktop';\nimport {TranslateModule} from \"@ngx-translate/core\";\n\n@NgModule({\n imports: [\n CommonModule,\n BrightsideUiModule,\n BrightsideUiServicesModule,\n FormsModule,\n SharedDesktopModule,\n ReactiveFormsModule,\n TranslateModule,\n ],\n declarations: [ ConsentComponent, SharedConsentsComponent, ConsentModalComponent ],\n exports: [ ConsentComponent, SharedConsentsComponent, ConsentModalComponent ]\n\n})\nexport class SharedConsentsModule {}\n","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\n\nimport {\n BsAuthService,\n BsCacheService,\n BsHubService\n} from \"@brightside-web/desktop/data-access/core-services\";\n\nimport { FirebaseService, CompanyService, RequiredVerificationsEnums } from '@brightside-web/desktop/data-access/shared';\nimport {Environment} from \"@micro-core/environment\";\n\n@Component({\n selector: 'brightside-web-create-account',\n templateUrl: './create-account.component.html',\n styleUrls: ['./create-account.component.scss']\n})\nexport class CreateAccountComponent implements OnInit, OnDestroy {\n isProd: boolean;\n\n sub = new Subscription();\n signupData: any = {};\n\n company:string;\n\n constructor(\n protected analytics: FirebaseService,\n private _companyService: CompanyService,\n private _env: Environment,\n private _bsAuthService: BsAuthService,\n private _bsCacheService: BsCacheService,\n private _bsHubService: BsHubService,\n ) {\n this.isProd = this._env.production;\n }\n\n ngOnInit() {\n this._bsHubService.dispatch(RequiredVerificationsEnums.HUBCHANNEL, {event: 'clear'});\n\n Promise.all([\n this._bsCacheService.getItem('referrer'),\n this._bsCacheService.getItem('referrerType')\n ]).then(\n values => {\n this.signupData['custom:referrer'] = values[0] ?? '';\n this.signupData['custom:referrerType'] = values[1] ?? '';\n\n if (this._companyService.getCompany()?.length > 0) {\n this.company = this._companyService.getCompany();\n } else {\n this.company = 'none';\n }\n\n }\n )\n }\n\n ngOnDestroy(): void {\n this.sub.unsubscribe();\n }\n\n signUpWithAuth0() {\n this._bsAuthService.login('signup');\n }\n\n loginWithAuth0() {\n this._bsAuthService.login();\n }\n\n}\n\n","\n \n {{ 'GET_STARTED_TODAY' | translate }}\n \n \n {{ 'REGISTER_DESC' | translate }}\n \n \n {{ 'REGISTER' | translate }}\n \n \n {{ 'ALREADY_HAVE_ACCOUNT' | translate }}\n {{ 'SIGN_IN' | translate }}\n \n \n \n\n\n","import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\n\n@Component({\n selector: 'brightside-web-registration',\n templateUrl: './registration.component.html',\n styleUrls: ['./registration.component.scss'],\n})\nexport class RegistrationComponent implements OnInit, OnDestroy {\n _bodyEl = document.getElementsByTagName('body')[0];\n registrationPage: boolean;\n\n constructor(private title: Title) {\n this._bodyEl.classList.add('brightside', 'not-logged-in');\n this.registrationPage = window.location.pathname.includes('registration/create-account');\n }\n\n ngOnInit() {\n this.title.setTitle('Brightside | Onboarding');\n }\n\n ngOnDestroy(): void {\n this._bodyEl.classList.remove('brightside', 'not-logged-in');\n }\n}\n","\n \n \n \n\n\n","import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';\nimport { map } from 'rxjs/operators';\nimport { Observable } from 'rxjs';\nimport { PhoneFormComponent } from '@brightside/brightside-ui';\nimport { NotificationService } from '@brightside-web/desktop/data-access/shared';\nimport { BsHubService } from '@brightside-web/desktop/data-access/core-services';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport * as libphonenumber from 'libphonenumber-js/max';\n\n@Component({\n selector: 'brightside-web-get-the-app',\n templateUrl: './get-the-app.component.html',\n styleUrls: ['./get-the-app.component.scss']\n})\nexport class GetTheAppComponent implements AfterViewInit {\n @ViewChild('pfc') phoneForm: PhoneFormComponent;\n phoneFormIsValid$: Observable;\n processing: boolean;\n\n constructor(\n private notSvc:NotificationService,\n private router:Router,\n private route:ActivatedRoute,\n private bsHubService: BsHubService) { }\n\n\n ngAfterViewInit(): void {\n const statusIsTrue = map(status => status === 'VALID');\n\n this.phoneFormIsValid$ = this.phoneForm.phoneForm.statusChanges.pipe(\n statusIsTrue\n );\n\n }\n\n getTheApp() {\n this.processing = true;\n this.notSvc.sendGetTheAppMessage(libphonenumber.parseDigits(this.phoneForm.phoneForm.controls['mobile'].value), window.navigator.userAgent).subscribe((resp)=>{\n if (resp.statusCode === 200){\n // send a message\n this.bsHubService.dispatch('OnboardingChannel', {event:'GetTheAppComplete', message: 'sent sms'});\n // route back to sign up\n this.router.navigate(['..','sign_up'], {relativeTo:this.route});\n }\n this.processing = false;\n })\n }\n}\n","\n \n\n {{ 'GET_APP_TITLE' | translate }}\n \n {{ 'GET_APP_DESC' | translate }}\n \n {{ 'GET_APP_RATES' | translate }}\n \n {{ 'BUTTON_CONTINUE' | translate }}\n\n","import { Injector, ChangeDetectorRef } from '@angular/core';\nimport { TitleCasePipe } from '@angular/common';\nimport { FormGroup } from '@angular/forms';\nimport {\n DisplayCardsComponent,\n DisplayFormComponent,\n DisplayFormProcessResponse,\n DisplayCardsProcessResponse,\n CONTROL_FNAME,\n CONTROL_LNAME,\n CONTROL_DOB,\n CONTROL_ZIP,\n PhonePipe,\n} from '@brightside-web/shared/desktop';\nimport { TranslatePipe } from \"@ngx-translate/core\";\nimport { InviteService, CompanyService } from '@brightside-web/desktop/data-access/shared';\nimport { RegistrationService, PrecheckResponse } from '@brightside-web/desktop/data-access/onboarding';\n\n\nimport {\n BsCacheService\n} from '@brightside-web/desktop/data-access/core-services';\nimport { Observable } from 'rxjs';\n\nimport * as moment from 'moment';\n\nconst ROUTES_PATH = 'discover';\nconst ROUTES = [\n\n {\n path: 'birthday',\n component: DisplayFormComponent,\n data: {\n breadcrumb: { skip: true },\n pageConfig: {\n fbEventName: 'verify_dob',\n pageTitleKey: 'VERIFY_BIRTHDAY',\n pageCtaLabelKey: 'BUTTON_CONTINUE',\n pageFormControls: [CONTROL_DOB],\n\n pageOnForwardCtaPath: ['registration', ROUTES_PATH, 'employer'],\n pageOnBackCtaPath: ['registration', 'sign_up'],\n processUpdater: (injector: Injector, form: FormGroup, translatePipe: TranslatePipe) => {\n const observable = new Observable((subscriber) => {\n const birthday = form.get(CONTROL_DOB.key)?.value;\n InviteService.getPreCacheHousehold().then(\n cachedDetails => {\n if (birthday) {\n InviteService.preCacheHousehold({\n fName: cachedDetails.fName,\n lName: cachedDetails.lName,\n dateOfBirth: moment(birthday).format('YYYY-MM-DD'),\n lastFourSSN: cachedDetails.lastFourSSN,\n email: cachedDetails.email || '',\n });\n }\n\n subscriber.next({ status: 'success' });\n subscriber.complete();\n }\n )\n });\n\n return observable;\n },\n },\n },\n },\n {\n path: 'verify-household',\n component: DisplayFormComponent,\n data: {\n breadcrumb: { skip: true },\n pageConfig: {\n fbEventName: 'verify_employee_information',\n pageTitleKey: 'PRIMARY_VERIFICATION_TITLE_WEB',\n pageSubTitleKey: 'PRIMARY_VERIFICATION_DESC_WEB',\n pageCtaLabelKey: 'BUTTON_CONTINUE',\n\n pageFormControls: [CONTROL_FNAME, CONTROL_LNAME, CONTROL_DOB, CONTROL_ZIP],\n pageFormControlFullWidth: true,\n\n pageOnForwardCtaPath: ['registration', 'create-account'],\n\n processUpdater: (injector: Injector, form: FormGroup, translatePipe: TranslatePipe) => {\n const observable = new Observable((subscriber) => {\n const inviteService: InviteService = injector.get(InviteService);\n const registrationService: RegistrationService = injector.get(RegistrationService);\n const companyService: CompanyService = injector.get(CompanyService);\n\n const employeeInfo = {\n fName: form.get(CONTROL_FNAME.key)?.value || '',\n lName: form.get(CONTROL_LNAME.key)?.value || '',\n dateOfBirth: moment(form.get(CONTROL_DOB.key)?.value || '').format('YYYY-MM-DD'),\n zipCode: form.get(CONTROL_ZIP.key)?.value || '',\n };\n\n inviteService.verifyDependentEmployee(employeeInfo).subscribe(\n () => {\n InviteService.getPreCacheHousehold().then(\n dependent => {\n registrationService\n .newRegistrationPrecheck({\n first_name: dependent.fName,\n last_name: dependent.lName,\n last_four_ssn: dependent.lastFourSSN,\n date_of_birth: dependent.dateOfBirth,\n })\n .subscribe(\n (resp: PrecheckResponse) => {\n BsCacheService.setItemStatic('firstName', dependent.fName);\n BsCacheService.setItemStatic('lastName', dependent.lName);\n BsCacheService.setItemStatic('last4ssn', dependent.lastFourSSN);\n BsCacheService.setItemStatic('email', dependent.email);\n\n BsCacheService.setItemStatic('create-account', 'allowed');\n BsCacheService.setItemStatic('dob', dependent.dateOfBirth);\n BsCacheService.setItemStatic('clientType', resp.clientType);\n if (resp.company) {\n companyService.setCompany(resp.company);\n }\n\n subscriber.next({ status: 'success' });\n subscriber.complete();\n },\n () => {\n subscriber.next({ status: 'failed' });\n subscriber.complete();\n }\n );\n }\n )\n\n },\n (error) => {\n let errorMessage = '';\n let errorMessageTitle = '';\n\n if (error.response.data.statusCode === 409) {\n errorMessage = error.response.data.errorMessage || '';\n errorMessageTitle = '';\n }\n\n subscriber.next({ status: 'failed', errorMessage, errorMessageTitle });\n subscriber.complete();\n }\n );\n });\n\n return observable;\n },\n },\n },\n }\n];\n\nexport { ROUTES, ROUTES_PATH };\n","\n \n \n \n {{ contentDisplay.titleKey | translate:{name:firstName} }}\n \n \n \n \n \n \n\n \n \n {{ contentDisplay.ctaKey | translate }}\n \n \n \n {{ contentDisplay.secondaryCtaKey | translate:{name:firstName} }}\n \n \n \n\n","import { Component, OnInit } from '@angular/core';\nimport {RegistrationService} from \"@brightside-web/desktop/data-access/onboarding\";\nimport {ActivatedRoute, Router} from \"@angular/router\";\nimport {Subscription} from \"rxjs\";\n\ninterface ReferralContentInterface {\n imageName: string,\n titleKey: string,\n textBodyKey: string,\n optionalTextBodyKey: string,\n ctaKey: string,\n secondaryCtaKey: string\n}\n\n@Component({\n selector: 'brightside-web-referral',\n templateUrl: './referral.component.html',\n styleUrls: ['./referral.component.scss']\n})\nexport class ReferralComponent {\n\n sub = new Subscription();\n\n contentDisplay: ReferralContentInterface;\n\n referralContent = {\n 'assistant' : {\n imageName: 'launch',\n titleKey: 'INVITE_WELCOME_TITLE',\n textBodyKey: 'INVITE_WELCOME_DESC',\n optionalTextBodyKey: 'INVITE_WELCOME_DESC',\n ctaKey: 'LETS_GO',\n secondaryCtaKey: 'IM_NOT_NAME'\n },\n 'client' : {\n imageName: 'parachute',\n titleKey: 'REFERRAL_WELCOME_TITLE',\n textBodyKey: 'REFERRAL_WELCOME_DESC',\n optionalTextBodyKey: 'REFERRAL_WELCOME_NAME_DESC',\n ctaKey: 'LETS_GO',\n secondaryCtaKey: ''\n }\n };\n\n referrerName = '';\n firstName: string;\n referrerType: string;\n\n constructor(\n private regSvc: RegistrationService,\n private router: Router,\n private activatedRoute: ActivatedRoute\n ) {\n this.firstName = this.regSvc.referralItems.firstName ?? '';\n this.referrerType = this.regSvc.referralItems.referrerType ?? '';\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.contentDisplay = this.referralContent[this.referrerType];\n if (this.referrerType === 'client') {\n this.sub.add(\n this.activatedRoute.queryParams.subscribe(\n params => {\n if (params.referrerName) {\n this.referrerName = params.referrerName;\n }\n }\n )\n )\n }\n }\n\n handleClick(notMe = false) {\n if (notMe) this.regSvc.skipAccountCreation = false;\n this.router.navigate(['/']);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule, Routes } from '@angular/router';\nimport {DesktopDataAccessSharedModule} from '@brightside-web/desktop/data-access/shared';\nimport { BrightsideUiServicesModule } from '@brightside/brightside-ui-services';\nimport {SharedDisplayModule} from \"@brightside-web/shared/display\";\nimport {TranslateModule, TranslatePipe} from \"@ngx-translate/core\";\n\nimport { MicroUiMoleculeModule } from '@micro-ui/molecule';\nimport { SharedConsentsModule } from \"@brightside-web/shared/consents\";\n\nimport {\n AuthGuard,\n NoAuthGuard,\n RequiredVerificationGuard,\n SharedDesktopModule, GuidGuard, ReferralGuard, IdentityGuard,\n\n} from '@brightside-web/shared/desktop';\nimport { SharedAccountModule } from '@brightside-web/shared/account';\n\n\nimport { CreateAccountComponent } from './create-account/create-account.component';\nimport { IdentityVerification } from './identity-verification';\nimport { BrightsideUiModule, ngxMaskOptions, NgxMaskModule } from '@brightside/brightside-ui';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { RegistrationComponent } from './registration/registration.component';\n\nimport { SignInPromptComponent } from './sign-in-prompt/sign-in-prompt.component';\nimport { LoginComponent } from './login/login.component';\nimport { GetTheAppComponent } from './get-the-app/get-the-app.component';\n\n\nimport { ROUTES as UNKNOWN_ROUTES, ROUTES_PATH as UNKNOWN_PATH } from './routes/unknown';\nimport { ReferralComponent } from './referral/referral.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: RegistrationComponent,\n children: [\n { path: UNKNOWN_PATH, children: UNKNOWN_ROUTES },\n { path: 'select-employer', redirectTo: '/eligibility/select-employer'},\n { path: 'type', redirectTo: '/eligibility/type'},\n { path: 'identity', redirectTo: '/eligibility/identity'},\n { path: 'status', redirectTo: '/eligibility/status'},\n { path: 'get-the-app', component: GetTheAppComponent, canActivate: [NoAuthGuard] },\n { path: 'create-account', component: CreateAccountComponent, canActivate: [NoAuthGuard, ReferralGuard] },\n //fbPage is the same, the category changes.\n { path: 'referral', component: ReferralComponent, canActivate: [NoAuthGuard, ReferralGuard] },\n { path: '**', redirectTo: 'create-account' },\n ],\n },\n { path: '**', redirectTo: 'create-account' },\n];\n@NgModule({\n imports: [\n BrightsideUiModule,\n BrightsideUiServicesModule,\n CommonModule,\n DesktopDataAccessSharedModule,\n MicroUiMoleculeModule,\n NgxMaskModule.forRoot(ngxMaskOptions),\n ReactiveFormsModule,\n RouterModule.forChild(routes),\n SharedConsentsModule,\n SharedDesktopModule,\n SharedDisplayModule,\n TranslateModule,\n SharedAccountModule\n ],\n declarations: [\n CreateAccountComponent,\n IdentityVerification,\n RegistrationComponent,\n SignInPromptComponent,\n LoginComponent,\n GetTheAppComponent,\n ReferralComponent,\n ],\n providers: [TranslatePipe],\n})\nexport class DesktopFeatureRegistrationModule {}\n"],"x_google_ignoreList":[]}
{{ contentDisplay.titleKey | translate:{name:firstName} }}