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,KAAM1N,GAAMuS,MAAM1C,GAAWyC,EAAQzC,IAAQ,GAErD,C","sources":["engines/login-setup-engine/components/settings/monitoring-station/contact-info/template.hbs/..%2Fcomponent.js-embroider-pair-component","engines/login-setup-engine/components/settings/monitoring-station/contact-list/template.hbs/..%2Fcomponent.js-embroider-pair-component","engines/login-setup-engine/components/settings/monitoring-station/contact-list-item/template.hbs/..%2Fcomponent.js-embroider-pair-component","engines/login-setup-engine/components/settings/monitoring-station/contact-phone-list-item-input/template.hbs/..%2Fcomponent.js-embroider-pair-component","engines/login-setup-engine/components/settings/monitoring-station/edit-contact/template.hbs/..%2Fcomponent.js-embroider-pair-component","engines/login-setup-engine/components/settings/monitoring-station/premise-phone-list-item-input/template.hbs/..%2Fcomponent.js-embroider-pair-component","engines/login-setup-engine/components/settings/monitoring-station/premise-settings/template.hbs/..%2Fcomponent.js-embroider-pair-component","src/components/ember-dragula-container.hbs","src/components/ember-dragula-container.ts","src/utils/can-use-dom.ts","src/components/ember-dragula.hbs","src/components/ember-dragula.ts","src/adapters/video/download-format.ts","src/components/settings/business-hours/edit-business-hours.hbs","src/components/settings/business-hours/edit-business-hours.ts","src/components/settings/monitoring-station/contact-phone-edit-list.hbs","src/components/settings/monitoring-station/contact-phone-edit-list.ts","src/components/settings/monitoring-station/phone.hbs","src/components/settings/monitoring-station/phone.ts","src/components/settings/monitoring-station/verbal-passcode-input.hbs","src/components/settings/monitoring-station/verbal-passcode-input.ts","src/components/settings/monitoring-station/verbal-passcode.hbs","src/components/settings/monitoring-station/verbal-passcode.ts","src/helpers/wrap-with-promise.ts"],"sourcesContent":["\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","\nimport { setComponentTemplate } from \"@ember/component\";\nimport template from \"../template.hbs\";\nimport { deprecate } from \"@ember/debug\";\n\n\ndeprecate(\"Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup 'template'.\",\n false, {\n id: 'component-template-resolving',\n url: 'https://deprecations.emberjs.com/id/component-template-resolving',\n until: '6.0.0',\n for: 'ember-source',\n since: {\n available: '5.10.0',\n enabled: '5.10.0',\n },\n }\n);\n\nimport component from \"../component.js\";\nexport default setComponentTemplate(template, component);\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{yield}}\\n\")","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\n\nimport type { Drake } from 'dragula';\n\nexport interface EmberDragulaContainerSignature {\n Element: HTMLDivElement;\n Args: {\n /** The Drake yielded from the `` component. */\n drake?: Drake;\n };\n Blocks: {\n default: [];\n };\n}\n\n/**\n * The dragula item container (contained within the dragula container).\n */\nexport default class EmberDragulaContainer extends Component {\n /**\n * Called to add this container to the drake.\n */\n @action setupDrake(el: HTMLElement): void {\n const { drake } = this.args;\n if (!drake) {\n return;\n }\n\n const { containers } = drake;\n if (containers.indexOf(el) === -1) {\n containers.push(el);\n }\n }\n\n /**\n * Called to detach from the drake.\n */\n @action cleanUpDrake(el: HTMLElement): void {\n const { drake } = this.args,\n index = drake?.containers.indexOf(el) ?? -1;\n\n if (index > -1) {\n drake?.containers.splice(index, 1);\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n /**\n * The container for a group of elements that can be dragged. There can be multiple of these within on ``.\n *\n * @example \n */\n EmberDragulaContainer: typeof EmberDragulaContainer;\n }\n}\n","const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nexport default canUseDOM;\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{yield this.drake}}\\n\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { isArray } from '@ember/array';\nimport { action } from '@ember/object';\nimport dragula from 'dragula';\nimport canUseDOM from '../utils/can-use-dom.ts';\n\n// Import the styles to be consumed by the app\nimport '../styles/dragula.css';\nimport type { Drake, DragulaOptions } from 'dragula';\n\nexport type DragulaEventName = 'drag' | 'dragend' | 'drop' | 'cancel' | 'remove' | 'shadow' | 'over' | 'out' | 'cloned';\ntype DragulaEventHandlers =\n | 'onDrag'\n | 'onDragEnd'\n | 'onDrop'\n | 'onCancel'\n | 'onRemove'\n | 'onShadow'\n | 'onOver'\n | 'onOut'\n | 'onCloned';\n\nconst emberEvents = {\n drag: 'onDrag',\n dragend: 'onDragEnd',\n drop: 'onDrop',\n cancel: 'onCancel',\n remove: 'onRemove',\n shadow: 'onShadow',\n over: 'onOver',\n out: 'onOut',\n cloned: 'onCloned'\n};\n\ninterface DragulaConfig {\n options?: DragulaOptions;\n enabledEvents?: DragulaEventName[];\n}\n\ntype DragulaEvents = {\n [key in DragulaEventHandlers]?: (...args: any[]) => void;\n};\n\nexport interface EmberDragulaSignature {\n Element: HTMLDivElement;\n Args: DragulaEvents & {\n config?: DragulaConfig;\n };\n Blocks: {\n default: [Drake?];\n };\n}\n\n/**\n * The root dragula element, which can contain multiple dragula containers.\n */\nexport default class EmberDragula extends Component {\n /**\n * The dragula drake object.\n */\n @tracked drake?: Drake;\n\n /**\n * detaches the drake from the passed element and then destroys it.\n */\n private destroyDrake(el: HTMLElement): void {\n const { drake } = this;\n\n if (drake) {\n if (el) {\n // Not 100% sure if this is right, but removing this element from drake's containers.\n const index = drake.containers?.indexOf(el);\n if (index !== -1) {\n drake.containers.splice(index, 1);\n }\n }\n\n drake.destroy();\n }\n }\n\n /**\n * Called to configure the drake.\n */\n @action setupDrake(el: HTMLElement): void {\n this.destroyDrake(el);\n\n if (!canUseDOM) {\n return;\n }\n\n const { config } = this.args,\n drake = (this.drake = dragula(config?.options ?? {}));\n\n const enabledEvents = config?.enabledEvents;\n if (isArray(enabledEvents)) {\n enabledEvents.forEach((eventName: DragulaEventName) => {\n drake.on(eventName as 'drag', (...args: any[]) => {\n const handler = this.args[emberEvents[eventName] as keyof EmberDragulaSignature['Args']];\n if (typeof handler === 'function') {\n handler(...args, this.drake);\n }\n });\n });\n }\n }\n\n /**\n * Called to dispose of the drake.\n */\n @action cleanUpDrake(el: HTMLElement): void {\n this.destroyDrake(el);\n this.drake = undefined;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n /**\n * The root dragula element, which contains at least one ``.\n *\n * @example\n * \n * \n */\n EmberDragula: typeof EmberDragula;\n }\n}\n","import BaseLoginSetupAdapter from '../base-login-setup-adapter.ts';\n\nexport default class DownloadFormatAdapter extends BaseLoginSetupAdapter {}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{!-- Toggle --}}\\n \\n {{#unless this.partitionSelectionDropdownHidden}}\\n
\\n

