{"version":3,"file":"app-d9abdebf.9729664bca28a8e6916d.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AAEA;AAQA;AAAA;AANA;AAEA;AACA;AAIA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;AC9CA;AACA;AACA;AACA;AAEA;AAWA;AAAA;AARA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AAEA;;;;;;;;;;;;;;;;;;ACzDA;AACA;AACA;AAEA;AAMA;AAAA;AAHA;AAIA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AAEA;AAIA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrBA;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AAKA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAtDA;;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAUA;AAAA;AARA;AACA;AAEA;AAEA;AACA;AAAA;AAAA;AAGA;AACA;AAEA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAnCA;;;;;;;;;;;ACJA;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/events/controls/events-navbar.js","webpack://www.zeusteam.com/./src/members/events/corporate-event-registrants.js","webpack://www.zeusteam.com/./src/members/events/corporate-events.js","webpack://www.zeusteam.com/./src/members/events/events.js","webpack://www.zeusteam.com/./src/members/hierarchy/agents.js","webpack://www.zeusteam.com/./src/members/hierarchy/index.js","webpack://www.zeusteam.com/./src/members/hierarchy/reports.js","webpack://www.zeusteam.com/./src/members/events/controls/events-navbar.html","webpack://www.zeusteam.com/./src/members/events/corporate-event-registrants.html","webpack://www.zeusteam.com/./src/members/events/corporate-events.html","webpack://www.zeusteam.com/./src/members/events/events.html","webpack://www.zeusteam.com/./src/members/hierarchy/agents.html","webpack://www.zeusteam.com/./src/members/hierarchy/index.html","webpack://www.zeusteam.com/./src/members/hierarchy/reports.html"],"sourcesContent":["import {inject} from 'aurelia-framework';\r\nimport {EventAggregator} from 'aurelia-event-aggregator';\r\nimport {Page} from 'common/ui';\r\nimport {Security} from 'common/security';\r\n\r\n@inject(EventAggregator, Page, Security)\r\nexport class EventsNavbar {\r\n _security;\r\n\r\n\teaSub = null;\r\n\tonEvents = true;\r\n\tonCorporateEvents = false;\r\n\r\n\tconstructor(eventAggregator, page, security) {\r\n\t\tthis.eventAggregator = eventAggregator;\r\n\t\tthis.page = page;\r\n\t\tthis._security = security;\r\n\r\n\t\tthis.canAccessCorporateEvents = this._security.canAccessCorporateEvents();\r\n\t}\r\n\r\n\tattached() {\r\n\t\tvar self = this;\r\n\t\tthis.eaSub = this.eventAggregator.subscribe('router:navigation:complete', message => {\r\n\t\t\tself.setCurrentRouteValues();\r\n\t\t});\r\n\t\tvar nav = $('.navbar-nav a[href=\"#/members/events\"]');\r\n\t\tif (nav.length > 0) {\r\n\t\t\tnav.parent().addClass('active-custom');\r\n\t\t}\r\n\t}\r\n\r\n\tdetached() {\r\n\t\tthis.eaSub.dispose();\r\n\t\tvar nav = $('.navbar-nav a[href=\"#/members/events\"]');\r\n\t\tif (nav.length > 0) {\r\n\t\t\tnav.parent().removeClass('active-custom');\r\n\t\t}\r\n\t}\r\n\r\n\tsetCurrentRouteValues() {\r\n\t var currentRoute = this.page.getCurrentRoute();\r\n\t\tthis.onEvents = currentRoute === '/members/events' || currentRoute === 'members/events';\r\n\t\tthis.onCorporateEvents = currentRoute.indexOf('members/events/corporate') >= 0;\r\n\t}\r\n\r\n} \r\n","import {inject} from 'aurelia-framework';\r\nimport {EventAggregator} from 'aurelia-event-aggregator';\r\nimport {Api} from 'common/server';\r\nimport {c} from 'common/common';\r\n\r\n@inject(EventAggregator, Api)\r\nexport class CorporateEventRegistrants {\r\n\r\n\teventId = '';\r\n\tcorporateEvent = null;\r\n\treportName = '';\r\n\treportType = '';\r\n\tregistrants = [];\r\n\treportComplete = false;\r\n\tisLoading = false;\r\n\r\n\tconstructor(eventAggregator, api) {\r\n\t\tthis.eventAggregator = eventAggregator;\r\n\t\tthis.api = api;\r\n\t}\r\n\r\n\tactivate(params, routerConfig) {\r\n\t\tthis.eventId = params.id;\r\n\t\tthis.reportType = params.type;\r\n\t\tif (!(this.reportType === 'registered' || this.reportType === 'non-registered')) this.reportType = 'registered';\r\n\t\tif (this.reportType === 'registered') this.reportName = 'Registered Report';\r\n\t\telse this.reportName = 'Non-Registered Report';\r\n\t\tthis.loadEvent();\r\n\t\tthis.loadRegistrants();\r\n\t}\r\n\r\n\tloadEvent() {\r\n\t\tvar self = this;\r\n\t\tself.api.getData('event/corporate/' + self.eventId).then(data => {\r\n\t\t\tself.corporateEvent = data;\r\n\t\t});\r\n\t}\r\n\r\n\tloadRegistrants() {\r\n\t var self = this;\r\n\t self.isLoading = true;\r\n\t\tself.api.getData('event/corporate/' + self.eventId + '/' + self.reportType).then(data => {\r\n\t\t self.reportComplete = true;\r\n\t\t data.sort(function(a, b) {\r\n\t\t if (a.lastName === b.lastName) return a.firstName.localeCompare(b.firstName);\r\n\t\t return a.lastName.localeCompare(b.lastName);\r\n\t\t });\r\n\t\t\tself.registrants = data;\r\n\t\t}).then(data => {\r\n\t\t self.isLoading = false;\r\n\t\t});\r\n\t}\r\n\r\n\tshowProfile(memberId) {\r\n\t\tthis.eventAggregator.publish(c.EventKeys.site.openProfile, { member: null, memberId: memberId });\r\n\t}\r\n\r\n}\r\n","import {inject} from 'aurelia-framework';\r\nimport {Api} from 'common/server';\r\nimport {Page} from 'common/ui';\r\n\r\n@inject(Api, Page)\r\nexport class CorporateEvents {\r\n\r\n\tisLoaded = false;\r\n\tcategories = [];\r\n\r\n\tconstructor(api, page) {\r\n\t\tthis.api = api;\r\n\t\tthis.page = page;\r\n\r\n\t\tthis.loadEvents();\r\n\t}\r\n\r\n\tactivate() {\r\n\t\tthis.page.track('members/events/corporate');\r\n\t}\r\n\r\n\tloadEvents() {\r\n\t\tvar self = this;\r\n\t\tself.api.getData('event/corporate').then(data => {\r\n\t\t\tself.isLoaded = true;\r\n\t\t\tself.categories = data.categories;\r\n\t\t});\r\n\t}\r\n\r\n}","import {inject} from 'aurelia-framework';\r\nimport {Page} from 'common/ui';\r\nimport { Config } from 'services/config';\r\nimport moment from 'moment';\r\nimport 'moment-timezone';\r\n\r\n@inject(Page, Config)\r\nexport class Events {\r\n calendarUrl = '';\r\n\r\n constructor(page, config) {\r\n this.page = page;\r\n this._config = config;\r\n var tz = moment.tz.guess();\r\n const googleCalendarSrc = this._config.value('googleCalendarSource');\r\n this.calendarUrl = `https://calendar.google.com/calendar/embed?src=${encodeURIComponent(googleCalendarSrc)}&ctz=${tz}&showTitle=0&showCalendars=0`;\r\n }\r\n\r\n activate() {\r\n this.page.track('members/events');\r\n }\r\n}\r\n","export class Agents {\r\n}\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { c } from 'common/common';\r\n\r\nexport class Index {\r\n static inject = [EventAggregator];\r\n _ea;\r\n current = 'agents';\r\n\r\n _handlers = [];\r\n\r\n constructor(ea) {\r\n this._ea = ea;\r\n }\r\n\r\n configureRouter(config, router){\r\n config.title = 'LPFN';\r\n config.auth = true;\r\n config.map([\r\n {\r\n route: ['', 'agents'],\r\n moduleId: PLATFORM.moduleName('members/hierarchy/agents'),\r\n nav: false,\r\n membersOnly: true,\r\n adminOnly: false,\r\n settings: { title: 'Hierarchy', description: 'Search for any agent within the hierarchy', canAddToMobileMenu: false },\r\n },\r\n {\r\n route: 'reports',\r\n moduleId: PLATFORM.moduleName('members/hierarchy/reports'),\r\n nav: false,\r\n membersOnly: true,\r\n adminOnly: false,\r\n settings: { title: 'Reports', description: 'View bonus reports', canAddToMobileMenu: false },\r\n },\r\n ]);\r\n this.router = router;\r\n }\r\n\r\n attached() {\r\n this._setPageTitle();\r\n this._handlers.push(this._ea.subscribe(c.EventKeys.navigation.changed, () => this._setPageTitle()));\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 _setPageTitle() {\r\n try {\r\n const title = this.router.currentInstruction.config.settings.title;\r\n const description = this.router.currentInstruction.config.settings.description;\r\n window.setTimeout(() => this._ea.publish(c.EventKeys.site.setPageTitle, { title, description }), 0); // must be after the navigation event\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n","import { Api } from 'common/server';\r\nimport { Page } from 'common/ui';\r\nimport moment from 'moment';\r\n\r\nexport class AgencyReports {\r\n static inject = [Api, Page];\r\n _api;\r\n _page;\r\n\r\n reports = [];\r\n\r\n reportDate = moment();\r\n dpOptions = { orientation: \"bottom left\", autoclose: true };\r\n\r\n constructor(api, page) {\r\n this._api = api;\r\n this._page = page;\r\n\r\n this._initialize();\r\n }\r\n\r\n _initialize() {\r\n this.reports.push({ name: 'Monthly Bonus', api: 'report/agent-monthly-bonus-export', working: false, useDate: true });\r\n this.reports.push({ name: 'Agency Monthly Bonus', api: 'report/agency-monthly-bonus-export', working: false, useDate: true });\r\n }\r\n\r\n async exportReport(report) {\r\n try {\r\n const model = report.useDate\r\n ? { date: this.reportDate.format('MM/DD/YYYY') }\r\n : undefined;\r\n report.working = true;\r\n await this._page.export(this._api, report.api, model);\r\n } catch (err) {\r\n console.log(err);\r\n } finally {\r\n report.working = false;\r\n }\r\n }\r\n}\r\n","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \";\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}