{"version":3,"file":"app-07d1b254.9729664bca28a8e6916d.bundle.js","mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAEA;AAQA;AAAA;AALA;AAEA;AAIA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAvCA;;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AAEA;AAwBA;AAAA;AAtBA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzFA;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AASA;AAAA;AANA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAUA;AACA;AAAA;AATA;AACA;AACA;AAEA;AACA;AAKA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzDA;;;;;;;;;;;;;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AAEA;AAWA;AACA;AAAA;AAAA;AAAA;AAPA;AAEA;AACA;AAKA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvEA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;ACTA;AACA;AACA;AACA;AAEA;AAOA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAjBA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAcA;AACA;AAAA;AAAA;AAAA;AAVA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AAEA;AAEA;AACA;AAOA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnEA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;ACZA;AACA;AACA;AAEA;AASA;AACA;AAAA;AAAA;AAAA;AALA;AACA;AAKA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AA5BA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AAEA;AAOA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAhBA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;ACTA;AAIA;AAAA;AAHA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACtBA;AACA;AACA;AAEA;AAQA;AACA;AAAA;AAAA;AAAA;AAJA;AAKA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAtCA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACPA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;;;;;ACHA;AACA;AACA;AACA","sources":["webpack://www.zeusteam.com/./src/members/my-team.js","webpack://www.zeusteam.com/./src/members/my-team/onboarding-status.js","webpack://www.zeusteam.com/./src/members/my-team/reports/team-reports.js","webpack://www.zeusteam.com/./src/members/onboarding/onboarding.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/access-surance-bay.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/add-profile-picture.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/enter-npn.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/have-license.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/onboarding-complete.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/onboarding-step.js","webpack://www.zeusteam.com/./src/members/onboarding/steps/welcome.js","webpack://www.zeusteam.com/./src/members/my-team/onboarding-status.scss","webpack://www.zeusteam.com/./src/members/onboarding/onboarding.scss","webpack://www.zeusteam.com/./src/members/onboarding/steps/add-profile-picture.scss","webpack://www.zeusteam.com/./src/members/my-team.html","webpack://www.zeusteam.com/./src/members/my-team/onboarding-status.html","webpack://www.zeusteam.com/./src/members/my-team/reports/team-reports.html","webpack://www.zeusteam.com/./src/members/onboarding/onboarding.html","webpack://www.zeusteam.com/./src/members/onboarding/steps/access-surance-bay.html","webpack://www.zeusteam.com/./src/members/onboarding/steps/add-profile-picture.html","webpack://www.zeusteam.com/./src/members/onboarding/steps/enter-npn.html","webpack://www.zeusteam.com/./src/members/onboarding/steps/have-license.html","webpack://www.zeusteam.com/./src/members/onboarding/steps/onboarding-complete.html","webpack://www.zeusteam.com/./src/members/onboarding/steps/welcome.html"],"sourcesContent":["import { Page } from 'common/ui';\r\nimport { Security } from 'common/security';\r\nimport { ROLE } from 'common/constants';\r\n\r\nexport class MyTeam {\r\n static inject = [Page, Security];\r\n\r\n\tcurrentView = 'chart';\r\n\r\n\tmyTeamModel = null;\r\n\tmyTeamView = '';\r\n\r\n\tconstructor(page, security) {\r\n\t\tthis.page = page;\r\n this._security = security;\r\n\r\n this.allowMapView = true;\r\n\t}\r\n\r\n\tactivate(params) {\r\n if (params.view === 'map') this.teamChartView = 'map';\r\n else this.teamChartView = 'chart';\r\n\t\tthis.selectView(params.view || this.currentView);\r\n\t\tthis.page.track('members/my-team/' + this.currentView);\r\n }\r\n\r\n\tselectView(view) {\r\n switch (view) {\r\n case 'search':\r\n this.myTeamModel = {};\r\n this.myTeamView = PLATFORM.moduleName('./controls/search-members');\r\n this.loadChart = false;\r\n break;\r\n default:\r\n this.myTeamModel = {};\r\n this.myTeamView = undefined;\r\n view = 'chart';\r\n this.loadChart = true;\r\n break;\r\n }\r\n\t\tthis.currentView = view;\r\n }\r\n\r\n}\r\n","import { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { Onboardings, ONBOARDING_STATUS_BREAKS } from 'services/onboardings';\r\nimport { I18n } from 'common/i18n';\r\n\r\nexport class OnboardingStatus {\r\n static inject = [EventAggregator, Security, Onboardings, I18n];\r\n _ea;\r\n _security;\r\n _onboardings;\r\n _i18n;\r\n\r\n showTeamOptions = false;\r\n forAgency = false;\r\n statusBreaks = ONBOARDING_STATUS_BREAKS;\r\n statusR = true;\r\n statusY = true;\r\n statusG = false;\r\n\r\n chartData;\r\n\r\n filters = [\r\n { value: '', keys: ['agent.firstName', 'agent.lastName', 'agent.fullName', 'currentStep', 'currentSubstep', 'statusColor'] },\r\n { value: 'ry', custom: this.statusColorFilter },\r\n ];\r\n filteredEventKey = 'zeus-onboarding-status-filtered';\r\n\r\n _handlers = [];\r\n\r\n constructor(ea, security, onboardings, i18n) {\r\n this._ea = ea;\r\n this._security = security;\r\n this._onboardings = onboardings;\r\n this._i18n = i18n;\r\n this.showTeamOptions = this._security.isAgency();\r\n this.forAgency = this._security.isAgency();\r\n }\r\n\r\n attached() {\r\n this._handlers.push(this._ea.subscribe(this.filteredEventKey, () => this.onboardingsFiltered()));\r\n this._load();\r\n }\r\n\r\n detached() {\r\n this._handlers.forEach(h => h.dispose());\r\n this._handlers = [];\r\n }\r\n\r\n toggleTeamOptions(forAgency) {\r\n this.forAgency = forAgency;\r\n this._load();\r\n }\r\n\r\n toggleStatusFilter(color) {\r\n if (this.filters[1].value.indexOf(color) >= 0) {\r\n this.filters[1].value = this.filters[1].value.replace(color, '');\r\n } else {\r\n this.filters[1].value += color;\r\n }\r\n this.statusR = this.filters[1].value.indexOf('r') >= 0;\r\n this.statusY = this.filters[1].value.indexOf('y') >= 0;\r\n this.statusG = this.filters[1].value.indexOf('g') >= 0;\r\n }\r\n\r\n statusColorFilter(filterValue, row) {\r\n if (!filterValue) return false;\r\n if (filterValue.indexOf(row.statusColor) >= 0) return true;\r\n return false;\r\n }\r\n\r\n onboardingsFiltered() {\r\n this._loadCharts();\r\n }\r\n\r\n async _load() {\r\n if (this.loading) return;\r\n try {\r\n this.loading = true;\r\n this.status = await this._onboardings.teamStatus(this.forAgency);\r\n this._loadCharts();\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n _loadCharts() {\r\n this.chartData = {\r\n steps: this.status.steps,\r\n countsRYG: this.status.countsRYG,\r\n onboardings: this.dgOnboardings,\r\n };\r\n }\r\n}\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport {inject} from 'aurelia-framework';\r\nimport {EventAggregator} from 'aurelia-event-aggregator';\r\nimport {activationStrategy} from 'aurelia-router';\r\nimport {Api} from 'common/server';\r\nimport {Security} from 'common/security';\r\nimport {Page} from 'common/ui';\r\nimport {I18n} from 'common/i18n';\r\n\r\n@inject(EventAggregator, Api, Security, Page, I18n)\r\nexport class TeamReports {\r\n\r\n reportModel = null;\r\n reportView = '';\r\n _params;\r\n\r\n isAgency;\r\n\r\n constructor(eventAggregator, api, security, page, i18n) {\r\n this._eventAggregator = eventAggregator;\r\n this._api = api;\r\n this._security = security;\r\n this._page = page;\r\n this._i18n = i18n;\r\n\r\n this.isAgency = this._security.isAgency();\r\n }\r\n\r\n determineActivationStrategy(){\r\n return activationStrategy.invokeLifecycle;\r\n }\r\n\r\n activate(params) {\r\n this._params = params;\r\n this.reportType = params.reportType || null;\r\n this._page.track('members/my-team/reports/my-reports');\r\n this._showReport();\r\n }\r\n\r\n attached() {\r\n $(\"#my-team-reports-modal\").on(\"hidden.bs.modal\", this.clearModal);\r\n }\r\n\r\n _showReport() {\r\n switch (this.reportType) {\r\n case 'recruiting-summary':\r\n this.showRecruitingSummary();\r\n break;\r\n case 'onboarding-summary':\r\n this.showOnboardingSummary()\r\n break;\r\n case 'agency-monthly-bonus':\r\n this.showAgencyMonthlyBonusReport()\r\n break;\r\n }\r\n }\r\n\r\n onReportButtonClick(type) {\r\n this.reportType = type;\r\n this._showReport();\r\n }\r\n\r\n showRecruitingSummary() {\r\n this.reportModel = {\r\n teamSummary: this._params.teamSummary,\r\n start: this._params.start,\r\n end: this._params.end\r\n };\r\n this.reportView = PLATFORM.moduleName('members/recruiting/summary');\r\n }\r\n\r\n showOnboardingSummary() {\r\n this.reportModel = {\r\n teamSummary: this._params.teamSummary,\r\n start: this._params.start,\r\n end: this._params.end\r\n };\r\n this.reportView = PLATFORM.moduleName('members/recruiting/onboarding-summary');\r\n }\r\n\r\n showAgencyMonthlyBonusReport() {\r\n this.reportModel = {\r\n month: this._params.month,\r\n };\r\n this.reportView = PLATFORM.moduleName('members/agency/reports/agency-monthly-bonus');\r\n }\r\n}\r\n","import { computedFrom } from 'aurelia-framework';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Router } from 'aurelia-router';\r\nimport { Security } from 'common/security';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { MenuController } from 'resources/base-classes/menu-controller';\r\nimport moment from 'moment';\r\n\r\nexport class OnboardingView extends MenuController {\r\n static inject = [EventAggregator, Router, Security, Onboardings];\r\n _router;\r\n _security;\r\n _onboardings;\r\n\r\n status;\r\n template;\r\n step;\r\n\r\n constructor(ea, router, security, onboardings) {\r\n super(ea, 'onboarding');\r\n this._router = router;\r\n this._security = security;\r\n this._onboardings = onboardings;\r\n }\r\n\r\n async activate() {\r\n try {\r\n this.status = await this._onboardings.myStatus();\r\n if (this.status.isComplete || this._security.agent.onboardingComplete) {\r\n this._security.completeOnboarding();\r\n this._router.navigate('#/members', true);\r\n return;\r\n }\r\n this._setActiveStep();\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n attached() {\r\n this.setMenu();\r\n }\r\n\r\n _setActiveStep() {\r\n this.step = this.status.template.steps.find(x => !x.isComplete);\r\n if (!this.step) {\r\n this._security.completeOnboarding();\r\n this._router.navigate('#/members', true);\r\n }\r\n }\r\n\r\n onStepCompleted(status) {\r\n this.status = status;\r\n this._setActiveStep();\r\n }\r\n\r\n async resetOnboarding() {\r\n try {\r\n await this._onboardings.reset(this._security.authenticatedMemberId);\r\n await this.activate();\r\n this.refreshOnboardingMemberId = moment().format();\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { Notifier } from 'common/ui';\r\nimport { OnboardingStep } from './onboarding-step';\r\nimport moment from 'moment';\r\n\r\nexport class AccessSuranceBay extends OnboardingStep {\r\n static inject = [Element, Onboardings, Notifier];\r\n @bindable status;\r\n @bindable step;\r\n\r\n _notifier;\r\n\r\n showSso = false;\r\n autoSso = true;\r\n hasAccessedSB = false;\r\n\r\n constructor(element, onboardings, notifier) {\r\n super(element, onboardings);\r\n this._notifier = notifier;\r\n }\r\n\r\n attached() {\r\n this.hasAccessedSB = this.step.data && this.step.data.accessedDate || false;\r\n this.autoSso = !this.hasAccessedSB;\r\n this.showSso = this.hasAccessedSB;\r\n this._load();\r\n }\r\n\r\n async backStep() {\r\n try {\r\n const status = await this._onboardings.backStep(this.step);\r\n this.stepCompleted(status);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async _load() {\r\n try {\r\n this.contractDetails = await this._onboardings.contractDetails();\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async accessSuranceBay() {\r\n if (this.working) return;\r\n try {\r\n this.working = true;\r\n this.step.data = { accessedDate: moment().format() };\r\n this.status = await this.updateProgress(this.step);\r\n this.hasAccessedSB = true;\r\n this.showSso = true;\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.working = false;\r\n }\r\n }\r\n\r\n async checkStatus() {\r\n if (this.working) return;\r\n try {\r\n this.working = true;\r\n const status = await this._onboardings.checkContractedStatus();\r\n const contractedStep = status.template.steps.find(x => x.code === this.step.code && x.platform === this.step.platform);\r\n const contractedData = JSON.parse(contractedStep.data);\r\n if (!contractedData.confirmContractedDate) {\r\n this._notifier.info('onboarding-contracted-check-not-contracted');\r\n return;\r\n }\r\n this.stepCompleted(status);\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.working = false;\r\n }\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { Security } from 'common/security';\r\nimport { OnboardingStep } from './onboarding-step';\r\n\r\nexport class AddProfilePicture extends OnboardingStep {\r\n static inject = [Element, Onboardings, Security];\r\n @bindable status;\r\n @bindable step;\r\n\r\n imageUrl;\r\n\r\n constructor(element, onboardings, security) {\r\n super(element, onboardings);\r\n this.security = security;\r\n }\r\n\r\n attached() {\r\n this.imageUrl = this.step.metadata;\r\n }\r\n\r\n async onContinue() {\r\n await this.updateProgress(this.step);\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\nimport { Security } from 'common/security';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { NewInstance } from 'aurelia-dependency-injection';\r\nimport { ValidationRules, ValidationController } from 'aurelia-validation';\r\nimport { BootstrapFormValidationRenderer } from 'validation/bootstrap-form-validation-renderer';\r\nimport { OnboardingStep } from './onboarding-step';\r\nimport { c } from 'common/common';\r\n\r\nexport class EnterNpn extends OnboardingStep {\r\n static inject = [Element, Security, Onboardings, NewInstance.of(ValidationController)];\r\n @bindable status;\r\n @bindable step;\r\n\r\n _security;\r\n _validationController;\r\n npn;\r\n residentLicenseState;\r\n usStates = [];\r\n residentLicenseNumber;\r\n licenseFirstName;\r\n licenseLastName;\r\n\r\n constructor(element, security, onboardings, validationController) {\r\n super(element, onboardings);\r\n this._security = security;\r\n this._validationController = validationController;\r\n\r\n this.usStates = c.Geography.usStates;\r\n\r\n this._validationController.addRenderer(new BootstrapFormValidationRenderer());\r\n ValidationRules\r\n .ensure('npn').required()\r\n .ensure('licenseFirstName').required()\r\n .ensure('licenseLastName').required()\r\n .ensure('residentLicenseState').required()\r\n .ensure('residentLicenseNumber').required()\r\n .on(this);\r\n }\r\n\r\n attached() {\r\n this._load();\r\n }\r\n\r\n async _load() {\r\n try {\r\n this.licenseFirstName = this._security.agent.firstName;\r\n this.licenseLastName = this._security.agent.lastName;\r\n this.residentLicenseState = this._security.agent.state;\r\n const details = await this._onboardings.contractDetails();\r\n this.npn = details.nationalProducerNumber;\r\n this.residentLicenseState = details.residentLicenseState;\r\n this.residentLicenseNumber = details.residentLicenseNumber;\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async recordNpn() {\r\n try {\r\n const v = await this._validationController.validate();\r\n if (!v.valid) return;\r\n this.working = true;\r\n\r\n this.step.data = {\r\n npn: this.npn,\r\n licenseFirstName: this.licenseFirstName,\r\n licenseLastName: this.licenseLastName,\r\n residentLicenseState: this.residentLicenseState,\r\n residentLicenseNumber: this.residentLicenseNumber\r\n };\r\n await this.updateProgress(this.step);\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n this.working = false;\r\n }\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { OnboardingStep } from './onboarding-step';\r\n\r\nexport class HaveLicense extends OnboardingStep {\r\n static inject = [Element, Onboardings];\r\n @bindable status;\r\n @bindable step;\r\n\r\n contentKey;\r\n needLicenseContentKey;\r\n showLicenseOptions = false;\r\n\r\n constructor(element, onboardings) {\r\n super(element, onboardings);\r\n }\r\n\r\n attached() {\r\n this.contentKey = `onboarding-have-license-${this.step.platformValue.toLowerCase()}`;\r\n this.needLicenseContentKey = `onboarding-need-license-${this.step.platformValue.toLowerCase()}`;\r\n }\r\n\r\n async haveLicense() {\r\n this.step.data = true;\r\n await this.updateProgress(this.step);\r\n }\r\n\r\n async needLicense() {\r\n this.showLicenseOptions = true;\r\n }\r\n\r\n back() {\r\n this.showLicenseOptions = false;\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\nimport { Router } from 'aurelia-router';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { Security } from 'common/security';\r\nimport { OnboardingStep } from './onboarding-step';\r\n\r\nexport class OnboardingComplete extends OnboardingStep {\r\n static inject = [Element, Onboardings, Security, Router];\r\n @bindable status;\r\n @bindable step;\r\n\r\n _router;\r\n\r\n constructor(element, onboardings, security, router) {\r\n super(element, onboardings);\r\n this._security = security;\r\n this._router = router;\r\n }\r\n\r\n async complete() {\r\n await this.updateProgress(this.step);\r\n this._security.completeOnboarding();\r\n this._router.navigate('#/members', true);\r\n }\r\n}\r\n","export class OnboardingStep {\r\n _element;\r\n _onboardings;\r\n\r\n constructor(element, onboardings) {\r\n this._element = element;\r\n this._onboardings = onboardings;\r\n }\r\n\r\n async updateProgress(model) {\r\n try {\r\n const status = await this._onboardings.updateProgress(model);\r\n this.stepCompleted(status);\r\n return status;\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n stepCompleted(status) {\r\n this._element.dispatchEvent(new CustomEvent('completed', { bubbles: true, detail: status }));\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\nimport { Onboardings } from 'services/onboardings';\r\nimport { OnboardingStep } from './onboarding-step';\r\n\r\nexport class Welcome extends OnboardingStep {\r\n static inject = [Element, Onboardings];\r\n @bindable status;\r\n @bindable step;\r\n\r\n lightboxVM;\r\n showPlayButton = true;\r\n\r\n constructor(element, onboardings) {\r\n super(element, onboardings);\r\n }\r\n\r\n attached() {\r\n try {\r\n this.lightboxVM.open(true);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n playVideo() {\r\n try {\r\n this.videoEl.play();\r\n this.showPlayButton = false;\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n lightboxClosed() {\r\n this.videoEl.pause();\r\n }\r\n\r\n onVideoEnd() {\r\n this.lightboxVM.close();\r\n }\r\n\r\n async onContinue() {\r\n await this.updateProgress(this.step);\r\n }\r\n}\r\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"\", \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".zeus-onboarding-buttons {\\n display: flex;\\n flex-direction: column;\\n justify-content: space-between;\\n align-items: center;\\n}\\n.zeus-onboarding-buttons .btn {\\n margin-bottom: var(--zeus-margin);\\n}\\n@media (min-width: 768px) {\\n .zeus-onboarding-buttons {\\n flex-direction: row;\\n }\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/members/onboarding/onboarding.scss\"],\"names\":[],\"mappings\":\"AAKA;EACI,aAAA;EACA,sBAAA;EACA,8BAAA;EACA,mBAAA;AAJJ;AAMI;EACI,iCAAA;AAJR;AAOI;EAVJ;IAWQ,mBAAA;EAJN;AACF\",\"sourcesContent\":[\"@import \\\"./../../styles/responsive.scss\\\";\\r\\n\\r\\n.zeus-onboarding-container {\\r\\n}\\r\\n\\r\\n.zeus-onboarding-buttons {\\r\\n display: flex;\\r\\n flex-direction: column;\\r\\n justify-content: space-between;\\r\\n align-items: center;\\r\\n\\r\\n .btn {\\r\\n margin-bottom: var(--zeus-margin);\\r\\n }\\r\\n\\r\\n @media (min-width: $zeus-screen-sm-min) {\\r\\n flex-direction: row;\\r\\n }\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".zeus-onboarding-add-profile-picture-container {\\n border: var(--zeus-card-border);\\n border-radius: var(--zeus-margin);\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/members/onboarding/steps/add-profile-picture.scss\"],\"names\":[],\"mappings\":\"AAAA;EACI,+BAAA;EACA,iCAAA;AACJ\",\"sourcesContent\":[\".zeus-onboarding-add-profile-picture-container {\\r\\n border: var(--zeus-card-border);\\r\\n border-radius: var(--zeus-margin);\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n ${'onboarding-agency'&t}\\r\\n \\r\\n \\r\\n ${'onboarding-team'&t}\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n ${'onboarding-status-list-title'&t} (${dgOnboardings.length})\\r\\n \\r\\n ${'onboarding-by-status'&t}\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n ${'status'&t}\\r\\n ${'agent'&t}\\r\\n ${'onboarding-days-since-start'&t}\\r\\n ${'onboarding-platform'&t}\\r\\n ${'onboarding-step'&t}\\r\\n ${'onboarding-time-in-step'&t}\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n ${record.started|timeFromNow}\\r\\n ${record.currentStep}\\r\\n ${record.currentSubstep}\\r\\n ${record.startedCurrentStep|timeFromNow} (${'onboarding-expected-days-in-step'&t:{days:record.expectedDays}})\\r\\n \\r\\n \\r\\n ${'onboarding-status-none'&t}\\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n ${'team-reports-production-by-agent'&t}\\r\\n ${'team-reports-recruiting-summary'&t}\\r\\n ${'team-reports-onboarding-summary'&t}\\r\\n ${'agency-agents-monthly-bonus-report'&t}\\r\\n \\r\\n\\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n \\r\\n ${'onboarding-reset-my'&t}\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n ${status.errorKey|t}\\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n ${'onboarding-npn-label'&t}\\r\\n ${contractDetails.nationalProducerNumber}\\r\\n \\r\\n \\r\\n ${'license-first-name'&t}\\r\\n ${contractDetails.licenseFirstName}\\r\\n \\r\\n \\r\\n ${'license-last-name'&t}\\r\\n ${contractDetails.licenseLastName}\\r\\n \\r\\n \\r\\n ${'resident-license-state'&t}\\r\\n ${contractDetails.residentLicenseState}\\r\\n \\r\\n \\r\\n ${'resident-license-number'&t}\\r\\n ${contractDetails.residentLicenseNumber}\\r\\n \\r\\n \\r\\n\\r\\n \\r\\n\\r\\n \\r\\n ${'onboarding-access-surancebay-button'&t} \\r\\n ${'onboarding-is-contracted-status-button'&t} \\r\\n ${'change-contract-details'&t} \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n ${'continue'|t} \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n \\r\\n ${'onboarding-npn-label'&t}\\r\\n \\r\\n \\r\\n \\r\\n ${'license-first-name'&t}\\r\\n \\r\\n \\r\\n \\r\\n ${'license-last-name'&t}\\r\\n \\r\\n \\r\\n \\r\\n ${'resident-license-state'&t}\\r\\n \\r\\n \\r\\n ${usState.abbr}\\r\\n \\r\\n \\r\\n \\r\\n ${'resident-license-number'&t}\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n ${'continue'&t} \\r\\n \\r\\n \\r\\n ${'look-up-my-npn'&t} \\r\\n \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n ${'onboarding-have-license-button'|t} \\r\\n ${'onboarding-need-license-button'|t} \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n ${'back'|t}\\r\\n \\r\\n \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n ${'onboarding-enter-site'|t} \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n ${'play-video'|t} \\r\\n \\r\\n \\r\\n \\r\\n \\r\\n\\r\\n \\r\\n ${'continue'|t} \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}