{"version":3,"file":"app-a71478ea.9729664bca28a8e6916d.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AAEA;AAKA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AATA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAcA;AAAA;AAZA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAKA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAlFA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;ACrBA;AAEA;AAOA;AAAA;AALA;AAAA;AAMA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAdA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAuBA;AAAA;AArBA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAMA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAUA;AAAA;AARA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AA/DA;;;;;;;;;;;;;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAgBA;AAAA;AAdA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;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;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3LA;;;;;;;;;;;;;;;;;ACbA;AACA;AACA;AAEA;AAaA;AAAA;AAXA;AACA;AACA;AACA;AAEA;AACA;AACA;AAKA;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;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAtDA;;;;;;;;;;;;;;;ACJA;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;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","sources":["webpack://www.zeusteam.com/./src/members/message-center/controls/message-reply.js","webpack://www.zeusteam.com/./src/members/message-center/controls/message-summary.js","webpack://www.zeusteam.com/./src/members/message-center/controls/message-view.js","webpack://www.zeusteam.com/./src/members/message-center/controls/write-message.js","webpack://www.zeusteam.com/./src/members/message-center/index.js","webpack://www.zeusteam.com/./src/members/message-center/list.js","webpack://www.zeusteam.com/./src/members/message-center/view.js","webpack://www.zeusteam.com/./src/members/message-center/controls/message-summary.scss","webpack://www.zeusteam.com/./src/members/message-center/controls/message-view.scss","webpack://www.zeusteam.com/./src/members/message-center/index.scss","webpack://www.zeusteam.com/./src/members/message-center/list.scss","webpack://www.zeusteam.com/./src/members/message-center/view.scss","webpack://www.zeusteam.com/./src/members/message-center/controls/message-reply.html","webpack://www.zeusteam.com/./src/members/message-center/controls/message-summary.html","webpack://www.zeusteam.com/./src/members/message-center/controls/message-view.html","webpack://www.zeusteam.com/./src/members/message-center/controls/write-message.html","webpack://www.zeusteam.com/./src/members/message-center/index.html","webpack://www.zeusteam.com/./src/members/message-center/list.html","webpack://www.zeusteam.com/./src/members/message-center/view.html"],"sourcesContent":["import { bindable } from 'aurelia-framework';\r\n\r\nexport class MessageReply {\r\n static inject = [Element];\r\n\r\n @bindable message;\r\n\r\n constructor(element) {\r\n this.element = element;\r\n }\r\n\r\n loadChildren() {\r\n this.node.toggleNode();\r\n }\r\n}\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { bindable } from 'aurelia-framework';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { Messages } from 'services/messages';\r\nimport { DialogService } from 'aurelia-dialog';\r\nimport { ConfirmDialog } from 'common/dialogs/confirm/confirm-dialog';\r\nimport { WriteMessage } from './write-message';\r\nimport { ROLE } from 'common/constants';\r\nPLATFORM.moduleName('./write-message');\r\nPLATFORM.moduleName('common/dialogs/confirm/confirm-dialog');\r\n\r\nexport class MessageSummary {\r\n static inject = [Element, EventAggregator, Security, Messages, DialogService];\r\n _element;\r\n _ea;\r\n security;\r\n _messages;\r\n _dialogService;\r\n\r\n @bindable message;\r\n @bindable open = false;\r\n\r\n isMessageManager;\r\n showFullMessage = false;\r\n\r\n constructor(element, ea, security, messages, dialogService) {\r\n this._element = element;\r\n this._ea = ea;\r\n this.security = security;\r\n this._messages = messages;\r\n this._dialogService = dialogService;\r\n\r\n this.isMessageManager = this.security.isInRole(ROLE.Admin);\r\n }\r\n\r\n attached() {\r\n if (this.open) this.toggleFullMessage();\r\n }\r\n\r\n toggleFullMessage() {\r\n if (this.buttonClicked) {\r\n this.buttonClicked = false;\r\n return;\r\n }\r\n this.showFullMessage = !this.showFullMessage;\r\n }\r\n\r\n async markArchived(archive) {\r\n this.buttonClicked = true;\r\n try {\r\n await this._messages.archive(this.message.id, archive);\r\n this.message.isArchived = archive;\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async markRead(read) {\r\n this.buttonClicked = true;\r\n try {\r\n await this._messages.read(this.message.id, read);\r\n this.message.isRead = read;\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n _fireEvent(eventKey) {\r\n this._element.dispatchEvent(new CustomEvent(eventKey, { bubbles: true, detail: { id: this.message.id } }));\r\n }\r\n\r\n replyToMessage() {\r\n this.buttonClicked = true;\r\n const model = { replyToMessage: this.message };\r\n\t this._dialogService.open({ viewModel: WriteMessage, model, ignoreTransitions: true }).whenClosed(response => {\r\n\t if (response.wasCancelled) return;\r\n this._fireEvent('reload');\r\n\t });\r\n }\r\n\r\n edit() {\r\n const model = { editMessage: this.message };\r\n\t this._dialogService.open({ viewModel: WriteMessage, model, ignoreTransitions: true }).whenClosed(response => {\r\n\t if (response.wasCancelled) return;\r\n this._fireEvent('reload');\r\n\t });\r\n }\r\n\r\n async delete() {\r\n this.buttonClicked = true;\r\n const model = { key: 'delete-message', okButtonClass: 'btn-danger', messageObject: { title: this.message.subject } };\r\n\t this._dialogService.open({ viewModel: ConfirmDialog, model, ignoreTransitions: true }).whenClosed(async(response) => {\r\n\t if (response.wasCancelled) return;\r\n try {\r\n await this._messages.delete(this.message.id);\r\n this._fireEvent('deleted');\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n });\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\n\r\nexport class MessageView {\r\n static inject = [Element];\r\n _element;\r\n\r\n @bindable message;\r\n @bindable open = false;\r\n\r\n constructor(element) {\r\n this._element = element;\r\n }\r\n\r\n reload(ev) {\r\n this._element.dispatchEvent(new CustomEvent('reload', { bubbles: true, detail: ev }));\r\n }\r\n\r\n deleted(ev) {\r\n this._element.dispatchEvent(new CustomEvent('deleted', { bubbles: true, detail: ev }));\r\n }\r\n}\r\n","import { computedFrom } from 'aurelia-framework';\r\nimport { DialogController } from 'aurelia-dialog';\r\nimport { Security } from 'common/security';\r\nimport { Messages } from 'services/messages';\r\nimport { Members } from 'services/members';\r\nimport { Levels } from 'services/levels';\r\nimport { I18n } from 'common/i18n';\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 { ROLE } from 'common/constants';\r\nimport moment from 'moment';\r\n\r\nexport class WriteMessage {\r\n static inject = [DialogController, Security, Messages, Members, Levels, I18n, NewInstance.of(ValidationController)];\r\n dialogController;\r\n _security;\r\n _messages;\r\n _members;\r\n _i18n;\r\n _levels;\r\n\r\n messageTitle;\r\n replyToMessage;\r\n editMessage;\r\n\r\n canAddNotifications = false;\r\n toMemberAndDownline;\r\n id;\r\n messageType;\r\n toMember;\r\n subject;\r\n body;\r\n validationController;\r\n focusMember = true;\r\n\r\n constructor(dialogController, security, messages, members, levels, i18n, validationController) {\r\n this.dialogController = dialogController;\r\n this.dialogController.settings.centerHorizontalOnly = true;\r\n this._security = security;\r\n this._messages = messages;\r\n this._members = members;\r\n this._levels = levels;\r\n this._i18n = i18n;\r\n\r\n this.canAddNotifications = this._security.isInRole(ROLE.Admin);\r\n if (!this.canAddNotifications) this.messageType = 'personal';\r\n\r\n this.validationController = validationController;\r\n\t\tthis.validationController.addRenderer(new BootstrapFormValidationRenderer());\r\n\r\n\t\tValidationRules\r\n .ensure('toMemberAndDownline').required().when(x => x.messageType === 'notification' && x.filterBy === 'agent-and-downline')\r\n .ensure('toMember').required().when(x => x.messageType === 'personal')\r\n .ensure('subject').required().when(x => !x.replyToMessage || x.messageType === 'notification')\r\n .ensure('body').required()\r\n .on(this);\r\n }\r\n\r\n async activate(model) {\r\n console.log(model);\r\n if (model.replyToMessage) {\r\n this.messageTitle = 'message-reply-title';\r\n this.focusMessage = false;\r\n this.focusMember = false;\r\n this.replyToMessage = model.replyToMessage;\r\n this.messageType = model.replyToMessage.type;\r\n if (this.replyToMessage) {\r\n this.toMember = model.replyToMessage.from;\r\n this.focusMessage = true;\r\n } else {\r\n this.focusMember = true;\r\n }\r\n } else if (model.editMessage) {\r\n this.messageTitle = 'message-edit-title';\r\n this.id = model.editMessage.id;\r\n await this.selectMessageType(model.editMessage.type);\r\n let filter = 'all';\r\n this.level = undefined;\r\n this.levelOrAbove = false;\r\n this.toMemberAndDownline = undefined;\r\n if (model.editMessage.toFilter) {\r\n if (model.editMessage.toFilter.memberIdAndDownline) {\r\n console.log('member and downline', model.editMessage.toFilter.memberIdAndDownline);\r\n filter = 'agent-and-downline';\r\n this.toMemberAndDownline = await this._members.getMember(model.editMessage.toFilter.memberIdAndDownline);\r\n } else if (model.editMessage.toFilter.level) {\r\n filter = model.editMessage.toFilter.levelTypeValue;\r\n this.level = model.editMessage.toFilter.level;\r\n this.levelOrAbove = model.editMessage.toFilter.levelOrAbove;\r\n }\r\n }\r\n this.selectNotificationFilter(filter);\r\n this.subject = model.editMessage.subject;\r\n this.body = model.editMessage.content;\r\n this.startDate = model.editMessage.startDate;\r\n this.endDate = model.editMessage.endDate;\r\n } else {\r\n this.messageTitle = 'message-new-title';\r\n }\r\n }\r\n\r\n async selectMessageType(messageType) {\r\n this.messageType = messageType;\r\n if (this.messageType === 'notification') {\r\n await this._loadNotificationOptions();\r\n }\r\n }\r\n\r\n selectNotificationFilter(filter) {\r\n this.filterBy = filter;\r\n this.displayLevelNotificationOption = false;\r\n this.displayMemberSelector = false;\r\n this.levelNameKey = undefined;\r\n this.levels = [];\r\n switch (filter) {\r\n case 'all':\r\n break;\r\n case 'agent-and-downline':\r\n this.displayMemberSelector = true;\r\n break;\r\n case 'Life':\r\n this.displayLevelNotificationOption = true;\r\n this.levelNameKey = 'life-level';\r\n this.levels = this._levelData.lifeLevels;\r\n break;\r\n case 'Annuity':\r\n this.displayLevelNotificationOption = true;\r\n this.levelNameKey = 'annuity-level';\r\n this.levels = this._levelData.annuityLevels;\r\n break;\r\n case 'HMA':\r\n this.displayLevelNotificationOption = true;\r\n this.levelNameKey = 'annuity-level';\r\n this.levels = this._levelData.hmaLevels;\r\n break;\r\n }\r\n }\r\n\r\n async _loadNotificationOptions() {\r\n try {\r\n this._levelData = await this._levels.byType();\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n @computedFrom('messageType', 'filterBy')\r\n get canWriteMessage() {\r\n if (!this.messageType) return false;\r\n if (this.messageType === 'personal') return true;\r\n return this.filterBy;\r\n }\r\n\r\n @computedFrom('messageType')\r\n get saveButtonTitle() {\r\n if (this.messageType === 'personal') return this._i18n.tr('send-message');\r\n return this._i18n.tr('save');\r\n }\r\n\r\n async sendMessage() {\r\n try {\r\n const v = await this.validationController.validate();\r\n if (!v.valid) return;\r\n const startDate = this.startDate ? moment.parseZone(this.startDate).format('MM/DD/YYYY') : null;\r\n const endDate = this.endDate ? moment.parseZone(this.endDate).format('MM/DD/YYYY') : null;\r\n const toMemberId = this.toMember ? this.toMember.id : null;\r\n const replyToMessageId = this.replyToMessage ? this.replyToMessage.id : null;\r\n const memberIdAndDownline = this.toMemberAndDownline ? this.toMemberAndDownline.id : null;\r\n if (this.id) {\r\n const editResponse = await this._messages.edit(this.id, this.messageType, this.subject, this.body, startDate, endDate, this.filterBy, this.level, this.levelOrAbove, memberIdAndDownline);\r\n this.close(editResponse.id);\r\n } else {\r\n const response = await this._messages.create(this.messageType, this.subject, this.body, toMemberId, replyToMessageId, startDate, endDate, this.filterBy, this.level, this.levelOrAbove, memberIdAndDownline);\r\n this.close(response.id);\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n } \r\n }\r\n\r\n close(id) {\r\n if (!id) {\r\n this.toMember = undefined;\r\n this.subject = undefined;\r\n this.body = undefined;\r\n }\r\n this.dialogController.ok();\r\n }\r\n}\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { DialogService } from 'aurelia-dialog';\r\nimport { WriteMessage } from './controls/write-message';\r\nimport { RouterEvent } from 'aurelia-router';\r\nimport { MESSAGE_STATUS } from 'services/messages';\r\nPLATFORM.moduleName('./controls/write-message');\r\n\r\nexport class Index {\r\n static inject = [EventAggregator, DialogService];\r\n _router;\r\n _ea;\r\n _dialogService;\r\n MESSAGE_STATUS = MESSAGE_STATUS;\r\n status;\r\n\r\n _handlers = [];\r\n\r\n constructor(ea, dialogService) {\r\n this._ea = ea;\r\n this._dialogService = dialogService;\r\n }\r\n\r\n configureRouter(config, router) {\r\n config.map([\r\n {\r\n route: ['', '/:status'],\r\n moduleId: PLATFORM.moduleName('members/message-center/list'),\r\n membersOnly: true,\r\n adminOnly: false,\r\n settings: { canAddToMobileMenu: false },\r\n },\r\n {\r\n route: ['/view/:id', '/view/new'],\r\n moduleId: PLATFORM.moduleName('members/message-center/view'),\r\n membersOnly: true,\r\n adminOnly: false,\r\n settings: { canAddToMobileMenu: false },\r\n },\r\n ]);\r\n\r\n this._router = router;\r\n }\r\n\r\n activate() {\r\n this._handlers.push(this._ea.subscribe(RouterEvent.Complete, (event) => {\r\n if (this._router.currentInstruction) {\r\n if (this._router.currentInstruction.params && this._router.currentInstruction.params.status) {\r\n this.status = this._router.currentInstruction.params.status;\r\n } else if (this._router.currentInstruction.queryParams && this._router.currentInstruction.queryParams.status) {\r\n this.status = this._router.currentInstruction.queryParams.status;\r\n }\r\n }\r\n if (!this.status) this.status = MESSAGE_STATUS.current;\r\n }));\r\n }\r\n\r\n deactivate() {\r\n this._handlers.forEach(h => h.dispose());\r\n }\r\n\r\n view(status) {\r\n this._router.navigate(`#/members/message-center/${encodeURIComponent(status)}`, true);\r\n }\r\n\r\n createMessage() {\r\n const model = {};\r\n\t this._dialogService.open({ viewModel: WriteMessage, model, ignoreTransitions: true }).whenClosed(response => {\r\n\t if (response.wasCancelled) return;\r\n\t });\r\n }\r\n}\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { Router, activationStrategy } from 'aurelia-router';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { Messages, MESSAGE_STATUS } from 'services/messages';\r\nimport { DialogService } from 'aurelia-dialog';\r\nimport { ConfirmDialog } from 'common/dialogs/confirm/confirm-dialog';\r\nimport { WriteMessage } from './controls/write-message';\r\nimport { ROLE } from 'common/constants';\r\nimport { c } from 'common/common';\r\nPLATFORM.moduleName('./controls/write-message');\r\nPLATFORM.moduleName('common/dialogs/confirm/confirm-dialog');\r\n\r\nexport class List {\r\n static inject = [Router, EventAggregator, Security, Messages, DialogService];\r\n _router;\r\n _ea;\r\n _security;\r\n _messages;\r\n _dialogService;\r\n\r\n status;\r\n messages;\r\n messageFilters = [{ value: '', keys: ['subject', 'from.fullName', 'from.email'] }];\r\n pageSize = 25;\r\n isMessageManager;\r\n selectAll = false;\r\n _handlers = [];\r\n\r\n constructor(router, ea, security, messages, dialogService) {\r\n this._router = router;\r\n this._ea = ea;\r\n this._security = security;\r\n this._messages = messages;\r\n this._dialogService = dialogService;\r\n\r\n this.isMessageManager = this._security.isInRole(ROLE.Admin);\r\n }\r\n\r\n determineActivationStrategy () {\r\n\t\treturn activationStrategy.invokeLifecycle;\r\n\t}\r\n\r\n activate(model) {\r\n if (model.status) this.status = model.status;\r\n if (this._isAttached) {\r\n this._initialize();\r\n }\r\n }\r\n\r\n attached() {\r\n this._initialize();\r\n this._isAttached = true;\r\n this._handlers.push(this._ea.subscribe(c.EventKeys.messages.updated, () => {\r\n if (this._initializing) return;\r\n this._load();\r\n }));\r\n }\r\n\r\n toggleSelectAll() {\r\n this.selectAll = !this.selectAll;\r\n this.dgMessages.forEach(m => {\r\n m.checked = this.selectAll;\r\n });\r\n }\r\n\r\n async markAllRead(read) {\r\n try {\r\n const ids = [];\r\n this.dgMessages.forEach(m => {\r\n if (m.checked) ids.push(m.id);\r\n });\r\n await this._messages.massRead(ids, read);\r\n this.view(this.status);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async markAllArchived(archive) {\r\n try {\r\n const ids = [];\r\n this.dgMessages.forEach(m => {\r\n if (m.checked) ids.push(m.id);\r\n });\r\n await this._messages.massArchive(ids, archive);\r\n this.view(this.status);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n toggleMessageChecked(ev, message) {\r\n ev.stopPropagation();\r\n message.checked = !message.checked;\r\n return false;\r\n }\r\n\r\n async _initialize() {\r\n this._initializing = true;\r\n if (!this.status) {\r\n this.status = MESSAGE_STATUS.current;\r\n await this._load();\r\n } else {\r\n this.view(this.status);\r\n }\r\n this._initializing = false;\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 async _load() {\r\n try {\r\n if (this.status !== MESSAGE_STATUS.current) return;\r\n this.working = true;\r\n this.messages = await this._messages.current();\r\n this._messages.setNavList(this.messages);\r\n } catch (err) {\r\n this.messages = [];\r\n this._messages.clearNav();\r\n } finally {\r\n this.working = false;\r\n }\r\n }\r\n\r\n async view(status) {\r\n try {\r\n this.selectAll = false;\r\n this.status = status;\r\n this.messages = await this._messages.list(status);\r\n this._messages.setNavList(this.messages);\r\n } catch (err) {\r\n console.log(err); \r\n }\r\n }\r\n\r\n viewMessage(message) {\r\n let route = `#/members/message-center/view/${message.id}?status=${this.status}`;\r\n this._router.navigate(route, true);\r\n }\r\n\r\n async replyToMessage(message) {\r\n try {\r\n const replyToMessage = await this._messages.get(message.id);\r\n const model = { replyToMessage };\r\n\t this._dialogService.open({ viewModel: WriteMessage, model, ignoreTransitions: true }).whenClosed(response => {\r\n\t if (response.wasCancelled) return;\r\n this.view(this.status);\r\n\t });\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async editMessage(message) {\r\n try {\r\n const editMessage = await this._messages.get(message.id);\r\n const model = { editMessage };\r\n\t this._dialogService.open({ viewModel: WriteMessage, model, ignoreTransitions: true }).whenClosed(response => {\r\n\t if (response.wasCancelled) return;\r\n this.view(this.status);\r\n\t });\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async markArchived(message, archive) {\r\n try {\r\n await this._messages.archive(message.id, archive);\r\n this.view(this.status);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async markRead(message, read) {\r\n try {\r\n await this._messages.read(message.id, read);\r\n this.view(this.status);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n\r\n async deleteMessage(message) {\r\n const model = { key: 'delete-message', okButtonClass: 'btn-danger', messageObject: { title: message.subject } };\r\n\t this._dialogService.open({ viewModel: ConfirmDialog, model, ignoreTransitions: true }).whenClosed(async(response) => {\r\n\t if (response.wasCancelled) return;\r\n try {\r\n await this._messages.delete(message.id);\r\n this.view(this.status);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n });\r\n }\r\n}\r\n","import { Router, activationStrategy } from 'aurelia-router';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Messages, MESSAGE_STATUS } from 'services/messages';\r\n\r\nexport class View {\r\n static inject = [Router, EventAggregator, Messages];\r\n _router;\r\n _ea;\r\n _messages;\r\n MESSAGE_STATUS = MESSAGE_STATUS;\r\n\r\n id;\r\n message;\r\n status = MESSAGE_STATUS.current;\r\n\r\n _handlers = [];\r\n\r\n constructor(router, ea, messages) {\r\n this._router = router;\r\n this._ea = ea;\r\n this._messages = messages;\r\n }\r\n\r\n determineActivationStrategy () {\r\n\t\treturn activationStrategy.invokeLifecycle;\r\n\t}\r\n\r\n activate(model) {\r\n if (model) {\r\n this.id = model.id;\r\n this.status = model.status || MESSAGE_STATUS.current;\r\n }\r\n this.load();\r\n }\r\n\r\n deactivate() {\r\n this._handlers.forEach(h => h.dispose());\r\n this._handlers = [];\r\n }\r\n\r\n async load() {\r\n try {\r\n if (!this.id) return;\r\n this.working = true;\r\n await this._messages.read(this.id, true);\r\n this.message = await this._messages.get(this.id);\r\n if (this.edit) this.editMessage = this.message;\r\n this.nav = this._messages.getNav(this.id);\r\n } catch (err) {\r\n this.message = undefined;\r\n } finally {\r\n this.working = false;\r\n }\r\n }\r\n\r\n deleted() {\r\n this._router.navigate(`#/members/message-center/${encodeURIComponent(this.status)}`, true);\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, \".zeus-message {\\n border-bottom: var(--zeus-card-border);\\n padding: var(--zeus-margin) var(--zeus-margin-sm);\\n display: flex;\\n justify-content: space-between;\\n width: 100%;\\n align-items: flex-start;\\n}\\n.zeus-message .zeus-message-left {\\n flex: 2;\\n display: flex;\\n justify-content: flex-start;\\n align-items: flex-start;\\n max-width: 75%;\\n overflow: hidden;\\n}\\n.zeus-message .zeus-message-left .zeus-profile-image {\\n height: 20px;\\n width: 20px;\\n border-radius: 20px;\\n margin-right: var(--zeus-margin-sm);\\n}\\n@media screen and (min-width: 768px) {\\n .zeus-message .zeus-message-left .zeus-profile-image {\\n height: 30px;\\n width: 30px;\\n border-radius: 30px;\\n margin-right: var(--zeus-margin);\\n }\\n}\\n.zeus-message .zeus-message-left .zeus-message-content {\\n padding-bottom: var(--zeus-margin);\\n}\\n.zeus-message .zeus-message-left .zeus-message-content .zeus-message-from {\\n font-weight: bold;\\n font-size: 0.9em;\\n}\\n.zeus-message .zeus-message-left .zeus-message-content .zeus-message-to {\\n margin-bottom: var(--zeus-margin);\\n font-style: italic;\\n}\\n.zeus-message .zeus-message-left .zeus-message-content .zeus-message-summary {\\n font-size: 0.95em;\\n line-height: 1.2em;\\n max-height: 1.2em;\\n min-height: none;\\n overflow: hidden;\\n white-space: nowrap;\\n color: var(--kt-text-muted);\\n}\\n.zeus-message .zeus-message-left .zeus-message-content .zeus-message-summary.zeus-message-full {\\n max-height: none;\\n min-height: 50px;\\n white-space: inherit;\\n}\\n.zeus-message .zeus-message-buttons {\\n display: flex;\\n justify-content: flex-end;\\n z-index: 1001;\\n}\\n.zeus-message:hover {\\n cursor: pointer;\\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.1);\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/members/message-center/controls/message-summary.scss\"],\"names\":[],\"mappings\":\"AAEA;EACI,sCAAA;EACA,iDAAA;EACA,aAAA;EACA,8BAAA;EACA,WAAA;EACA,uBAAA;AADJ;AAGI;EACI,OAAA;EACA,aAAA;EACA,2BAAA;EACA,uBAAA;EACA,cAAA;EACA,gBAAA;AADR;AAGQ;EACI,YAAA;EACA,WAAA;EACA,mBAAA;EACA,mCAAA;AADZ;AAGY;EANJ;IAOQ,YAAA;IACA,WAAA;IACA,mBAAA;IACA,gCAAA;EAAd;AACF;AAGQ;EACI,kCAAA;AADZ;AAGY;EACI,iBAAA;EACA,gBAAA;AADhB;AAGY;EACI,iCAAA;EACA,kBAAA;AADhB;AAGY;EACI,iBAAA;EACA,kBAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;EACA,mBAAA;EACA,2BAAA;AADhB;AAGgB;EACI,gBAAA;EACA,gBAAA;EACA,oBAAA;AADpB;AAOI;EACI,aAAA;EACA,yBAAA;EACA,aAAA;AALR;AAQI;EACI,eAAA;EACA,8CAAA;AANR\",\"sourcesContent\":[\"@import \\\"./../../../styles/responsive.scss\\\";\\r\\n\\r\\n.zeus-message {\\r\\n border-bottom: var(--zeus-card-border);\\r\\n padding: var(--zeus-margin) var(--zeus-margin-sm);\\r\\n display: flex;\\r\\n justify-content: space-between;\\r\\n width: 100%;\\r\\n align-items: flex-start;\\r\\n\\r\\n .zeus-message-left {\\r\\n flex: 2;\\r\\n display: flex;\\r\\n justify-content: flex-start;\\r\\n align-items: flex-start;\\r\\n max-width: 75%;\\r\\n overflow: hidden;\\r\\n\\r\\n .zeus-profile-image {\\r\\n height: 20px;\\r\\n width: 20px;\\r\\n border-radius: 20px;\\r\\n margin-right: var(--zeus-margin-sm);\\r\\n \\r\\n @media screen and (min-width: $zeus-screen-sm-min) {\\r\\n height: 30px;\\r\\n width: 30px;\\r\\n border-radius: 30px;\\r\\n margin-right: var(--zeus-margin);\\r\\n }\\r\\n }\\r\\n\\r\\n .zeus-message-content {\\r\\n padding-bottom: var(--zeus-margin);\\r\\n\\r\\n .zeus-message-from {\\r\\n font-weight: bold;\\r\\n font-size: 0.9em;\\r\\n }\\r\\n .zeus-message-to {\\r\\n margin-bottom: var(--zeus-margin);\\r\\n font-style: italic;\\r\\n }\\r\\n .zeus-message-summary {\\r\\n font-size: 0.95em;\\r\\n line-height: 1.2em;\\r\\n max-height: 1.2em;\\r\\n min-height: none;\\r\\n overflow: hidden;\\r\\n white-space: nowrap;\\r\\n color: var(--kt-text-muted);\\r\\n\\r\\n &.zeus-message-full {\\r\\n max-height: none;\\r\\n min-height: 50px;\\r\\n white-space: inherit;\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n .zeus-message-buttons {\\r\\n display: flex;\\r\\n justify-content: flex-end;\\r\\n z-index: 1001;\\r\\n }\\r\\n\\r\\n &:hover {\\r\\n cursor: pointer;\\r\\n box-shadow: 0px 3px 4px 0px rgba(0,0,0,0.1);\\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, \"\", \"\",{\"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-messages-nav {\\n position: relative;\\n}\\n.zeus-messages-nav > div {\\n display: flex;\\n justify-content: flex-start;\\n align-items: center;\\n padding-left: var(--zeus-margin);\\n border-left: 4px solid transparent;\\n}\\n.zeus-messages-nav > div a {\\n flex: 2;\\n margin-left: var(--zeus-margin);\\n text-decoration: none;\\n display: inline-block;\\n padding-top: var(--zeus-margin-sm);\\n padding-bottom: var(--zeus-margin-sm);\\n}\\n.zeus-messages-nav > div.zeus-active {\\n border-left-color: var(--kt-primary);\\n}\\n.zeus-messages-nav > div.zeus-active a {\\n font-weight: bold;\\n}\\n@media (min-width: 768px) {\\n .zeus-messages-nav {\\n position: fixed;\\n }\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/members/message-center/index.scss\"],\"names\":[],\"mappings\":\"AAEA;EACI,kBAAA;AADJ;AAGI;EACI,aAAA;EACA,2BAAA;EACA,mBAAA;EACA,gCAAA;EACA,kCAAA;AADR;AAGQ;EACI,OAAA;EACA,+BAAA;EACA,qBAAA;EACA,qBAAA;EACA,kCAAA;EACA,qCAAA;AADZ;AAIQ;EACI,oCAAA;AAFZ;AAGY;EACI,iBAAA;AADhB;AAMI;EA3BJ;IA4BQ,eAAA;EAHN;AACF\",\"sourcesContent\":[\"@import \\\"./../../styles/responsive.scss\\\";\\r\\n\\r\\n.zeus-messages-nav {\\r\\n position: relative;\\r\\n\\r\\n > div {\\r\\n display: flex;\\r\\n justify-content: flex-start;\\r\\n align-items: center;\\r\\n padding-left: var(--zeus-margin);\\r\\n border-left: 4px solid transparent;\\r\\n\\r\\n a {\\r\\n flex: 2;\\r\\n margin-left: var(--zeus-margin);\\r\\n text-decoration: none;\\r\\n display: inline-block;\\r\\n padding-top: var(--zeus-margin-sm);\\r\\n padding-bottom: var(--zeus-margin-sm);\\r\\n }\\r\\n\\r\\n &.zeus-active {\\r\\n border-left-color: var(--kt-primary);\\r\\n a {\\r\\n font-weight: bold;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n @media (min-width: $zeus-screen-sm-min) {\\r\\n position: fixed;\\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-message-heading {\\n display: flex;\\n justify-content: space-between;\\n}\\n.zeus-message-heading .btn-group {\\n margin-left: 5px;\\n}\\n\\n.zeus-message-summary-container {\\n position: relative;\\n border: var(--zeus-card-border);\\n border-bottom-width: 0;\\n border-radius: var(--zeus-margin-xs);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row {\\n position: relative;\\n}\\n.zeus-message-summary-container .zeus-message-summary-row:hover {\\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.1);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary {\\n position: relative;\\n padding: var(--zeus-margin-sm) var(--zeus-margin);\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n color: black;\\n text-decoration: none;\\n border-bottom: var(--zeus-card-border);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left {\\n display: flex;\\n justify-content: flex-start;\\n align-items: center;\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left .zeus-message-multiselect {\\n margin-right: var(--zeus-margin);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left .zeus-message-multiselect .zeus-btn-icon {\\n color: #aaa;\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left .zeus-profile-image {\\n height: 20px;\\n width: 20px;\\n border-radius: 20px;\\n margin-right: var(--zeus-margin-sm);\\n}\\n@media screen and (min-width: 768px) {\\n .zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left .zeus-profile-image {\\n height: 30px;\\n width: 30px;\\n border-radius: 30px;\\n margin-right: var(--zeus-margin);\\n }\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left .zeus-message-from {\\n font-size: 0.8em;\\n font-style: italic;\\n color: var(--kt-text-muted);\\n display: flex;\\n align-items: center;\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-summary .zeus-message-left .zeus-message-from > i {\\n font-size: 0.95em;\\n margin-left: var(--zeus-margin-xxs);\\n margin-right: var(--zeus-margin-xxs);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-actions {\\n position: absolute;\\n right: 0;\\n top: 1px;\\n bottom: 1px;\\n background: white;\\n padding-left: var(--zeus-margin);\\n box-shadow: -3px 0px 4px 0px rgba(0, 0, 0, 0.1);\\n border-top-left-radius: var(--zeus-margin-sm);\\n border-bottom-left-radius: var(--zeus-margin-sm);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-actions > button {\\n margin-left: var(--zeus-margin);\\n margin-right: var(--zeus-margin);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row .zeus-message-actions > button:hover {\\n color: var(--kt-primary);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row.zeus-message-not-read .zeus-message-summary {\\n background-color: var(--kt-card-bg);\\n}\\n.zeus-message-summary-container .zeus-message-summary-row.zeus-message-not-read .zeus-message-summary .zeus-message-title {\\n font-weight: bold;\\n}\\n.zeus-message-summary-container .zeus-message-summary-row.zeus-message-not-read .zeus-message-actions {\\n background-color: var(--kt-card-bg);\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/members/message-center/list.scss\"],\"names\":[],\"mappings\":\"AAEA;EACI,aAAA;EACA,8BAAA;AADJ;AAGI;EACI,gBAAA;AADR;;AAKA;EACI,kBAAA;EACA,+BAAA;EACA,sBAAA;EACA,oCAAA;AAFJ;AAII;EACI,kBAAA;AAFR;AAIQ;EACI,8CAAA;AAFZ;AAKQ;EACI,kBAAA;EACA,iDAAA;EACA,aAAA;EACA,8BAAA;EACA,mBAAA;EACA,YAAA;EACA,qBAAA;EACA,sCAAA;AAHZ;AAKY;EACI,aAAA;EACA,2BAAA;EACA,mBAAA;AAHhB;AAKgB;EACI,gCAAA;AAHpB;AAKoB;EACI,WAAA;AAHxB;AAOgB;EACI,YAAA;EACA,WAAA;EACA,mBAAA;EACA,mCAAA;AALpB;AAOoB;EANJ;IAOQ,YAAA;IACA,WAAA;IACA,mBAAA;IACA,gCAAA;EAJtB;AACF;AAOgB;EACI,gBAAA;EACA,kBAAA;EACA,2BAAA;EACA,aAAA;EACA,mBAAA;AALpB;AAOoB;EACI,iBAAA;EACA,mCAAA;EACA,oCAAA;AALxB;AAWQ;EACI,kBAAA;EACA,QAAA;EACA,QAAA;EACA,WAAA;EACA,iBAAA;EACA,gCAAA;EACA,+CAAA;EACA,6CAAA;EACA,gDAAA;AATZ;AAWY;EACI,+BAAA;EACA,gCAAA;AAThB;AAWgB;EACI,wBAAA;AATpB;AAeY;EACI,mCAAA;AAbhB;AAegB;EACI,iBAAA;AAbpB;AAiBY;EACI,mCAAA;AAfhB\",\"sourcesContent\":[\"@import \\\"./../../styles/responsive.scss\\\";\\r\\n\\r\\n.zeus-message-heading {\\r\\n display: flex;\\r\\n justify-content: space-between;\\r\\n\\r\\n .btn-group {\\r\\n margin-left: 5px;\\r\\n }\\r\\n}\\r\\n\\r\\n.zeus-message-summary-container {\\r\\n position: relative;\\r\\n border: var(--zeus-card-border);\\r\\n border-bottom-width: 0;\\r\\n border-radius: var(--zeus-margin-xs);\\r\\n\\r\\n .zeus-message-summary-row {\\r\\n position: relative;\\r\\n\\r\\n &:hover {\\r\\n box-shadow: 0px 3px 4px 0px rgba(0,0,0,0.1);\\r\\n }\\r\\n\\r\\n .zeus-message-summary {\\r\\n position: relative;\\r\\n padding: var(--zeus-margin-sm) var(--zeus-margin);\\r\\n display: flex;\\r\\n justify-content: space-between;\\r\\n align-items: center;\\r\\n color: black;\\r\\n text-decoration: none;\\r\\n border-bottom: var(--zeus-card-border);\\r\\n\\r\\n .zeus-message-left {\\r\\n display: flex;\\r\\n justify-content: flex-start;\\r\\n align-items: center;\\r\\n\\r\\n .zeus-message-multiselect {\\r\\n margin-right: var(--zeus-margin);\\r\\n\\r\\n .zeus-btn-icon {\\r\\n color: #aaa;\\r\\n }\\r\\n }\\r\\n\\r\\n .zeus-profile-image {\\r\\n height: 20px;\\r\\n width: 20px;\\r\\n border-radius: 20px;\\r\\n margin-right: var(--zeus-margin-sm);\\r\\n \\r\\n @media screen and (min-width: $zeus-screen-sm-min) {\\r\\n height: 30px;\\r\\n width: 30px;\\r\\n border-radius: 30px;\\r\\n margin-right: var(--zeus-margin);\\r\\n }\\r\\n }\\r\\n\\r\\n .zeus-message-from {\\r\\n font-size: 0.8em;\\r\\n font-style: italic;\\r\\n color: var(--kt-text-muted);\\r\\n display: flex;\\r\\n align-items: center;\\r\\n\\r\\n > i {\\r\\n font-size: 0.95em;\\r\\n margin-left: var(--zeus-margin-xxs);\\r\\n margin-right: var(--zeus-margin-xxs);\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n .zeus-message-actions {\\r\\n position: absolute;\\r\\n right: 0;\\r\\n top: 1px;\\r\\n bottom: 1px;\\r\\n background: white;\\r\\n padding-left: var(--zeus-margin);\\r\\n box-shadow: -3px 0px 4px 0px rgba(0,0,0,0.1);\\r\\n border-top-left-radius: var(--zeus-margin-sm);\\r\\n border-bottom-left-radius: var(--zeus-margin-sm);\\r\\n\\r\\n > button {\\r\\n margin-left: var(--zeus-margin);\\r\\n margin-right: var(--zeus-margin);\\r\\n\\r\\n &:hover {\\r\\n color: var(--kt-primary);\\r\\n }\\r\\n }\\r\\n }\\r\\n \\r\\n &.zeus-message-not-read {\\r\\n .zeus-message-summary {\\r\\n background-color: var(--kt-card-bg);\\r\\n\\r\\n .zeus-message-title {\\r\\n font-weight: bold;\\r\\n }\\r\\n }\\r\\n\\r\\n .zeus-message-actions {\\r\\n background-color: var(--kt-card-bg);\\r\\n }\\r\\n }\\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-message-nav {\\n display: flex;\\n}\\n.zeus-message-nav .zeus-message-nav-button {\\n font-size: 1.2em;\\n border: solid 1px #efefef;\\n border-radius: 40px;\\n height: 40px;\\n width: 40px;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n margin-left: var(--zeus-margin);\\n}\\n.zeus-message-nav .zeus-message-nav-button.disabled {\\n color: #ccc;\\n}\\n.zeus-message-nav .zeus-message-nav-button.disabled:hover {\\n cursor: default;\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/members/message-center/view.scss\"],\"names\":[],\"mappings\":\"AAAA;EACI,aAAA;AACJ;AACI;EACI,gBAAA;EACA,yBAAA;EACA,mBAAA;EACA,YAAA;EACA,WAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,+BAAA;AACR;AACQ;EACI,WAAA;AACZ;AAAY;EACI,eAAA;AAEhB\",\"sourcesContent\":[\".zeus-message-nav {\\r\\n display: flex;\\r\\n\\r\\n .zeus-message-nav-button {\\r\\n font-size: 1.2em;\\r\\n border: solid 1px #efefef;\\r\\n border-radius: 40px;\\r\\n height: 40px;\\r\\n width: 40px;\\r\\n display: flex;\\r\\n align-items: center;\\r\\n justify-content: center;\\r\\n margin-left: var(--zeus-margin);\\r\\n\\r\\n &.disabled {\\r\\n color: #ccc;\\r\\n &:hover {\\r\\n cursor: default;\\r\\n }\\r\\n }\\r\\n }\\r\\n}\\r\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\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":""}