{"version":3,"file":"app-a9bd0f25.9729664bca28a8e6916d.bundle.js","mappings":";;;;;;;;;;;AAAA;AAEA;AAkBA;;;;;;;;;;;;;;;;;;;ACpBA;AAEA;AASA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;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;AACA;AACA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AA5DA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;ACRA;AAIA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAXA;;;;;;;;;;;;;;ACAA;AAIA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAXA;;;;;;;;;;;;;;;;;;;ACAA;AAEA;AAEA;AAAA;AAGA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA5BA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;ACJA;AAIA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAjBA;;;;;;;;;;;;;;ACAA;AAIA;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1BA;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1CA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1CA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1CA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1CA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7CA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzCA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7CA;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAEA;AAOA;AAAA;AALA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzCA;;;;;;;;;;;;;;;;ACJA;AACA;AAEA;AAKA;AAAA;AAHA;AAIA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AAnDA","sources":["webpack://www.zeusteam.com/./src/resources/attributes/_index.js","webpack://www.zeusteam.com/./src/resources/attributes/colorize-ryg.js","webpack://www.zeusteam.com/./src/resources/attributes/gs-h.js","webpack://www.zeusteam.com/./src/resources/attributes/gs-w.js","webpack://www.zeusteam.com/./src/resources/attributes/hover-intent.js","webpack://www.zeusteam.com/./src/resources/attributes/image-on-error.js","webpack://www.zeusteam.com/./src/resources/attributes/red-if-negative.js","webpack://www.zeusteam.com/./src/resources/attributes/require-agency.js","webpack://www.zeusteam.com/./src/resources/attributes/require-is-authenticated.js","webpack://www.zeusteam.com/./src/resources/attributes/require-level.js","webpack://www.zeusteam.com/./src/resources/attributes/require-minimum-level.js","webpack://www.zeusteam.com/./src/resources/attributes/require-not-role.js","webpack://www.zeusteam.com/./src/resources/attributes/require-not-security.js","webpack://www.zeusteam.com/./src/resources/attributes/require-role.js","webpack://www.zeusteam.com/./src/resources/attributes/require-security.js","webpack://www.zeusteam.com/./src/resources/attributes/to-do-icon.js"],"sourcesContent":["import { PLATFORM } from 'aurelia-pal';\r\n\r\nconst attributeGlobalResources = [\r\n PLATFORM.moduleName('resources/attributes/colorize-ryg'),\r\n PLATFORM.moduleName('resources/attributes/gs-h'),\r\n PLATFORM.moduleName('resources/attributes/gs-w'),\r\n PLATFORM.moduleName('resources/attributes/hover-intent'),\r\n PLATFORM.moduleName('resources/attributes/image-on-error'),\r\n PLATFORM.moduleName('resources/attributes/red-if-negative'),\r\n PLATFORM.moduleName('resources/attributes/require-agency'),\r\n PLATFORM.moduleName('resources/attributes/require-is-authenticated'),\r\n PLATFORM.moduleName('resources/attributes/require-level'),\r\n PLATFORM.moduleName('resources/attributes/require-minimum-level'),\r\n PLATFORM.moduleName('resources/attributes/require-not-role'),\r\n PLATFORM.moduleName('resources/attributes/require-not-security'),\r\n PLATFORM.moduleName('resources/attributes/require-role'),\r\n PLATFORM.moduleName('resources/attributes/require-security'),\r\n PLATFORM.moduleName('resources/attributes/to-do-icon'),\r\n];\r\n\r\nexport default attributeGlobalResources;","import { bindable } from 'aurelia-framework';\r\n\r\nexport class ColorizeRygCustomAttribute {\r\n static inject = [Element];\r\n @bindable color;\r\n @bindable type = 'bg';\r\n @bindable breaks;\r\n @bindable value;\r\n @bindable reversed = false;\r\n element;\r\n\r\n constructor(element) {\r\n this.element = element;\r\n }\r\n\r\n attached() {\r\n this._initialize();\r\n }\r\n\r\n colorChanged() {\r\n if (!this.color) return;\r\n this._initialize();\r\n }\r\n\r\n valueChanged() {\r\n if (this.value === undefined || this.value === null) {\r\n this._clear();\r\n return;\r\n }\r\n this._initialize();\r\n }\r\n\r\n _clear() {\r\n if (!this.element) return;\r\n this.element.classList.remove(`zeus-colorized-bg`);\r\n this.element.classList.remove(`zeus-colorized-color`);\r\n this.element.classList.remove(`zeus-colorized-border`);\r\n this.element.classList.remove('zeus-ryg-r');\r\n this.element.classList.remove('zeus-ryg-y');\r\n this.element.classList.remove('zeus-ryg-g');\r\n }\r\n\r\n _initialize() {\r\n try {\r\n if (!this.element || this.value === undefined) return;\r\n this._clear();\r\n this.element.classList.add(`zeus-colorized-${this.type}`);\r\n if (this.color) {\r\n this.element.classList.add(`zeus-ryg-${this.color}`);\r\n return;\r\n }\r\n if (!this.reversed) {\r\n if (this.value < this.breaks[0]) this.element.classList.add('zeus-ryg-r');\r\n else if (this.value < this.breaks[1]) this.element.classList.add('zeus-ryg-y');\r\n else this.element.classList.add('zeus-ryg-g');\r\n } else {\r\n if (this.value > this.breaks[0]) this.element.classList.add('zeus-ryg-g');\r\n else if (this.value > this.breaks[1]) this.element.classList.add('zeus-ryg-y');\r\n else this.element.classList.add('zeus-ryg-r');\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n","export class GsHCustomAttribute {\r\n static inject = [Element];\r\n _element;\r\n\r\n constructor(element) {\r\n this._element = element;\r\n }\r\n\r\n valueChanged() {\r\n this._element.setAttribute('gs-h', this.value);\r\n }\r\n}\r\n","export class GsWCustomAttribute {\r\n static inject = [Element];\r\n _element;\r\n\r\n constructor(element) {\r\n this._element = element;\r\n }\r\n\r\n valueChanged() {\r\n this._element.setAttribute('gs-w', this.value);\r\n }\r\n}\r\n","import { bindable } from 'aurelia-framework';\r\n\r\nexport class HoverIntentCustomAttribute {\r\n static inject = [Element];\r\n @bindable({ primaryProperty: true }) interval = 400;\r\n element;\r\n\r\n constructor(element) {\r\n this.element = element;\r\n }\r\n\r\n attached() {\r\n this._initialize();\r\n }\r\n\r\n _initialize() {\r\n try {\r\n $(this.element).hoverIntent({\r\n interval: this.interval,\r\n timeout: 100,\r\n over: () => {\r\n this.element.dispatchEvent(new CustomEvent('hoverintentover', { bubbles: true, detail: {} }));\r\n },\r\n out: () => {\r\n this.element.dispatchEvent(new CustomEvent('hoverintentout', { bubbles: true, detail: {} }));\r\n },\r\n });\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n","export class ImageOnErrorCustomAttribute {\r\n static inject = [Element];\r\n element;\r\n\r\n constructor(element) {\r\n this.element = element;\r\n }\r\n\r\n attached() {\r\n try {\r\n if (!this.element) return;\r\n const errorSrc = this.value || '/memberzone/profile/default-profile.jpg';\r\n this.element.setAttribute('onerror', `this.src='${errorSrc}'`);\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n","export class RedIfNegativeCustomAttribute {\r\n static inject = [Element];\r\n element;\r\n\r\n constructor(element) {\r\n this.element = element;\r\n }\r\n\r\n attached() {\r\n this._initialize();\r\n }\r\n\r\n valueChanged() {\r\n this._initialize();\r\n }\r\n\r\n _initialize() {\r\n try {\r\n if (!this.element || this.value === undefined) return;\r\n this.element.classList.remove('zeus-error');\r\n const numberValue = parseFloat(this.value);\r\n if (numberValue < 0) this.element.classList.add('zeus-error');\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n","import { Security } from 'common/security';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireAgencyCustomAttribute {\r\n static inject = [Element, Security, EventAggregator];\r\n element;\r\n _security;\r\n _ea;\r\n _originalDisplay = null;\r\n\r\n constructor(element, security, ea) {\r\n this.element = element;\r\n this._security = security;\r\n this._ea = ea;\r\n\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n return;\r\n }\r\n\r\n if (!this._security.isAgency()) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n }\r\n }\r\n}\r\n","import { Security } from 'common/security';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireIsAuthenticatedCustomAttribute {\r\n static inject = [Element, Security, EventAggregator];\r\n element;\r\n _security;\r\n _ea;\r\n _originalDisplay = null;\r\n\r\n constructor(element, security, ea) {\r\n this.element = element;\r\n this._security = security;\r\n this._ea = ea;\r\n\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated || !this.value) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n return;\r\n }\r\n\r\n if (!this._security.isAuthenticatedMember(this.value)) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n }\r\n }\r\n}\r\n","import { Security } from 'common/security';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireLevelCustomAttribute {\r\n static inject = [Element, Security, EventAggregator];\r\n element;\r\n _security;\r\n _ea;\r\n _originalDisplay = null;\r\n\r\n constructor(element, security, ea) {\r\n this.element = element;\r\n this._security = security;\r\n this._ea = ea;\r\n\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n return;\r\n }\r\n\r\n if (this.value && !this._security.isLevel(this.value)) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n }\r\n }\r\n}\r\n","import { Security } from 'common/security';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireMinimumLevelCustomAttribute {\r\n static inject = [Element, Security, EventAggregator];\r\n element;\r\n _security;\r\n _ea;\r\n _originalDisplay = null;\r\n\r\n constructor(element, security, ea) {\r\n this.element = element;\r\n this._security = security;\r\n this._ea = ea;\r\n\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n return;\r\n }\r\n\r\n if (this.value && !this._security.isInMinimumLevel(this.value)) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n }\r\n }\r\n}\r\n","import { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireNotRoleCustomAttribute {\r\n static inject = [Element, EventAggregator, Security];\r\n element;\r\n _ea;\r\n _security;\r\n _originalDisplay = null;\r\n\r\n constructor(element, ea, security) {\r\n this.element = element;\r\n this._ea = ea;\r\n this._security = security;\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n } else {\r\n this.element.style.display = 'none';\r\n }\r\n return;\r\n }\r\n\r\n if (this.value && this._security.isInRole(this.value)) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n } else {\r\n this.element.style.display = '';\r\n }\r\n }\r\n }\r\n}\r\n","import { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireNotSecurityCustomAttribute {\r\n static inject = [Element, EventAggregator, Security];\r\n element;\r\n _ea;\r\n _security;\r\n _originalDisplay = null;\r\n\r\n constructor(element, ea, security) {\r\n this.element = element;\r\n this._ea = ea;\r\n this._security = security;\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n return;\r\n }\r\n\r\n if (this.value && this._security[this.value]) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n }\r\n }\r\n}\r\n","import { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireRoleCustomAttribute {\r\n static inject = [Element, EventAggregator, Security];\r\n element;\r\n _ea;\r\n _security;\r\n _originalDisplay = null;\r\n\r\n constructor(element, ea, security) {\r\n this.element = element;\r\n this._ea = ea;\r\n this._security = security;\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n } else {\r\n this.element.style.display = 'none';\r\n }\r\n return;\r\n }\r\n\r\n if (this.value && !this._security.isInRole(this.value)) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n } else {\r\n this.element.style.display = '';\r\n }\r\n }\r\n }\r\n}\r\n","import { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { Security } from 'common/security';\r\nimport { c } from 'common/common';\r\n\r\nexport class RequireSecurityCustomAttribute {\r\n static inject = [Element, EventAggregator, Security];\r\n element;\r\n _ea;\r\n _security;\r\n _originalDisplay = null;\r\n\r\n constructor(element, ea, security) {\r\n this.element = element;\r\n this._ea = ea;\r\n this._security = security;\r\n this._ea.subscribe(c.EventKeys.loginAuthenticationUpdated, () => this._setDisplay());\r\n }\r\n\r\n bind() {\r\n this._setDisplay();\r\n }\r\n\r\n valueChanged() {\r\n this._setDisplay();\r\n }\r\n\r\n _setDisplay() {\r\n if (!this._security.isAuthenticated) {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n return;\r\n }\r\n\r\n if (this.value && !this._security[this.value]) {\r\n if (this._originalDisplay === null) this._originalDisplay = this.element.style.display;\r\n this.element.style.display = 'none';\r\n } else {\r\n if (this._originalDisplay !== null) {\r\n this.element.style.display = this._originalDisplay;\r\n this._originalDisplay = null;\r\n }\r\n }\r\n }\r\n}\r\n","import { toDoType } from 'services/to-dos';\r\nimport { ToDoTypeValueConverter } from 'resources/value-converters/to-do-type';\r\n\r\nexport class ToDoIconCustomAttribute {\r\n static inject = [Element, ToDoTypeValueConverter];\r\n element;\r\n _vc;\r\n\r\n constructor(element, vc) {\r\n this.element = element;\r\n this._vc = vc;\r\n }\r\n\r\n attached() {\r\n this._initialize();\r\n }\r\n\r\n typeChanged() {\r\n this._initialize();\r\n }\r\n\r\n _clear() {\r\n if (!this.element) return;\r\n this.element.classList.remove('fa-duotone');\r\n this.element.classList.remove('fa-file-contract');\r\n this.element.classList.remove('fa-filter-circle-dollar');\r\n this.element.classList.remove('fa-user');\r\n this.element.classList.remove('fa-bell-on');\r\n }\r\n\r\n _initialize() {\r\n try {\r\n if (!this.element || this.value === undefined) return;\r\n this._clear();\r\n this.element.classList.add('fa-duotone');\r\n this.element.setAttribute('title', this._vc.toView(this.value));\r\n switch (this.value) {\r\n case toDoType.LEAD:\r\n this.element.classList.add('fa-filter-circle-dollar');\r\n break;\r\n case toDoType.AGENT:\r\n this.element.classList.add('fa-user');\r\n break;\r\n case toDoType.POLICY:\r\n this.element.classList.add('fa-file-contract');\r\n break;\r\n default:\r\n this.element.classList.add('fa-bell-on');\r\n break;\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n }\r\n}\r\n"],"names":[],"sourceRoot":""}