{{tc this \\'applyBusinessHoursToPartitions\\'}}

\\n \\n
\\n {{/unless}}\\n {{#if this.businessHoursEnabled}}\\n {{!-- Timetable --}}\\n \\n {{!-- Exception and Alert Preview Dropdown --}}\\n
\\n \\n {{#if this.expandExceptionAndAlertPreview}}\\n
\\n
\\n \\n
\\n
\\n {{#if this.selectedPreviewDay.locationOpenForBusiness}}\\n {{tc this \\'openedOnTime\\'}}

{{get this.previewLabels 0}}

\\n {{tc this \\'openedLate\\'}}

{{get this.previewLabels 1}}

\\n {{#if (eq this.countOfDaysWithHours 1)}}\\n {{tc this \\'openedUnexpectedly\\'}}

{{get this.previewLabels 11}}

\\n {{else}}\\n {{tc this \\'openedUnexpectedly\\'}}

{{get this.previewLabels 2}}

\\n {{/if}}\\n
\\n {{tc this \\'notOpenedOnTime\\'}}

{{get this.previewLabels 3}}

\\n
\\n {{tc this \\'closedOnTime\\'}}

{{get this.previewLabels 4}}

\\n {{tc this \\'closedEarly\\'}}

{{get this.previewLabels 5}}

\\n {{tc this \\'closedLate\\'}}

{{get this.previewLabels 6}}

\\n {{#if (eq this.countOfDaysWithHours 1)}}\\n {{tc this \\'closedUnexpectedly\\'}}

{{get this.previewLabels 12}}

\\n {{else}}\\n {{tc this \\'closedUnexpectedly\\'}}

{{get this.previewLabels 7}}

\\n {{/if}}\\n
\\n {{tc this \\'notClosedOnTime\\'}}

{{get this.previewLabels 8}}

\\n {{else}}\\n {{#if (eq this.countOfDaysWithHours 1)}}\\n {{tc this \\'openedUnexpectedly\\'}}

{{get this.previewLabels 11}}

\\n {{tc this \\'closedUnexpectedly\\'}}

{{get this.previewLabels 12}}

\\n {{else if (eq this.countOfDaysWithHours 0)}}\\n {{tc this \\'openedUnexpectedly\\'}}

{{tc this \\'openedUnexpectedlyBlank\\'}}

\\n {{tc this \\'closedUnexpectedly\\'}}

{{tc this \\'closedUnexpectedlyBlank\\'}}

\\n {{else}}\\n {{tc this \\'openedUnexpectedly\\'}}

{{get this.previewLabels 9}}

\\n {{tc this \\'closedUnexpectedly\\'}}

{{get this.previewLabels 10}}

\\n {{/if}}\\n {{/if}}\\n
\\n
\\n {{/if}}\\n
\\n {{/if}}\\n\\n \\n
\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { set } from '@ember/object';\nimport { action, computed, setProperties } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownSelectItem, { SELECTED, UNSELECTED } from '@adc/ui-components/utils/dropdown-select-item';\nimport setDay from 'date-fns/setDay';\nimport {\n DEFAULT_ARRIVAL_END_TIME,\n DEFAULT_ARRIVAL_START_TIME,\n DEFAULT_BUSINESS_END_TIME,\n DEFAULT_BUSINESS_START_TIME,\n DEFAULT_DEPARTURE_END_TIME,\n DEFAULT_DEPARTURE_START_TIME,\n dayMinutesToTimeString\n} from './edit-business-hours-timetable.ts';\n\nimport type ContextManager from '@adc/app-infrastructure/services/context-manager';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type BusinessHourDay from '../../../models/settings/business-hours/day/business-hour-day.ts';\nimport type LocationBusinessHour from '../../../models/settings/business-hours/location-business-hour.ts';\nimport type { MockPartitionModel } from '../../../models/settings/business-hours/location-business-hour.ts';\n\ninterface EditBusinessHoursSignature {\n Args: {\n saveAction: () => Promise;\n\n model: {\n locationBusinessHours: LocationBusinessHour;\n };\n };\n}\n\n/**\n * Shows edit view for Business Hours\n */\n@intlPath({ module: '@adc/login-setup-addon', path: 'settings/business-hours/edit-business-hours' })\nexport default class EditBusinessHours extends Component {\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n\n /**\n * When we exit the page, rollback model attributes\n */\n willDestroy() {\n super.willDestroy();\n this.args.model.locationBusinessHours.rollbackAttributes();\n }\n\n /**\n * The list of time durations.\n */\n @alias('args.model.locationBusinessHours.unitPartitions')\n partitions: MockPartitionModel[] = this.args.model.locationBusinessHours.unitPartitions;\n\n /**\n * Whether the partition selection dropdown should be visible.\n */\n @tracked partitionSelectionDropdownHidden = this.args.model.locationBusinessHours.unitPartitions.length <= 1;\n\n /**\n * Whether to show exception and alert preview\n */\n @tracked\n expandExceptionAndAlertPreview = false;\n\n /**\n * If a business hours conflict is present.\n */\n @tracked hasConflict = false;\n\n @computed('businessHoursEnabled', 'hasConflict')\n get canSave(): boolean {\n return !(this.businessHoursEnabled && this.hasConflict);\n }\n\n /**\n * Whether the schedule component should be visible or not\n * @note This will only be true when business hours have been saved as \"disabled\"\n */\n @alias('args.model.locationBusinessHours.enabled')\n businessHoursEnabled = this.args.model.locationBusinessHours.enabled;\n\n /**\n * Whether the business hours enabled / disabled toggle should\n * be toggleable or not\n */\n @tracked\n toggleDisabled = false;\n\n /**\n * Stores the open / closed status for each day of the week\n * as of the most recent save\n */\n @tracked initialOpenForBusinessStates = this.getInitialOpenForBusinessStates();\n\n /**\n * Gets the business hour days\n */\n get businessHourDays() {\n return this.args.model.locationBusinessHours.businessHourDays;\n }\n\n /**\n * Called by edit-business-hours-timetable to update hasConflict.\n */\n @action\n setHasConflict(value: boolean) {\n this.hasConflict = value;\n }\n\n /**\n * Currently selected day in the preview section. Defaults to Monday.\n */\n @tracked\n selectedPreviewDay = this.businessHourDays[1];\n\n /**\n * The different time for the day that is selected for the alerts preview\n */\n @tracked\n previewIntervals = {\n openStart: this.selectedPreviewDay.hours['EmployeeArrival'].StartTime,\n openEnd: this.selectedPreviewDay.hours['EmployeeArrival'].EndTime,\n openLateStart: this.selectedPreviewDay.hours['EmployeeArrival'].EndTime,\n openLateEnd: this.selectedPreviewDay.hours['EmployeeDeparture'].StartTime,\n openUnexpectedlyStart: this.selectedPreviewDay.locationOpenForBusiness\n ? this.selectedPreviewDay.hours['EmployeeDeparture'].StartTime\n : this.getPreviousDayWithHours(this.selectedPreviewDay.day).hours['EmployeeDeparture'].StartTime,\n openUnexpectedlyEnd: this.getNextDayWithHours(this.selectedPreviewDay.day).hours['EmployeeArrival'].StartTime,\n notOpenedOnTime: this.selectedPreviewDay.hours['EmployeeArrival'].EndTime,\n closedOnTimeStart: this.selectedPreviewDay.hours['EmployeeDeparture'].StartTime,\n closedOnTimeEnd: this.selectedPreviewDay.hours['EmployeeDeparture'].EndTime,\n closedEarlyStart: this.selectedPreviewDay.hours['EmployeeArrival'].EndTime,\n closedEarlyEnd: this.selectedPreviewDay.hours['EmployeeDeparture'].StartTime,\n closedLateStart: this.selectedPreviewDay.hours['EmployeeDeparture'].EndTime,\n closedLateEnd: this.selectedPreviewDay.hours['EmployeeDeparture'].EndTime + 180,\n closedUnexpectedlyStart: this.selectedPreviewDay.locationOpenForBusiness\n ? this.selectedPreviewDay.hours['EmployeeDeparture'].EndTime + 180\n : this.getPreviousDayWithHours(this.selectedPreviewDay.day).hours['EmployeeDeparture'].EndTime + 180,\n closedUnexpectedlyEnd: this.getNextDayWithHours(this.selectedPreviewDay.day).hours['EmployeeArrival'].EndTime,\n notClosedOnTime: this.selectedPreviewDay.hours['EmployeeDeparture'].EndTime,\n currentDay: this.selectedPreviewDay.day,\n nextDay: this.getNextDayWithHours(this.selectedPreviewDay.day).day,\n previousDay: this.getPreviousDayWithHours(this.selectedPreviewDay.day).day\n };\n\n /**\n * Toggles the Exception and Alert Preview between the expanded\n * and collapsed state\n */\n @action\n toggleExpandExceptionAndAlertPreview(): void {\n this.expandExceptionAndAlertPreview = !this.expandExceptionAndAlertPreview;\n }\n\n /**\n * Navigates to the Settings page for this location\n */\n @action\n returnToSettingsPage(): void {\n this.contextManager.transitionToPreviousRoute();\n }\n\n /**\n * Toggles business hours between enabled and disabled\n */\n @action\n toggleBusinessHoursEnabled(): void {\n set(this, 'businessHoursEnabled', !this.businessHoursEnabled);\n\n // If business hours are enabled and every day is closed, init to default.\n if (\n this.businessHoursEnabled &&\n this.args.model.locationBusinessHours.businessHourDays.every((day) => !day.locationOpenForBusiness)\n ) {\n this.populateDefaultBusinessHours();\n }\n }\n\n /**\n * Populate each day in the business hours model\n */\n private populateDefaultBusinessHours(): void {\n this.args.model.locationBusinessHours.businessHourDays.forEach((day) => {\n setProperties(day, {\n locationOpenForBusiness: true,\n hours: {\n EmployeeArrival: {\n StartTime: DEFAULT_ARRIVAL_START_TIME,\n EndTime: DEFAULT_ARRIVAL_END_TIME\n },\n OpenForBusiness: {\n StartTime: DEFAULT_BUSINESS_START_TIME,\n EndTime: DEFAULT_BUSINESS_END_TIME\n },\n EmployeeDeparture: {\n StartTime: DEFAULT_DEPARTURE_START_TIME,\n EndTime: DEFAULT_DEPARTURE_END_TIME\n }\n }\n });\n });\n }\n\n /**\n * Saves the business hours currently applied to the schedule\n */\n @action\n async saveBusinessHours(): Promise {\n this.toggleDisabled = true;\n if (!this.args.model.locationBusinessHours.enabled) {\n this.closeAllDays();\n }\n this.initialOpenForBusinessStates = this.getInitialOpenForBusinessStates();\n await this.args.saveAction();\n this.toggleDisabled = false;\n }\n\n /**\n * Gets an array of the current open / closed status for each day\n */\n private getInitialOpenForBusinessStates(): boolean[] {\n return A(this.args.model.locationBusinessHours.businessHourDays).mapBy('locationOpenForBusiness');\n }\n\n /**\n * Sets locationOpenForBusiness to false for every day of the week\n */\n private closeAllDays(): void {\n A(this.args.model.locationBusinessHours.businessHourDays).setEach('locationOpenForBusiness', false);\n }\n\n /**\n * Updates the preview labels when the selected day is changed.\n * @param day - The selected day.\n */\n @action\n updatePreview(day: string): void {\n const selectedDay = this.args.model.locationBusinessHours.businessHourDays[Number(day)],\n nextOpenDay = this.getNextDayWithHours(day),\n previousOpenDay = this.getPreviousDayWithHours(day);\n\n setProperties(this.previewIntervals, {\n openStart: selectedDay.hours['EmployeeArrival'].StartTime,\n openEnd: selectedDay.hours['EmployeeArrival'].EndTime,\n openLateStart: selectedDay.hours['EmployeeArrival'].EndTime,\n openLateEnd: selectedDay.hours['EmployeeDeparture'].StartTime,\n openUnexpectedlyStart: selectedDay.locationOpenForBusiness\n ? selectedDay.hours['EmployeeDeparture'].StartTime\n : previousOpenDay.hours['EmployeeDeparture'].StartTime,\n openUnexpectedlyEnd: nextOpenDay.hours['EmployeeArrival'].StartTime,\n notOpenedOnTime: selectedDay.hours['EmployeeArrival'].EndTime,\n closedOnTimeStart: selectedDay.hours['EmployeeDeparture'].StartTime,\n closedOnTimeEnd: selectedDay.hours['EmployeeDeparture'].EndTime,\n closedEarlyStart: selectedDay.hours['EmployeeArrival'].EndTime,\n closedEarlyEnd: selectedDay.hours['EmployeeDeparture'].StartTime,\n closedLateStart: selectedDay.hours['EmployeeDeparture'].EndTime,\n closedLateEnd: selectedDay.hours['EmployeeDeparture'].EndTime + 180,\n closedUnexpectedlyStart: selectedDay.locationOpenForBusiness\n ? selectedDay.hours['EmployeeDeparture'].EndTime + 180\n : previousOpenDay.hours['EmployeeDeparture'].EndTime + 180,\n closedUnexpectedlyEnd: nextOpenDay.hours['EmployeeArrival'].EndTime,\n notClosedOnTime: selectedDay.hours['EmployeeDeparture'].EndTime,\n nextDay: nextOpenDay.day,\n previousDay: previousOpenDay.day\n });\n\n this.selectedPreviewDay = selectedDay;\n }\n\n /**\n * Update the business hours model when partition selections change.\n */\n @action\n updateAllowedPartitions() {\n const selectedPartitions = A(this.partitionDropdownItems).filterBy('state', SELECTED);\n this.args.model.locationBusinessHours.allowedPartitions = selectedPartitions.map((item) =>\n parseInt(item.value)\n );\n }\n\n /**\n * Populates the partitions dropdown with available partitions and their current states.\n */\n @computed('partitions', 'args.model.locationBusinessHours.allowedPartitions')\n get partitionDropdownItems(): Array {\n return this.partitions.map((partition) => {\n const partitionId = partition.id;\n\n return DropdownSelectItem.create({\n name: partition.description,\n value: partitionId,\n state: this.args.model.locationBusinessHours.allowedPartitions.includes(parseInt(partitionId))\n ? SELECTED\n : UNSELECTED\n });\n });\n }\n\n /**\n * Gets the amount of days that have business hours (are open).\n */\n @computed('args.model.locationBusinessHours.businessHourDays.@each.locationOpenForBusiness')\n get countOfDaysWithHours(): number {\n return this.args.model.locationBusinessHours.businessHourDays.filter((day) => day.locationOpenForBusiness)\n .length;\n }\n\n /**\n * A list of all the translated labels for the preview.\n */\n @computed(\n 'previewIntervals.{openStart,openEnd,openLateStart,openLateEnd,openUnexpectedlyStart,openUnexpectedlyEnd,nextDay,notOpenedOnTime,notClosedOnTime,closedOnTimeStart,closedOnTimeEnd,closedEarlyStart,closedEarlyEnd,closedLateStart,closedLateEnd,closedUnexpectedlyStart,closedUnexpectedlyEnd,previousDay}',\n 'args.model.locationBusinessHours.businessHourDays.@each.locationOpenForBusiness',\n 'selectedPreviewDay.day'\n )\n get previewLabels(): string[] {\n return [\n this.intl.tc(this, 'openedOnTimePreview', {\n employeeArrivalStartTime: dayMinutesToTimeString(this.previewIntervals.openStart, this.intl),\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.openEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.openStart),\n time2Day: this.getPreviewDayToDisplay(this.previewIntervals.openEnd)\n }),\n this.intl.tc(this, 'openedLatePreview', {\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.openLateStart, this.intl),\n employeeDepartureStartTime: dayMinutesToTimeString(this.previewIntervals.openLateEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.openLateStart),\n time2Day: this.getPreviewDayToDisplay(this.previewIntervals.openLateEnd)\n }),\n this.intl.tc(this, 'openedUnexpectedlyPreview', {\n employeeDepartureStartTime: dayMinutesToTimeString(\n this.previewIntervals.openUnexpectedlyStart,\n this.intl\n ),\n employeeArrivalStartTime: dayMinutesToTimeString(this.previewIntervals.openUnexpectedlyEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.openUnexpectedlyStart),\n time2Day: this.getDay(Number(this.previewIntervals.nextDay))\n }),\n this.intl.tc(this, 'notOpenedOnTimePreview', {\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.notOpenedOnTime, this.intl),\n day: this.getDay(Number(this.selectedPreviewDay.day))\n }),\n this.intl.tc(this, 'closedOnTimePreview', {\n employeeDepartureStartTime: dayMinutesToTimeString(this.previewIntervals.closedOnTimeStart, this.intl),\n employeeDepartureEndTime: dayMinutesToTimeString(this.previewIntervals.closedOnTimeEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.closedOnTimeStart),\n time2Day: this.getPreviewDayToDisplay(this.previewIntervals.closedOnTimeEnd)\n }),\n this.intl.tc(this, 'closedEarlyPreview', {\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.closedEarlyStart, this.intl),\n employeeDepartureStartTime: dayMinutesToTimeString(this.previewIntervals.closedEarlyEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.closedEarlyStart),\n time2Day: this.getPreviewDayToDisplay(this.previewIntervals.closedEarlyEnd)\n }),\n this.intl.tc(this, 'closedLatePreview', {\n employeeDepartureEndTime: dayMinutesToTimeString(this.previewIntervals.closedLateStart, this.intl),\n employeeDepartureEndTimePlus3: dayMinutesToTimeString(this.previewIntervals.closedLateEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.closedLateStart),\n time2Day: this.getPreviewDayToDisplay(this.previewIntervals.closedLateEnd)\n }),\n this.intl.tc(this, 'closedUnexpectedlyPreview', {\n employeeDepartureEndTimePlus3: dayMinutesToTimeString(\n this.previewIntervals.closedUnexpectedlyStart,\n this.intl\n ),\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.closedUnexpectedlyEnd, this.intl),\n time1Day: this.getPreviewDayToDisplay(this.previewIntervals.closedUnexpectedlyStart),\n time2Day: this.getDay(Number(this.previewIntervals.nextDay))\n }),\n this.intl.tc(this, 'notClosedOnTimePreview', {\n employeeDepartureEndTime: dayMinutesToTimeString(this.previewIntervals.notClosedOnTime, this.intl),\n day: this.getPreviewDayToDisplay(this.previewIntervals.notClosedOnTime)\n }),\n this.intl.tc(this, 'openedUnexpectedlyPreviewClosedBusiness', {\n employeeDepartureStartTime: dayMinutesToTimeString(\n this.previewIntervals.openUnexpectedlyStart,\n this.intl\n ),\n employeeArrivalStartTime: dayMinutesToTimeString(this.previewIntervals.openUnexpectedlyEnd, this.intl),\n nextBusinessDay: this.getDay(Number(this.previewIntervals.nextDay)),\n previousBusinessDay: this.getDay(Number(this.previewIntervals.previousDay))\n }),\n this.intl.tc(this, 'closedUnexpectedlyPreviewClosedBusiness', {\n employeeDepartureEndTimePlus3: dayMinutesToTimeString(\n this.previewIntervals.closedUnexpectedlyStart,\n this.intl\n ),\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.closedUnexpectedlyEnd, this.intl),\n nextBusinessDay: this.getDay(Number(this.previewIntervals.nextDay)),\n previousBusinessDay: this.getDay(Number(this.previewIntervals.previousDay))\n }),\n this.intl.tc(this, 'openedUnexpectedlyPreviewSingleDay', {\n employeeDepartureStartTime: dayMinutesToTimeString(\n this.previewIntervals.openUnexpectedlyStart,\n this.intl\n ),\n employeeArrivalStartTime: dayMinutesToTimeString(this.previewIntervals.openUnexpectedlyEnd, this.intl),\n nextBusinessDay: this.getDay(Number(this.previewIntervals.nextDay)),\n previousBusinessDay: this.getDay(Number(this.previewIntervals.previousDay))\n }),\n this.intl.tc(this, 'closedUnexpectedlyPreviewSingleDay', {\n employeeDepartureEndTimePlus3: dayMinutesToTimeString(\n this.previewIntervals.closedUnexpectedlyStart,\n this.intl\n ),\n employeeArrivalEndTime: dayMinutesToTimeString(this.previewIntervals.closedUnexpectedlyEnd, this.intl),\n nextBusinessDay: this.getDay(Number(this.previewIntervals.nextDay)),\n previousBusinessDay: this.getDay(Number(this.previewIntervals.previousDay))\n })\n ];\n }\n\n /**\n * Convert the dayMinutes (0 - 2160) to a localized day string.\n * If dayMinutes is >= 1440, it indicates that it takes place in the next day.\n *\n * @param dayMinutes - Number of elapsed minutes from the beginning of the day\n * @returns the localized day of the week\n */\n private getPreviewDayToDisplay(dayMinutes: number): string {\n const dayNumber = Number(this.selectedPreviewDay.day);\n return dayMinutes < 1440 ? this.getDay(dayNumber) : this.getDay(dayNumber + 1);\n }\n\n /**\n * Helper method which grabs the appropriate day string for the provided index.\n * @param dayNumber - The selected day index.\n */\n private getDay(dayNumber: number): string {\n // Ensure the dayNumber is not out of range of the 7 weekdays\n if (dayNumber > 6) {\n return '';\n }\n\n // Get all of the weekdays\n const WEEKDAYS = Array.from({ length: 7 }, (_, idx) => setDay(new Date(), idx));\n const dayDate = WEEKDAYS[dayNumber];\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line @adc/ember/require-tz-functions\n return this.intl.formatDate(dayDate, { weekday: 'long' });\n }\n\n /**\n * Convert day of the week index to the corresponding string.\n */\n get daysOfWeek(): DropdownSelectItem[] {\n // Get all of the weekdays, starting from Monday\n const WEEKDAYS = Array.from({ length: 7 }, (_, idx) => setDay(new Date(), (idx + 1) % 7));\n\n return WEEKDAYS.map((key, idx) => {\n const day = (idx + 1) % 7;\n\n return DropdownSelectItem.create({\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line @adc/ember/require-tz-functions\n name: this.intl.formatDate(key, { weekday: 'long' }),\n value: String(day)\n });\n });\n }\n\n /**\n * Helper method to get the last day with business hours.\n * @param selectedDay - The currently selected day index.\n */\n private getPreviousDayWithHours(selectedDay: string): BusinessHourDay {\n let count = 1,\n previousOpenDay = this.args.model.locationBusinessHours.businessHourDays[Number(selectedDay)];\n\n // Select the previous open day, if there is not another default to the next day.\n while (count < 7) {\n previousOpenDay =\n this.args.model.locationBusinessHours.businessHourDays[\n Number(selectedDay) - count < 0 ? Number(selectedDay) + 7 - count : Number(selectedDay) - count\n ];\n\n // We found a previous open day, break out of loop.\n if (previousOpenDay.locationOpenForBusiness) {\n break;\n }\n\n count++;\n }\n\n // Select default\n if (count == 7) {\n previousOpenDay = this.args.model.locationBusinessHours.businessHourDays[Number(selectedDay)];\n }\n\n return previousOpenDay;\n }\n\n /**\n * Helper method to get the next day with business hours.\n * @param selectedDay - The currently selected day index.\n */\n private getNextDayWithHours(selectedDay: string): BusinessHourDay {\n let count = 1,\n nextOpenDay = this.args.model.locationBusinessHours.businessHourDays[Number(selectedDay)];\n\n // Select the next open day, if there is not another default to the next day.\n while (count < 7) {\n nextOpenDay =\n this.args.model.locationBusinessHours.businessHourDays[\n Number(selectedDay) + count < 7 ? Number(selectedDay) + count : (Number(selectedDay) + count) % 7\n ];\n\n // We found the next open day, break out of loop.\n if (nextOpenDay.locationOpenForBusiness) {\n break;\n }\n\n count++;\n }\n\n // Select default\n if (count == 7) {\n nextOpenDay = this.args.model.locationBusinessHours.businessHourDays[Number(selectedDay)];\n }\n\n return nextOpenDay;\n }\n\n get isSystemInstall(): boolean {\n return this.contextManager.isSystemInstall();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::BusinessHours::EditBusinessHours': typeof EditBusinessHours;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{#each @phones as |phone|}}\\n
\\n {{yield phone}}\\n \\n
\\n {{/each}}\\n
\\n \\n
\\n
\")","import Component from '@glimmer/component';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type CsContactPhoneNumberTypeEnum from '../../../enums/CsContactPhoneNumberType.ts';\n\ninterface SettingsMonitoringStationContactPhoneEditListSignature {\n Args: {\n phones: TPhone[];\n minPhones?: number;\n maxPhones: number;\n addPhone: () => void;\n deletePhone: (originalPhone: TPhone) => void;\n };\n Blocks: {\n default: [TPhone];\n };\n}\n\nexport interface Phone {\n phoneNumber: string;\n phoneType?: CsContactPhoneNumberTypeEnum;\n}\n\n@intlPath({ module: '@adc/login-setup-addon', path: 'settings/monitoring-station/contact-phone-edit-list' })\nexport default class SettingsMonitoringStationContactPhoneEditList extends Component<\n SettingsMonitoringStationContactPhoneEditListSignature\n> {\n @service declare intl: ADCIntlService;\n\n get canAddPhone(): boolean {\n const { phones, maxPhones } = this.args;\n return (phones?.length ?? 0) < maxPhones;\n }\n\n get canDeletePhone(): boolean {\n const { phones, minPhones } = this.args;\n return (phones?.length ?? 0) > (minPhones ?? 0);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::MonitoringStation::ContactPhoneEditList': typeof SettingsMonitoringStationContactPhoneEditList;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n \\n
{{@phoneNumber}}
\\n
\\n {{#if this.showPhoneType}}\\n
\\n \\n
{{t (concat \\'@adc/login-setup-addon.enums.cs-contact-phone-number-type.\\' @phoneType)}}
\\n
\\n {{/if}}\\n
\\n\")","import Component from '@glimmer/component';\nimport { intlPath } from '@adc/i18n/path';\nimport CsContactPhoneNumberTypeEnum from '../../../enums/CsContactPhoneNumberType.ts';\n\ninterface SettingsMonitoringStationPhoneArgs {\n phoneNumber: string;\n phoneType?: CsContactPhoneNumberTypeEnum;\n}\n\n@intlPath({ module: '@adc/login-setup-addon', path: 'settings/monitoring-station/phone' })\nexport default class SettingsMonitoringStationPhone extends Component {\n get showPhoneType(): boolean {\n const {\n args: { phoneType }\n } = this;\n return phoneType !== undefined && phoneType !== CsContactPhoneNumberTypeEnum.Location;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::MonitoringStation::Phone': typeof SettingsMonitoringStationPhone;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n \\n \\n {{#unless @usePanelCode}}\\n \\n \\n \\n {{/unless}}\\n
\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\n\ninterface SettingsMonitoringStationVerbalPasscodeInputArgs {\n value?: string | null;\n useNumericPasscodes?: boolean;\n minPasscodeLength?: number;\n maxPasscodeLength?: number;\n disallowSpecialCharacters?: boolean;\n disallowSpaces?: boolean;\n required?: boolean;\n usePanelCode?: boolean;\n onValidated?: (isValid: boolean) => void;\n onPasscodeChanged?: (validPasscode: string) => void;\n}\n\ninterface ValidationResult {\n isValid: boolean;\n reason?: string;\n}\n\n@intlPath({ module: '@adc/login-setup-addon', path: 'settings/monitoring-station/verbal-passcode-input' })\nexport default class SettingsMonitoringStationVerbalPasscodeInput extends Component {\n @service declare intl: ADCIntlService;\n\n @tracked passcode: string = this.args.value ?? '';\n @tracked confirmationPasscode: string = this.args.value ?? '';\n\n private readonly _nonNumberRegex = /[^\\p{Number}]/gu;\n private readonly _specialCharacterRegex = /[^\\p{Letter}\\p{Number}\\s]/gu;\n private readonly _whitespaceRegex = /\\s/gu;\n\n get isConfirmed(): boolean {\n return this.passcode === this.confirmationPasscode;\n }\n\n get confirmationErrorMessage(): string | undefined {\n // Ensure there is always a truthy message, even if translation fails\n const msg = this.intl.tc(this, 'errors.confirmationMismatch') ?? ' ';\n return this.isConfirmed ? undefined : msg;\n }\n\n get isPasscodeValid(): boolean {\n return this._validatePasscode(this.passcode).isValid;\n }\n\n get passcodeErrorMessage(): string | undefined {\n const result = this._validatePasscode(this.passcode);\n return result.isValid ? undefined : result.reason;\n }\n\n get isValid(): boolean {\n const {\n isConfirmed,\n args: { onValidated }\n } = this;\n const valid = isConfirmed && this.isPasscodeValid;\n onValidated?.(valid);\n return valid;\n }\n\n private _processIllegalCharactersForDisplay(illegalCharacters: RegExpMatchArray | string[] | null) {\n return [...new Set(illegalCharacters?.map((c) => c.replace(/\\s/g, '␣')))];\n }\n\n private _validatePasscode(passcode: string): ValidationResult {\n const result: ValidationResult = { isValid: true };\n const {\n intl,\n args: {\n useNumericPasscodes,\n minPasscodeLength,\n maxPasscodeLength,\n disallowSpaces,\n disallowSpecialCharacters,\n required,\n usePanelCode\n },\n _processIllegalCharactersForDisplay,\n _nonNumberRegex,\n _whitespaceRegex,\n _specialCharacterRegex\n } = this;\n const passcodeLength = passcode.length;\n\n // if using Panel Code as passcode, force passcode to be valid.\n if (usePanelCode) {\n return result;\n }\n\n if (\n minPasscodeLength !== undefined &&\n maxPasscodeLength !== undefined &&\n (passcodeLength < minPasscodeLength || passcodeLength > maxPasscodeLength) &&\n (required || !!passcodeLength)\n ) {\n result.isValid = false;\n result.reason = intl.t('generic.errors.invalidLength', {\n min: minPasscodeLength,\n max: maxPasscodeLength\n });\n }\n\n const illegalSpaceCharacters = _processIllegalCharactersForDisplay(passcode.match(_whitespaceRegex));\n if (disallowSpaces && illegalSpaceCharacters.length) {\n result.isValid = false;\n result.reason = intl.tc(this, 'errors.illegalCharacter', {\n illegalCharacter: illegalSpaceCharacters.join('')\n });\n }\n\n const illegalSpecialCharacters = _processIllegalCharactersForDisplay(passcode.match(_specialCharacterRegex));\n if (disallowSpecialCharacters && illegalSpecialCharacters.length) {\n result.isValid = false;\n result.reason = intl.tc(this, 'errors.illegalCharacter', {\n illegalCharacter: illegalSpecialCharacters.join('')\n });\n }\n\n if (useNumericPasscodes && passcode.match(_nonNumberRegex)) {\n result.isValid = false;\n result.reason = intl.tc(this, 'errors.numbersOnly');\n }\n\n if (required && !passcodeLength) {\n result.isValid = false;\n result.reason = intl.tc(this, 'errors.required');\n }\n\n // Ensure there is always a truthy message, even if translation fails\n if (!result.isValid) {\n result.reason ??= ' ';\n }\n return result;\n }\n\n @action\n onPasscodeChanged(val?: string) {\n this.passcode = val ?? '';\n if (this.isValid) {\n this.args.onPasscodeChanged?.(this.passcode);\n }\n }\n\n @action\n onConfirmationPasscodeChanged(val?: string) {\n this.confirmationPasscode = val ?? '';\n if (this.isValid) {\n this.args.onPasscodeChanged?.(this.passcode);\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::MonitoringStation::VerbalPasscodeInput': typeof SettingsMonitoringStationVerbalPasscodeInput;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n \\n
{{@passcode}}
\\n
\\n
\")","import Component from '@glimmer/component';\nimport { intlPath } from '@adc/i18n/path';\n\ninterface SettingsMonitoringStationVerbalPasscodeArgs {\n passcode: string;\n}\n\n@intlPath({ module: '@adc/login-setup-addon', path: 'settings/monitoring-station/verbal-passcode' })\nexport default class SettingsMonitoringStationVerbalPasscode extends Component {}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Settings::MonitoringStation::VerbalPasscode': typeof SettingsMonitoringStationVerbalPasscode;\n }\n}\n","/**\n * Helper function that returns a Promise that passes down argument to an async method.\n */\nexport default function wrapWithPromise(\n fn: (...args: any[]) => Promise,\n ...args: any[]\n): Promise {\n return new Promise((resolve) => {\n fn(...args).then((result) => resolve(result));\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n /**\n * Helper function that returns a Promise that passes down argument to an async method.\n */\n 'wrap-with-promise': typeof wrapWithPromise;\n }\n}\n"],"names":["setComponentTemplate","template","component","TEMPLATE","createTemplateFactory","scope","didInsert_","didUpdate_","willDestroy_","EmberDragulaContainer","Component","setupDrake","el","drake","this","args","containers","indexOf","push","cleanUpDrake","_drake$containers$ind","index","splice","_EmberDragulaContainer","n","prototype","action","canUseDOM","window","document","createElement","emberEvents","drag","dragend","drop","cancel","remove","shadow","over","out","cloned","_drake","WeakMap","EmberDragula","constructor","arguments","i","destroyDrake","_drake$containers","destroy","_config$options","_this","config","dragula","options","enabledEvents","isArray","forEach","eventName","on","handler","_len","length","Array","_key","undefined","_EmberDragula","g","tracked","DownloadFormatAdapter","BaseLoginSetupAdapter","simpleBinary_","or_","tc_","tc_0","dropdownSelectMultiSelect_","t_","settingsBusinessHoursEditBusinessHoursTimetable_","expandButton_","dropdownSelectSingleSelect_","get","eq_","actionButtons_","not_","await_","EditBusinessHours","c","_contextManager","_intl","_partitions","_partitionSelectionDropdownHidden","_expandExceptionAndAlertPreview","_hasConflict","_businessHoursEnabled","_toggleDisabled","_initialOpenForBusinessStates","_selectedPreviewDay","_previewIntervals","_EditBusinessHours","_classPrivateFieldInitSpec","willDestroy","super","model","locationBusinessHours","rollbackAttributes","canSave","businessHoursEnabled","hasConflict","businessHourDays","setHasConflict","value","toggleExpandExceptionAndAlertPreview","expandExceptionAndAlertPreview","returnToSettingsPage","contextManager","transitionToPreviousRoute","toggleBusinessHoursEnabled","set","every","day","locationOpenForBusiness","populateDefaultBusinessHours","setProperties","hours","EmployeeArrival","StartTime","DEFAULT_ARRIVAL_START_TIME","EndTime","DEFAULT_ARRIVAL_END_TIME","OpenForBusiness","DEFAULT_BUSINESS_START_TIME","DEFAULT_BUSINESS_END_TIME","EmployeeDeparture","DEFAULT_DEPARTURE_START_TIME","DEFAULT_DEPARTURE_END_TIME","saveBusinessHours","toggleDisabled","enabled","closeAllDays","initialOpenForBusinessStates","getInitialOpenForBusinessStates","saveAction","A","mapBy","setEach","updatePreview","selectedDay","Number","nextOpenDay","getNextDayWithHours","previousOpenDay","getPreviousDayWithHours","previewIntervals","openStart","openEnd","openLateStart","openLateEnd","openUnexpectedlyStart","openUnexpectedlyEnd","notOpenedOnTime","closedOnTimeStart","closedOnTimeEnd","closedEarlyStart","closedEarlyEnd","closedLateStart","closedLateEnd","closedUnexpectedlyStart","closedUnexpectedlyEnd","notClosedOnTime","nextDay","previousDay","selectedPreviewDay","updateAllowedPartitions","selectedPartitions","partitionDropdownItems","filterBy","SELECTED","allowedPartitions","map","item","parseInt","partitions","partition","partitionId","id","DropdownSelectItem","create","name","description","state","includes","UNSELECTED","countOfDaysWithHours","filter","previewLabels","intl","tc","employeeArrivalStartTime","dayMinutesToTimeString","employeeArrivalEndTime","time1Day","getPreviewDayToDisplay","time2Day","employeeDepartureStartTime","getDay","employeeDepartureEndTime","employeeDepartureEndTimePlus3","nextBusinessDay","previousBusinessDay","dayMinutes","dayNumber","dayDate","from","_","idx","setDay","Date","formatDate","weekday","daysOfWeek","key","String","count","isSystemInstall","inject","alias","unitPartitions","computed","currentDay","intlPath","module","path","buttonIcon_","fn","SettingsMonitoringStationContactPhoneEditList","_SettingsMonitoringStationContactPhoneEditList","canAddPhone","_phones$length","phones","maxPhones","canDeletePhone","_phones$length2","minPhones","concat","SettingsMonitoringStationPhone","showPhoneType","phoneType","CsContactPhoneNumberTypeEnum","Location","formGroup_","guidFor_","and_","textInput_","SettingsMonitoringStationVerbalPasscodeInput","_passcode","_confirmationPasscode","_SettingsMonitoringStationVerbalPasscodeInput","_defineProperty","isConfirmed","passcode","confirmationPasscode","confirmationErrorMessage","_this$intl$tc","msg","isPasscodeValid","_validatePasscode","isValid","passcodeErrorMessage","result","reason","onValidated","valid","_processIllegalCharactersForDisplay","illegalCharacters","Set","replace","useNumericPasscodes","minPasscodeLength","maxPasscodeLength","disallowSpaces","disallowSpecialCharacters","required","usePanelCode","_nonNumberRegex","_whitespaceRegex","_specialCharacterRegex","passcodeLength","t","min","max","illegalSpaceCharacters","match","illegalCharacter","join","illegalSpecialCharacters","_result$reason","onPasscodeChanged","val","_this$args$onPasscode","_this$args","call","onConfirmationPasscodeChanged","_this$args$onPasscode2","_this$args2","_this$args$value","_this$args$value2","SettingsMonitoringStationVerbalPasscode","wrapWithPromise","Promise","resolve","then"],"sourceRoot":""}