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UAA4BnS,EAAAA,QAAiBtuD,WAAAA,GAAA,SAAAC,YAAA+E,EAAAA,EAAAA,GAAA,eACpD07D,EAAAA,qBAAoB,CAE9BlS,aAAAA,GACI,OAAOlM,EAAAA,QACX,E","sources":["./home/ac-doors/edit/template.hbs","./home/ac-doors/index/template.hbs","./home/ac-elevators/edit/template.hbs","./home/ac-elevators/index/template.hbs","./home/cc-control/template.hbs","./components/access-point/navigation/index.hbs","./components/access-point/navigation/index.ts","./home/chimes/index/template.hbs","./components/access-point/chime-configuration-settings/index.hbs","./components/access-point/chime-configuration-settings/index.ts","./home/chimes/settings/template.hbs","./components/modals/wireless-settings/connect-to-wifi/index.hbs","./components/modals/wireless-settings/connect-to-wifi/index.ts","./components/modals/wireless-settings/copy-network-from-camera/index.hbs","./components/modals/wireless-settings/copy-network-from-camera/index.ts","./components/modals/wireless-settings/manual-network-configuration/index.hbs","./components/modals/wireless-settings/manual-network-configuration/index.ts","./components/modals/wireless-settings/scan-for-networks/index.hbs","./components/modals/wireless-settings/scan-for-networks/index.ts","./components/access-point/wireless-settings/index.hbs","./components/access-point/wireless-settings/index.ts","./home/chimes/wireless-networks/template.hbs","./components/dashboard-cards/feature-suggestions/feature-list-card/index.hbs","./components/dashboard-cards/feature-suggestions/feature-list-card/index.ts","./home/feature-suggestions/template.hbs","./home/garage/edit/template.hbs","./home/garage/index/template.hbs","./home/gates/edit/template.hbs","./home/gates/index/template.hbs","./components/access-control/lockdown/lockdown-alert/index.hbs","./components/access-control/lockdown/lockdown-alert/index.js","./home/index/template.hbs","./components/ui/icon-picker/index.hbs","./components/ui/icon-picker/index.ts","./home/lights/edit/template.hbs","./home/lights/group-details/template.hbs","./home/lights/index/template.hbs","./home/locks/edit/template.hbs","./home/locks/index/template.hbs","./home/mpers-devices/edit/template.hbs","./home/mpers-devices/index/template.hbs","./home/noise/template.hbs","./home/partitions/edit/template.hbs","./home/partitions/index/template.hbs","./home/shades/edit/template.hbs","./home/shades/index/template.hbs","./home/sump-pumps/edit/template.hbs","./home/sump-pumps/index/template.hbs","./home/switches/edit/template.hbs","./home/switches/index/template.hbs","./home/thermostats/boilers/template.hbs","./home/thermostats/edit/template.hbs","./home/thermostats/index/template.hbs","./components/automation/peak-protect-setting/index.hbs","./components/automation/peak-protect-setting/index.ts","./home/thermostats/peak-protect/index/template.hbs","./home/thermostats/peak-protect/schedule/template.hbs","./home/thermostats/peak-protect/template.hbs","./home/thermostats/peak-protect/utility/template.hbs","./home/thermostats/schedules/edit/index/template.hbs","./home/thermostats/schedules/edit/schedule-type/template.hbs","./components/thermostats/schedule-edit/setpoint/index.hbs","./components/thermostats/schedule-edit/setpoint/index.ts","./home/thermostats/schedules/edit/setpoint/template.hbs","./home/thermostats/schedules/index/template.hbs","./components/highcharts/xrange-chart/index.hbs","./components/highcharts/xrange-chart/index.ts","./components/thermostats/smart-schedule-audit/highchart/index.hbs","./components/thermostats/smart-schedule-audit/highchart/index.ts","./home/thermostats/smart-schedule-audit/template.hbs","./home/thermostats/thermostat-grouping/template.hbs","./home/water/edit/template.hbs","./home/water/index/template.hbs","./assets/_route_/home.ac-doors.js","./components/access-point/base-access-point-settings/index.hbs","./components/access-point/base-access-point-settings/index.ts","./components/dashboard-cards/detail-layout.hbs","./components/dashboard-cards/detail-layout.ts","./components/dashboard-cards/devices/access-control-elevator-devices-card/index.hbs","./components/dashboard-cards/devices/access-control-elevator-devices-card/index.ts","./components/dashboard-cards/devices/gate-card/index.hbs","./components/dashboard-cards/devices/gate-card/index.ts","./components/dashboard-cards/devices/light-card/color-swatch/index.hbs","./components/dashboard-cards/devices/light-card/color-swatch/index.ts","./components/dashboard-cards/devices/light-card/index.hbs","./components/dashboard-cards/devices/light-card/index.ts","./components/dashboard-cards/devices/mpers-device-card/toolbar/index.hbs","./components/dashboard-cards/devices/mpers-device-card/toolbar/index.ts","./components/dashboard-cards/devices/mpers-device-card/index.hbs","./components/dashboard-cards/devices/mpers-device-card/index.ts","./components/dashboard-cards/devices/noise-sensor-card/index.hbs","./components/dashboard-cards/devices/noise-sensor-card/index.ts","./components/dashboard-cards/devices/shade-card/index.hbs","./components/dashboard-cards/devices/shade-card/index.ts","./components/dashboard-cards/devices/sump-pump-card/index.hbs","./components/dashboard-cards/devices/sump-pump-card/index.ts","./components/dashboard-cards/devices/switch-card/index.hbs","./components/dashboard-cards/devices/switch-card/index.ts","./components/dashboard-cards/devices/water-meter-card/water-meter-icon/index.hbs","./components/dashboard-cards/devices/water-meter-card/water-meter-icon/index.ts","./components/dashboard-cards/devices/water-meter-card/list/index.hbs","./components/dashboard-cards/devices/water-meter-card/list/index.ts","./components/dashboard-cards/devices/water-meter-card/index.hbs","./components/dashboard-cards/devices/water-meter-card/index.ts","./components/dashboard-cards/devices/water-sensor-card/index.hbs","./components/dashboard-cards/devices/water-sensor-card/index.ts","./components/dashboard-cards/devices/water-valve-card/water-valve-and-meter-icon/index.hbs","./components/dashboard-cards/devices/water-valve-card/water-valve-and-meter-icon/index.ts","./components/dashboard-cards/devices/water-valve-card/water-valve-icon/index.hbs","./components/dashboard-cards/devices/water-valve-card/water-valve-icon/index.ts","./components/dashboard-cards/devices/water-valve-card/list/index.hbs","./components/dashboard-cards/devices/water-valve-card/list/index.ts","./components/dashboard-cards/devices/water-valve-card/index.hbs","./components/dashboard-cards/devices/water-valve-card/index.ts","./components/dashboard-cards/list/index.hbs","./components/dashboard-cards/list/index.ts","./components/dashboard-cards/remote-temps/device/index.hbs","./components/dashboard-cards/remote-temps/device/index.ts","./components/dashboard-cards/remote-temps/index.hbs","./components/dashboard-cards/remote-temps/index.ts","./components/download-app/index.hbs","./components/download-app/index.ts","./components/home/edit-device-view/index.hbs","./components/home/edit-device-view/index.ts","./components/modals/lights/light-group-modal/index.hbs","./components/modals/lights/light-group-modal/index.ts","./components/ui/stacked-icon-label/index.hbs","./components/ui/stacked-icon-label/index.ts","./home/ac-doors/edit/controller.ts","./home/ac-doors/edit/route.ts","./home/ac-doors/index/controller.ts","./home/ac-doors/route.ts","./home/ac-doors/rules/route.ts","./home/ac-elevators/edit/controller.ts","./home/ac-elevators/edit/route.ts","./home/ac-elevators/index/controller.ts","./home/ac-elevators/route.ts","./components/dashboard-cards/devices/base-z-wave-device-card/index.hbs","./components/dashboard-cards/devices/base-z-wave-device-card/index.ts","./home/cc-control/controller.ts","./home/cc-control/route.ts","./home/chimes/index/controller.ts","./home/chimes/route.ts","./home/chimes/settings/route.ts","./home/chimes/wireless-networks/route.ts","./home/device-details/route.ts","./home/feature-suggestions/route.ts","./home/garage/edit/route.ts","./home/garage/index/controller.ts","./home/garage/route.ts","./home/garage/rules/route.ts","./home/gates/edit/route.ts","./home/gates/index/controller.ts","./home/gates/route.ts","./home/gates/rules/route.ts","./home/image-sensors/rules/route.ts","./components/dashboard-cards/activity/index.hbs","./components/dashboard-cards/activity/index.ts","./components/dashboard-cards/business-activity-analytics/index.hbs","./components/dashboard-cards/business-activity-analytics/index.js","./components/dashboard-cards/commercial-fleet/fleet-engine-status/index.hbs","./components/dashboard-cards/commercial-fleet/fleet-engine-status/index.ts","./components/dashboard-cards/commercial-fleet/fleet-issues-row/index.hbs","./components/dashboard-cards/commercial-fleet/fleet-issues-row/index.ts","./components/dashboard-cards/commercial-fleet/index.hbs","./components/dashboard-cards/commercial-fleet/index.ts","./components/dashboard-cards/devices/commercial-temperatures-card/index.hbs","./components/dashboard-cards/devices/commercial-temperatures-card/index.ts","./components/ui/countdown-timer/index.hbs","./components/ui/countdown-timer/index.ts","./components/dashboard-cards/devices/fog-card/index.hbs","./components/dashboard-cards/devices/fog-card/index.ts","./components/dashboard-cards/card-settings/index.hbs","./components/dashboard-cards/card-settings/index.ts","./components/dashboard-cards/feature-suggestions/index.hbs","./components/dashboard-cards/feature-suggestions/index.ts","./components/dashboard-cards/hero-card/saved-clips/index.hbs","./components/dashboard-cards/hero-card/saved-clips/index.js","./components/dashboard-cards/hero-card/business-hours/index.hbs","./components/dashboard-cards/hero-card/business-hours/index.js","./components/dashboard-cards/hero-card/trouble-conditions/index.hbs","./components/dashboard-cards/hero-card/trouble-conditions/index.js","./components/dashboard-cards/hero-card/scene-execute/index.hbs","./components/dashboard-cards/hero-card/scene-execute/index.ts","./components/dashboard-cards/hero-card/forecasts/index.hbs","./components/dashboard-cards/hero-card/forecasts/index.js","./components/dashboard-cards/hero-card/index.hbs","./components/dashboard-cards/hero-card/index.js","./components/dashboard-cards/image-sensor/clips-modal/index.hbs","./components/dashboard-cards/image-sensor/clips-modal/index.ts","./components/dashboard-cards/image-sensor/index.hbs","./components/dashboard-cards/image-sensor/index.ts","./components/dashboard-cards/live-view/index.hbs","./components/dashboard-cards/live-view/index.ts","./components/dashboard-cards/setup-card/index.hbs","./components/dashboard-cards/setup-card/index.ts","./components/dashboard-cards/setup-card/boiler.hbs","./components/dashboard-cards/setup-card/boiler.ts","./components/dashboard-cards/wellness-card/index.hbs","./components/dashboard-cards/wellness-card/index.ts","./components/dashboard-cards/wifi/index.hbs","./components/dashboard-cards/wifi/index.ts","./components/modals/activity/alarm-recap/index.hbs","./components/modals/activity/alarm-recap/index.ts","./home/index/controller.ts","./home/index/route.ts","./home/lights/edit/controller.ts","./home/lights/edit/route.ts","./home/lights/group-details/controller.ts","./home/lights/group-details/route.ts","./home/lights/index/controller.ts","./home/lights/route.ts","./home/lights/rules/route.ts","./home/lights/schedules/route.ts","./home/locks/edit/controller.ts","./home/locks/edit/route.ts","./home/locks/index/controller.ts","./home/locks/route.ts","./home/locks/rules/route.ts","./home/mpers-devices/edit/controller.ts","./home/mpers-devices/edit/route.ts","./home/mpers-devices/index/controller.ts","./home/mpers-devices/route.ts","./home/noise/controller.ts","./home/noise/route.ts","./home/partitions/arming-schedules/route.ts","./home/partitions/edit/controller.ts","./home/partitions/edit/route.ts","./home/partitions/index/controller.ts","./home/partitions/reports/route.ts","./home/partitions/route.ts","./home/partitions/rules/route.ts","./home/partitions/smart-arming/route.ts","./home/sensors/reports/route.ts","./home/sensors/rules/route.ts","./home/shades/edit/route.ts","./home/shades/index/controller.ts","./home/shades/route.ts","./home/shades/schedules/route.ts","./home/sump-pumps/edit/route.ts","./home/sump-pumps/index/controller.ts","./home/sump-pumps/route.ts","./home/switches/edit/route.ts","./home/switches/index/controller.ts","./home/switches/route.ts","./home/thermostats/boilers/controller.ts","./home/thermostats/boilers/route.ts","./home/thermostats/edit/route.ts","./home/thermostats/index/controller.ts","./home/thermostats/index/route.ts","./home/thermostats/peak-protect/index/controller.ts","./home/thermostats/peak-protect/index/route.ts","./home/thermostats/peak-protect/route.ts","./home/thermostats/peak-protect/schedule/controller.ts","./home/thermostats/peak-protect/schedule/route.ts","./home/thermostats/peak-protect/utility/controller.ts","./home/thermostats/peak-protect/utility/route.ts","./home/thermostats/reports/route.ts","./home/thermostats/rules/route.ts","./components/modals/thermostats/schedules/smart-schedules-explainer/index.hbs","./components/modals/thermostats/schedules/smart-schedules-explainer/index.ts","./home/thermostats/schedules/edit/index/controller.ts","./home/thermostats/schedules/edit/route.ts","./home/thermostats/schedules/edit/schedule-type/controller.ts","./home/thermostats/schedules/edit/schedule-type/route.ts","./home/thermostats/schedules/edit/setpoint/controller.ts","./home/thermostats/schedules/edit/setpoint/route.ts","./home/thermostats/schedules/index/controller.ts","./home/thermostats/schedules/index/route.ts","./home/thermostats/smart-schedule-audit/controller.ts","../../../../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/addWeeks/index.js","./home/thermostats/smart-schedule-audit/route.ts","./home/thermostats/thermostat-grouping/controller.js","./home/thermostats/thermostat-grouping/route.js","./home/thermostats/thermostat-reward-program/route.ts","./home/water/edit/route.ts","./home/water/index/controller.ts","./home/water/route.ts","./home/water/rules/route.ts","./home/wellness/reports/route.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:settings as |acDoor|>\\n {{#if (await this.showReaderBasedAntiPassback)}}\\n \\n \\n \\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/home/ac-doors/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/ac-doors/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:settings as |acElevator|>\\n {{!-- @glint-expect-error additionalAccessSettingsEnabled property doesn\\'t exist on permissions model, please fix this. --}}\\n {{#if this.permissions.additionalAccessSettingsEnabled}}\\n \\n \\n \\n \\n \\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/home/ac-elevators/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/ac-elevators/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n

{{tc this \\\"refresh-device-state\\\"}}

\\n
\\n\\n\\n\",{ moduleName: \"customer-site/home/cc-control/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n

{{tc this \\'title\\'}}

\\n\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\",{ moduleName: \"customer-site/components/access-point/navigation/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberSmartChimeSettings, EmberSmartChimeWirelessNetworks } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type SmartChimeDevice from 'customer-site/models/devices/smart-chime-device';\nimport type ContextManager from 'customer-site/services/context-manager';\n\ninterface AccessPointNavigationSignature {\n Args: {\n selectedSmartChime: SmartChimeDevice;\n };\n}\n\n/**\n * @classdesc\n * Wireless settings for access point.\n * Currently only smart chime device will use this component,\n * but likely future access points would want same functionality.\n */\n@intlPath({ path: 'access-point/navigation' })\nexport default class Navigation extends Component {\n @service declare contextManager: ContextManager;\n\n @action\n transitionToSettingsRoute(): void {\n // TODO: This ignore is an existing deprecation that must be refactored, do not copy this usage\n // eslint-disable-next-line @adc/ember/no-context-manager-transition\n this.contextManager.transitionToRouteId(EmberSmartChimeSettings);\n }\n\n @action\n transitionToWirelessNetworksRoute(): void {\n // TODO: This ignore is an existing deprecation that must be refactored, do not copy this usage\n // eslint-disable-next-line @adc/ember/no-context-manager-transition\n this.contextManager.transitionToRouteId(EmberSmartChimeWirelessNetworks);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessPoint::Navigation': typeof Navigation;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!-- @glint-expect-error: model type does not match, please fix this. --}}\\n\\n \\n\\n {{#if this.canCreateChimeRules}}\\n
\\n

{{tc this \\'chimeRules\\'}}

\\n \\n
\\n\\n {{!-- @glint-expect-error: Please convert this component to TS. --}}\\n \\n {{/if}}\\n
\\n\\n\\n\",{ moduleName: \"customer-site/home/chimes/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n\\n
\\n

{{tc this \\'tone\\'}}

\\n
\\n {{tc this \\'chimeVolume\\'}}:\\n
\\n \\n
\\n \\n
\\n \\n
\\n
\\n\\n
\\n {{tc this \\'chimeSound\\'}}:\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n
\\n

{{tc this \\'chimeTestHint\\'}}

\\n \\n
\\n
\\n
\\n\\n
\\n

{{tc this \\'light\\'}}

\\n
\\n
\\n {{tc this \\'chimeLed\\'}}:\\n \\n
\\n
\\n
\\n\\n
\\n
\\n \\n
\\n
\\n\\n
\\n
\",{ moduleName: \"customer-site/components/access-point/chime-configuration-settings/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport * as W115CChimeSoundsEnumObj from 'customer-site/enums/W115CChimeSounds';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationService from '@adc/ui-components/services/notification-manager';\nimport type Store from '@ember-data/store';\nimport type SmartChimeDevice from 'customer-site/models/devices/smart-chime-device';\nimport './_style.scss';\n\ninterface ChimeConfigurationSettingsSignature {\n Args: {\n selectedSmartChime: SmartChimeDevice;\n canTestChimeTone: boolean;\n canEditChimeSettings: boolean;\n };\n}\n\n/**\n * @classdesc\n * Chime configuration settings.\n * Currently only smart chime device will use this component,\n * but likely future access points and ael devices may use this too.\n */\n@intlPath({ path: 'access-point/chime-configuration-settings' })\nexport default class ChimeConfigurationSettings extends Component {\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationService;\n @service declare store: Store;\n\n /** Gets selected smart chime from argument */\n get selectedSmartChime(): SmartChimeDevice {\n return this.args.selectedSmartChime;\n }\n\n /**\n * Dropdown for chime ringtones.\n */\n get smartChimeSoundOptions(): Array {\n return (\n Object.entries(W115CChimeSoundsEnumObj)\n // Omit the default export\n .filter((entry) => entry[0] !== 'default')\n .map(([name, idx]) =>\n DropdownSelectItem.create({\n name: this.intl.tc(this, `chimeSoundOptions.${name}`),\n value: String(idx)\n })\n )\n );\n }\n\n /**\n * Send the change chime configuration command and toast message success/failure result.\n */\n @action\n changeChimeConfiguration(): Promise {\n return this.selectedSmartChime\n .save()\n .then(() => {\n this.notificationManager.addSuccess(this.intl.tc(this, 'successMessage'));\n })\n .catch((error: any) => {\n this.selectedSmartChime.rollbackAttributes();\n this.notificationManager.addError(error.errors[0].detail);\n });\n }\n\n @action\n async testChimeTone(): Promise {\n return this.selectedSmartChime\n .testChimeTone()\n .then((message: any) => {\n this.notificationManager.addSuccess(message.value);\n })\n .catch((error: any) => {\n this.notificationManager.addError(error.errors[0].detail);\n });\n }\n\n /** @override */\n async rollbackModelOnTransition(): Promise {\n this.selectedSmartChime?.rollbackAttributes();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessPoint::ChimeConfigurationSettings': typeof ChimeConfigurationSettings;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!-- @glint-expect-error model type doesn\\'t match, please fix this. --}}\\n\\n \\n\\n\",{ moduleName: \"customer-site/home/chimes/settings/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n

{{tc this \\'connectingMessage\\'}}

\\n \\n
\\n
\\n\\n\",{ moduleName: \"customer-site/components/modals/wireless-settings/connect-to-wifi/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type { ErrorPayload } from 'customer-site/utils/ember';\n\ninterface ConnectToWifiArgs {\n model: {\n connectToWifiFn(\n ssid?: string,\n password?: string,\n encryptionType?: number,\n encryptionAlgorithm?: number\n ): Promise;\n };\n}\n\n/**\n * @classdesc\n * Connect to wifi network modal.\n */\n@intlPath({ path: 'modals/wireless-settings/connect-to-wifi' })\nexport default class ConnectToWifi extends Component {\n @service declare intl: ADCIntlService;\n @service declare modals: ModalService;\n @service declare notificationManager: NotificationManager;\n\n /**\n * Task to connect device to wifi network.\n */\n connectToWifiNetworkTask = task({ drop: true }, async () => {\n const { notificationManager } = this;\n\n try {\n const { errors, value } = await this.args.model.connectToWifiFn();\n\n if (errors && errors?.length > 0) {\n notificationManager.addError(errors[0].detail);\n } else {\n notificationManager.addSuccess(value);\n }\n } catch (error) {\n notificationManager.addError(error.errors[0].detail);\n } finally {\n this.modals.closeModal();\n }\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::WirelessSettings::ConnectToWifi': typeof ConnectToWifi;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n {{#each this.videoCamerasWifiNetworks as |networkItem|}}\\n \\n {{else}}\\n

{{tc this \\'noWirelessNetworksFound\\'}}

\\n {{/each}}\\n
\\n\\n\",{ moduleName: \"customer-site/components/modals/wireless-settings/copy-network-from-camera/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport ConnectToWifi from '../connect-to-wifi/index';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\n\ninterface WifiNetworkLikeObject {\n id: string;\n attributes: {\n deviceIdsAttachedToNetwork: number[];\n devicesAttached: string;\n encryptionType: number;\n needsPassword: boolean;\n signalStrength: number;\n ssid: string;\n };\n}\n\ninterface CopyNetworkFromCameraModalArgs {\n model: {\n connectToNetworkFn(\n ssid: string,\n password: string,\n encryptionType: number,\n deviceIdsAttachedToNetwork: number[]\n ): Promise;\n networksAttachedToVideoCameras: WifiNetworkLikeObject[];\n };\n}\n\nclass NetworkRow {\n network: WifiNetworkLikeObject['attributes'] & { id: string };\n @tracked password = '';\n @tracked isRowSelected = false;\n\n constructor(n: WifiNetworkLikeObject) {\n this.network = {\n id: n.id,\n ...n.attributes\n };\n }\n}\n\n/**\n * @classdesc\n * Modals to show wireless video cameras already connected to a network. A user can choose to copy the network from the video camera over to their device.\n */\n@intlPath({ path: 'modals/wireless-settings/copy-network-from-camera' })\nexport default class CopyNetworkFromCameraModal extends Component {\n @service declare intl: ADCIntlService;\n @service declare modals: ModalService;\n\n /**\n * List of wifi networks with video cameras already connected to them.\n */\n @computed('args.model.networksAttachedToVideoCameras')\n get videoCamerasWifiNetworks(): NetworkRow[] {\n return this.args.model.networksAttachedToVideoCameras\n .reject((item) => item.attributes.ssid == '')\n .map((m) => new NetworkRow(m));\n }\n\n /**\n * Currently selected wifi network.\n */\n @computed('videoCamerasWifiNetworks.@each.isRowSelected')\n get selectedNetworkRow(): NetworkRow | undefined {\n return this.videoCamerasWifiNetworks.findBy('isRowSelected');\n }\n\n /**\n * modal to show while connecting to wifi network.\n */\n @action connectToNetwork(): false {\n const { selectedNetworkRow } = this;\n if (selectedNetworkRow) {\n this.modals.showModal(ConnectToWifi, {\n connectToWifiFn: () => {\n const {\n network: { ssid, encryptionType, deviceIdsAttachedToNetwork },\n password\n } = selectedNetworkRow;\n return this.args.model.connectToNetworkFn(\n ssid,\n password,\n encryptionType,\n deviceIdsAttachedToNetwork\n );\n }\n });\n }\n\n return false;\n }\n\n /**\n * Set the currently selected network row and ensure UI is updated to not show passwords for all rows.\n */\n @action setSelectedItem(networkRow: NetworkRow): void {\n // Set the current row to selected\n this.videoCamerasWifiNetworks.setEach('isRowSelected', false);\n networkRow.isRowSelected = true;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::WirelessSettings::CopyNetworkFromCamera': typeof CopyNetworkFromCameraModal;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n \\n \\n \\n

{{tc this \\'ssid.moreInfo\\'}}

\\n
\\n\\n
\\n \\n \\n \\n

{{tc this \\'encryptionType.moreInfo\\'}}

\\n
\\n\\n {{#if this.needsEncryptionAlgorithm}}\\n
\\n \\n \\n \\n

{{tc this \\'encryptionAlgorithm.moreInfo\\'}}

\\n
\\n {{/if}}\\n {{#if this.needsWifiPassword}}\\n
\\n \\n \\n \\n

{{tc this \\'wifiPassword.moreInfo\\'}}

\\n
\\n {{/if}}\\n
\\n\",{ moduleName: \"customer-site/components/modals/wireless-settings/manual-network-configuration/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, computed } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { AmbiguousOpenShared, Tkip, Aes, Open, Shared } from 'customer-site/enums/WiFiEncryptionAlgorithm';\nimport { Wpa, Wpa2, Wpa2Enterprise, None as NoEncryption } from 'customer-site/enums/WiFiEncryptionType';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\nimport ConnectToWifi from '../connect-to-wifi/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\n\ninterface ManualNetworkConfigurationArgs {\n model: {\n connectToNetworkFn(\n ssid?: string,\n password?: string,\n encryptionType?: number,\n encryptionAlgorithm?: number\n ): Promise;\n };\n}\n\ntype WifiEncryption = typeof Wpa | typeof Wpa2 | typeof Wpa2Enterprise | typeof NoEncryption;\ntype WifiEncryptionAlgorithm = typeof AmbiguousOpenShared | typeof Tkip | typeof Aes | typeof Open | typeof Shared;\n\n/**\n * @classdesc\n * Wireless settings for access point.\n * Currently only smart chime device will use this component,\n * but likely future access points would want same functionality.\n */\n@intlPath({ path: 'modals/wireless-settings/manual-network-configuration' })\nexport default class ManualNetworkConfiguration extends Component {\n @service declare intl: ADCIntlService;\n @service declare modals: ModalService;\n\n /**\n * Determine if we should show no validation error messages on form.\n * We initialize this to true to let user fill out form without annoying error message popups.\n * If the user messes up, then we show the popups for help.\n */\n @tracked showNoErrorMessages = true;\n\n /**\n * User inputted wifi ssid.\n */\n inputtedSsid?: string;\n\n /**\n * User inputted wifi password.\n */\n inputtedWifiPassword?: string;\n\n /**\n * User selected wifi encryption.\n */\n @tracked selectedWifiEncryption?: WifiEncryption;\n\n /**\n * User selected wifi encryption algorithm.\n */\n @tracked selectedEncryptionAlgorithm?: WifiEncryptionAlgorithm;\n\n /**\n * Keep track whether we need the user to select an encryption algorithm or not.\n */\n @tracked needsEncryptionAlgorithm?: boolean;\n\n /**\n * Keep track whether we need the user to input a wifi password or not.\n */\n @tracked needsWifiPassword?: boolean;\n\n /**\n * Dropdown select items for encryption types.\n */\n get wifiEncryptionTypeDropdownSelectItems(): DropdownSelectItem[] {\n return [\n ['none', NoEncryption],\n ['wpa', Wpa],\n ['wpa2', Wpa2],\n ['wpa2Enterprise', Wpa2Enterprise]\n ].map(([resource, value]: [string, number]) =>\n DropdownSelectItem.create({\n value: String(value),\n name: this.intl.tc(this, `encryptionType.${resource}`)\n })\n );\n }\n\n /**\n * Dropdown select items for encryption algorithm to be used.\n */\n get wifiEncryptionAlgorithmDropdownSelectItems(): DropdownSelectItem[] {\n return [\n ['openShared', AmbiguousOpenShared],\n ['tkip', Tkip],\n ['aes', Aes],\n ['open', Open],\n ['shared', Shared]\n ].map(([resource, value]: [string, number]) =>\n DropdownSelectItem.create({\n value: String(value),\n name: this.intl.tc(this, `encryptionAlgorithm.${resource}`)\n })\n );\n }\n\n /**\n * Keeps track whether to show an error message on the ssid input field.\n */\n @computed('inputtedSsid', 'showNoErrorMessages')\n get showSsidErrorMessage(): boolean {\n return !this.showNoErrorMessages && !this.inputtedSsid;\n }\n\n /**\n * Keeps track whether to show an error message on the wifi encryption dropdown field.\n */\n @computed('selectedWifiEncryption', 'showNoErrorMessages')\n get showEncryptionTypeErrorMessage(): boolean {\n return !this.showNoErrorMessages && isEmpty(this.selectedWifiEncryption);\n }\n\n /**\n * Keeps track whether to show an error message on the wifi password input field.\n */\n @computed('inputtedWifiPassword', 'showNoErrorMessages', 'needsWifiPassword')\n get showWifiPasswordErrorMessage(): boolean {\n return !!(!this.showNoErrorMessages && this.needsWifiPassword && !this.inputtedWifiPassword);\n }\n\n /**\n * Keeps track whether to show an error message on the wifi encryption algorithm dropdown field.\n */\n @computed('selectedEncryptionAlgorithm', 'showErrorMessages', 'needsEncryptionAlgorithm', 'showNoErrorMessages')\n get showEncryptionAlgorithmErrorMessage(): boolean {\n return !!(!this.showNoErrorMessages && this.needsEncryptionAlgorithm && !this.selectedEncryptionAlgorithm);\n }\n\n /**\n * Does any input validation error on the form exist?\n */\n get errorOnFormExists(): boolean {\n return (\n isEmpty(this.selectedWifiEncryption) ||\n !this.inputtedSsid ||\n (!!this.needsWifiPassword && !this.inputtedWifiPassword) ||\n (!!this.needsEncryptionAlgorithm && !this.selectedEncryptionAlgorithm)\n );\n }\n\n /**\n * modal to show while connecting to wifi network.\n */\n @action connectToNetwork(): boolean {\n // If we need to show any error message then keep the modal open\n // Note: return false is what keeps the modal opened.\n if (this.errorOnFormExists) {\n // If the user failed to complete the form on the first try,\n // then display error messages to help them for next attempts.\n this.showNoErrorMessages = false;\n return false;\n }\n\n // Do not copy this deprecated usage. If you see this, please fix.\n // eslint-disable-next-line ember/no-runloop\n later(() => {\n this.modals.showModal(ConnectToWifi, {\n connectToWifiFn: () => {\n return this.args.model.connectToNetworkFn(\n this.inputtedSsid,\n this.inputtedWifiPassword,\n this.selectedWifiEncryption,\n this.selectedEncryptionAlgorithm\n );\n }\n });\n }, 100);\n\n return true;\n }\n\n /**\n * Update the selected wifi encryption type and also\n * update whether we will need password and algorithm input fields from the user.\n *\n * Note: basically if the encryptionType is either wpa or wpa2 we will need\n * the wifi password and the encryption algorithm to be supplied on this form.\n */\n @action selectWifiEncryptionType(value: string): void {\n const v = Number(value) as WifiEncryption;\n\n // Update the selected encryption type.\n this.selectedWifiEncryption = v;\n\n // If \"no encryption\" option is selected, then no need for encryption algorithm.\n this.needsEncryptionAlgorithm = v !== NoEncryption;\n\n // If \"no encryption\" option is selected, don't allow password at all.\n // If Wep is selected, no need for password since its an open network.\n this.needsWifiPassword = v == Wpa || v == Wpa2 || v == Wpa2Enterprise;\n\n // If encryption type is Wpa, default the algorithm to Tkip (useful since user probably won't know this)\n if (v == Wpa) {\n this.selectedEncryptionAlgorithm = Tkip;\n }\n\n // If encryption type is Wpa2, default the algorithm to Aes (useful since user probably won't know this)\n if (v == Wpa2 || v == Wpa2Enterprise) {\n this.selectedEncryptionAlgorithm = Aes;\n }\n }\n\n @action selectWifiEncryptionAlgorithm(value: string): void {\n this.selectedEncryptionAlgorithm = Number(value) as WifiEncryptionAlgorithm;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::WirelessSettings::ManualNetworkConfiguration': typeof ManualNetworkConfiguration;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n {{#if this.scanWifiNetworksTask.isRunning}}\\n
\\n

{{tc this \\'scanningForNetworks\\' deviceType=@model.deviceType}}

\\n \\n
\\n {{else}}\\n {{#each this.wifiNetworks as |networkItem|}}\\n \\n {{else}}\\n

{{tc this \\'noWirelessNetworksDetected\\' deviceType=@model.deviceType}}

\\n {{/each}}\\n {{/if}}\\n
\\n\\n\",{ moduleName: \"customer-site/components/modals/wireless-settings/scan-for-networks/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport ConnectToWifi from '../connect-to-wifi/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type Store from '@ember-data/store';\nimport type WifiNetwork from 'customer-site/models/settings/panel-wifi/wifi-network';\n\ninterface ScanForNetworksModalArgs {\n model: {\n scanForNetworksFn(): ADCAsyncStoreQuery;\n connectToNetworkFn(\n ssid: string,\n password: string,\n encryptionType: number,\n deviceIdsAttachedToNetwork: number[]\n ): Promise;\n deviceType: string;\n };\n}\n\nclass NetworkRow {\n network: WifiNetwork;\n @tracked password = '';\n @tracked isRowSelected = false;\n\n constructor(n: WifiNetwork) {\n this.network = n;\n }\n}\n\n/**\n * @classdesc\n * Scan for wireless networks once this is opened.\n */\n@intlPath({ path: 'modals/wireless-settings/scan-for-networks' })\nexport default class ScanForNetworks extends Component {\n @service declare intl: ADCIntlService;\n @service declare modals: ModalService;\n @service declare store: Store;\n\n /**\n * Updated list of wifi network rows scanned by the device and ready to be connected to.\n */\n @tracked wifiNetworks?: NetworkRow[];\n\n /**\n * Currently selected wifi network row.\n */\n @computed('wifiNetworks.@each.isRowSelected')\n get selectedNetworkRow(): NetworkRow | undefined {\n return this.wifiNetworks?.findBy('isRowSelected');\n }\n\n /**\n * Task to scan for wifi networks the device can access.\n */\n scanWifiNetworksTask = task({ drop: true }, async () => {\n // Request the device to scan for networks.\n const networks = await this.args.model.scanForNetworksFn();\n\n // Map the scanned networks to the ember object used for wifi setting display.\n this.wifiNetworks = networks.map((model) => new NetworkRow(model));\n });\n\n /**\n * modal to show while connecting to wifi network.\n */\n @action connectToNetwork(): false {\n const { selectedNetworkRow } = this;\n if (selectedNetworkRow) {\n this.modals.showModal(ConnectToWifi, {\n connectToWifiFn: () => {\n const {\n network: { ssid, encryptionType, deviceIdsAttachedToNetwork },\n password\n } = selectedNetworkRow;\n return this.args.model.connectToNetworkFn(\n ssid,\n password,\n encryptionType,\n deviceIdsAttachedToNetwork\n );\n }\n });\n }\n\n return false;\n }\n\n /**\n * Set the currently selected network row and ensure UI is updated to not show passwords for all rows.\n */\n @action setSelectedItem(networkRow: NetworkRow): void {\n // Set the current row to selected\n this.wifiNetworks?.setEach('isRowSelected', false);\n networkRow.isRowSelected = true;\n }\n\n @action scanForNetworks(): false {\n this.scanWifiNetworksTask.perform();\n return false;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::WirelessSettings::ScanForNetworks': typeof ScanForNetworks;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n

\\n {{tc this \\'hostNetworkLabel\\'}}\\n \\n {{!-- @glint-expect-error wifiSetting is async, so this should either be resolved first or use get `(get @smartChime.wifiSetting \\'ssid\\')` --}}\\n {{coalesce @smartChime.wifiSetting.ssid (tc this \\'noNetworkDetected\\')}}\\n ({{await @smartChime.encryptionTypeName}})\\n \\n

\\n\\n

\\n \\n {{tc this \\'signalStrength\\'}}\\n \\n\\n \\n \\n\\n \\n {{signal.signalStrengthLabel}}\\n \\n\\n \\n\\n \\n \\n

\\n\\n

{{t \\'generic.wifi.changeNetwork\\' }}

\\n\\n

{{tc this \\'pageInstructions\\' chimeModel=this.smartChimeModelText}}

\\n\\n
\\n {{#each (array\\n (hash key=\\'copy\\' icon=\\'copy\\' click=this.openCopyNetworkFromVideoCameraModal)\\n (hash key=\\'scan\\' icon=\\'search\\' click=this.openScanForNetworksModal)\\n (hash key=\\'configureManually\\' icon=\\'edit\\' click=this.openManualNetworkConfigurationModal)\\n ) as |item|}}\\n \\n {{/each}}\\n
\\n\",{ moduleName: \"customer-site/components/access-point/wireless-settings/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport CopyNetworkFromCamera from 'customer-site/components/modals/wireless-settings/copy-network-from-camera/index';\nimport ManualNetworkConfiguration from 'customer-site/components/modals/wireless-settings/manual-network-configuration/index';\nimport ScanForNetworks from 'customer-site/components/modals/wireless-settings/scan-for-networks/index';\nimport * as PanelTypeEnumObj from 'customer-site/enums/PanelType';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalsService from '@adc/ui-components/services/modals';\nimport type SmartChimeDevice from 'customer-site/models/devices/smart-chime-device';\nimport type AccessPointWifiSetting from 'customer-site/models/settings/access-point-wifi/access-point-wifi-setting';\nimport type AccessPointPanelSignalStrength from '../../../models/settings/access-point-wifi/access-point-panel-signal-strength';\nimport './_style.scss';\n\ntype PanelTypeEnum = typeof PanelTypeEnumObj;\n\ninterface WirelessSettingsSignature {\n Args: {\n smartChime?: SmartChimeDevice;\n networksAttachedToVideoCameras: AccessPointWifiSetting[];\n };\n}\n\n/**\n * @classdesc\n * Wireless settings for access point.\n * Currently only smart chime device will use this component,\n * but likely future access points would want same functionality.\n */\n@intlPath({ path: 'access-point/wireless-settings' })\nexport default class WirelessSettings extends Component {\n @service declare intl: ADCIntlService;\n @service declare modals: ModalsService;\n\n /**\n * Object container all info regarding signal strength.\n */\n @tracked accessPointPanelSignalStrengthInfo?: Promise;\n\n /**\n * Requests the signal strength from the device.\n */\n @action\n refreshSignalStrength(): void {\n this.accessPointPanelSignalStrengthInfo = this.args.smartChime?.getAccessPointWifiSignalStrength();\n }\n\n /**\n * Opens modal to copy an already existing network from another video camera.\n */\n @action openCopyNetworkFromVideoCameraModal(): void {\n this.modals.showModal(CopyNetworkFromCamera, {\n connectToNetworkFn: (\n ssid: string,\n password: string,\n encryptionType: number,\n deviceIdsAttachedToNetwork: Array\n ) =>\n this.args.smartChime?.connectSmartChimeDeviceToWirelessNetwork(\n ssid,\n password,\n encryptionType,\n null,\n deviceIdsAttachedToNetwork\n ),\n networksAttachedToVideoCameras: this.args.networksAttachedToVideoCameras\n });\n }\n\n /**\n * Opens modal to scan for networks in range of the smart chime.\n */\n @action openScanForNetworksModal(): void {\n const { smartChime } = this.args;\n this.modals.showModal(ScanForNetworks, {\n scanForNetworksFn: () => smartChime?.getAccessPointsScannedWifiNetworks(),\n connectToNetworkFn: (\n ssid: string,\n password: string,\n encryptionType: number,\n deviceIdsAttachedToNetwork: Array\n ) =>\n smartChime?.connectSmartChimeDeviceToWirelessNetwork(\n ssid,\n password,\n encryptionType,\n null,\n deviceIdsAttachedToNetwork\n ),\n deviceType: this.intl.t('generic.devices.smartChime')\n });\n }\n\n /**\n * Opens modal to manually configure a wireless network for the smart chime.\n */\n @action openManualNetworkConfigurationModal(): void {\n this.modals.showModal(ManualNetworkConfiguration, {\n connectToNetworkFn: (ssid: string, password: string, encryptionType: number, encryptionAlgorithm: number) =>\n this.args.smartChime?.connectSmartChimeDeviceToWirelessNetwork(\n ssid,\n password,\n encryptionType,\n encryptionAlgorithm\n )\n });\n }\n\n /**\n * Gets the text for the chime model.\n */\n get smartChimeModelText(): string {\n const name = (Object.keys(PanelTypeEnumObj) as Array).find(\n (key) => PanelTypeEnumObj[key] === Number(this.args.smartChime?.chimeModel)\n );\n return this.intl.tc(this, `chimeModel.${name}`);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessPoint::WirelessSettings': typeof WirelessSettings;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!-- @glint-expect-error model type doesn\\'t match, please fix this. --}}\\n\\n \\n\",{ moduleName: \"customer-site/home/chimes/wireless-networks/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

\\n \\n {{@category.name}}\\n

\\n
\\n \\n\\n <:card-body>\\n \\n {{!-- @glint-expect-error FeatureCategory type is too broad, please fix. --}}\\n \\n
\\n {{feature.name}}\\n\\n {{#if feature.isCompleted}}\\n \\n {{/if}}\\n
\\n\\n {{!-- @glint-expect-error FeatureCategory type is too broad, please fix. --}}\\n {{#if feature.isHighPriority}}\\n \\n {{/if}}\\n \\n
\\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/feature-suggestions/feature-list-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { isEnterOrSpaceCode } from '@adc/ember-utils/utils/a11y';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { General } from 'customer-site/enums/ContactUserType';\nimport { Unknown, EmberSupport, EmberEditUserInformation } from 'customer-site/enums/CustomerPageUrl';\nimport FeatureSuggestion from 'customer-site/models/feature-suggestions/feature-suggestion';\nimport FeatureTask from 'customer-site/models/feature-suggestions/feature-task';\nimport { POST } from '@adc/ajax/services/adc-ajax';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type FeatureCategory from 'customer-site/models/feature-suggestions/feature-category';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type HomePageManager from 'customer-site/services/homepage-manager';\nimport type NavigationService from 'customer-site/services/navigation';\n\nexport interface FeatureListCardSignature {\n Element: HTMLDivElement;\n Args: {\n cardId: string;\n category: FeatureCategory;\n };\n}\n\ntype Feature = (FeatureTask | FeatureSuggestion | FeatureCategory) & {\n pageEnum?: number;\n isCompleted?: boolean;\n};\n\n/**\n * A feature suggestion card which renders a provided category.\n */\n\n@intlPath({ path: 'dashboard-cards/feature-suggestions/feature-list-card' })\nexport default class FeatureListCard extends Component {\n @service declare navigation: NavigationService;\n @service declare homepageManager: HomePageManager;\n @service declare ajax: AjaxService;\n @service declare notificationManager: NotificationManager;\n @service declare intl: ADCIntlService;\n\n /**\n * The computed CSS class for the root element.\n */\n @computed('args.category.{features,tasks}')\n get allFeatures(): Promise {\n return (async () => {\n const { category } = this.args,\n [tasks, features] = await Promise.all([category.tasks, category.features]);\n\n return [...tasks.slice(), ...features.slice()];\n })();\n }\n\n /**\n * Indicates the item list should be keyboard accessible.\n */\n @tracked isListKeyboardActive = false;\n\n /**\n * Updates the isListKeyboardActive property if this card is active.\n */\n @action\n checkActiveCard(el: FeatureListCardSignature['Element']): void {\n this.isListKeyboardActive = el.id === this.homepageManager.activeCardId;\n }\n\n /**\n * Handles keyup on features. If enter or space is pressed, then perform the transition.\n */\n @action\n keyupOnFeature(feature: FeatureSuggestion, evt: KeyboardEvent): void {\n if (!isEnterOrSpaceCode(evt.code)) {\n return;\n }\n\n evt.preventDefault();\n\n this.transition(feature);\n }\n\n /**\n * Transitions to the page for a feature.\n */\n @action\n transition(feature: Feature): void {\n if (feature instanceof FeatureTask) {\n this.markTaskAsCompleted(feature);\n }\n\n let { pageEnum } = feature,\n queryParams;\n\n if (feature instanceof FeatureSuggestion) {\n const { contactUsMessage } = feature;\n\n if (feature.mustContactDealer && contactUsMessage) {\n pageEnum = EmberSupport;\n queryParams = { search: '?msg=' + contactUsMessage };\n }\n }\n\n this.transitionToRouteForBaseFeature(pageEnum!, queryParams);\n }\n\n /**\n * Mark a task as complete. If it fails, display an error message.\n */\n async markTaskAsCompleted(feature: Feature): Promise {\n // If the task in incomplete, mark it as now completed\n if (!feature.isCompleted) {\n try {\n feature.isCompleted = true;\n await this.ajax.apiRequest('featureSuggestions/featureTasks/' + feature.id, undefined, feature, POST);\n } catch {\n feature.rollbackAttributes();\n this.notificationManager.addError(this.intl.tc(this, 'errorCompletingTask'));\n }\n }\n }\n\n /**\n * Transitions to the page for a feature.\n */\n transitionToRouteForBaseFeature(pageEnum: number, queryParams?: Record): void {\n if (!pageEnum || pageEnum === Unknown) {\n return;\n }\n\n const { navigation } = this,\n routeItem = navigation.getRouteItem(pageEnum);\n\n if (routeItem) {\n const args: Parameters = [routeItem];\n\n if (pageEnum === EmberEditUserInformation) {\n args.push('new', {\n queryParams: {\n userType: General\n }\n });\n } else if (queryParams && Object.keys(queryParams).length) {\n // Is this NOT a native route?\n if (!routeItem.isNative) {\n // Convert query params to single search query string for legacy wrapper page.\n queryParams = navigation.addSearchQueryParam(queryParams);\n }\n\n // Add query params to args.\n args.push({ queryParams });\n }\n\n navigation.transitionToRoute(...args);\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::FeatureSuggestions::FeatureListCard': typeof FeatureListCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n\\n \\n {{#if data.selectedCategory}}\\n
\\n \\n
\\n {{/if}}\\n\\n
\\n {{#if data.selectedCategory}}\\n
\\n {{tc this \\'otherFeatures\\'}}\\n
\\n {{/if}}\\n
\\n {{#each data.categories as |category idx|}}\\n {{#unless (eq category data.selectedCategory)}}\\n \\n {{/unless}}\\n {{/each}}\\n
\\n
\\n
\\n\\n \\n \\n
\\n\",{ moduleName: \"customer-site/home/feature-suggestions/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/garage/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/garage/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/gates/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/gates/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.isCurrentSystemModeInLockdown}}\\n
\\n
\\n \\n

{{await this.alertBannerText}}

\\n
\\n\\n \\n
\\n{{/if}}\\n\",{ moduleName: \"customer-site/components/access-control/lockdown/lockdown-alert/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { launchCancelLockdownConfirmationModel } from 'customer-site/components/access-control/lockdown/emergency-lockdown-btn/index';\nimport { Lockdown } from 'customer-site/enums/AccessControlSystemMode';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\n\n/**\n * @classdesc Lockdown home page \"In Lockdown\" alert card\n */\n@intlPath({ path: 'access-control/lockdown/lockdown-alert' })\nexport default class LockdownAlertCard extends Component {\n @service intl;\n @service modals;\n @service notificationManager;\n @service store;\n\n @equal('args.model.accessControlCurrentSystemMode', Lockdown)\n isCurrentSystemModeInLockdown;\n\n @computed('args.model.isInPartialLockdown')\n get alertBannerText() {\n return (async () => {\n const { intl } = this,\n systemModel = this.args.model;\n\n return systemModel?.isInPartialLockdown\n ? systemModel.getControllerNamesWithOperatingModeNotSynced(Lockdown).then((response) => {\n return intl.t('generic.systemInPartialLockdown', { controllerListOfNames: response.value });\n })\n : intl.tc(this, 'systemInLockdown');\n })();\n }\n\n /**\n * show cancel lockdown confirmation model\n */\n @action\n cancelLockdown() {\n launchCancelLockdownConfirmationModel.call(this, this.args.model);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#let this.contextManager.isEditingHomeScreen as |isEditMode|}}\\n {{!-- @glint-expect-error: Please convert to PageView. --}}\\n \\n \\n \\n\\n \\n {{!-- @glint-expect-error: Please convert this component to TS. --}}\\n \\n\\n {{!-- @glint-expect-error: Type for config does not match, please fix this. --}}\\n \\n \\n {{#each this.cards as |card|}}\\n {{#if (or card.isVisible isEditMode)}}\\n {{!-- @glint-expect-error: Glint hates this, need to find a better way to do this. --}}\\n \\n {{/if}}\\n {{/each}}\\n \\n \\n\\n {{#if isEditMode}}\\n
\\n

{{tc this \\'editHomeScreen\\'}}

\\n
\\n {{#each this.editControlButtons as |button|}}\\n \\n {{/each}}\\n
\\n
\\n {{/if}}\\n
\\n\\n \\n\\n \\n \\n \\n{{/let}}\\n\",{ moduleName: \"customer-site/home/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n <:trigger>\\n \\n \\n \\n \\n \\n \\n <:default>\\n
    \\n {{#each this.iconsList as |icon|}}\\n
  • \\n \\n \\n {{#if (eq icon.name this.currentIconName)}}\\n \\n {{/if}}\\n \\n \\n
  • \\n {{/each}}\\n
\\n \\n \\n
\",{ moduleName: \"customer-site/components/ui/icon-picker/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, set } from '@ember/object';\nimport { NotSet } from 'customer-site/enums/Icon';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type IconData from 'customer-site/utils/transforms-objects/icon-data';\nimport './_style.scss';\n\ninterface IconPickerSignature {\n Element: HTMLDivElement;\n Args: {\n deviceIcon: IconData;\n icons: { id: number; name: string }[];\n iconUpdated?: VoidFunction;\n };\n}\n\n@intlPath({ path: 'ui/icon-picker' })\nexport default class IconPicker extends Component {\n // Do not copy this deprecated usage. If you see this, please fix it.\n // eslint-disable-next-line ember/no-tracked-properties-from-args\n @tracked currentIconName = this.args.deviceIcon.icon;\n\n /** Action Sheet Required Elements */\n @tracked isActionSheetActive = false;\n\n @action closeActionSheet(): void {\n const { deviceIcon } = this.args,\n { icon } = deviceIcon,\n { currentIconName } = this;\n\n // Update props.\n set(deviceIcon, 'icon', currentIconName);\n this.isActionSheetActive = false;\n\n // Did the icon change?\n if (icon !== currentIconName) {\n this.args.iconUpdated?.();\n }\n }\n\n @action openActionSheet(): void {\n this.isActionSheetActive = true;\n }\n\n /** Change icon via click */\n @action changeSelectedIcon(icon: string): void {\n this.currentIconName = icon;\n }\n\n /**\n * Function to clean icon list and remove the not set icon (id == -1)\n * Not set would appear as an empty icon and can lead to confusion with the end user\n * - Krishna Nair\n */\n get iconsList(): (typeof this.args)['icons'] {\n return this.args.icons.rejectBy('id', NotSet);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Ui::IconPicker': typeof IconPicker;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:above-device-name as |light|>\\n {{#if (and light this.lightCustomIcons this.canUseCustomIcons)}}\\n \\n {{/if}}\\n \\n\\n <:settings as |light|>\\n \\n \\n \\n \\n {{#if light.canEnableStateTracking}}\\n \\n \\n \\n {{/if}}\\n \\n \\n\",{ moduleName: \"customer-site/home/lights/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default>\\n {{#each this.sortedLights as |_ cardIdx|}}\\n {{!-- @glint-expect-error: The arguments interface for this component has required arguments that we are not\\n passing here, which means they are not actually required. Please fix this. --}}\\n \\n {{/each}}\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n \\n\",{ moduleName: \"customer-site/home/lights/group-details/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:toolbar>\\n \\n \\n \\n \\n\\n <:default as |PageViewContainer|>\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n {{#if this.groupedLights}}\\n
\\n
\\n {{t \\'home.lights.lightAndSwitchGroups\\'}}\\n
\\n\\n
\\n {{#each this.groupedLights as |groupSection|}}\\n \\n {{/each}}\\n
\\n
\\n {{/if}}\\n\\n {{#if this.ungroupedLights}}\\n
\\n
\\n {{t \\'home.lights.otherLightsAndSwitches\\'}}\\n
\\n\\n
\\n {{#each this.ungroupedLights as |_ cardIdx|}}\\n {{!-- @glint-expect-error: We are missing required properties here, please fix this. --}}\\n \\n {{/each}}\\n
\\n
\\n {{/if}}\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/home/lights/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:settings>\\n {{#if (and this.HasProgrammingCodeAsDeviceSettingFeatureToggle this.programmingCode.isProgrammingCodeCompatible)}}\\n \\n
\\n {{#if (eq this.programmingCode.programmingCodeState 1)}}\\n \\n {{/if}}\\n {{#if (eq this.programmingCode.programmingCodeState 2)}}\\n \\n {{/if}}\\n {{#if (eq this.programmingCode.programmingCodeState 3)}}\\n \\n {{/if}}\\n \\n <:after-input>\\n \\n \\n \\n

\\n
\\n \\n {{tc this \\'copyCodeButton\\'}}\\n \\n \\n {{tc this \\'randomizeCode\\'}}\\n \\n
\\n
\\n
\\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/home/locks/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/locks/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n \\n
\\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n
\\n \\n
\",{ moduleName: \"customer-site/home/mpers-devices/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/mpers-devices/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/noise/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:settings as |partition|>\\n {{#if (or partition.canAccessPanelWifi partition.canEnableAlexa)}}\\n \\n {{#if partition.canAccessPanelWifi}}\\n \\n \\n \\n {{/if}}\\n {{#if partition.canEnableAlexa}}\\n \\n \\n \\n {{/if}}\\n \\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/home/partitions/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/partitions/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/shades/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/shades/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/sump-pumps/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/home/sump-pumps/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:settings as |switch|>\\n \\n \\n \\n \\n \\n \\n\",{ moduleName: \"customer-site/home/switches/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default>\\n {{#each (array\\n (hash d=this.sirens k=\\\"sirens\\\")\\n (hash d=this.generics k=\\\"other\\\")\\n ) as |info|}}\\n {{#if info.d}}\\n
\\n
\\n {{t (concat \\'home.switches.\\' info.k)}}\\n
\\n
\\n {{#each info.d as |_ cardIdx|}}\\n \\n {{/each}}\\n
\\n
\\n {{/if}}\\n {{/each}}\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n
\\n\\n\\n\",{ moduleName: \"customer-site/home/switches/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n {{#if data.isUnconfigured}}\\n {{#if this.areTrvsEnabled}}\\n

\\n {{safe-html (tc this \\'setupWarning\\' link=(href-to \\'home.thermostats.thermostat-grouping\\'))}}\\n

\\n {{/if}}\\n\\n

{{tc this \\'setupDesc1\\'}} {{tc this \\'setupDesc2\\'}}

\\n {{else}}\\n

{{tc this \\'configuredDesc\\'}}

\\n

{{tc this \\'wizardReminder\\'}}

\\n
\\n
    \\n {{#each (await this.zones) as |zone|}}\\n
  • \\n

    {{zone.description}}

    \\n

    {{zone.devices}}

    \\n
  • \\n {{/each}}\\n
\\n
\\n {{/if}}\\n \\n \\n\\n <:error as |PageViewError|>\\n \\n \\n
\\n\\n\",{ moduleName: \"customer-site/home/thermostats/boilers/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/thermostats/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n {{#if (or data.cards data.thermostats data.sensors)}}\\n
\\n {{#each data.cards as |_ idx|}}\\n \\n {{/each}}\\n\\n {{#if data.sensors}}\\n \\n {{/if}}\\n
\\n {{else}}\\n
\\n \\n

{{tc this \\'noThermostatsFound\\'}}

\\n \\n
\\n {{/if}}\\n
\\n
\\n\",{ moduleName: \"customer-site/home/thermostats/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n {{#if this.isInteractive}}\\n \\n {{else}}\\n {{math \\'+\\' @homeTemp @value}}\\n {{/if}}\\n
\\n\\n {{#if this.isInteractive}}\\n
\\n {{fmt-degree @homeTemp}}\\n {{if @isPreCool \\' - \\' \\' + \\'}}\\n {{fmt-degree (math \\'abs\\' @value)}}\\n = {{fmt-degree (math \\'+\\' @homeTemp @value)}}\\n
\\n {{/if}}\\n\\n\",{ moduleName: \"customer-site/components/automation/peak-protect-setting/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { isBetween, constrainRange } from '@adc/ember-utils/utils/math';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { isPresent } from '@ember/utils';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './styles.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { UiStackedIconLabelSignature } from 'customer-site/components/ui/stacked-icon-label';\n\ninterface AutomationPeakProtectSettingSignature {\n Element: UiStackedIconLabelSignature['Element'];\n Args: {\n value: number;\n isPreCool: boolean;\n homeTemp: number;\n isDisabled?: boolean;\n updateValue?: (newValue: number) => void;\n };\n}\n\n/**\n * @classdesc\n * A widget for displaying/editing peak protection values.\n */\n@intlPath({ path: 'automation/peak-protect-setting' })\nexport default class AutomationPeakProtectSetting extends Component {\n @service declare intl: ADCIntlService;\n\n /**\n * Indicates the user can change the value.\n */\n get isInteractive(): boolean {\n return isPresent(this.args.updateValue);\n }\n\n /**\n * Type description (pre-cool versus on-peak).\n */\n get type(): string {\n return this.args.isPreCool ? 'pre-cool' : 'on-peak';\n }\n\n /**\n * The input minimum value.\n */\n get min(): number {\n return this.args.homeTemp + (this.args.isPreCool ? -6 : 1);\n }\n\n /**\n * The input maximum value.\n */\n get max(): number {\n return this.args.homeTemp + (this.args.isPreCool ? -1 : 10);\n }\n\n /**\n * Called on input keydown.\n */\n @action handleKeyDown(evt: KeyboardEvent): void {\n if (evt.key === 'e') {\n // \"e\" is a valid number input value (for exponential), but we don't want to allow it.\n evt.preventDefault();\n }\n }\n\n /**\n * Notifies the consumer of the new value (if value is valid or useForce is true).\n */\n private updateValue(value: string, useForce: boolean): void {\n const { updateValue, homeTemp } = this.args;\n\n if (updateValue) {\n // Ensure value is an integer.\n const parsedValue = Math.round(Number(value));\n if (!isNaN(parsedValue)) {\n const { min, max } = this;\n\n if (useForce || isBetween(parsedValue, min, max)) {\n updateValue(constrainRange(parsedValue, min, max) - homeTemp);\n }\n }\n }\n }\n\n /**\n * Called on input blur.\n */\n @action handleBlur(evt: FocusEvent): void {\n const input = evt.target as HTMLInputElement,\n { value } = input;\n\n if (isPresent(value)) {\n this.updateValue(value, true);\n } else {\n input.value = String(this.args.homeTemp + this.args.value);\n }\n }\n\n /**\n * Called when the user changes the value.\n */\n @action handleInput(evt: KeyboardEvent): void {\n const { value } = evt.target as HTMLInputElement;\n if (isPresent(value)) {\n this.updateValue(value, false);\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Automation::PeakProtectSetting': typeof AutomationPeakProtectSetting;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n\\n \\n

\\n {{tc this \\'title\\'}}\\n \\n

\\n\\n

{{tc this \\'description\\'}}

\\n\\n \\n\\n
\\n {{!-- @glint-expect-error: Please convert to PageView for type safety. --}}\\n

{{data.t.description}}

\\n\\n
\\n \\n \\n \\n \\n\\n \\n {{#each (array 70 64 55 50 47 42) as |h idx|}}\\n \\n {{/each}}\\n \\n\\n \\n {{#each (array 55 70 84 97 100 116 121 134 142) as |h idx|}}\\n \\n {{/each}}\\n \\n\\n \\n \\n\\n \\n \\n\\n \\n\\n {{tc this \\'preCooling\\'}}\\n \\n \\n\\n \\n \\n\\n \\n\\n {{tc this \\'onPeakHours\\'}}\\n \\n \\n\\n \\n {{fmt-degree (math \\'+\\' this.homeTemp (if this.isComfortMode this.lowerComfort this.lowerTemp))}}\\n {{fmt-degree (math \\'+\\' this.homeTemp (if this.isComfortMode this.upperComfort this.upperTemp))}}\\n \\n \\n \\n
{{tc this \\'graphDescription\\'}}
\\n
\\n\\n {{!-- @glint-expect-error: Please convert to PageView for type safety. --}}\\n {{#if (and data.tr.nextOnPeakPeriodDate data.tr.nextOnPeakPeriodTimeRange)}}\\n {{!-- @glint-expect-error: Please convert to PageView for type safety. --}}\\n

{{tc this \\'nextOnPeakPeriod\\' date=data.tr.nextOnPeakPeriodDate timeRange=data.tr.nextOnPeakPeriodTimeRange}}

\\n {{/if}}\\n\\n
\\n \\n \\n
\\n\\n

\\n {{tc this (if this.isComfortMode \\'comfortModeDescription\\' \\'tempModelDescription\\')}}\\n \\n

\\n\\n \\n

\\n \\n {{tc this \\'details\\'}}\\n

\\n \\n\\n {{#if this.isComfortMode}}\\n \\n {{tc this \\'moreComfort\\'}}\\n {{tc this \\'moreSavings\\'}}\\n \\n\\n
\\n \\n \\n
\\n {{else}}\\n
\\n \\n\\n \\n
\\n {{/if}}\\n\\n \\n\\n \\n
\\n\\n
\\n\\n \\n \\n
\\n\",{ moduleName: \"customer-site/home/thermostats/peak-protect/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n\\n \\n

{{tc this \\'title\\'}}

\\n\\n

{{tc this \\'description\\'}}

\\n\\n
\\n \\n
\\n\\n {{!-- @glint-expect-error: Please convert to PageView for type safety. --}}\\n

{{data.thermostat.description}}

\\n\\n
\\n \\n

{{fmt-degree this.preferredSetpoint}}

\\n
\\n {{#each this.buttons as |button|}}\\n \\n {{/each}}\\n
\\n
\\n\\n \\n
\\n\\n \\n \\n
\\n\\n\\n\",{ moduleName: \"customer-site/home/thermostats/peak-protect/schedule/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{outlet}}\\n
\\n\\n\",{ moduleName: \"customer-site/home/thermostats/peak-protect/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n\\n \\n

{{tc this \\'title\\'}}

\\n\\n
\\n \\n\\n \\n \\n \\n\\n \\n \\n \\n
\\n\\n
\\n

{{tc this \\'nextPeak\\'}}

\\n\\n {{#if this.selectedTariff}}\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n {{else}}\\n

{{tc this \\'noTariff\\'}}

\\n {{/if}}\\n\\n
\\n\\n \\n
\\n\\n \\n \\n
\\n\\n\\n\",{ moduleName: \"customer-site/home/thermostats/peak-protect/utility/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!-- @glint-expect-error: model.thermostat is async, please fix this. --}}\\n{{#if (eq this.model.thermostat.scheduleMode 0)}}\\n \\n <:default as |PageViewContainer|>\\n \\n <:default>\\n \\n

{{tc this \\'scheduleModeOffInfo\\'}}

\\n \\n
\\n \\n
\\n{{else}}\\n \\n <:default as |data|>\\n
\\n \\n \\n \\n {{#each this.setpointTypeInfo as |info|}}\\n \\n <:content>\\n \\n \\n \\n \\n
\\n {{t (concat \\'home.thermostats.\\' info.type)}}\\n
\\n

\\n {{info.rts}}\\n

\\n
\\n \\n \\n  {{get\\n data.thermostat\\n (concat info.type \\'HeatSetpointText\\')\\n }} \\n  {{get\\n data.thermostat\\n (concat info.type \\'CoolSetpointText\\')\\n }}\\n \\n \\n \\n \\n {{/each}}\\n {{#if (eq data.thermostat.scheduleMode 2)}}\\n \\n \\n \\n {{else}}\\n \\n \\n \\n {{/if}}\\n {{#if this.hasPeakProtectAccess}}\\n \\n \\n {{/if}}\\n
\\n\\n \\n \\n{{/if}}\",{ moduleName: \"customer-site/home/thermostats/schedules/edit/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |PageViewContainer|>\\n \\n <:default>\\n

{{tc this \\'optionsTitle\\'}}

\\n \\n <:label as |option|>\\n
\\n {{!-- @glint-expect-error: label could be a SafeString, please fix this. --}}\\n

{{tc this option.label}}

\\n

{{tc this option.props.description}}

\\n
\\n \\n \\n \\n\\n <:error as |PageViewError|>\\n \\n \\n \\n \\n
\",{ moduleName: \"customer-site/home/thermostats/schedules/edit/schedule-type/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n

{{t \\'generic.valueDegree\\' value=@temperature}}

\\n
\\n \\n \\n
\\n
\\n\",{ moduleName: \"customer-site/components/thermostats/schedule-edit/setpoint/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed } from '@ember/object';\nimport { reads, alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\n\ninterface ThermostatSetpointSignature {\n Args: {\n thermostat: ThermostatModel;\n setpointAttribute: 'stateCoolSetpoint' | 'stateHeatSetpoint';\n temperature: number;\n isHeat?: boolean;\n };\n}\n\nconst SETPOINT_INCREASE = 1;\nconst SETPOINT_DECREASE = -1;\n\n/**\n * @classdesc\n * An input for selecting heat/cool temperature setpoints\n */\n@intlPath({ path: 'thermostats/schedule-edit/setpoint' })\nexport default class ThermostatSetpoint extends Component {\n @service declare intl: ADCIntlService;\n\n @alias('args.temperature')\n declare setpoint: number;\n\n @reads('args.thermostat.minCoolSetpoint')\n declare minCool: number;\n\n @reads('args.thermostat.maxCoolSetpoint')\n declare maxCool: number;\n\n @reads('args.thermostat.minHeatSetpoint')\n declare minHeat: number;\n\n @reads('args.thermostat.maxHeatSetpoint')\n declare maxHeat: number;\n\n setpointIncrease = SETPOINT_INCREASE;\n\n setpointDecrease = SETPOINT_DECREASE;\n\n @computed('args.isHeat')\n get setpointType(): string {\n return this.args.isHeat ? 'heat' : 'cool';\n }\n\n /**\n * The translation path for up arrow, based on whether it's heat/cool\n */\n @computed('setpointType')\n get increaseText(): string {\n return `${this.setpointType}IncreaseSetpointButtonText`;\n }\n\n /**\n * The translation path for down arrow, based on whether it's heat/cool\n */\n @computed('setpointType')\n get decreaseText(): string {\n return `${this.setpointType}DecreaseSetpointButtonText`;\n }\n\n /**\n * Makes the appropriate setpoint change, if desired change is valid.\n * @param isIncrease Whether the desired setpoint change is an increase\n */\n @action\n setpointChange(isIncrease: boolean): void {\n const validSetpoint = isIncrease ? this.isValidIncrease : this.isValidDecrease;\n\n if (!validSetpoint) return;\n\n const newSetpoint = this.setpoint + (isIncrease ? SETPOINT_INCREASE : SETPOINT_DECREASE);\n this.args.thermostat.set(this.args.setpointAttribute as keyof ThermostatModel, newSetpoint);\n }\n\n /**\n * Determines whether an increase in setpoint can be preformed\n * @returns a boolean determining if the desired change is valid.\n */\n @computed('args.isHeat', 'maxHeat', 'maxCool', 'setpoint')\n get isValidIncrease(): boolean {\n const maxTemp = this.args.isHeat ? this.maxHeat : this.maxCool;\n const newTemp = this.setpoint + SETPOINT_INCREASE;\n\n return newTemp <= maxTemp;\n }\n\n /**\n * Determines whether a decrease in setpoint can be preformed\n * @returns a boolean determining if the desired change is valid.\n */\n @computed('args.isHeat', 'minHeat', 'minCool', 'setpoint')\n get isValidDecrease(): boolean {\n const minTemp = this.args.isHeat ? this.minHeat : this.minCool;\n const newTemp = this.setpoint + SETPOINT_DECREASE;\n\n return newTemp >= minTemp;\n }\n\n /**\n * Adds the disabled class to the up arrow if an setpoint increase is impossible\n */\n get increaseClass(): string {\n return this.isValidIncrease ? '' : 'disabled';\n }\n\n /**\n * Adds the disabled class to the down arrow if an setpoint decrease is impossible\n */\n get decreaseClass(): string {\n return this.isValidDecrease ? '' : 'disabled';\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Thermostats::ScheduleEdit::Setpoint': typeof ThermostatSetpoint;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |data|>\\n
\\n \\n

{{this.setpointQuestion}}

\\n
\\n
\\n
\\n

{{tc this \\'whenCooling\\'}}

\\n \\n
\\n
\\n

{{tc this \\'whenHeating\\'}}

\\n \\n
\\n
\\n {{#if this.showSetpointInfo}}\\n \\n {{/if}}\\n {{#if this.showRtsList}}\\n
\\n

\\n {{this.tempSensorsSelect}}\\n {{tc this \\'tempSensorsTip\\'}}\\n

\\n
\\n \\n <:label as |item|>\\n \\n
\\n

{{item.label}}

\\n
\\n

{{item.props.temperatureText}}

\\n {{#if item.props.supportsHumidity}}\\n \\n

{{item.props.humidityText}}

\\n {{/if}}\\n
\\n
\\n \\n \\n
\\n
\\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/home/thermostats/schedules/edit/setpoint/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |PageViewContainer|>\\n \\n <:default as |data|>\\n
    \\n {{#each data as |thermostat idx|}}\\n
  • \\n

    \\n \\n {{thermostat.description}}\\n \\n \\n

    \\n
    \\n
    \\n {{#let\\n (eq thermostat.scheduleMode 2)\\n as |isSmart|\\n }}\\n \\n {{t \\'generic.schedule\\'}}\\n {{/let}}\\n
    \\n
    {{thermostat.scheduleTitleShort}}
    \\n {{#if this.hasPeakProtectAccess}}\\n
    \\n \\n {{t \\'home.thermostats.peak-protectName\\'}}\\n
    \\n
    \\n {{!-- @glint-expect-error: peakProtect is async, please fix this. --}}\\n {{t (concat \\'home.thermostats.\\' (if thermostat.peakProtect.enabled \\'enabled\\' \\'disabled\\'))}}\\n
    \\n {{/if}}\\n {{#each (array \\'home\\' \\'away\\' \\'sleep\\') as |type|}}\\n
    \\n \\n {{t (concat \\'home.thermostats.\\' type)}}\\n
    \\n
    \\n \\n {{!-- @glint-expect-error: get is not type safe, please fix this. --}}\\n {{get\\n thermostat\\n (concat type \\'HeatSetpointText\\')\\n }}\\n
    \\n
    \\n \\n {{!-- @glint-expect-error: get is not type safe, please fix this. --}}\\n {{get\\n thermostat\\n (concat type \\'CoolSetpointText\\')\\n }}\\n
    \\n {{/each}}\\n
    \\n
  • \\n {{/each}}\\n
\\n \\n
\\n \\n\",{ moduleName: \"customer-site/home/thermostats/schedules/index/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/components/highcharts/xrange-chart/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\n\nimport type { Chart } from 'customer-site/components/highcharts/simple-chart/index';\nimport type HighchartsXrange from 'highcharts/es-modules/masters/modules/xrange.src';\n\ninterface HighchartsXrangeChartSignature {\n Args: {\n chart: Chart;\n useAdcBranding?: boolean;\n };\n}\n\nexport default class HighchartsXrangeChart extends Component {\n @action loadAdditionalModules(): Promise {\n return import('highcharts/es-modules/masters/modules/xrange.src').then((module) => {\n return module.default;\n });\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Highcharts::XrangeChart': typeof HighchartsXrangeChart;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n
\",{ moduleName: \"customer-site/components/thermostats/smart-schedule-audit/highchart/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { Unknown, Home, Away, Sleep, Disabled, HomeToAway, AwayToHome } from 'customer-site/enums/SmartSchedulesState';\nimport { Past, Present, Future } from 'customer-site/enums/SmartSchedulesTimeline';\nimport { NUM_MILLISECONDS_IN_MINUTE, NUM_MILLISECONDS_IN_HOUR } from 'customer-site/utils/datetime';\nimport XrangeChart from 'customer-site/utils/highcharts/xrange-chart';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type SchedulePresetTimeFrame from 'customer-site/models/schedules/schedule-preset-time-frame';\nimport type { XAxisPlotLinesOptions, XrangePointOptionsObject } from 'highcharts';\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\n\ntype StatePreset = {\n name: string;\n translation: string;\n icon: string;\n};\n\ninterface HighchartsArgs {\n timeframes: SchedulePresetTimeFrame[];\n today: Date;\n}\n\ntype SmartSchedulesTimeline = typeof Past | typeof Present | typeof Future;\n\n/**\n * @classdesc\n * The component for the Highcharts chart used in the Smart Schedules Audit page\n */\n@intlPath({ path: 'thermostats/smart-schedule-audit/highchart' })\nexport default class Highcharts extends Component {\n @service declare intl: ADCIntlService;\n\n /**\n * The preset options for both transition states (AwayToHome, HomeToAway)\n */\n transitionPreset = {\n name: 'transition',\n translation: this.thermostatTranslation('smartTransition'),\n icon: this.getSVG('icn-fan-circulate', 'title-icon transition')\n };\n\n /**\n * A list of attributes for all possible smart schedule states.\n */\n presets: { [state: number]: StatePreset } = {\n [Unknown]: {\n name: 'unknown',\n translation: this.thermostatTranslation('scheduleSmart'),\n icon: this.getSVG('icn-circle-dash', 'title-icon unknown')\n },\n [Sleep]: {\n name: 'sleep',\n translation: this.thermostatTranslation('sleep'),\n icon: this.getSVG('icn-mode-sleep', 'title-icon sleep')\n },\n [Home]: {\n name: 'home',\n translation: this.thermostatTranslation('home'),\n icon: this.getSVG('icn-mode-home', 'title-icon home')\n },\n [Away]: {\n name: 'away',\n translation: this.thermostatTranslation('away'),\n icon: this.getSVG('icn-mode-away', 'title-icon away')\n },\n [AwayToHome]: this.transitionPreset,\n [HomeToAway]: this.transitionPreset,\n [Disabled]: {\n name: 'disabled',\n translation: this.thermostatTranslation('scheduleSmart'),\n icon: this.getSVG('icn-circle-dash', 'title-icon disabled')\n }\n };\n\n /**\n * Maps enum values to a string which can used for styling.\n */\n timelines: Record = {\n [Past]: 'actual',\n [Present]: 'current',\n [Future]: 'predicted'\n };\n\n /**\n * Retrieves the approprate translated string in the home.thermostats path\n * @param path the path added after home.thermostats\n * @returns A string translated in the users preferred language\n */\n thermostatTranslation(path: string): string {\n return this.intl.t(`home.thermostats.${path}`);\n }\n\n heatSVG = this.getSVG('icn-heat', 'temp-icon', this.thermostatTranslation('heat'));\n coolSVG = this.getSVG('icn-cool', 'temp-icon', this.thermostatTranslation('cool'));\n autoSVG = this.getSVG('icn-auto', 'temp-icon', this.thermostatTranslation('auto'));\n\n @reads('args.today')\n declare currentDate: Date;\n\n /**\n * Generate the HTML needed for a SVG element.\n * @param {string} href The name of the icon within the build\n * @param {string} className The class of the svg attribute itself, for styling purposes\n * @param {string | null} title The title of the icon, to be read by a screen reader\n * @returns {string}\n */\n getSVG(href: string, className = 'icon', title?: string): string {\n return `${title ? `${title}` : ''}`;\n }\n\n /**\n * Determine the temp mode of a timeframe, given it's cool/heat temperature variables.\n * @param {number?} cool The variable where the cool temp of a timeframe is held, if it exists.\n * @param {number?} heat The variable where the heat temp of a timeframe is held, if it exists.\n * @returns {string}\n */\n getTemperatureMode(cool?: number, heat?: number): string {\n if (cool !== null) {\n return heat !== null ? 'auto' : 'cool';\n } else if (heat !== null) {\n return 'heat';\n }\n\n return 'transition';\n }\n\n /**\n * Finds the current time given the beginning of the current day.\n * @param {int} startOfDay A integer representing midnight of the date chosen by the user, in Unix time.\n * @returns {int}\n */\n currentTime(startOfDay: number): number {\n return (\n startOfDay +\n this.currentDate.getHours() * NUM_MILLISECONDS_IN_HOUR +\n this.currentDate.getMinutes() * NUM_MILLISECONDS_IN_MINUTE\n );\n }\n\n /**\n * Builds a data label for a timeframe, to be either read or shown visually to the user.\n * @param presetMode the attributes associated with the timeframe's state\n * @param tempLabel the tempLabel which was generated based on usage and the temperature mode of the timeframe\n * @returns a HTML element for the data label\n */\n buildDataLabel(presetMode: StatePreset, tempLabel: string): string {\n return `${presetMode.icon}

${presetMode.translation}

${tempLabel}
`;\n }\n\n /**\n * Build a Highcharts X-Range element out of a timeframe.\n * @param {SchedulePresetTimeFrame} timeframe A single timeframe model\n * @returns {XrangePointOptionsObject}\n */\n buildTimeframeElement(timeframe: SchedulePresetTimeFrame): XrangePointOptionsObject {\n const timeframes = this.args.timeframes;\n\n const firstTimeframe = timeframes[0];\n const lastTimeframe = timeframes[timeframes.length - 1];\n const labelType = this.timelines[timeframe.timeline as SmartSchedulesTimeline];\n\n const timeframeStart = timeframe.startTimeLocal.valueOf();\n const timeframeEnd = timeframe.endTimeLocal.valueOf();\n\n /**\n * the dataElem represents 1 singular timeframe on the graph. The position of this\n * graph is determined by x (startTime), and x2 (endTime).\n */\n const dataElemHorizontalOffset = -3;\n const dataElem: XrangePointOptionsObject = {\n x: timeframeStart,\n x2: timeframeEnd,\n y: dataElemHorizontalOffset\n };\n\n // Add the attributes to the timeframe, depending on whether it is or isn't a transition state.\n const presetMode = this.presets[timeframe.presetTransitionState];\n const tempMode = this.getTemperatureMode(\n timeframe.coolTemperaturePresetLocalUnit,\n timeframe.heatTemperaturePresetLocalUnit\n );\n\n dataElem.className = `timeframe ${presetMode.name.toLowerCase()} ${labelType}`;\n dataElem.color = '';\n\n let tempLabel = '';\n let screenReaderAutoTempLabel = '';\n if (presetMode.name === 'disabled') {\n tempLabel = `\n
\n ${this.intl.t('generic.disabled')}\n
\n `;\n } else if (presetMode.name === 'unknown') {\n tempLabel = `\n
\n ${this.intl.t('home.thermostats.smart-schedule-audit.noData')}\n
\n `;\n } else if (tempMode === 'auto') {\n const coolTemp = this.intl.t('generic.valueDegree', { value: timeframe.coolTemperaturePresetLocalUnit });\n const heatTemp = this.intl.t('generic.valueDegree', { value: timeframe.heatTemperaturePresetLocalUnit });\n tempLabel = `\n
\n
\n ${this.coolSVG}\n

${coolTemp}

\n
\n ${this.autoSVG}\n
\n

${heatTemp}

\n ${this.heatSVG}\n
\n
\n `;\n\n // reformat the normal temp label for screen readers, so the information conveyed makes more sequential sense.\n screenReaderAutoTempLabel = `\n
\n ${this.autoSVG}\n
\n ${this.coolSVG}\n

${coolTemp}

\n
\n
\n ${this.heatSVG}\n

${heatTemp}

\n
\n
\n `;\n } else if (tempMode === 'cool') {\n const coolTemp = this.intl.t('generic.valueDegree', { value: timeframe.coolTemperaturePresetLocalUnit });\n tempLabel = `\n
\n ${this.coolSVG}\n

${coolTemp}

\n
\n `;\n } else if (tempMode === 'heat') {\n const heatTemp = this.intl.t('generic.valueDegree', { value: timeframe.heatTemperaturePresetLocalUnit });\n tempLabel = `\n
\n ${this.heatSVG}\n

${heatTemp}

\n
\n `;\n }\n\n const useAutoTempLabel = tempMode === 'auto' && presetMode.name !== 'disabled' && presetMode.name !== 'unknown';\n\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 const startTime = this.intl.formatDate(new Date(timeframeStart), {\n hour: 'numeric',\n minute: 'numeric'\n });\n\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 const endTime = this.intl.formatDate(new Date(timeframeEnd), {\n hour: 'numeric',\n minute: 'numeric'\n });\n\n dataElem.custom = {\n labelFormat: this.buildDataLabel(presetMode, tempLabel),\n timeline: this.intl.tc(this, 'timeLabelStartToEnd', { startTime: startTime, endTime: endTime }),\n screenReaderLabelFormat: this.buildDataLabel(\n presetMode,\n useAutoTempLabel ? screenReaderAutoTempLabel : tempLabel\n )\n };\n\n let dataLabelY = 0;\n let labelSize = 'normal';\n const dataLabelSmallVerticalOffset = -5;\n // if the timeframe is too small, move label more towards top of bar.\n if (timeframeEnd - timeframeStart < 2 * NUM_MILLISECONDS_IN_HOUR) {\n dataLabelY = dataLabelSmallVerticalOffset;\n if (timeframeEnd - timeframeStart < NUM_MILLISECONDS_IN_HOUR) {\n labelSize = 'small';\n }\n }\n\n dataElem.labelrank = presetMode.name === 'transition' ? 0 : 1; // When labels overlap, prioritize the non-transition labels.\n\n // For each label, create a dataLabel which is a text displaying the temperature(s) associated with that timeframe\n dataElem.dataLabels = [\n {\n enabled: true,\n inside: false,\n className: `timeframe-temperature-label ${labelType} ${labelSize}`,\n format: '{point.custom.labelFormat}',\n verticalAlign: 'top',\n align: 'left',\n // The empty strings here act as a way of telling Highcharts to refer to the Sass file.\n color: '',\n x: 60,\n y: dataLabelY,\n style: {\n fontFamily: '',\n textOutline: 'none',\n fontSize: '',\n fontWeight: ''\n },\n useHTML: true\n }\n ];\n\n // If a timeframe is in the present, then apply partial fill to distinguish past/future parts.\n if (labelType === 'current') {\n const startOfDay = firstTimeframe.startTimeLocal.valueOf();\n const currentTime = this.currentTime(startOfDay);\n\n dataElem.partialFill = {\n amount: (currentTime - timeframeStart) / (timeframeEnd - timeframeStart),\n fill: ''\n };\n }\n\n // Add an offset to the timeframes start/end time, so neighboring timeframes don't touch each other\n const timeframeOffset = 300000;\n\n if (timeframe != firstTimeframe) {\n dataElem.x = timeframeStart + timeframeOffset;\n }\n\n if (timeframe != lastTimeframe) {\n dataElem.x2 = timeframeEnd - timeframeOffset;\n }\n\n return dataElem;\n }\n\n /**\n * Builds a list of timeframe objects for Highcharts to use.\n * @returns {XrangePointOptionsObject[]}\n */\n get generateTimeframeElements(): XrangePointOptionsObject[] {\n return this.args.timeframes.map((timeframe) => {\n return this.buildTimeframeElement(timeframe);\n });\n }\n\n /**\n * Generates the plotlines which display hour intervals, the top/bottom border of the graph, and the current time.\n * @param {number?} date A integer representing midnight of the date chosen by the user, in Unix time.\n * @returns {XAxisPlotLinesOptions[]}\n */\n createPlotlines(date: number | undefined): XAxisPlotLinesOptions[] {\n // if we don't have a start date, there's no plotlines to create here\n if (!date) {\n return [];\n }\n\n const plotLines: XAxisPlotLinesOptions[] = Array.from({ length: 25 }, (_, i) => ({\n className: 'hour-plotline',\n value: date + i * NUM_MILLISECONDS_IN_HOUR\n }));\n\n // Generate a line which follows the users current time, if the time selected is the current day.\n const timeframeDate = this.args.timeframes[0].startTimeLocal;\n const isToday =\n timeframeDate.getMonth() === this.currentDate.getMonth() &&\n timeframeDate.getDate() === this.currentDate.getDate() &&\n timeframeDate.getFullYear() === this.currentDate.getFullYear();\n\n if (isToday) {\n plotLines.push({\n className: 'current-plotline-background',\n value: this.currentTime(date),\n zIndex: 8\n });\n\n plotLines.push({\n className: 'current-plotline-foreground',\n value: this.currentTime(date),\n zIndex: 9\n });\n }\n\n return plotLines;\n }\n\n /**\n * Generates an XRange chart which visually represents the Smart Schedules data for a given day\n */\n get chart(): XrangeChart {\n const timeframeData = this.generateTimeframeElements;\n\n return new XrangeChart({\n chartOptions: {\n accessibility: {\n description: this.intl.tc(this, 'chartDescription'),\n point: {\n valueDescriptionFormat: '{point.custom.timeline} {point.custom.screenReaderLabelFormat}'\n }\n },\n chart: {\n height: 940,\n inverted: true\n },\n plotOptions: {\n xrange: {\n borderRadius: 8\n }\n },\n series: [\n {\n data: timeframeData,\n dataLabels: {\n enabled: true\n },\n name: '',\n pointWidth: 48,\n type: 'xrange'\n }\n ],\n tooltip: {\n enabled: false\n },\n xAxis: {\n dateTimeLabelFormats: {\n hour: '%C',\n day: '%C'\n },\n min: timeframeData[0]?.x,\n max: timeframeData[timeframeData.length - 1]?.x2,\n plotLines: this.createPlotlines(timeframeData[0].x),\n tickInterval: NUM_MILLISECONDS_IN_HOUR,\n tickLength: 0,\n type: 'datetime'\n },\n yAxis: {\n categories: [''],\n title: {\n text: ''\n },\n visible: false\n }\n }\n });\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Thermostats::SmartScheduleAudit::Highchart': typeof Highcharts;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |PageViewContainer|>\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n

\\n {{tc this \\'descriptionOverview\\'}}\\n

\\n

\\n {{tc this \\'descriptionPredictedExplaination\\'}}\\n

\\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n
\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n
\\n \\n\",{ moduleName: \"customer-site/home/thermostats/smart-schedule-audit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n\\n \\n

{{tc this \\'configuredDesc\\'}}

\\n
\\n
    \\n {{#if data.masters.length}}\\n
  • \\n

    {{tc this \\'master\\'}}

    \\n

    {{tc this \\'minions\\'}}

    \\n
  • \\n {{/if}}\\n {{#each data.masters as |master|}}\\n
  • \\n

    {{master.description}}

    \\n

    {{master.devices}}

    \\n
  • \\n {{else}}\\n {{tc\\n {{/each}}\\n
\\n
\\n \\n
\\n \\n \\n \\n
\\n\",{ moduleName: \"customer-site/home/thermostats/thermostat-grouping/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\",{ moduleName: \"customer-site/home/water/edit/template.hbs\" })","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n {{#each data.devices as |_ idx|}}\\n \\n {{/each}}\\n\\n {{#each data.waterMeters as |meter idx|}}\\n {{#unless meter.pairedWaterValve}}\\n \\n {{/unless}}\\n {{/each}}\\n\\n {{#if data.waterSensors}}\\n \\n {{/if}}\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/home/water/index/template.hbs\" })","\nimport { importSync as i } from '@embroider/macros';\nlet d = window.define;\nd(\"customer-site/home/ac-doors/route\", function(){ return i(\"customer-site/home/ac-doors/route.ts\");});\nd(\"customer-site/home/ac-doors/edit/template\", function(){ return i(\"customer-site/home/ac-doors/edit/template.hbs\");});\nd(\"customer-site/home/ac-doors/edit/controller\", function(){ return i(\"customer-site/home/ac-doors/edit/controller.ts\");});\nd(\"customer-site/home/ac-doors/edit/route\", function(){ return i(\"customer-site/home/ac-doors/edit/route.ts\");});\nd(\"customer-site/home/ac-doors/index/template\", function(){ return i(\"customer-site/home/ac-doors/index/template.hbs\");});\nd(\"customer-site/home/ac-doors/index/controller\", function(){ return i(\"customer-site/home/ac-doors/index/controller.ts\");});\nd(\"customer-site/home/ac-doors/rules/route\", function(){ return i(\"customer-site/home/ac-doors/rules/route.ts\");});\nd(\"customer-site/home/ac-elevators/route\", function(){ return i(\"customer-site/home/ac-elevators/route.ts\");});\nd(\"customer-site/home/ac-elevators/edit/template\", function(){ return i(\"customer-site/home/ac-elevators/edit/template.hbs\");});\nd(\"customer-site/home/ac-elevators/edit/controller\", function(){ return i(\"customer-site/home/ac-elevators/edit/controller.ts\");});\nd(\"customer-site/home/ac-elevators/edit/route\", function(){ return i(\"customer-site/home/ac-elevators/edit/route.ts\");});\nd(\"customer-site/home/ac-elevators/index/template\", function(){ return i(\"customer-site/home/ac-elevators/index/template.hbs\");});\nd(\"customer-site/home/ac-elevators/index/controller\", function(){ return i(\"customer-site/home/ac-elevators/index/controller.ts\");});\nd(\"customer-site/home/cc-control/template\", function(){ return i(\"customer-site/home/cc-control/template.hbs\");});\nd(\"customer-site/home/cc-control/controller\", function(){ return i(\"customer-site/home/cc-control/controller.ts\");});\nd(\"customer-site/home/cc-control/route\", function(){ return i(\"customer-site/home/cc-control/route.ts\");});\nd(\"customer-site/home/chimes/route\", function(){ return i(\"customer-site/home/chimes/route.ts\");});\nd(\"customer-site/home/chimes/index/template\", function(){ return i(\"customer-site/home/chimes/index/template.hbs\");});\nd(\"customer-site/home/chimes/index/controller\", function(){ return i(\"customer-site/home/chimes/index/controller.ts\");});\nd(\"customer-site/home/chimes/settings/template\", function(){ return i(\"customer-site/home/chimes/settings/template.hbs\");});\nd(\"customer-site/home/chimes/settings/route\", function(){ return i(\"customer-site/home/chimes/settings/route.ts\");});\nd(\"customer-site/home/chimes/wireless-networks/template\", function(){ return i(\"customer-site/home/chimes/wireless-networks/template.hbs\");});\nd(\"customer-site/home/chimes/wireless-networks/route\", function(){ return i(\"customer-site/home/chimes/wireless-networks/route.ts\");});\nd(\"customer-site/home/device-details/route\", function(){ return i(\"customer-site/home/device-details/route.ts\");});\nd(\"customer-site/home/feature-suggestions/template\", function(){ return i(\"customer-site/home/feature-suggestions/template.hbs\");});\nd(\"customer-site/home/feature-suggestions/route\", function(){ return i(\"customer-site/home/feature-suggestions/route.ts\");});\nd(\"customer-site/home/garage/route\", function(){ return i(\"customer-site/home/garage/route.ts\");});\nd(\"customer-site/home/garage/edit/template\", function(){ return i(\"customer-site/home/garage/edit/template.hbs\");});\nd(\"customer-site/home/garage/edit/route\", function(){ return i(\"customer-site/home/garage/edit/route.ts\");});\nd(\"customer-site/home/garage/index/template\", function(){ return i(\"customer-site/home/garage/index/template.hbs\");});\nd(\"customer-site/home/garage/index/controller\", function(){ return i(\"customer-site/home/garage/index/controller.ts\");});\nd(\"customer-site/home/garage/rules/route\", function(){ return i(\"customer-site/home/garage/rules/route.ts\");});\nd(\"customer-site/home/gates/route\", function(){ return i(\"customer-site/home/gates/route.ts\");});\nd(\"customer-site/home/gates/edit/template\", function(){ return i(\"customer-site/home/gates/edit/template.hbs\");});\nd(\"customer-site/home/gates/edit/route\", function(){ return i(\"customer-site/home/gates/edit/route.ts\");});\nd(\"customer-site/home/gates/index/template\", function(){ return i(\"customer-site/home/gates/index/template.hbs\");});\nd(\"customer-site/home/gates/index/controller\", function(){ return i(\"customer-site/home/gates/index/controller.ts\");});\nd(\"customer-site/home/gates/rules/route\", function(){ return i(\"customer-site/home/gates/rules/route.ts\");});\nd(\"customer-site/home/image-sensors/rules/route\", function(){ return i(\"customer-site/home/image-sensors/rules/route.ts\");});\nd(\"customer-site/home/index/template\", function(){ return i(\"customer-site/home/index/template.hbs\");});\nd(\"customer-site/home/index/controller\", function(){ return i(\"customer-site/home/index/controller.ts\");});\nd(\"customer-site/home/index/route\", function(){ return i(\"customer-site/home/index/route.ts\");});\nd(\"customer-site/home/lights/route\", function(){ return i(\"customer-site/home/lights/route.ts\");});\nd(\"customer-site/home/lights/edit/template\", function(){ return i(\"customer-site/home/lights/edit/template.hbs\");});\nd(\"customer-site/home/lights/edit/controller\", function(){ return i(\"customer-site/home/lights/edit/controller.ts\");});\nd(\"customer-site/home/lights/edit/route\", function(){ return i(\"customer-site/home/lights/edit/route.ts\");});\nd(\"customer-site/home/lights/group-details/template\", function(){ return i(\"customer-site/home/lights/group-details/template.hbs\");});\nd(\"customer-site/home/lights/group-details/controller\", function(){ return i(\"customer-site/home/lights/group-details/controller.ts\");});\nd(\"customer-site/home/lights/group-details/route\", function(){ return i(\"customer-site/home/lights/group-details/route.ts\");});\nd(\"customer-site/home/lights/index/template\", function(){ return i(\"customer-site/home/lights/index/template.hbs\");});\nd(\"customer-site/home/lights/index/controller\", function(){ return i(\"customer-site/home/lights/index/controller.ts\");});\nd(\"customer-site/home/lights/rules/route\", function(){ return i(\"customer-site/home/lights/rules/route.ts\");});\nd(\"customer-site/home/lights/schedules/route\", function(){ return i(\"customer-site/home/lights/schedules/route.ts\");});\nd(\"customer-site/home/locks/route\", function(){ return i(\"customer-site/home/locks/route.ts\");});\nd(\"customer-site/home/locks/edit/template\", function(){ return i(\"customer-site/home/locks/edit/template.hbs\");});\nd(\"customer-site/home/locks/edit/controller\", function(){ return i(\"customer-site/home/locks/edit/controller.ts\");});\nd(\"customer-site/home/locks/edit/route\", function(){ return i(\"customer-site/home/locks/edit/route.ts\");});\nd(\"customer-site/home/locks/index/template\", function(){ return i(\"customer-site/home/locks/index/template.hbs\");});\nd(\"customer-site/home/locks/index/controller\", function(){ return i(\"customer-site/home/locks/index/controller.ts\");});\nd(\"customer-site/home/locks/rules/route\", function(){ return i(\"customer-site/home/locks/rules/route.ts\");});\nd(\"customer-site/home/mpers-devices/route\", function(){ return i(\"customer-site/home/mpers-devices/route.ts\");});\nd(\"customer-site/home/mpers-devices/edit/template\", function(){ return i(\"customer-site/home/mpers-devices/edit/template.hbs\");});\nd(\"customer-site/home/mpers-devices/edit/controller\", function(){ return i(\"customer-site/home/mpers-devices/edit/controller.ts\");});\nd(\"customer-site/home/mpers-devices/edit/route\", function(){ return i(\"customer-site/home/mpers-devices/edit/route.ts\");});\nd(\"customer-site/home/mpers-devices/index/template\", function(){ return i(\"customer-site/home/mpers-devices/index/template.hbs\");});\nd(\"customer-site/home/mpers-devices/index/controller\", function(){ return i(\"customer-site/home/mpers-devices/index/controller.ts\");});\nd(\"customer-site/home/noise/template\", function(){ return i(\"customer-site/home/noise/template.hbs\");});\nd(\"customer-site/home/noise/controller\", function(){ return i(\"customer-site/home/noise/controller.ts\");});\nd(\"customer-site/home/noise/route\", function(){ return i(\"customer-site/home/noise/route.ts\");});\nd(\"customer-site/home/partitions/route\", function(){ return i(\"customer-site/home/partitions/route.ts\");});\nd(\"customer-site/home/partitions/arming-schedules/route\", function(){ return i(\"customer-site/home/partitions/arming-schedules/route.ts\");});\nd(\"customer-site/home/partitions/edit/template\", function(){ return i(\"customer-site/home/partitions/edit/template.hbs\");});\nd(\"customer-site/home/partitions/edit/controller\", function(){ return i(\"customer-site/home/partitions/edit/controller.ts\");});\nd(\"customer-site/home/partitions/edit/route\", function(){ return i(\"customer-site/home/partitions/edit/route.ts\");});\nd(\"customer-site/home/partitions/index/template\", function(){ return i(\"customer-site/home/partitions/index/template.hbs\");});\nd(\"customer-site/home/partitions/index/controller\", function(){ return i(\"customer-site/home/partitions/index/controller.ts\");});\nd(\"customer-site/home/partitions/reports/route\", function(){ return i(\"customer-site/home/partitions/reports/route.ts\");});\nd(\"customer-site/home/partitions/rules/route\", function(){ return i(\"customer-site/home/partitions/rules/route.ts\");});\nd(\"customer-site/home/partitions/smart-arming/route\", function(){ return i(\"customer-site/home/partitions/smart-arming/route.ts\");});\nd(\"customer-site/home/sensors/reports/route\", function(){ return i(\"customer-site/home/sensors/reports/route.ts\");});\nd(\"customer-site/home/sensors/rules/route\", function(){ return i(\"customer-site/home/sensors/rules/route.ts\");});\nd(\"customer-site/home/shades/route\", function(){ return i(\"customer-site/home/shades/route.ts\");});\nd(\"customer-site/home/shades/edit/template\", function(){ return i(\"customer-site/home/shades/edit/template.hbs\");});\nd(\"customer-site/home/shades/edit/route\", function(){ return i(\"customer-site/home/shades/edit/route.ts\");});\nd(\"customer-site/home/shades/index/template\", function(){ return i(\"customer-site/home/shades/index/template.hbs\");});\nd(\"customer-site/home/shades/index/controller\", function(){ return i(\"customer-site/home/shades/index/controller.ts\");});\nd(\"customer-site/home/shades/schedules/route\", function(){ return i(\"customer-site/home/shades/schedules/route.ts\");});\nd(\"customer-site/home/sump-pumps/route\", function(){ return i(\"customer-site/home/sump-pumps/route.ts\");});\nd(\"customer-site/home/sump-pumps/edit/template\", function(){ return i(\"customer-site/home/sump-pumps/edit/template.hbs\");});\nd(\"customer-site/home/sump-pumps/edit/route\", function(){ return i(\"customer-site/home/sump-pumps/edit/route.ts\");});\nd(\"customer-site/home/sump-pumps/index/template\", function(){ return i(\"customer-site/home/sump-pumps/index/template.hbs\");});\nd(\"customer-site/home/sump-pumps/index/controller\", function(){ return i(\"customer-site/home/sump-pumps/index/controller.ts\");});\nd(\"customer-site/home/switches/route\", function(){ return i(\"customer-site/home/switches/route.ts\");});\nd(\"customer-site/home/switches/edit/template\", function(){ return i(\"customer-site/home/switches/edit/template.hbs\");});\nd(\"customer-site/home/switches/edit/route\", function(){ return i(\"customer-site/home/switches/edit/route.ts\");});\nd(\"customer-site/home/switches/index/template\", function(){ return i(\"customer-site/home/switches/index/template.hbs\");});\nd(\"customer-site/home/switches/index/controller\", function(){ return i(\"customer-site/home/switches/index/controller.ts\");});\nd(\"customer-site/home/thermostats/boilers/template\", function(){ return i(\"customer-site/home/thermostats/boilers/template.hbs\");});\nd(\"customer-site/home/thermostats/boilers/controller\", function(){ return i(\"customer-site/home/thermostats/boilers/controller.ts\");});\nd(\"customer-site/home/thermostats/boilers/route\", function(){ return i(\"customer-site/home/thermostats/boilers/route.ts\");});\nd(\"customer-site/home/thermostats/edit/template\", function(){ return i(\"customer-site/home/thermostats/edit/template.hbs\");});\nd(\"customer-site/home/thermostats/edit/route\", function(){ return i(\"customer-site/home/thermostats/edit/route.ts\");});\nd(\"customer-site/home/thermostats/index/template\", function(){ return i(\"customer-site/home/thermostats/index/template.hbs\");});\nd(\"customer-site/home/thermostats/index/controller\", function(){ return i(\"customer-site/home/thermostats/index/controller.ts\");});\nd(\"customer-site/home/thermostats/index/route\", function(){ return i(\"customer-site/home/thermostats/index/route.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/template\", function(){ return i(\"customer-site/home/thermostats/peak-protect/template.hbs\");});\nd(\"customer-site/home/thermostats/peak-protect/route\", function(){ return i(\"customer-site/home/thermostats/peak-protect/route.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/index/template\", function(){ return i(\"customer-site/home/thermostats/peak-protect/index/template.hbs\");});\nd(\"customer-site/home/thermostats/peak-protect/index/controller\", function(){ return i(\"customer-site/home/thermostats/peak-protect/index/controller.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/index/route\", function(){ return i(\"customer-site/home/thermostats/peak-protect/index/route.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/schedule/template\", function(){ return i(\"customer-site/home/thermostats/peak-protect/schedule/template.hbs\");});\nd(\"customer-site/home/thermostats/peak-protect/schedule/controller\", function(){ return i(\"customer-site/home/thermostats/peak-protect/schedule/controller.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/schedule/route\", function(){ return i(\"customer-site/home/thermostats/peak-protect/schedule/route.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/utility/template\", function(){ return i(\"customer-site/home/thermostats/peak-protect/utility/template.hbs\");});\nd(\"customer-site/home/thermostats/peak-protect/utility/controller\", function(){ return i(\"customer-site/home/thermostats/peak-protect/utility/controller.ts\");});\nd(\"customer-site/home/thermostats/peak-protect/utility/route\", function(){ return i(\"customer-site/home/thermostats/peak-protect/utility/route.ts\");});\nd(\"customer-site/home/thermostats/reports/route\", function(){ return i(\"customer-site/home/thermostats/reports/route.ts\");});\nd(\"customer-site/home/thermostats/rules/route\", function(){ return i(\"customer-site/home/thermostats/rules/route.ts\");});\nd(\"customer-site/home/thermostats/schedules/edit/route\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/route.ts\");});\nd(\"customer-site/home/thermostats/schedules/edit/index/template\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/index/template.hbs\");});\nd(\"customer-site/home/thermostats/schedules/edit/index/controller\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/index/controller.ts\");});\nd(\"customer-site/home/thermostats/schedules/edit/schedule-type/template\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/schedule-type/template.hbs\");});\nd(\"customer-site/home/thermostats/schedules/edit/schedule-type/controller\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/schedule-type/controller.ts\");});\nd(\"customer-site/home/thermostats/schedules/edit/schedule-type/route\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/schedule-type/route.ts\");});\nd(\"customer-site/home/thermostats/schedules/edit/setpoint/template\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/setpoint/template.hbs\");});\nd(\"customer-site/home/thermostats/schedules/edit/setpoint/controller\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/setpoint/controller.ts\");});\nd(\"customer-site/home/thermostats/schedules/edit/setpoint/route\", function(){ return i(\"customer-site/home/thermostats/schedules/edit/setpoint/route.ts\");});\nd(\"customer-site/home/thermostats/schedules/index/template\", function(){ return i(\"customer-site/home/thermostats/schedules/index/template.hbs\");});\nd(\"customer-site/home/thermostats/schedules/index/controller\", function(){ return i(\"customer-site/home/thermostats/schedules/index/controller.ts\");});\nd(\"customer-site/home/thermostats/schedules/index/route\", function(){ return i(\"customer-site/home/thermostats/schedules/index/route.ts\");});\nd(\"customer-site/home/thermostats/smart-schedule-audit/template\", function(){ return i(\"customer-site/home/thermostats/smart-schedule-audit/template.hbs\");});\nd(\"customer-site/home/thermostats/smart-schedule-audit/controller\", function(){ return i(\"customer-site/home/thermostats/smart-schedule-audit/controller.ts\");});\nd(\"customer-site/home/thermostats/smart-schedule-audit/route\", function(){ return i(\"customer-site/home/thermostats/smart-schedule-audit/route.ts\");});\nd(\"customer-site/home/thermostats/thermostat-grouping/template\", function(){ return i(\"customer-site/home/thermostats/thermostat-grouping/template.hbs\");});\nd(\"customer-site/home/thermostats/thermostat-grouping/controller\", function(){ return i(\"customer-site/home/thermostats/thermostat-grouping/controller.js\");});\nd(\"customer-site/home/thermostats/thermostat-grouping/route\", function(){ return i(\"customer-site/home/thermostats/thermostat-grouping/route.js\");});\nd(\"customer-site/home/thermostats/thermostat-reward-program/route\", function(){ return i(\"customer-site/home/thermostats/thermostat-reward-program/route.ts\");});\nd(\"customer-site/home/water/route\", function(){ return i(\"customer-site/home/water/route.ts\");});\nd(\"customer-site/home/water/edit/template\", function(){ return i(\"customer-site/home/water/edit/template.hbs\");});\nd(\"customer-site/home/water/edit/route\", function(){ return i(\"customer-site/home/water/edit/route.ts\");});\nd(\"customer-site/home/water/index/template\", function(){ return i(\"customer-site/home/water/index/template.hbs\");});\nd(\"customer-site/home/water/index/controller\", function(){ return i(\"customer-site/home/water/index/controller.ts\");});\nd(\"customer-site/home/water/rules/route\", function(){ return i(\"customer-site/home/water/rules/route.ts\");});\nd(\"customer-site/home/wellness/reports/route\", function(){ return i(\"customer-site/home/wellness/reports/route.ts\");});\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n \\n {{#if this.selectedSmartChime}}\\n \\n {{/if}}\\n \\n
\\n\\n
\\n \\n \\n\\n \\n {{!-- @glint-expect-error This will start working when we switch to PageView. --}}\\n {{yield data view.updateNativeToolbarButtons view.disposeNativeButtons}}\\n \\n\\n \\n \\n
\\n
\\n
\",{ moduleName: \"customer-site/components/access-point/base-access-point-settings/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { RouteViewSignature } from '@adc/ui-components/components/route-view';\nimport type Rule from 'customer-site/models/automation/rules/rule';\nimport type SmartChimePermission from 'customer-site/models/devices/permissions/smart-chime-permission';\nimport type SmartChimeDevice from 'customer-site/models/devices/smart-chime-device';\nimport type SmartGateway from 'customer-site/models/devices/smart-gateway';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport './_style.scss';\n\ntype RouteViewYield = RouteViewSignature['Blocks']['default'][0];\n\ninterface BaseAccessPointSettingsSignature {\n Args: {\n viewContainerClass: string;\n model: {\n smartChimes: Promise;\n selectedSmartChime: Promise;\n smartGateways: Promise;\n networksAttachedToVideoCameras: Promise;\n smartChimePermissions: Promise;\n chimeRules: Promise;\n };\n };\n Blocks: {\n default: [\n {\n smartChimes: SmartChimeDevice[];\n selectedSmartChime: SmartChimeDevice;\n smartGateways: SmartGateway;\n networksAttachedToVideoCameras: unknown[];\n smartChimePermissions: SmartChimePermission;\n chimeRules: Rule[];\n },\n RouteViewYield['updateNativeToolbarButtons'],\n RouteViewYield['disposeNativeButtons']\n ];\n };\n}\n\n/**\n * @classdesc\n * Controller for the smart chime network settings route.\n */\n@intlPath({ path: 'access-point/base-access-point-settings' })\nexport default class BaseAccessPointSettings extends Component {\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n\n /**\n * The currently selected smart chime device the user wants to view\n * settings for.\n */\n @tracked selectedSmartChime?: SmartChimeDevice;\n\n /**\n * Customer installed smart chime devices.\n */\n @tracked smartChimes: SmartChimeDevice[] = [];\n\n /**\n * Dropdown select items for selecting smart chime devices on account\n * to view wireless settings for.\n *\n * @type {Array}\n */\n @computed('smartChimes.[]')\n get smartChimesDropSelectItems(): Array {\n return this.smartChimes.map(({ description, id }) =>\n DropdownSelectItem.create({\n name: description,\n value: id\n })\n );\n }\n\n /**\n * When the models are resolved, set the initial selected smart chime device to be\n * first one in list.\n *\n * @param {resolvedModel: Record}\n */\n @action dataLoaded({\n smartChimes,\n selectedSmartChime\n }: {\n smartChimes: SmartChimeDevice[];\n selectedSmartChime: SmartChimeDevice;\n }): void {\n this.smartChimes = smartChimes;\n this.selectedSmartChime = selectedSmartChime;\n }\n\n /**\n * Updates the selected Smart Chime when user changes the dropdown\n */\n @action selectNewSmartChime(accessPointDeviceId: string): void {\n // TODO: This ignore is an existing deprecation that must be refactored, do not copy this usage\n // eslint-disable-next-line @adc/ember/no-context-manager-transition\n this.contextManager.transitionToRouteId(\n this.contextManager.currentRouteData?.routeItem?.routeId as number,\n undefined,\n undefined,\n accessPointDeviceId\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessPoint::BaseAccessPointSettings': typeof BaseAccessPointSettings;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |devices|>\\n {{#each devices as |_ idx|}}\\n <@card\\n @devices={{devices}}\\n @cardId={{idx}}\\n @deviceIndex={{idx}}\\n />\\n {{/each}}\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/detail-layout.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './detail-layout.hbs'; */\nimport Component from '@glimmer/component';\n\nimport type { ComponentLike } from '@glint/template';\nimport type { BaseCardSignature } from 'customer-site/components/dashboard-cards/devices/base-card';\nimport type BaseDeviceModel from 'customer-site/models/devices/base-device';\n\nexport interface DashboardCardsDetailLayoutSignature {\n Args: {\n card: ComponentLike>;\n devices: Promise;\n };\n}\n\nexport default class DashboardCardsDetailLayout extends Component<\n DashboardCardsDetailLayoutSignature\n> {}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::DetailLayout': typeof DashboardCardsDetailLayout;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless (and (and this.isIconCard this.shouldShowFloorUI) (not this.showListOnHome))}}\\n

{{tc this \\'elevators\\'}}

\\n {{/unless}}\\n\\n {{#if (and (and this.isIconCard this.shouldShowFloorUI) (not this.showListOnHome))}}\\n

{{this.elevatorNameForFloorList}}

\\n {{/if}}\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if (and this.isHomeCard this.showListOnHome)}}\\n \\n \\n {{else}}\\n {{#if this.shouldShowFloorUI}}\\n \\n \\n
\\n \\n \\n \\n
\\n {{else}}\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n {{#if device.displayDate}}\\n

{{device.displayDate}}

\\n {{/if}}\\n\\n {{#if device.stateInfo.additionalStateDescriptions}}\\n {{#each-in device.stateInfo.additionalStateDescriptions as |_ value|}}\\n

{{value}}

\\n {{/each-in}}\\n {{/if}}\\n {{/unless}}\\n \\n \\n {{/if}}\\n {{/if}}\\n \\n\\n <:prompt-edit>\\n {{#if this.editDevice.isHiddenState}}\\n \\n {{else}}\\n \\n {{/if}}\\n \\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/access-control-elevator-devices-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { ICON_ELEVATOR } from 'customer-site/components/icons/circles/device-status/index';\nimport { Buzz } from 'customer-site/enums/CardReaderState';\nimport { EmberAccessControlElevatorDevices } from 'customer-site/enums/CustomerPageUrl';\nimport { Closed, Open, Unknown, SyncUnlocked, SyncLocked, Hidden } from 'customer-site/enums/ElevatorFloorState';\nimport AccessControlElevatorDevice from 'customer-site/models/devices/access-control-elevator-device';\nimport { getAccessPointStateCSS } from 'customer-site/utils/access-control-access-point';\nimport { intlPath } from '@adc/i18n/path';\nimport { getDeviceRefreshButton, getDrillToDetailsButton } from '../../card-toolbar/index';\nimport AccessPointCard from '../access-point-card/index';\nimport { getDeviceItemAction } from '../edit-state/index';\n\nimport type ElevatorFloorDevice from 'customer-site/models/devices/elevator-floor-device';\nimport type { ToolbarButton } from '../../card-toolbar/index';\nimport './_style.scss';\nimport type AccessControlPermissionsCollection from 'customer-site/models/access-control/access-control-permissions-collection';\nimport type { BaseCardSignature } from '../base-card';\nimport type { DeviceItemAction } from '../edit-state/index';\n\nexport interface ACElevatorCardSignature extends BaseCardSignature {\n Args: BaseCardSignature['Args'] & {\n acPermissions: AccessControlPermissionsCollection;\n };\n}\n\n/**\n * @classdesc\n * The card for displaying/editing access control elevator devices state.\n */\n@intlPath({ path: 'dashboard-cards/devices/access-control-elevator-devices-card' })\nexport default class AccessControlElevatorDevicesComponent extends AccessPointCard<\n AccessControlElevatorDevice,\n ACElevatorCardSignature\n> {\n // region Overrides\n\n /** @override */\n iconType = ICON_ELEVATOR;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /**@override */\n get rightToolbarButtons(): ToolbarButton[] {\n const buttons = [this.batteryButton];\n\n if (this.showDrillToDetailsButton) {\n buttons.push(getDrillToDetailsButton(this.intl, () => this.drillToDetailsRoute()));\n }\n\n if (this.showRefreshButton) {\n buttons.push(getDeviceRefreshButton(this.intl, () => this.cardFloorDevices.invoke('refreshState')));\n }\n\n // Compact in case battery button was undefined.\n return buttons.compact();\n }\n\n /** @override */\n detailsRouteId = EmberAccessControlElevatorDevices;\n\n /**\n * Returns the translation path for the given state. (used for buttons)\n */\n private getAccessPointStateText(state: number): string {\n return this.intl.t(\n {\n [Open]: 'generic.unlock',\n [Closed]: 'generic.lock',\n [SyncUnlocked]: 'components.dashboard-cards.devices.access-control-elevator-devices-card.sync',\n [Buzz]: 'components.dashboard-cards.devices.access-control-access-point-devices-card.buzzOpen'\n }[state] as string\n );\n }\n\n public clickUnlockAllButton = async (): Promise => {\n //get the elevator itself (not the floors)\n const editDevice = this.cardDevices[0];\n // Is the device state unknown?\n if (editDevice.desiredState === editDevice.getUnknownState()) {\n editDevice.refreshState();\n } else {\n // Execute state transition on the elevator model.\n await editDevice.executeStateChange(Open, false);\n //refresh all the floor states\n this.cardFloorDevices.forEach((floor) => {\n floor.refreshState();\n });\n }\n };\n\n public clickBuzzAllButton = (): void => {\n //get the elevator itself (not the floors)\n const editDevice = this.cardDevices[0];\n // Is the device state unknown?\n if (editDevice.desiredState === editDevice.getUnknownState()) {\n editDevice.refreshState();\n } else {\n // Execute state transition on the elevator model.\n editDevice.executeStateChange(Buzz, false);\n }\n };\n\n public clickLockAllButton = async (): Promise => {\n //get the elevator itself (not the floors)\n const editDevice = this.cardDevices[0];\n // Is the device state unknown?\n if (editDevice.desiredState === editDevice.getUnknownState()) {\n editDevice.refreshState();\n } else {\n // Execute state transition on the elevator model.\n await editDevice.executeStateChange(Closed, false);\n //refresh all the floor states\n this.cardFloorDevices.forEach((floor) => {\n floor.refreshState();\n });\n }\n };\n\n /** @override */\n getDeviceEditActions(device: AccessControlElevatorDevice): DeviceItemAction[] {\n const refreshAction = this.getRefreshDeviceAction(\n device,\n getAccessPointStateCSS(Unknown),\n this.iconType,\n Unknown\n );\n if (refreshAction) {\n return [refreshAction];\n }\n const actions: Record = {\n [Unknown]: [Unknown]\n };\n\n if (device instanceof AccessControlElevatorDevice) {\n const { canBuzz, canLockUnlock } = device;\n if (canLockUnlock && canBuzz) {\n actions[Closed] = [Open, Buzz];\n actions[Open] = [Closed];\n } else if (canBuzz) {\n actions[Closed] = [Buzz];\n }\n } else {\n const { canLockUnlock, hasScheduledAccess, isElevatorBayUnlocked } = device;\n if (canLockUnlock && !isElevatorBayUnlocked) {\n if (hasScheduledAccess) {\n actions[Closed] = [Open, SyncUnlocked];\n actions[Open] = [Closed, SyncUnlocked];\n } else {\n actions[Closed] = [Open];\n actions[Open] = [Closed];\n }\n actions[SyncUnlocked] = [Closed];\n actions[SyncLocked] = [Open];\n }\n }\n\n // Hidden State AC devices display all actions.\n actions[Hidden] = [Open, Closed];\n\n return (actions[device.desiredState] ?? []).map((state) =>\n getDeviceItemAction(\n this.getAccessPointStateText(state),\n getAccessPointStateCSS(state),\n this.iconType,\n state\n )\n );\n }\n\n get cardFloorDevices(): ElevatorFloorDevice[] {\n return this.cardDevices[0].getSubItems() as unknown as ElevatorFloorDevice[];\n }\n get elevatorNameForFloorList(): string {\n return this.cardDevices[0].description;\n }\n\n get shouldShowFloorUI(): boolean {\n return this.cardFloorDevices.length > 0;\n }\n\n get showListOnHome(): boolean {\n return this.cardDevices.length > 1 && this.isHomeCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'generic.devices.gates\\'}}

\\n {{/unless}}\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n \\n {{else}}\\n \\n {{/if}}\\n \\n\\n <:prompt-edit>\\n {{#if this.editDevice.isHiddenState}}\\n \\n {{else}}\\n \\n {{/if}}\\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/gate-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberGates } from '../../../../enums/CustomerPageUrl';\nimport { Closed, Open, Unknown, Hidden } from '../../../../enums/GateStatus';\nimport { ICON_GATE } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\nimport { getDeviceItemAction } from '../edit-state/index';\n\nimport './_style.scss';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type GateModel from 'customer-site/models/devices/gate';\nimport type { BaseCardSignature } from '../base-card';\nimport type { DeviceItemAction } from '../edit-state/index';\n\nconst GATE_CSS = {\n [Open]: 'open',\n [Closed]: 'closed',\n [Unknown]: 'unknown'\n};\n\n/**\n * @classdesc\n * The card for displaying/editing gate device state.\n */\n@intlPath({ path: 'dashboard-cards/devices/gate-card' })\nexport default class GateCard extends BaseDeviceCard> {\n @service declare notificationManager: NotificationManager;\n\n // region Overrides\n\n /** @override */\n iconType = ICON_GATE;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /** @override */\n detailsRouteId = EmberGates;\n\n /** @override */\n getDeviceEditActions(device: GateModel): DeviceItemAction[] {\n if (!device.canChangeState) {\n // If device cannot change state, then no device edit action.\n return [];\n }\n\n // Is the refresh action valid?\n const refreshAction = this.getRefreshDeviceAction(device, GATE_CSS[Unknown], ICON_GATE, Unknown);\n if (refreshAction) {\n // Return just that.\n return [refreshAction];\n }\n\n const actions = {\n [Unknown]: [Closed, Open],\n [Open]: [Closed],\n [Closed]: [Open],\n [Hidden]: [Closed, Open]\n }[device.desiredState];\n\n return (actions || []).map((state: keyof typeof GATE_CSS) =>\n getDeviceItemAction(\n this.intl.t(`home.gates.${state === Open ? 'open' : 'close'}`),\n GATE_CSS[state],\n ICON_GATE,\n state\n )\n );\n }\n\n // endregion\n\n @action\n editGate(device: GateModel): void {\n const isOpening = device.isInTransition() && device.desiredState === Open;\n\n // If the gate doesn't support remote close, show notification with button when the gate is open or is opening.\n if (!device.supportsRemoteClose && (device.state === Open || isOpening)) {\n this.notificationManager.addNotification(\n this.intl.t('home.gates.noRemoteClose'),\n 'warning',\n // Add Refresh Status button.\n [\n {\n text: this.intl.t('home.gates.refreshStatus'),\n action: () => {\n device.refreshState();\n }\n }\n ],\n 0,\n true,\n false,\n 'warning'\n );\n return;\n }\n\n this.editDeviceState(device);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if @device.supportsColorControl}}\\n
\\n
\\n
\\n{{/if}}\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/light-card/color-swatch/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type BaseLight from 'customer-site/models/devices/base-light';\n\nexport interface LightCardColorSwatchSignature {\n Element: HTMLDivElement;\n Args: {\n device: BaseLight;\n };\n}\n\nconst LightCardColorSwatch = templateOnlyComponent();\nexport default LightCardColorSwatch;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::LightCard::ColorSwatch': typeof LightCardColorSwatch;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{this.cardTitle}}

\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n \\n <:icon as |device|>\\n \\n \\n\\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n \\n {{else}}\\n \\n \\n \\n {{#unless this.isHomeCard}}\\n
\\n \\n \\n
\\n {{/unless}}\\n {{/if}}\\n \\n\\n <:prompt-edit>\\n {{#if this.editDeviceActions}}\\n \\n\\n {{else if this.editDevice}}\\n
\\n \\n {{#if this.editDevice.supportsColorControl}}\\n \\n {{else}}\\n {{! Outer div is needed for IE11 flex-box workaround. }}\\n
\\n

{{coalesce this.editDevice.lightLevel \\'0\\'}}%

\\n
\\n {{/if}}\\n \\n\\n \\n\\n {{#if this.isColorPickerShown}}\\n \\n {{/if}}\\n
\\n\\n {{/if}}\\n \\n \\n\\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/light-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { tracked } from '@glimmer/tracking';\nimport ArrayProxy from '@ember/array/proxy';\nimport { action, computed, setProperties, get, set } from '@ember/object';\nimport { notEmpty } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { isPresent } from '@ember/utils';\nimport LightGroupModal from 'customer-site/components/modals/lights/light-group-modal';\nimport { intlPath } from '@adc/i18n/path';\nimport { hexToHSL, hslToHex } from '@adc/ui-components/utils/color-pickers/color';\nimport { EmberLights, EmberLightsGroupDetails } from '../../../../enums/CustomerPageUrl';\nimport { WarmToCool, RGBW } from '../../../../enums/LightColorFormat';\nimport { On, Off, NoState, Offline } from '../../../../enums/LightStatus';\nimport { STATE_OFF, STATE_ON, STATE_UNKNOWN } from '../../../../utils/dimmer-switch';\nimport { ICON_LIGHT } from '../../../icons/circles/device-status/index';\nimport { createToolbarButton } from '../../card-toolbar/index';\nimport BaseDeviceCard from '../base-card';\nimport { getDeviceItemAction } from '../edit-state/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type { Color, Hue, Lightness, Saturation } from '@adc/ui-components/utils/color-pickers/color';\nimport type LightModel from 'customer-site/models/devices/light';\nimport type LightGroupModel from 'customer-site/models/devices/light-group';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { SafeString } from 'handlebars';\nimport type { ToolbarButton } from '../../card-toolbar/index';\nimport type { CloseTargetInfos } from '../base-card';\nimport type { BaseCardSignature } from '../base-card';\nimport type { DeviceItemAction } from '../edit-state/index';\n\ntype DIMMER_STATE = typeof STATE_ON | typeof STATE_OFF;\n\ninterface LightCardSignature extends BaseCardSignature {\n Args: BaseCardSignature['Args'] & {\n lights: LightModel[] | ArrayProxy;\n lightGroups: LightGroupModel[];\n group: LightGroupModel;\n };\n}\n\nconst LIGHT_CSS = {\n [On]: 'on',\n [Off]: 'off',\n [NoState]: 'no-state',\n [Offline]: 'offline'\n};\n\nconst DIMMER_STATES = {\n [STATE_ON]: On,\n [STATE_OFF]: Off\n};\n\n/**\n * Returns the computed dimmer state based on current/desired device state.\n */\nfunction getComputedDimmerState(device?: LightModel): string {\n if (!device) {\n return STATE_UNKNOWN;\n }\n\n const { state, desiredState } = device;\n\n // If desired state has state use that, otherwise use normal state.\n return {\n [On]: STATE_ON,\n [Off]: STATE_OFF\n }[desiredState !== NoState ? desiredState : state] as string;\n}\n\n/**\n * @classdesc\n * The card for displaying/editing light device state.\n */\n@intlPath({ path: 'dashboard-cards/devices/light-card' })\nexport default class LightCard extends BaseDeviceCard {\n @service declare intl: ADCIntlService;\n @service declare modals: ModalService;\n @service declare navigation: NavigationService;\n\n // region Overrides\n\n /** @override */\n detailsRouteId = EmberLights;\n\n /** @override */\n iconType = this.lightDeviceIcon;\n\n /**\n * @override\n *\n * Base-Card determines icon card based on if there are more than 2 devices.\n * A light group can contain less than two devices; thus, we need another check to determine if it's an icon card or light group card.\n */\n @computed('isLightGroupCard', 'cardDevices.[]')\n get isIconCard(): boolean {\n return !this.isLightGroupCard && super.isIconCard;\n }\n\n /**\n * @override\n *\n * HomeCard returns all the devices, and icon card returns one device.\n * LightGroupCard need to return all the devices but is not a home card. Thus, we need this override.\n */\n @computed('isLightGroupCard', 'args.devices.[]')\n get cardDevices(): LightModel[] {\n if (this.isLightGroupCard) {\n const { devices } = this.args;\n if (devices) {\n return devices instanceof ArrayProxy ? devices.toArray() : devices;\n }\n }\n\n return super.cardDevices;\n }\n\n /** @override */\n get showDrillToDetailsButton(): boolean {\n return (this.isHomeCard || this.isLightGroupCard) && !!this.navigation.getRouteItem(this.detailsRouteId);\n }\n\n /** @override */\n getDeviceModalButton(): ToolbarButton {\n if (this.isLightGroupCard) {\n return createToolbarButton(this.intl.tc(this, 'configureDevices'), 'cog', {\n fn: () => {\n // Open modal.\n const model = {\n allLights: this.args.lights.slice(),\n group: this.args.group,\n isManageGroupModal: true\n };\n\n this.modals.showModal(LightGroupModal, model, () => {\n model.group.rollbackAttributes();\n return true;\n });\n }\n });\n }\n return super.getDeviceModalButton()!;\n }\n\n /** @override */\n @computed('isHomeCard', 'isLightGroupCard', 'cardDevices.0.stateTrackingEnabled')\n get showRefreshButton(): boolean {\n const {\n cardDevices: [device]\n } = this;\n return !this.isHomeCard && !this.isLightGroupCard && device?.stateTrackingEnabled;\n }\n\n @computed('cardDevices.0.deviceIcon.icon')\n get lightDeviceIcon(): string {\n return this.cardDevices[0]?.deviceIcon?.icon ?? ICON_LIGHT;\n }\n\n /** @override */\n drillToDetailsRoute(): void {\n if (this.isLightGroupCard) {\n this.contextManager.transitionToNativeRoute(EmberLightsGroupDetails, this.args.group.id);\n return;\n }\n\n super.drillToDetailsRoute();\n }\n\n /** @override */\n getDeviceEditActions(device: LightModel): DeviceItemAction[] {\n if (!device.canChangeState) {\n // If device cannot change state, then no device edit action.\n return [];\n }\n\n // Is the refresh action valid?\n const refreshAction = this.getRefreshDeviceAction(device, LIGHT_CSS[Offline], ICON_LIGHT, Offline);\n if (refreshAction) {\n // Return just that.\n return [refreshAction];\n }\n\n if (device.isDimmer) {\n // No actions for dimmer switch.\n return [];\n }\n\n const actions: number[] | undefined = {\n [Offline]: [Offline],\n [NoState]: [Off, On],\n [On]: [Off],\n [Off]: [On]\n }[device.desiredState];\n\n return (actions ?? []).map((state: keyof typeof LIGHT_CSS) =>\n getDeviceItemAction(\n this.intl.t(`home.lights.turn-${LIGHT_CSS[state]}`),\n LIGHT_CSS[state],\n ICON_LIGHT,\n state\n )\n );\n }\n\n /** @override */\n get closeTargetInfo(): CloseTargetInfos[] {\n return [\n ...super.closeTargetInfo,\n {\n element: document.body,\n selector: '.lightbulb-color-picker'\n }\n ];\n }\n\n /** @override */\n startDeviceEditing(): void {\n const editDevice = this.editDevice;\n\n // Is a new bulb being edited AND does it support colors?\n if (editDevice?.supportsColorControl) {\n // Update hsl components.\n Object.assign(this, hexToHSL(`#${editDevice.hexColor}`.replace('##', '#')));\n }\n }\n\n /** @override */\n endDeviceEditing(): void {\n const editDevice = this.editDevice;\n if (editDevice) {\n // Are there model changes AND are we not already saving them?\n if (get(editDevice, 'hasDirtyAttributes') && !editDevice.isInTransition()) {\n set(editDevice, 'shouldUpdateMultiLevelState', true);\n editDevice.save();\n }\n }\n\n // Hide CP.\n this.isColorPickerShown = false;\n\n super.endDeviceEditing();\n }\n\n // endregion\n\n // region Component state\n\n /**\n * The hue color component of the current editDevice.\n */\n @tracked hue: Hue = 0;\n\n /**\n * The saturation color component of the current editDevice.\n */\n @tracked saturation: Saturation = 0;\n\n /**\n * The lightness color component of the current editDevice.\n */\n @tracked lightness: Lightness = 100;\n\n /**\n * Indicates we should display the color picker.\n */\n @tracked isColorPickerShown = false;\n\n // endregion\n\n // region Computed properties\n\n /**\n * The dimmer switch state (on/off).\n */\n @tracked _dimmerState?: DIMMER_STATE;\n\n get dimmerState(): DIMMER_STATE {\n return (this._dimmerState ?? getComputedDimmerState(this.editDevice)) as DIMMER_STATE;\n }\n\n set dimmerState(v: DIMMER_STATE) {\n this._dimmerState = v;\n }\n\n /**\n * The computed style for the edit device (color bulbs).\n */\n @computed('editDevice.{supportsColorControl,computedColor}')\n get editDeviceStyle(): SafeString {\n const editDevice = this.editDevice;\n return htmlSafe(editDevice?.supportsColorControl ? `color: ${editDevice.computedColor};` : '');\n }\n\n /**\n * The ID of the element the color picker should be anchored to.\n */\n @computed('editDevice.id')\n get cpAnchorId(): string {\n const id = this.editDevice?.id ?? '';\n return `cp-anchor-${id}`;\n }\n\n /**\n * Indicates the current selected color format for this bulb is temperature (WarmToCool).\n */\n @computed('editDevice.{supportsWhiteLightColorControl,lightColorFormat}')\n get cpIsTemperatureFormat(): boolean {\n const editDevice = this.editDevice;\n return (editDevice?.supportsWhiteLightColorControl && editDevice?.lightColorFormat === WarmToCool) ?? false;\n }\n\n /**\n * The path to the light bulb color picker preset backgrounds.\n */\n get colorPresetsBackground(): string {\n return this.contextManager.getStaticResourcePath('images/color-preset-backgrounds');\n }\n\n /**\n *\n * Returns true if this light card is light group card.\n */\n @notEmpty('args.group')\n declare isLightGroupCard: boolean;\n\n /**\n * Returns title for card based on whether on home screen, or whether is a light group card\n */\n @computed('args.group.name', 'isHomeCard', 'isLightGroupCard')\n get cardTitle(): string {\n if (this.isHomeCard) {\n return this.intl.t('generic.devices.lightsAndSwitches');\n }\n\n if (this.isLightGroupCard) {\n return this.args.group.name;\n }\n\n return '';\n }\n\n // endregion\n\n // region Actions\n\n /**\n * Turn on all lights in a group.\n */\n @action\n turnOnLightsInGroup(group: LightGroupModel): void {\n group.turnOnLights();\n }\n\n /**\n * Turn off all lights in a group.\n */\n @action\n turnOffLightsInGroup(group: LightGroupModel): void {\n group.turnOffLights();\n }\n /**\n * Updates the dimmer state, saving if update is complete.\n */\n @action\n dimmerValueChanged(\n dimmerState: keyof typeof DIMMER_STATES,\n lightLevel: number,\n isFromSlider: boolean,\n isMouseUp: boolean\n ): void {\n // Convert the dimmer's state to the device state enum value.\n const desiredState = DIMMER_STATES[dimmerState];\n\n // Was the value change NOT caused by moving the slider OR is it a mouse up (indicates final slider move)?\n if (!isFromSlider || isMouseUp) {\n // Update the light level immediately.\n this.saveDeviceState(desiredState, {\n dimmerLevel: lightLevel\n });\n } else {\n // Update model without saving.\n setProperties(this.editDevice, { desiredState, lightLevel });\n }\n }\n\n /**\n * Makes the color picker visible.\n */\n @action\n showColorPicker(): void {\n if (this.editDevice?.supportsColorControl) {\n this.isColorPickerShown = true;\n }\n }\n\n /**\n * Called when the color value is changed by the user.\n */\n @action\n colorChanged(values: Color): void {\n const { percentWarmth, ...hslColor } = values,\n isPercentWarmth = isPresent(percentWarmth),\n props: Partial = {\n lightColorFormat: isPercentWarmth ? WarmToCool : RGBW\n };\n\n if (isPercentWarmth) {\n props.percentWarmth = percentWarmth;\n } else {\n Object.assign(this, hslColor);\n props.hexColor = hslToHex(hslColor);\n }\n\n // Update device model.\n setProperties(this.editDevice, props);\n }\n\n // endregion\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::LightCard': typeof LightCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default>\\n {{#if this.isHomeCard}}\\n

{{t \\'generic.devices.mpersDevices\\'}}

\\n {{else}}\\n
\\n

\\n {{this.getImeiDisplayText}}\\n

\\n
\\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/mpers-device-card/toolbar/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed } from '@ember/object';\nimport { equal, alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { EmberMpersDevicesEdit } from 'customer-site/enums/CustomerPageUrl';\nimport { createToolbarButton } from '../../../card-toolbar/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type RouterService from '@ember/routing/router-service';\nimport type BaseDevice from 'customer-site/models/devices/base-device';\nimport type MpersDevice from 'customer-site/models/devices/mpers-device';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { DashboardCardToolbarButtons } from '../../../card-toolbar/index';\nimport type { CardToolbarSignature } from '../../../card-toolbar/index';\n\ninterface DashboardCardsDevicesMpersDeviceCardToolbarSignature {\n Element: CardToolbarSignature['Element'];\n Args: CardToolbarSignature['Args'] & {\n cardDevices: BaseDevice[];\n deviceIndex?: number;\n };\n}\n\nexport default class DashboardCardsDevicesMpersDeviceCardToolbar extends Component {\n @service declare intl: ADCIntlService;\n @service declare navigation: NavigationService;\n @service declare router: RouterService;\n\n @equal('args.deviceIndex', undefined)\n declare isHomeCard: boolean;\n\n @alias('args.cardDevices.firstObject')\n declare model: MpersDevice;\n\n get leftButtons(): DashboardCardToolbarButtons {\n return this.isHomeCard\n ? []\n : [\n createToolbarButton(this.model.getSettingsText(), 'cog', {\n fn: this.navigateToProfileSettings\n })\n ];\n }\n\n get mpersDeviceRightButtons(): DashboardCardToolbarButtons {\n const { model } = this;\n\n if (!this.isHomeCard && model.signalStrength) {\n return [createToolbarButton(model.getSignalStrengthTitle(), model.getSignalStrengthIcon())];\n }\n\n return [];\n }\n\n get rightButtons(): DashboardCardToolbarButtons {\n return [...this.mpersDeviceRightButtons, ...(this.args.rightButtons ?? [])];\n }\n\n @computed('args.cardDevices', 'model.imeiId')\n get getImeiIdText(): string {\n return `${this.intl.t('generic.mpers.imei')} : ${this.model.imeiId}`;\n }\n\n @computed('args.cardDevices', 'model.{imeiId,imeiId.length}')\n get getImeiDisplayText(): string {\n return `...${this.model.imeiId?.substring(this.model.imeiId?.length - 4)}`;\n }\n\n @action navigateToProfileSettings(): void {\n this.navigation.transitionToRouteId(EmberMpersDevicesEdit, this.model.id);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::MpersDeviceCard::Toolbar': typeof DashboardCardsDevicesMpersDeviceCardToolbar;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n \\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

\\n {{device.lastActivityDescription}}\\n {{#if device.lastActivityUtc}}\\n {{ format-date-tz device.lastActivityUtc day=\\\"numeric\\\" month=\\\"numeric\\\" year=\\\"numeric\\\" hour=\\\"numeric\\\" minute=\\\"numeric\\\" }}\\n {{/if}}\\n

\\n {{/unless}}\\n \\n \\n {{else}}\\n \\n {{/if}}\\n \\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/mpers-device-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberMpersDevices } from '../../../../enums/CustomerPageUrl';\nimport { ICON_MPERS_DEVICE } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\n\nimport './_style.scss';\nimport type Store from '@ember-data/store';\nimport type MpersDeviceModel from 'customer-site/models/devices/mpers-device';\nimport type ContextManager from '../../../../services/context-manager';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * The card for displaying mpers-device.\n */\n@intlPath({ path: 'dashboard-cards/devices/mpers-device-card' })\nexport default class MpersDeviceCard extends BaseDeviceCard> {\n @service declare contextManager: ContextManager;\n @service declare store: Store;\n\n /** @override */\n iconType = ICON_MPERS_DEVICE;\n\n /** @override */\n detailsRouteId = EmberMpersDevices;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /** @override */\n get showBatteryButton(): boolean {\n return !this.isHomeCard;\n }\n\n @action\n goToDetails(): void {\n this.navigation.transitionToRouteId(EmberMpersDevices);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'generic.devices.noiseSensors\\'}}

\\n {{/unless}}\\n \\n \\n\\n <:card-body>\\n
\\n {{#if this.isIconCard}}\\n \\n {{else}}\\n \\n {{/if}}\\n
\\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/noise-sensor-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { computed } from '@ember/object';\nimport { createToolbarButton } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport { ICON_NOISE_SENSOR } from 'customer-site/components/icons/circles/device-status/index';\nimport { EmberNoise } from 'customer-site/enums/CustomerPageUrl';\nimport { EmberNoiseSettings } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\nimport BaseDeviceCard from '../base-card';\n\nimport type {\n ToolbarButton,\n DashboardCardToolbarButtons\n} from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport './_style.scss';\nimport type NoiseSensor from 'customer-site/models/devices/noise-sensor';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * @classdesc\n * The card for displaying the noise sensor card.\n */\n@intlPath({ path: 'dashboard-cards/devices/noise-sensor-card' })\nexport default class NoiseSensorCard extends BaseDeviceCard> {\n /** @override */\n iconType = ICON_NOISE_SENSOR;\n\n /** @override */\n detailsRouteId = EmberNoise;\n\n /** @override */\n @computed('isHomeCard')\n get commonLeftToolbarButtons(): DashboardCardToolbarButtons {\n if (this.isHomeCard) {\n return [];\n }\n\n return [this.getSettingsButton()];\n }\n\n /**\n * Creates the setting button that will redirect to the Noise Settings page for the Noise Sensor.\n */\n private getSettingsButton(): ToolbarButton {\n return createToolbarButton(this.intl.tc(this, 'configureThreshold'), 'cog', {\n fn: () => {\n this.navigation.transitionToRouteId(EmberNoiseSettings, this.cardDevices.firstObject?.id);\n }\n });\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'generic.devices.shades\\'}}

\\n {{/unless}}\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n \\n {{else}}\\n \\n {{#if device.batteryDetails.isLow}}\\n \\n {{/if}}\\n \\n {{/if}}\\n \\n\\n <:prompt-edit>\\n
\\n \\n \\n {{this.dimmerLevel}}%\\n \\n \\n\\n \\n
\\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/shade-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { STATE_ON, STATE_OFF } from 'customer-site/utils/dimmer-switch';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberShades } from '../../../../enums/CustomerPageUrl';\nimport { Open, Closed } from '../../../../enums/ShadeStatus';\nimport { ICON_SHADES } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\n\nimport './_style.scss';\nimport { debounceTask, cancelDebounce } from 'ember-lifeline';\n\nimport type ShadeModel from 'customer-site/models/devices/shade';\nimport type { BaseCardSignature } from '../base-card';\n\ntype DIMMER_STATE = typeof STATE_ON | typeof STATE_OFF;\n\n/**\n * @classdesc\n * Shared device dashboard and details route card.\n */\n@intlPath({ path: 'dashboard-cards/devices/shade-card' })\nexport default class DashboardCardsDevicesShadeCard extends BaseDeviceCard> {\n // region overrides\n\n iconType = ICON_SHADES;\n\n detailsRouteId = EmberShades;\n\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n // endregion\n\n @reads('editDevice')\n editShade?: ShadeModel;\n\n /**\n * The display dimmer level.\n */\n @tracked _dimmerLevel?: number;\n get dimmerLevel(): number {\n return this._dimmerLevel ?? this.editShade?.shadeLevel ?? 0;\n }\n set dimmerLevel(v: number) {\n this._dimmerLevel = v;\n }\n\n /**\n * The display dimmer state.\n */\n @tracked _dimmerState?: DIMMER_STATE;\n get dimmerState(): DIMMER_STATE {\n return this._dimmerState ?? (this.editShade?.state === Open ? STATE_ON : STATE_OFF);\n }\n set dimmerState(v: DIMMER_STATE) {\n this._dimmerState = v;\n }\n\n get stateCSS(): string {\n const { editDevice } = this;\n return editDevice?.getStateCssFn()() ?? '';\n }\n\n /**\n * Change actual shade state.\n */\n private updateDeviceStatus(dimmerLevel: number, desiredState: typeof Open | typeof Closed): void {\n const { editShade } = this;\n cancelDebounce(this, 'updateDeviceStatus');\n this.endDeviceEditing();\n\n // Update the server.\n if (editShade) {\n editShade.shadeLevel = dimmerLevel;\n editShade.executeStateChange(desiredState, false, {\n dimmerLevel\n });\n }\n }\n\n /**\n * Called when the shade level is changed via the slider control.\n */\n @action dimmerValueChanged(\n deviceState: DIMMER_STATE,\n deviceLevel: number,\n isFromSlider: boolean,\n isMouseUp: boolean\n ): void {\n const state = deviceState === STATE_ON ? Open : Closed;\n\n Object.assign(this, {\n dimmerState: deviceState,\n dimmerLevel: deviceLevel\n });\n\n if (!isFromSlider) {\n this.updateDeviceStatus(deviceLevel, state);\n return;\n }\n\n if (isMouseUp) {\n cancelDebounce(this, 'updateDeviceStatus');\n debounceTask(this, 'updateDeviceStatus', deviceLevel, state, 500);\n }\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'home.sump-pumps.title\\'}}

\\n {{/unless}}\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n \\n {{else}}\\n \\n {{/if}}\\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/sump-pump-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberSumpPumps } from '../../../../enums/CustomerPageUrl';\nimport { ICON_SUMP_PUMP } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\n\nimport './_style.scss';\nimport type SumpPump from 'customer-site/models/devices/sump-pump';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * @classdesc\n * Sump pump device dashboard and details route card.\n */\n@intlPath({ path: 'dashboard-cards/devices/sump-pump-card' })\nexport default class DashboardCardsDevicesSumpPumpCard extends BaseDeviceCard> {\n // region overrides\n\n iconType = ICON_SUMP_PUMP;\n\n detailsRouteId = EmberSumpPumps;\n\n get showBatteryButton(): boolean {\n return false;\n }\n\n // endregion\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'generic.devices.switches\\'}}

\\n {{/unless}}\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n \\n {{else}}\\n \\n {{/if}}\\n \\n\\n <:prompt-edit>\\n \\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/switch-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { sort } from '@ember/object/computed';\nimport { intlPath } from '@adc/i18n/path';\nimport { Closed, Open, Unknown } from '../../../../enums/ControlPointRelayStatus';\nimport { EmberSwitches } from '../../../../enums/CustomerPageUrl';\nimport { ICON_SWITCH } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\nimport { getDeviceItemAction } from '../edit-state/index';\n\nimport './_style.scss';\nimport type SwitchModel from 'customer-site/models/devices/switch';\nimport type { BaseCardSignature } from '../base-card';\nimport type { DeviceItemAction } from '../edit-state/index';\n\ntype RelayStatus = typeof Unknown | typeof Open | typeof Closed;\n\nconst SWITCH_CSS: Record = {\n [Open]: 'turnOn',\n [Closed]: 'turnOff',\n [Unknown]: 'unknown'\n};\n\n/**\n * @classdesc\n * The card for displaying/editing switch device state.\n */\n@intlPath({ path: 'dashboard-cards/devices/switch-card' })\nexport default class SwitchCard extends BaseDeviceCard> {\n /** @override */\n iconType = ICON_SWITCH;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /** @override */\n detailsRouteId = EmberSwitches;\n\n /**\n * The sort order for switches.\n */\n switchSortOrder = ['switchType:desc', 'description'];\n\n /**\n * The sorted switches.\n */\n @sort('cardDevices', 'switchSortOrder')\n declare sortedSwitches: SwitchModel[];\n\n /** @override */\n getDeviceEditActions(device: SwitchModel): DeviceItemAction[] {\n // Is the refresh action valid?\n const refreshAction = this.getRefreshDeviceAction(device, SWITCH_CSS[Unknown], ICON_SWITCH, Unknown);\n if (refreshAction) {\n // Return just that.\n return [refreshAction];\n }\n\n const actionMap: Record = {\n [Unknown]: [Closed, Open],\n [Open]: [Closed],\n [Closed]: [Open]\n };\n\n return (actionMap[device.desiredState as RelayStatus] ?? []).map((state) =>\n getDeviceItemAction(\n this.intl.t(`home.switches.${state === Open ? 'turnOn' : 'turnOff'}`),\n SWITCH_CSS[state],\n ICON_SWITCH,\n state\n )\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::SwitchCard': typeof SwitchCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:prompt-view>\\n
\\n {{!-- @glint-expect-error This component needs to be converted to TS --}}\\n \\n
\\n

{{@waterMeter.description}}

\\n

{{await @waterMeter.meterStatusIconViewText}}

\\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-meter-card/water-meter-icon/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { PromptCardSignature } from 'customer-site/components/dashboard-cards/devices/prompt-card';\nimport type WaterMeter from 'customer-site/models/devices/water-meter';\n\nexport interface WaterMeterCardIconSignature {\n Args: Pick<\n PromptCardSignature['Args'],\n 'isPromptOpen' | 'isIconCard' | 'promptTitle' | 'promptState' | 'stateCss' | 'closeEditState'\n > & {\n waterMeter?: WaterMeter;\n indicatorKey: string;\n };\n}\n\nconst WaterMeterCardIcon = templateOnlyComponent();\nexport default WaterMeterCardIcon;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterMeterCard::WaterMeterIcon': typeof WaterMeterCardIcon;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:prompt-view>\\n \\n
\\n

\\n

\\n {{~await device.meterStatusListViewText~}}\\n

\\n
\\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-meter-card/list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { DeviceListSignature } from 'customer-site/components/dashboard-cards/devices/device-list';\nimport type { PromptCardSignature } from 'customer-site/components/dashboard-cards/devices/prompt-card';\nimport type WaterMeter from 'customer-site/models/devices/water-meter';\n\nexport interface WaterMeterCardListSignature {\n Args: Pick<\n PromptCardSignature['Args'],\n 'isPromptOpen' | 'isIconCard' | 'promptTitle' | 'promptState' | 'stateCss' | 'closeEditState'\n > &\n Pick['Args'], 'cardId' | 'devices'>;\n}\n\nconst WaterMeterCardListSignature = templateOnlyComponent();\nexport default WaterMeterCardListSignature;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterMeterCard::List': typeof WaterMeterCardListSignature;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n {{#unless this.requiresCalibrationSetup}}\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'generic.devices.waterMeters\\'}}

\\n {{/unless}}\\n \\n {{/unless}}\\n \\n <:card-body>\\n {{#if this.isIconCard}}\\n {{#if this.requiresCalibrationSetup}}\\n \\n {{else}}\\n \\n {{/if}}\\n {{else}}\\n \\n {{/if}}\\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-meter-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberWater } from '../../../../enums/CustomerPageUrl';\nimport { ICON_WATER_METER } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type WaterMeterModel from 'customer-site/models/devices/water-meter';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * @classdesc\n * The card for displaying/editing water meter device state.\n */\n@intlPath({ path: 'dashboard-cards/devices/water-meter-card' })\nexport default class WaterMeterCard extends BaseDeviceCard> {\n @service declare store: Store;\n @service declare intl: ADCIntlService;\n\n // region Overrides\n\n /** @override */\n iconType = ICON_WATER_METER;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /** @override */\n detailsRouteId = EmberWater;\n\n /** @override */\n get cardDevices(): WaterMeterModel[] {\n return super.cardDevices.filter((meter) => meter.pairedWaterValve === undefined);\n }\n\n /** @override */\n get isIconCard(): boolean {\n return this.cardDevices.length < 2;\n }\n\n // endregion\n\n @computed('cardDevices.firstObject')\n get waterMeter(): WaterMeterModel | undefined {\n return this.cardDevices.firstObject;\n }\n\n @computed('waterMeter.requiresCalibrationSetup', 'isIconCard')\n get requiresCalibrationSetup(): boolean {\n return this.isIconCard && !!this.waterMeter?.requiresCalibrationSetup;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterMeterCard': typeof WaterMeterCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{t \\'generic.devices.waterSensors\\'}}

\\n
\\n \\n\\n <:card-body>\\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-sensor-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { ICON_WATER_SENSOR } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\n\nimport './_style.scss';\nimport type WaterSensorModel from 'customer-site/models/devices/water-sensor';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * @classdesc\n * The card for displaying water sensor device state.\n */\nexport default class WaterSensor extends BaseDeviceCard> {\n // region Overrides\n\n /** @override */\n iconType = ICON_WATER_SENSOR;\n\n /** @override */\n get showRefreshButton(): boolean {\n return false;\n }\n\n /** @override */\n get showDrillToDetailsButton(): boolean {\n return false;\n }\n\n /** @override */\n isAlwaysListView = true;\n\n /** @override */\n get showBatteryButton(): boolean {\n return false;\n }\n\n // endregion\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterSensorCard': typeof WaterSensor;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{!-- @glint-expect-error This component needs to be converted to TS --}}\\n \\n \\n
\\n

{{@pairedWaterMeter.description}}

\\n

{{await @stateText}}

\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-valve-card/water-valve-and-meter-icon/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { DeviceIconsSignature } from 'customer-site/components/dashboard-cards/devices/device-icons';\nimport type WaterMeter from 'customer-site/models/devices/water-meter';\nimport type WaterValveModel from 'customer-site/models/devices/water-valve';\n\nexport interface WaterValveAndMeterCardIconSignature {\n Args: Pick<\n DeviceIconsSignature['Args'],\n 'cardId' | 'devices' | 'iconType' | 'activeDevice' | 'editDeviceState'\n > & {\n pairedWaterMeter?: WaterMeter;\n stateText: Promise;\n indicatorKey: string;\n };\n}\n\nconst WaterValveAndMeterCardIcon = templateOnlyComponent();\nexport default WaterValveAndMeterCardIcon;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterValveCard::WaterValveAndMeterIcon': typeof WaterValveAndMeterCardIcon;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:label as |device|>\\n {{#unless @isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-valve-card/water-valve-icon/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { DeviceIconsSignature } from 'customer-site/components/dashboard-cards/devices/device-icons';\nimport type WaterValveModel from 'customer-site/models/devices/water-valve';\n\nexport interface WaterValveCardIconSignature {\n Args: Pick<\n DeviceIconsSignature['Args'],\n 'cardId' | 'devices' | 'iconType' | 'activeDevice' | 'editDeviceState'\n > & {\n isHomeCard: boolean;\n };\n}\n\nconst WaterValveCardIcon = templateOnlyComponent();\nexport default WaterValveCardIcon;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterValveCard::WaterValveIcon': typeof WaterValveCardIcon;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#if device.pairedWaterMeter}}\\n
\\n

{{device.description}}

\\n

\\n {{~await device.pairedWaterMeter.meterStatusListViewText~}}\\n

\\n
\\n {{/if}}\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-valve-card/list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { DeviceListSignature } from 'customer-site/components/dashboard-cards/devices/device-list';\nimport type WaterValveModel from 'customer-site/models/devices/water-valve';\n\nexport interface WaterValveCardListSignature {\n Element: DeviceListSignature['Element'];\n Args: Pick['Args'], 'cardId' | 'devices' | 'iconType'>;\n}\n\nconst WaterValveCardListSignature = templateOnlyComponent();\nexport default WaterValveCardListSignature;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterValveCard::List': typeof WaterValveCardListSignature;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n {{#unless this.isIconCard}}\\n

{{t \\'generic.devices.waterValves\\'}}

\\n {{/unless}}\\n\\n {{#if this.hasWaterSensors}}\\n \\n

{{t \\'generic.devices.waterSensors\\'}}

\\n\\n
    \\n {{#each this.waterSensors as |sensor|}}\\n
  • \\n \\n {{sensor.description}}\\n {{sensor.stateText}}\\n
  • \\n {{/each}}\\n
\\n \\n {{/if}}\\n \\n \\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.isIconCard}}\\n {{#if this.hasPairedWaterMeter}}\\n \\n {{else}}\\n \\n {{/if}}\\n {{else}}\\n \\n {{/if}}\\n \\n <:prompt-edit>\\n \\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/water-valve-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action } from '@ember/object';\nimport { gt } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberWater } from '../../../../enums/CustomerPageUrl';\nimport { Open } from '../../../../enums/SensorStatus';\nimport { Closed, Unknown } from '../../../../enums/WaterValveStatus';\nimport { ICON_WATER_VALVE } from '../../../icons/circles/device-status/index';\nimport { createToolbarButton } from '../../card-toolbar/index';\nimport BaseDeviceCard from '../base-card';\nimport { getDeviceItemAction } from '../edit-state/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type WaterMeterModel from 'customer-site/models/devices/water-meter';\nimport type WaterSensorModel from 'customer-site/models/devices/water-sensor';\nimport type WaterValveModel from 'customer-site/models/devices/water-valve';\nimport type { DashboardCardToolbarButtons } from '../../card-toolbar/index';\nimport type { BaseCardSignature } from '../base-card';\nimport type { DeviceItemAction } from '../edit-state/index';\n\n/**\n * @classdesc\n * The card for displaying/editing water valve device state.\n */\n@intlPath({ path: 'dashboard-cards/devices/water-valve-card' })\nexport default class WaterValveCard extends BaseDeviceCard> {\n @service declare store: Store;\n @service declare intl: ADCIntlService;\n\n // region Overrides\n\n /** @override */\n iconType = ICON_WATER_VALVE;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /** @override */\n detailsRouteId = EmberWater;\n\n /** @override */\n getDeviceEditActions(device: WaterValveModel): DeviceItemAction[] {\n const refreshState = device.isInUnknownState() ? 'refreshState' : '',\n stateMap: Record = {\n [Unknown]: [Closed, Open],\n [Closed]: [Open],\n [Open]: [Closed]\n };\n\n return (stateMap[device.desiredState] ?? []).map((state: keyof typeof ICON_WATER_VALVE) => {\n const isOpen = state === Open;\n\n return getDeviceItemAction(\n this.intl.t(`generic.${refreshState || (isOpen ? 'open' : 'close')}`),\n isOpen ? 'open' : 'closed',\n ICON_WATER_VALVE,\n state as number\n );\n });\n }\n\n /**\n * Indicates we should show an icon representation of the devices.\n * Additionally checks for situation where cardDevices consists of exactly two water valves with either of them\n * having a paired water meter, in this case the card's list view should be displayed.\n *\n * @override\n */\n @computed('cardDevices.[]', 'hasPairedWaterMeter')\n get isIconCard(): boolean {\n const { cardDevices } = this;\n\n if (cardDevices.length === 2 && this.hasPairedWaterMeter) {\n return false;\n }\n\n return super.isIconCard;\n }\n\n /** @override */\n @computed(\n 'cardDevices.firstObject.{activeSensors,totalSensors}',\n 'commonLeftToolbarButtons',\n 'sensorsPopupAnchor',\n 'toggleSensorsMenu'\n )\n get leftToolbarButtons(): DashboardCardToolbarButtons {\n // Get common buttons.\n const buttons = [...this.commonLeftToolbarButtons];\n\n const firstObject = (this.cardDevices.firstObject ?? {}) as WaterValveModel,\n { totalSensors = 0, activeSensors = 0 } = firstObject;\n\n // Are there any sensors?\n if (totalSensors) {\n const text = this.intl.tc(this, 'activeSensors', {\n count: activeSensors,\n total: totalSensors\n });\n\n // Add popup button that lists all water sensors.\n buttons.push(\n createToolbarButton(text, `water-sensor-${activeSensors ? 'wet' : 'dry'}`, {\n css: [this.sensorsPopupAnchor, activeSensors ? 'alert-icon' : undefined].compact().join(' '),\n fn: this.toggleSensorsMenu\n })\n );\n }\n\n return buttons;\n }\n\n // endregion\n\n @computed('cardDevices.{length,@each.pairedWaterMeter}')\n get pairedWaterMeter(): WaterMeterModel | undefined {\n const firstObject = (this.cardDevices[0] ?? {}) as WaterValveModel,\n { pairedWaterMeter = undefined } = firstObject;\n\n return pairedWaterMeter;\n }\n\n @computed('pairedWaterMeter')\n get hasPairedWaterMeter(): boolean {\n return this.pairedWaterMeter != undefined;\n }\n\n /**\n * Indicates the water sensors popup menu is open.\n */\n @tracked sensorsMenuOpen = false;\n\n /**\n * Returns a unique CSS class name for the water sensors popup menu button.\n */\n @computed('args.cardId')\n get sensorsPopupAnchor(): string {\n return `popup-anchor-${this.args.cardId}`;\n }\n\n /**\n * Indicates there are water sensors on the account.\n */\n @gt('cardDevices.firstObject.totalSensors', 0)\n declare hasWaterSensors: boolean;\n\n /**\n * The collection of water sensors on the account.\n */\n @computed('hasWaterSensors')\n get waterSensors(): WaterSensorModel[] {\n return (this.hasWaterSensors ? this.store.peekAll('devices/water-sensor') : []) as WaterSensorModel[];\n }\n\n @computed('cardDevices.firstObject.displayDate', 'pairedWaterMeter.{hasWaterIssues,issueDescription}')\n get stateText(): Promise {\n const { pairedWaterMeter } = this;\n return (async () => {\n const hasIssue = await pairedWaterMeter?.hasWaterIssues;\n return (hasIssue ? pairedWaterMeter?.issueDescription : this.cardDevices?.firstObject?.displayDate) ?? '';\n })();\n }\n\n @action toggleSensorsMenu(): void {\n this.sensorsMenuOpen = !this.sensorsMenuOpen;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Devices::WaterValveCard': typeof WaterValveCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n \\n \\n <:default as |item index|>\\n {{yield item index}}\\n \\n <:empty>\\n

\\n {{coalesce @noItemsText (t \\'generic.none\\')}}\\n

\\n \\n \\n
\\n
\",{ moduleName: \"customer-site/components/dashboard-cards/list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\n\nimport './_style.scss';\nimport type { SimpleListSignature } from '@adc/ui-components/components/simple-list';\nimport type { LabelledbySpanSignature } from '../labelledby-span';\n\nexport interface ListSignature {\n Element: HTMLDivElement;\n Args: Pick['Args'], 'spinnerSize'> &\n Pick & {\n noItemsText?: string;\n items: T[] | Promise;\n };\n Blocks: {\n default: [T, number];\n };\n}\n\nexport default class List extends Component> {}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::List': typeof List;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n \\n
\\n \\n
{{@model.description}}
\\n {{!-- @glint-expect-error stateInfo is async, so we need to await it, please fix. --}}\\n {{#if @model.stateInfo.issues}}\\n
\\n {{!-- @glint-expect-error stateInfo is async, so we need to await it, please fix. --}}\\n {{get @model.stateInfo.issues \\\"0.title\\\"}}\\n
\\n {{/if}}\\n
\\n \\n {{#if @model.supportsHumidity}}\\n \\n {{/if}}\\n {{this.stateText}}\\n \\n {{#if this.batteryIcon}}\\n \\n {{/if}}\\n {{!-- @glint-expect-error stateInfo is async, so we need to await it, please fix. --}}\\n {{#if @model.stateInfo.issues}}\\n \\n {{/if}}\\n
\\n{{#if this.hasSensors}}\\n \\n
    \\n {{#each sensors as |s|}}\\n
  • \\n \\n
  • \\n {{/each}}\\n
\\n
\\n{{/if}}\\n\\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/remote-temps/device/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport { htmlSafe } from '@ember/template';\nimport { isPresent } from '@ember/utils';\nimport { LOADING_STATE } from 'customer-site/models/devices/base-device';\nimport ThermostatModel from 'customer-site/models/devices/thermostat';\n\nimport type RemoteTemperatureSensorModel from 'customer-site/models/devices/remote-temperature-sensor';\nimport type { SafeString } from 'handlebars';\n\ninterface DashboardCardsRemoteTempsDeviceSignature {\n Element: HTMLDivElement;\n Args: {\n model: ThermostatModel | RemoteTemperatureSensorModel;\n };\n}\n\nexport default class DashboardCardsRemoteTempsDevice extends Component {\n @computed('args.model.{humidityText,state,supportsHumidity,temperatureText}')\n get stateText(): SafeString {\n // Is this model NOT loaded yet? Don't show any state text if it's NOT.\n const { model } = this.args;\n return htmlSafe(\n model.state === LOADING_STATE ? '' : model.humidityText + '  ' + model.temperatureText\n );\n }\n\n /**\n * The battery icon to display for this device.\n */\n @computed('args.model.batteryDetails')\n get batteryIcon(): SafeString | undefined {\n const { model } = this.args;\n return htmlSafe(model.batteryDetails.icon);\n }\n\n @computed('args.model.{animationCSS,isPaired,tempForwardingActive,isThermostat}')\n get css(): string {\n const { model } = this.args;\n return [\n model.animationCSS,\n ...[\n ['isPaired', 'paired'],\n ['isThermostat', 'thermostat'],\n ['tempForwardingActive', 'active']\n ].map(([n, css]: [keyof typeof model, string]) => (model[n] ? css : undefined))\n ]\n .compact()\n .join(' ');\n }\n\n get thermostat(): ThermostatModel | undefined {\n const { model } = this.args;\n return model instanceof ThermostatModel ? model : undefined;\n }\n\n @computed('thermostat.remoteTemperatureSensors.[]')\n get hasSensors(): boolean {\n return isPresent(this.thermostat?.hasMany('remoteTemperatureSensors').ids());\n }\n\n @computed('thermostat.remoteTemperatureSensors.[]')\n get sensors(): Promise {\n return (async () => {\n const sensors = await this.thermostat?.remoteTemperatureSensors;\n return sensors?.sortBy('description') ?? [];\n })();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::RemoteTemps::Device': typeof DashboardCardsRemoteTempsDevice;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{t \\'home.temperatures.temperatures\\'}}

\\n \\n \\n\\n <:card-body>\\n \\n {{#if item.isForecast}}\\n \\n {{else}}\\n \\n {{/if}}\\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/remote-temps/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { A } from '@ember/array';\nimport { computed, get, action } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { EmberThermostats, EmberManageDevices } from 'customer-site/enums/CustomerPageUrl';\nimport { Thermostats } from 'customer-site/enums/ManageDevicesCategory';\nimport { queryForecasts } from 'customer-site/models/weather/forecast';\nimport {\n getDrillToDetailsButton,\n getDeviceBatteryButton,\n getDeviceRefreshButton,\n createToolbarButton\n} from '../card-toolbar/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type RemoteTemperatureSensorModel from 'customer-site/models/devices/remote-temperature-sensor';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type SystemModel from 'customer-site/models/systems/system';\nimport type ForecastModel from 'customer-site/models/weather/forecast';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { DashboardCardToolbarButtons } from '../card-toolbar/index';\nimport type { ContainerCardSignature } from '../container-card';\n\ninterface DashboardCardsRemoteTempsSignature {\n Element: ContainerCardSignature['Element'];\n Args: Pick & {\n devices: SystemModel;\n deviceIndex?: number;\n };\n}\n\ntype DeviceArray = (\n | {\n isForecast: true;\n model: ForecastModel;\n }\n | {\n isForecast: false;\n model: ThermostatModel | RemoteTemperatureSensorModel;\n }\n)[];\n\nexport default class DashboardCardsRemoteTemps extends Component {\n @service declare intl: ADCIntlService;\n @service declare store: Store;\n @service declare contextManager: ContextManager;\n @service declare navigation: NavigationService;\n\n /**\n * Indicates this card will be displayed on the home screen dashboard.\n */\n @equal('args.deviceIndex', undefined)\n declare isHomeCard: boolean;\n\n @computed()\n get forecast(): Promise {\n return (async () => {\n const { firstObject } = await queryForecasts(this.store, 1);\n return firstObject;\n })();\n }\n\n get leftToolbarButtons(): DashboardCardToolbarButtons {\n if (this.isHomeCard) {\n return [];\n }\n\n return [\n createToolbarButton(this.intl.t('home.thermostats.index.manageDevices'), 'cog', {\n fn: () =>\n this.navigation.transitionToRouteId(EmberManageDevices, {\n queryParams: { selectedFilters: [Thermostats.toString()] }\n })\n })\n ];\n }\n\n get rightToolbarButtons(): Promise {\n const { intl, navigation } = this,\n buttons: DashboardCardToolbarButtons = [];\n\n return (async () => {\n const batteryButton = await this.getDevices().then(({ thermostats, sensors }) =>\n getDeviceBatteryButton(\n navigation,\n thermostats.mapBy('batteryDetails').concat(sensors.mapBy('batteryDetails')),\n true\n )\n );\n\n if (batteryButton) {\n buttons.push(batteryButton);\n }\n\n if (this.isHomeCard) {\n buttons.push(getDrillToDetailsButton(intl, () => navigation.transitionToRouteId(EmberThermostats)));\n } else {\n buttons.push(getDeviceRefreshButton(intl, this.refreshDevices));\n }\n\n // Compact in case battery button was undefined.\n return buttons.compact();\n })();\n }\n\n getDevices(): Promise<{ thermostats: ThermostatModel[]; sensors: RemoteTemperatureSensorModel[] }> {\n return (async () => {\n const systemModel = this.args.devices,\n t = await get(systemModel, 'thermostats'),\n s = await get(systemModel, 'remoteTemperatureSensors');\n\n return {\n thermostats: t.toArray(),\n sensors: s.toArray()\n };\n })();\n }\n\n /**\n * The collection of thermostats and unpaired remote temperature sensors to render.\n */\n @computed('forecast', 'args.devices.{thermostats.@each.isPaired,remoteTemperatureSensors.@each.isPaired}')\n get deviceItems(): Promise {\n return (async () => {\n const items: DeviceArray = [];\n\n const forecast = await this.forecast,\n { thermostats, sensors } = await this.getDevices(),\n fnGetItems = (devices: T[]): { isForecast: false; model: T }[] =>\n A(devices)\n .sortBy('description', 'isPaired')\n .map((model) => ({\n isForecast: false,\n model\n }));\n\n if (forecast) {\n items.push({\n isForecast: true,\n model: forecast\n });\n }\n\n items.push(...fnGetItems(thermostats));\n items.push(...fnGetItems(sensors.filter((s) => !s.belongsTo('thermostat').id())));\n\n return items;\n })();\n }\n\n /**\n * Refresh all thermostats and remote temperature sensors.\n */\n @action refreshDevices(): void {\n (async () => {\n const { thermostats, sensors } = await this.getDevices();\n sensors.firstObject?.submitCustomApiCall('sendRefreshCommand');\n [...thermostats, ...sensors].invoke('refreshState', false);\n })();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::RemoteTemps': typeof DashboardCardsRemoteTemps;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{#if this.showDownloadScreen}}\\n
\\n

{{tc this \\'recommendApp\\'}}

\\n \\n
\\n {{else}}\\n {{yield}}\\n {{/if}}\\n
\",{ moduleName: \"customer-site/components/download-app/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { isMobileBrowser } from '@adc/ember-utils/utils/browser-helpers';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { AppDownload } from '../../enums/CustomerPageUrl';\n\nimport './_style.scss';\nimport type { Registry as ServiceRegistry } from '@ember/service';\n\nexport interface DownloadAppSignature {\n Element: HTMLDivElement;\n Args: {\n bypassDeviceCheck?: boolean;\n };\n Blocks: {\n default: [];\n };\n}\n\n/**\n * @classdesc\n * Controller from which other pages can extend to display a download mobile app message for users on mobile web.\n */\n@intlPath({ path: 'download-app' })\nexport default class DownloadApp extends Component {\n @service declare navigation: ServiceRegistry['navigation'];\n\n /**\n * Determines if a user is on a mobile device.\n */\n isMobileOrTablet = isMobileBrowser();\n\n /**\n * If we should show the screen for downloading the app.\n */\n @computed('args.bypassDeviceCheck', 'isMobileOrTablet')\n get showDownloadScreen(): boolean {\n return this.isMobileOrTablet && !this.args.bypassDeviceCheck;\n }\n\n /**\n * Redirects to the mobile app download page in the appropriate app store.\n */\n @action\n redirectToApp(): void {\n window.open(this.navigation.getRouteItem(AppDownload)?.url);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n DownloadApp: typeof DownloadApp;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n \\n \\n {{yield device to=\\'above-device-name\\'}}\\n \\n \\n \\n \\n\\n {{yield device to=\\'settings\\'}}\\n\\n \\n \\n \\n \\n
\",{ moduleName: \"customer-site/components/home/edit-device-view/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\n\nimport './_style.scss';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type BaseDevice from 'customer-site/models/devices/base-device';\nimport type ContextManager from 'customer-site/services/context-manager';\n\ninterface EditDeviceViewSignature {\n Element: HTMLDivElement;\n Args: {\n successNotification: string;\n model: Promise;\n beforeDeviceSaved?: () => Promise;\n deviceSaved?: VoidFunction;\n deviceHasChanges?: boolean;\n };\n Blocks: {\n 'above-device-name': [T];\n settings: [T];\n };\n}\n\n/**\n * Edit page component for base device settings.\n */\nexport default class EditDeviceView extends Component> {\n @service declare contextManager: ContextManager;\n @service declare notificationManager: NotificationManager;\n\n @action\n async saveDevice(device: T) {\n const { successNotification } = this.args;\n\n try {\n await this.args.beforeDeviceSaved?.();\n await device.save();\n this.args.deviceSaved?.();\n this.notificationManager.addSuccess(successNotification, 15000);\n this.contextManager.transitionToPreviousRoute();\n return Promise.resolve();\n } catch (error) {\n this.notificationManager.addError(error.errors[0].detail);\n return Promise.reject();\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Home::EditDeviceView': typeof EditDeviceView;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck: I think this code is probably breaking the modal, because there may be an empty buttons array element. We should move the button generation into the TS code. }}\\n\\n \\n \\n \\n\\n \\n\",{ moduleName: \"customer-site/components/modals/lights/light-group-modal/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, computed, get } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport type RSVP from 'rsvp';\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Light from 'customer-site/models/devices/light';\nimport type LightGroup from 'customer-site/models/devices/light-group';\n\ntype LightGroupErrors = {\n name?: string;\n lights?: string;\n};\n\ninterface LightGroupModalModel {\n allLights: Light[];\n group: LightGroup;\n isManageGroupModal: boolean;\n}\n\ninterface LightGroupModalSignature {\n Args: {\n model: LightGroupModalModel;\n };\n}\n\n/**\n * @classdesc\n * Modal for managing light groups\n */\n@intlPath({ path: 'modals/lights/light-group-modal' })\nexport default class LightGroupModal extends Component {\n @service declare intl: ADCIntlService;\n\n constructor(owner: LightGroupModal, args: LightGroupModalSignature['Args']) {\n super(owner, args);\n\n const { group } = args.model;\n\n this.selectedLights = group.lights.map((l) => l.id);\n this.originalLights = this.selectedLights;\n this.groupName = group.name;\n }\n\n /**\n * All of the lights that are available.\n */\n @alias('args.model.allLights')\n declare allLights: Light[];\n\n /**\n * The light group.\n */\n @alias('args.model.group')\n declare group: LightGroup;\n\n /**\n * Storage variable to allow user to edit lights group name without saving.\n */\n @tracked\n groupName = '';\n\n /**\n * Storage variable to allow user to edit lights in group without saving.\n */\n @tracked\n selectedLights: string[];\n\n /**\n * Storage variable to keep track of the originally selected lights.\n */\n @tracked\n originalLights: string[];\n\n /**\n * Error Message object retrieved after save() call.\n */\n @tracked\n declare errors: LightGroupErrors;\n\n /**\n * List of lights to show as options for selecting in the group.\n */\n @computed('allLights', 'selectedLights', 'group.canEditLightList')\n get lightsList(): BinaryListItem[] {\n return this.allLights\n .sort((a, b) => a.description.localeCompare(b.description))\n .map(\n ({ description, id }) =>\n new BinaryListItem({\n label: description,\n state: this.selectedLights.includes(id),\n disabled: !this.group.canEditLightList,\n props: {\n id\n }\n })\n );\n }\n\n /**\n * Can the user save the group?\n */\n @computed('group.{canEditLightList,canEditName}')\n get canNotBeSaved(): boolean {\n return !this.group.canEditLightList && !this.group.canEditName;\n }\n\n /**\n * Triggered when user inputs different group name in textfield.\n */\n @action\n groupNameChange(newName: string): void {\n this.group.name = newName;\n }\n\n /**\n * Triggered when the list of selected lights has changed.\n */\n @action\n lightsListChanged(lightItems: BinaryListItem[]): void {\n this.selectedLights = lightItems.filter((l) => l.state).map((l) => get(l.props, 'id') as string);\n }\n\n /**\n * Deleting light group.\n */\n @action\n deleteGroup(): RSVP.Promise {\n return this.group.destroyRecord();\n }\n\n /**\n * Saving light group.\n */\n @action\n async saveGroup(): Promise {\n const { allLights, args, originalLights, selectedLights } = this,\n { group } = args.model;\n\n await group.lights.setObjects(allLights.filter((light) => selectedLights.includes(light.id)));\n\n try {\n await group.save();\n } catch (ex) {\n // Show errors.\n this.errors = await group.errors.content.reduce(\n (\n errors: LightGroupErrors,\n { attribute, message }: { attribute: keyof LightGroupErrors; message: string }\n ) => {\n errors[attribute] = message;\n return errors;\n },\n {} as LightGroupErrors\n );\n\n // rollbackAttributes() does not reset the lists of lights inside group model since it's a relationship.\n // Thus, we save a copy of the original selection of lights in the init() and reapply.\n await group.lights.setObjects(allLights.filter((light) => originalLights.includes(light.id)));\n group.rollbackAttributes();\n return Promise.reject();\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::Lights::LightGroupModal': typeof LightGroupModal;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n \\n
\\n\\n

{{@title}}

\\n\\n {{#if @firstDescription}}\\n

{{@firstDescription}}

\\n {{/if}}\\n\\n {{#if @secondDescription}}\\n

{{@secondDescription}}

\\n {{/if}}\\n\\n {{yield}}\\n
\\n\",{ moduleName: \"customer-site/components/ui/stacked-icon-label/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\nimport type { SvgSymbolSignature } from '@adc/svg-system/components/svg-symbol';\n\nexport interface UiStackedIconLabelSignature {\n Element: HTMLDivElement;\n Args: Pick & {\n title: string;\n firstDescription?: string;\n secondDescription?: string;\n };\n Blocks: {\n default: [];\n };\n}\n\nconst UiStackedIconLabel = templateOnlyComponent();\nexport default UiStackedIconLabel;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Ui::StackedIconLabel': typeof UiStackedIconLabel;\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { getAccessControlPermissions } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport { EmberAccessControlAccessPointEdit } from 'customer-site/enums/CustomerPageUrl';\nimport { ANTI_PASSBACK_UNIT_VALUES } from 'customer-site/utils/access-control-access-point';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type Route from 'customer-site/home/ac-doors/edit/route';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\ntype RouteModel = ModelFrom;\n\n/**\n * Edit page for ac door device settings\n */\nexport default class ACDoorEditController extends Controller {\n @service declare intl: ADCIntlService;\n @service declare contextManager: ContextManager;\n @service declare identityManager: IdentityManager;\n @service declare navigation: NavigationService;\n @service declare store: Store;\n\n declare model: RouteModel;\n\n @tracked\n permissions: ReturnType;\n\n constructor(props?: Record) {\n super(props);\n\n this.permissions = getAccessControlPermissions(this.store, this.identityManager);\n }\n\n /**\n * Determines if we should show read-based anti-passback settings.\n */\n @computed('model.device.hasMiwaLock', 'permissions.showReaderBasedAntiPassback')\n get showReaderBasedAntiPassback(): Promise {\n return (async () => {\n const acDoor = await this.model.device,\n hasMiwaLock = await acDoor.hasMiwaLock,\n showReaderBasedAntiPassback = (await this.permissions).showReaderBasedAntiPassback;\n return showReaderBasedAntiPassback && !hasMiwaLock;\n })();\n }\n\n /**\n * Maps each dropdownOption value to a dropdownSelectItem.\n * Computes the name of the dropdown item in the form of minutes, hours, days, or seconds\n * from the numerical value.\n */\n get antiPassbackUnits(): DropdownSelectItem[] {\n return ANTI_PASSBACK_UNIT_VALUES.map((value) => {\n const weeks = Math.floor(value / 10080),\n days = Math.floor(value / 1440),\n hours = Math.floor(value / 60),\n minutes = value;\n const noDelayText = this.intl.tc(this, 'noDelayText');\n const minutesText = minutes > 0 ? this.intl.tc(this, 'minutesText', { minutes }) : null;\n const hoursText = hours > 0 ? this.intl.tc(this, 'hoursText', { hours }) : null;\n const daysText = days > 0 ? this.intl.tc(this, 'daysText', { days }) : null;\n const weeksText = weeks > 0 ? this.intl.tc(this, 'weeksText', { weeks }) : null;\n\n const name =\n value === 0\n ? noDelayText\n : weeksText === null\n ? daysText === null\n ? hoursText === null\n ? minutesText\n : hoursText\n : daysText\n : weeksText;\n\n return DropdownSelectItem.create({\n name: name ?? undefined,\n value: value.toString()\n });\n });\n }\n\n /**\n * Updates anti-passback settings\n */\n @action async sendAntiPassbackUpdates() {\n if (this.permissions.get('showReaderBasedAntiPassback')) {\n const device = await this.model.device,\n accessPoint = await device.accessControlAccessPoint;\n\n if (accessPoint.canBeModified) {\n await accessPoint.save();\n }\n }\n }\n\n /**\n * Redirects to the edit page for the specific access point.\n */\n @action editAccessPoint(accessPointId: string): void {\n this.navigation.transitionToRouteId(EmberAccessControlAccessPointEdit, accessPointId);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/ac-doors/edit': ACDoorEditController;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type AccessControlAccessPointDevice from 'customer-site/models/devices/access-control-access-point-device';\n\n/**\n * Edit page for a door by given ID\n */\nexport default class ACDoorEditRoute extends BaseEditDeviceRoute {}\n","import AccessControlAccessPointDevicesComponent from 'customer-site/components/dashboard-cards/devices/access-control-access-point-devices-card/index';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type AccessControlAccessPointDevice from 'customer-site/models/devices/access-control-access-point-device';\n\nexport default class ACDoorsIndexController extends BaseDeviceDetailsController {\n card = AccessControlAccessPointDevicesComponent;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/ac-doors/index': ACDoorsIndexController;\n }\n}\n","import { EmberAccessControlAccessPointDevices } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from '../device-details/route';\n\nimport type AccessControlAccessPointDevice from 'customer-site/models/devices/access-control-access-point-device';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class Route extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberAccessControlAccessPointDevices;\n\n /** @override */\n systemModelRelationship: keyof System = 'accessControlAccessPointDevices';\n}\n","import { EmberAccessControlDoorRules } from '../../../enums/CustomerPageUrl';\nimport { AccessControlDoor } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.ac-doors.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.ac-doors.rules\n */\nexport default class AccessControlDoorRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberAccessControlDoorRules;\n\n /** @override */\n getDeviceType() {\n return AccessControlDoor;\n }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { getAccessControlPermissions } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport { EmberAccessControlAccessPointEdit } from 'customer-site/enums/CustomerPageUrl';\n\nimport type Store from '@ember-data/store';\nimport type Route from 'customer-site/home/ac-elevators/edit/route';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\ntype RouteModel = ModelFrom;\n\n/**\n * Edit page for ac elevator device settings\n */\nexport default class ACElevatorEditController extends Controller {\n @service declare contextManager: ContextManager;\n @service declare identityManager: IdentityManager;\n @service declare navigation: NavigationService;\n @service declare store: Store;\n\n declare model: RouteModel;\n\n permissions: ReturnType;\n\n constructor(props?: Record) {\n super(props);\n\n this.permissions = getAccessControlPermissions(this.store, this.identityManager);\n }\n\n /**\n * Redirects to the edit page for the specific elevator.\n */\n @action editAccessPoint(accessPointId: string): void {\n this.navigation.transitionToRouteId(EmberAccessControlAccessPointEdit, accessPointId);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/ac-elevators/edit': ACElevatorEditController;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type AccessControlElevatorDevice from 'customer-site/models/devices/access-control-elevator-device';\n\n/**\n * Edit page for an elevator by given ID\n */\nexport default class ACElevatorEditRoute extends BaseEditDeviceRoute {}\n","import AccessControlElevatorDevicesComponent from 'customer-site/components/dashboard-cards/devices/access-control-elevator-devices-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type AccessControlElevatorDevice from 'customer-site/models/devices/access-control-elevator-device';\n\nexport default class ACElevatorsIndexController extends BaseDeviceDetailsController {\n card = AccessControlElevatorDevicesComponent;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/ac-elevators/index': ACElevatorsIndexController;\n }\n}\n","import { EmberAccessControlElevatorDevices } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from '../device-details/route';\n\nimport type { BaseDeviceDetailsRouteModel } from 'customer-site/home/device-details/route';\nimport type AccessControlElevatorDevice from 'customer-site/models/devices/access-control-elevator-device';\nimport type ElevatorFloorDevice from 'customer-site/models/devices/elevator-floor-device';\nimport type System from 'customer-site/models/systems/system';\n\ninterface HomeAcElevatorsRouteModel extends BaseDeviceDetailsRouteModel {\n elevatorFloors?: ADCAsyncStoreFindAll;\n}\n\n/**\n * @classdesc\n * Route for the home elevators\n */\n\nexport default class HomeAcElevatorsRoute extends BaseDeviceDetailsRoute {\n systemModelRelationship: keyof System = 'accessControlElevatorDevices';\n\n routeId = EmberAccessControlElevatorDevices;\n\n model(): HomeAcElevatorsRouteModel {\n return {\n ...super.model(),\n elevatorFloors: this.store.findAll('devices/elevator-floor-device')\n };\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\\n <:card-toolbar>\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view>\\n {{! @glint-expect-error: This component requires a cardName argument, please fix this. }}\\n \\n \\n <:prompt-edit>\\n \\n \\n \\n \\n\\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/base-z-wave-device-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { Off, On } from '../../../../enums/LightStatus';\nimport { ICON_LIGHT } from '../../../icons/circles/device-status/index';\nimport { createToolbarButton } from '../../card-toolbar/index';\nimport BaseDeviceCard from '../base-card';\nimport { getDeviceItemAction } from '../edit-state/index';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type BaseManagedDevice from 'customer-site/models/devices/base-managed-device';\nimport type { ToolbarButton } from '../../card-toolbar/index';\nimport type { ContainerCardSignature } from '../../container-card';\nimport type { BaseCardSignature } from '../base-card';\nimport type { DeviceItemAction } from '../edit-state/index';\n\nconst DEVICE_CSS = {\n [On]: 'on',\n [Off]: 'off'\n};\n\nexport interface BaseZWaveDeviceCardSignature extends BaseCardSignature {\n Args: BaseCardSignature['Args'] & Pick;\n}\n\n/**\n * @classdesc\n * Card for displaying z-wave-devices in order to send CC Basic commands.\n */\nexport default class BaseZWaveDeviceCard<\n M extends BaseManagedDevice,\n T extends BaseCardSignature\n> extends BaseDeviceCard {\n @service declare intl: ADCIntlService;\n\n /** @override */\n iconType = ICON_LIGHT;\n\n /** @override */\n get leftToolbarButtons(): ToolbarButton[] {\n return [];\n }\n\n /** @override */\n get showBatteryButton(): boolean {\n return false;\n }\n\n /** @override */\n get showRefreshButton(): boolean {\n return true;\n }\n\n /** @override */\n get isIconCard(): boolean {\n return true;\n }\n\n /** @override */\n getDeviceEditActions(): DeviceItemAction[] {\n return [Off, On].map((state: keyof typeof DEVICE_CSS) =>\n getDeviceItemAction(\n this.intl.t(`home.cc-control.turn-${DEVICE_CSS[state]}`),\n DEVICE_CSS[state],\n ICON_LIGHT,\n state\n )\n );\n }\n\n /** @override */\n @computed('cardDevices', 'showRefreshButton')\n get commonRightToolbarButtons(): ToolbarButton[] {\n const buttons: ToolbarButton[] = [],\n fnAddButton = (key: string, icon: string, fn: () => unknown) =>\n buttons.push(createToolbarButton(this.intl.t(`generic.${key}`), icon, { fn }));\n\n if (this.showRefreshButton) {\n fnAddButton('updateStatus', 'refresh', () =>\n Promise.all(this.cardDevices.map((m) => m.commandClassBasicGet()))\n );\n }\n\n // Compact in case battery button was undefined.\n return buttons.compact();\n }\n\n /** @override */\n @action\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n saveDeviceState(desiredState: number, _options?: Record): void {\n // Execute state transition on the model.\n this.editDevice?.commandClassBasicSet(desiredState);\n\n // Close editing card.\n this.endDeviceEditing();\n }\n}\n","import Controller from '@ember/controller';\nimport BaseZWaveDeviceCard from 'customer-site/components/dashboard-cards/devices/base-z-wave-device-card';\n\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\nexport default class HomeCCControlController extends Controller {\n declare model: ModelFrom;\n\n card = BaseZWaveDeviceCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/cc-control': HomeCCControlController;\n }\n}\n","import { isEmpty } from '@ember/utils';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberCcControl } from '../../enums/CustomerPageUrl';\n\nimport type Transition from '@ember/routing/transition';\nimport type BaseManagedDevice from 'customer-site/models/devices/base-managed-device';\n\ninterface CcControlRouteModel {\n devices: Promise;\n}\n\n/**\n * Route for sending CC Basic commands. It is unlisted and only accessible by URL.\n */\nexport default class Route extends AdcBaseRoute {\n /** @override */\n routeId = EmberCcControl;\n\n /** @override */\n model(): CcControlRouteModel {\n return {\n devices: this.store\n .findRecord('settings/manage-devices/zwave-device-catalog', this.contextManager.getContextId())\n .then((deviceCatalog) => deviceCatalog.basicCommandClassSupportedDevices)\n };\n }\n\n async afterModel(model: CcControlRouteModel, transition: Transition): Promise {\n const devices = await model.devices;\n\n if (isEmpty(devices)) {\n this.router\n .transitionTo('index')\n .finally(() => this.notificationManager.addWarning(this.intl.t('generic.routeNotAllowed')));\n }\n\n return super.afterModel(model, transition);\n }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberSmartChime } from 'customer-site/enums/CustomerPageUrl';\nimport { EmberRulesBuilder } from '../../../enums/CustomerPageUrl';\nimport { EmberRulesBuilderRules } from '../../../enums/RuleDisplayType';\n\nimport type Navigation from 'customer-site/services/navigation';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type EmberSmartChimeRoute from '../route';\n\nexport default class HomeChimesIndexController extends Controller {\n @service declare navigation: Navigation;\n declare model: ModelFrom;\n\n /**\n * Transition to the page to create a new rule via the Ember Rules Builder.\n */\n @action createNewRuleWithEmberRulesBuilder(): void {\n this.navigation.transitionToRouteId(EmberRulesBuilder, 'new', {\n queryParams: {\n returnToAfterSave: EmberSmartChime,\n returnToAfterSaveSlug: this.model?.selectedSmartChime?.id\n }\n });\n }\n\n get getQueryParams(): Record {\n return {\n returnToAfterSave: EmberSmartChime,\n returnToAfterSaveSlug: this.model?.selectedSmartChime?.id\n };\n }\n\n /**\n * Return true when the customer is able to create rules through ember rules builder.\n */\n get canCreateChimeRules(): boolean {\n const allowedRules = this.model?.permissions?.allowedRuleDisplays ?? [];\n return (\n allowedRules.includes(EmberRulesBuilderRules) &&\n (this.navigation.getRouteItem(EmberRulesBuilder) ?? false) &&\n (this.model?.selectedSmartChime?.shouldShowChimeScheduling ?? false)\n );\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/chimes/index': HomeChimesIndexController;\n }\n}\n","import { inject as service } from '@ember/service';\nimport { isFullTransition } from '../../utils/ember';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberSmartChime } from 'customer-site/enums/CustomerPageUrl';\nimport { Chime } from 'customer-site/enums/WebDeviceType';\n\nimport type Store from '@ember-data/store';\nimport type Transition from '@ember/routing/transition';\nimport type SmartChimeDevice from 'customer-site/models/devices/smart-chime-device';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type AutomationPermissionsModel from '../../models/automation/permission';\n\nexport type BaseChimeSettingsRouteModel = {\n selectedSmartChime: SmartChimeDevice;\n smartChimes: SmartChimeDevice[];\n};\n\n/**\n * @classdesc\n * Chime Index page route\n */\nexport default class EmberSmartChimeRoute extends AdcBaseRoute {\n @service declare store: Store;\n @service declare contextManager: ContextManager;\n\n /** @override */\n routeId = EmberSmartChime;\n\n /**\n * The retrieved rules Permission model.\n */\n permissions?: AutomationPermissionsModel;\n\n /** @override */\n async beforeModel(transition: Transition): Promise {\n await super.beforeModel(transition);\n\n if (!this.permissions || isFullTransition(transition)) {\n const permissions = await this.store.queryRecord('automation/permission', {\n id: this.contextManager.getContextId(),\n deviceType: Chime\n });\n this.permissions = permissions;\n }\n }\n\n async model({ id_smart_chime_device }: { id_smart_chime_device: string }) {\n const smartChimes = await this.store.findAll('devices/smart-chime-device');\n return {\n selectedSmartChime: this.store.peekRecord('devices/smart-chime-device', id_smart_chime_device),\n smartChimes: smartChimes,\n chimeRules: this.store.query('automation/rules/rule', {\n deviceType: Chime,\n globalDeviceId: id_smart_chime_device\n }),\n permissions: this.permissions\n };\n }\n}\n","import { inject as service } from '@ember/service';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberSmartChimeSettings } from 'customer-site/enums/CustomerPageUrl';\n\nimport type Store from '@ember-data/store';\nimport type SmartChimePermission from 'customer-site/models/devices/permissions/smart-chime-permission';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type { BaseChimeSettingsRouteModel } from '../route';\n\n/**\n * @classdesc\n * Chime Index page route\n */\nexport default class EmberSmartChimeSettingsRoute extends AdcBaseRoute {\n @service declare contextManager: ContextManager;\n @service declare store: Store;\n\n /** @override */\n routeId = EmberSmartChimeSettings;\n\n model(): Pick & {\n smartChimePermissions: ADCAsyncStoreFindRecord;\n } {\n const baseRouteModel = this.modelFor('home.chimes') as BaseChimeSettingsRouteModel;\n return {\n selectedSmartChime: baseRouteModel.selectedSmartChime,\n smartChimes: baseRouteModel.smartChimes,\n smartChimePermissions: this.store.findRecord(\n 'devices/permissions/smart-chime-permission',\n this.contextManager.getContextId(),\n { reload: false }\n )\n };\n }\n}\n","import { inject as service } from '@ember/service';\nimport { EmberSmartChimeWirelessNetworks } from 'customer-site/enums/CustomerPageUrl';\nimport AdcBaseRoute from '../../../classes/base-route';\nimport { getNetworksAttachedToVideoCameras } from '../../../models/settings/panel-wifi/wifi-network';\n\nimport type Store from '@ember-data/store';\nimport type SmartGateway from 'customer-site/models/devices/smart-gateway';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type { BaseChimeSettingsRouteModel } from '../route';\n\n/**\n * @classdesc\n * Wireless network settings for smart chime route.\n */\nexport default class SmartChimeWirelessRoute extends AdcBaseRoute {\n @service declare ajax: AjaxService;\n @service declare store: Store;\n\n /** @override */\n routeId = EmberSmartChimeWirelessNetworks;\n\n async model(): Promise<\n Pick & {\n networksAttachedToVideoCameras: unknown;\n smartGateways: ADCAsyncStoreFindAll;\n }\n > {\n const baseRouteModel = this.modelFor('home.chimes') as BaseChimeSettingsRouteModel;\n\n return {\n selectedSmartChime: baseRouteModel.selectedSmartChime,\n smartChimes: baseRouteModel.smartChimes,\n networksAttachedToVideoCameras: await getNetworksAttachedToVideoCameras(this.ajax).then((res) => res.data),\n smartGateways: this.store.findAll('devices/smart-gateway')\n };\n }\n}\n","import { isEmpty } from '@ember/utils';\nimport AdcBaseRoute from '../../classes/base-route';\n\nimport type Transition from '@ember/routing/transition';\nimport type BaseDevice from 'customer-site/models/devices/base-device';\nimport type System from 'customer-site/models/systems/system';\n\nexport interface BaseDeviceDetailsRouteModel {\n devices: Promise;\n}\n\nexport default abstract class BaseDeviceDetailsRoute extends AdcBaseRoute {\n /**\n * Relationship on system model for this device type\n */\n abstract systemModelRelationship: keyof System;\n\n model(): BaseDeviceDetailsRouteModel {\n const relationship = this.systemModelRelationship;\n // Gets fresh system model and reloads only the relevant device relationship\n return {\n devices: this.identityManager\n .getSelectedSystem(true, [relationship])\n .then((system) => system[relationship])\n };\n }\n\n /**\n * Redirects user to home with routeNotAllowed message if all given models are empty. Called by afterModel function.\n */\n redirectToHomeIfEmptyModel(modelsToCheck: BaseDevice[][]): boolean {\n const redirect = modelsToCheck.every(isEmpty);\n if (redirect) {\n this.router\n .transitionTo('index')\n .finally(() => this.notificationManager.addWarning(this.intl.t('generic.routeNotAllowed')));\n }\n\n return redirect;\n }\n\n /**\n * Can be overridden in subclasses to return the models that should exist for this route to render.\n */\n async getModelsToCheck(model: BaseDeviceDetailsRouteModel): Promise {\n const devices = await model.devices;\n return [devices.slice()];\n }\n\n /**\n * Ensures that a device route cannot be accessed without any matching devices.\n *\n * @param {{ devices: Promise }} model\n */\n async afterModel(model: BaseDeviceDetailsRouteModel, transition: Transition): Promise {\n const models = await this.getModelsToCheck(model);\n if (this.redirectToHomeIfEmptyModel(models)) {\n return;\n }\n\n return super.afterModel(model, transition);\n }\n}\n","import { inject as service } from '@ember/service';\nimport { isPresent } from '@ember/utils';\nimport AdcBaseRoute from '../../classes/base-route';\nimport { EmberFeatureSuggestions } from '../../enums/CustomerPageUrl';\n\nimport type Store from '@ember-data/store';\nimport type FeatureCategory from 'customer-site/models/feature-suggestions/feature-category';\n\nexport interface FeatureSuggestionsModel {\n featureCategories: ADCAsyncStoreFindAll;\n selectedCategory: Promise;\n}\n\n/**\n * Displays lists of feature suggestions grouped by feature categories.\n */\nexport default class FeatureSuggestionsRoute extends AdcBaseRoute {\n @service declare store: Store;\n\n routeId = EmberFeatureSuggestions;\n\n queryParams = {\n goToCategory: {\n replace: true,\n type: 'number'\n }\n };\n\n model({ goToCategory }: { goToCategory?: number }): FeatureSuggestionsModel {\n const featureCategories = this.store.findAll('feature-suggestions/feature-category');\n\n return {\n featureCategories,\n selectedCategory: featureCategories.then((categories) =>\n isPresent(goToCategory) ? categories.findBy('categoryEnum', goToCategory) : undefined\n )\n };\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type GarageDoor from 'customer-site/models/devices/garage-door';\n\n/**\n * Details/edit page for a garage door by given ID\n */\nexport default class GarageEditRoute extends BaseEditDeviceRoute {}\n","import GarageCard from 'customer-site/components/dashboard-cards/devices/garage-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type GarageModel from 'customer-site/models/devices/garage-door';\n\nexport default class GarageIndexController extends BaseDeviceDetailsController {\n card = GarageCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/garage/index': GarageIndexController;\n }\n}\n","import { EmberGarageDoors } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type GarageModel from 'customer-site/models/devices/garage-door';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class HomeGarageDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberGarageDoors;\n\n /** @override */\n systemModelRelationship: keyof System = 'garageDoors';\n}\n","import { EmberGarageDoorsRules } from '../../../enums/CustomerPageUrl';\nimport { GarageDoor } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.garage.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.garage.rules\n */\nexport default class GarageRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberGarageDoorsRules;\n\n /** @override */\n getDeviceType() {\n return GarageDoor;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Gate from 'customer-site/models/devices/gate';\n\n/**\n * Details/edit page for a gate by given ID\n */\nexport default class GateEditRoute extends BaseEditDeviceRoute {}\n","import GateCard from 'customer-site/components/dashboard-cards/devices/gate-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type GateModel from 'customer-site/models/devices/gate';\n\nexport default class GatesIndexController extends BaseDeviceDetailsController {\n card = GateCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/gates/index': GatesIndexController;\n }\n}\n","import { EmberGates } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type GateModel from 'customer-site/models/devices/gate';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class HomeGatesRoutes extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberGates;\n\n /** @override */\n systemModelRelationship: keyof System = 'gates';\n}\n","import { EmberGatesRules } from '../../../enums/CustomerPageUrl';\nimport { Gate } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.garage.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.garage.rules\n */\nexport default class GateRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberGatesRules;\n\n /** @override */\n getDeviceType() {\n return Gate;\n }\n}\n","import { EmberImageSensorRules } from '../../../enums/CustomerPageUrl';\nimport { ImageSensor } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.image-sensors.rules.ImageSensorRulesRoute\n * @extends home.BaseHomeToAutomationRoute\n */\nexport default class ImageSensorRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberImageSensorRules;\n\n /** @override */\n getDeviceType() {\n return ImageSensor;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{tc this \\'recentActivity\\'}}

\\n
\\n \\n\\n <:card-body>\\n \\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/activity/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { createToolbarButton } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport { EmberEventHistory } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type { DashboardCardToolbarButtons } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport type HistoryEventModel from 'customer-site/models/activity/history-event';\nimport type HomePageManagerService from 'customer-site/services/homepage-manager';\nimport type NavigationService from 'customer-site/services/navigation';\n\ninterface DashboardCardsActivitySignature {\n Args: {\n devices: T[];\n cardId: number;\n };\n}\n\n/**\n * Max number of events we want to show on the card\n */\nconst NUMBER_OF_EVENTS = 12;\n\n/**\n * @classdesc\n * The homepage recent activity dashboard card.\n */\n@intlPath({ path: 'dashboard-cards/activity' })\nexport default class DashboardCardsActivity extends Component> {\n @service declare intl: ADCIntlService;\n @service declare store: Store;\n @service declare homepageManager: HomePageManagerService;\n @service declare navigation: NavigationService;\n\n /**\n * Query the store for the starting events and return a live record array so we can catch websocket events as they come in\n */\n populateActivityHistory = task({ drop: true }, async () => {\n const { store } = this,\n modelName = 'activity/history-event';\n\n store.unloadAll(modelName);\n await store.query(modelName, {\n includeCommands: false,\n numberOfEvents: NUMBER_OF_EVENTS\n });\n\n return store.peekAll(modelName);\n });\n\n /**\n * Fetches and filters the activity events to display.\n */\n get activityItems(): HistoryEventModel[] {\n return this.historyEvents.sortBy('eventDate').reverse().slice(0, NUMBER_OF_EVENTS);\n }\n\n get toolbarButtons(): DashboardCardToolbarButtons {\n return [\n createToolbarButton(this.intl.t('generic.moreActivity'), 'chevron-right', {\n fn: () => this.navigation.transitionToRouteId(EmberEventHistory)\n })\n ];\n }\n\n /**\n * Indicates the item list should be keyboard accessible.\n */\n @tracked isListKeyboardActive = false;\n\n /**\n * The live record set of history events\n */\n get historyEvents(): ADCRecordArray | never[] {\n return this.populateActivityHistory.lastSuccessful?.value ?? [];\n }\n\n /**\n * Updates the isListKeyboardActive property if this card is active.\n */\n @action checkActiveCard(el: HTMLElement): void {\n this.isListKeyboardActive = el.id === this.homepageManager.activeCardId;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Activity': typeof DashboardCardsActivity;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n {{#if (await this.ruleSlots)}}\\n \\n

{{tc this \\'businessActivityAnalytics\\'}}

\\n
\\n {{/if}}\\n \\n\\n <:card-body>\\n \\n {{#if ruleSlots}}\\n \\n \\n \\n {{else}}\\n
\\n

{{tc this \\'supportsBaa\\'}}

\\n

{{tc this \\'clickToConfigure\\'}}

\\n \\n
\\n {{/if}}\\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/business-activity-analytics/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { createToolbarButton } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport { ruleTypesToSlotTypes } from 'customer-site/components/video/advanced-analytics/device-rule-slots/index';\nimport { EmberVideoBusinessActivityAnalyticsRuleList } from 'customer-site/enums/CustomerPageUrl';\nimport { BUSINESS_ACTIVITY_ANALYTICS_RULE_TYPES } from 'customer-site/models/video/devices/ov-ready-camera';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\n\n/**\n * @classdesc\n * The card for displaying Business Activity Analytics rules and their metrics.\n */\n@intlPath({ path: 'dashboard-cards/business-activity-analytics' })\nexport default class BusinessActivityAnalyticsCard extends Component {\n @service store;\n @service intl;\n @service navigation;\n\n // region Actions\n\n /**\n * Sends the user to the rule list page.\n *\n * @param {BaseRuleSlot} [slot]\n */\n @action\n transitionToRuleListPage(slot) {\n const args = [EmberVideoBusinessActivityAnalyticsRuleList],\n rule = slot?.rule;\n\n if (rule) {\n args.push({\n queryParams: {\n cameraId: rule.belongsTo('camera').id()\n }\n });\n }\n\n this.navigation.transitionToRouteId(...args);\n }\n\n // endregion\n\n // region Computed Properties\n\n /**\n * Creates the chevron-right button that sends the user to the rule list page.\n *\n * @type {{icon: String, fn: Function, text: String, css: String}[]}\n */\n @computed()\n get toolbarButtons() {\n return [\n createToolbarButton(this.intl.t('generic.details'), 'chevron-right', {\n fn: () => this.transitionToRuleListPage()\n })\n ];\n }\n\n /**\n * Gets a list of all the BAA rule models.\n *\n * @returns {Promise}\n */\n @computed()\n get ruleSlots() {\n return (async () => {\n const rules = await this.store.findAll('video/ov-rule');\n return rules\n .filter((rule) => BUSINESS_ACTIVITY_ANALYTICS_RULE_TYPES.includes(rule.ruleType))\n .map((rule) => {\n const slotNumber = rule.id.split('_')[1],\n SlotType = ruleTypesToSlotTypes[rule.ruleType];\n\n return new SlotType(this, { rule, slotNumber });\n })\n .sortBy('rule.camera.id', 'slotNumber');\n })();\n }\n\n // endregion\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n \\n
\\n
\\n {{@activeVehicles}}/{{@totalVehicles}}\\n
\\n
{{@description}}
\\n
\",{ moduleName: \"customer-site/components/dashboard-cards/commercial-fleet/fleet-engine-status/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\n\n/**\n * @interface CommercialFleetEngineStatusSignature\n * @args {string} icon : Svg icon displayed in Engine Status in Fleet Dashboard Card\n * @args {string} title : Title for the svg icon above\n * @args {string} svgClass : Css class used to change color of svg icon (for Engine On svg Icon)\n * @args {number} activeVehicles : Number of active vehicles to be displayed\n * @args {number} totalVehicles : Number of total vehicles to be displayed\n * @args {string} description : Text that describes svg icon and the numbers of vehicles\n */\nexport interface CommercialFleetEngineStatusSignature {\n Args: {\n icon: string;\n title: string;\n svgClass: string;\n activeVehicles: number;\n totalVehicles: number;\n description: string;\n };\n}\n\n@intlPath({ path: 'dashboard-cards/commercial-fleet/fleet-engine-status' })\nexport default class DashboardCardsCommercialFleetEngineStatus extends Component {}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::CommercialFleet::FleetEngineStatus': typeof DashboardCardsCommercialFleetEngineStatus;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n {{@text}}\\n
\",{ moduleName: \"customer-site/components/dashboard-cards/commercial-fleet/fleet-issues-row/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\n\n/**\n * @interface CommercialFleetIssuesRowSignature\n * @args {string} icon : Svg icon first displayed in issues/alerts rows in Fleet Dashboard Card\n * @args {string} text : Text that describes icon above\n * @args {string} extraClass : Css class used to change color of icon (active red/orange icon when there are vehicles with issues/alerts or gray icon when no vehicles with issues/alerts)\n */\nexport interface CommercialFleetIssuesRowSignature {\n Args: {\n icon: string;\n text: string;\n extraClass: string;\n };\n}\n\n@intlPath({ path: 'dashboard-cards/commercial-fleet/fleet-issues-row' })\nexport default class DashboardCardsCommercialFleetIssuesRow extends Component {}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::CommercialFleet::FleetIssuesRow': typeof DashboardCardsCommercialFleetIssuesRow;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{tc this \\'dashboardCardName\\'}}

\\n
\\n \\n\\n <:card-body>\\n \\n
\\n
\\n
\\n \\n\\n \\n
\\n\\n \\n\\n \\n
\\n
\\n
\\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/commercial-fleet/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { inject as service } from '@ember/service';\nimport { createToolbarButton } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport { EmberConnectedFleetDashboard } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type { DashboardCardToolbarButtons } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { ContainerCardSignature } from '../container-card';\n\nexport interface CommercialFleetCardSignature {\n Args: Pick;\n}\n\ntype CommercialFleetCardsInfo = {\n numberOfVehicles: number;\n numberOfVehiclesDrivenToday: number;\n numberOfVehiclesWithEngineOn: number;\n numberOfVehiclesWithAlerts: number;\n numberOfVehiclesWithIssues: number;\n};\n\n@intlPath({ path: 'dashboard-cards/commercial-fleet' })\nexport default class DashboardCardsCommercialFleet extends Component {\n @service declare intl: ADCIntlService;\n @service declare store: Store;\n @service declare navigation: NavigationService;\n\n /**\n * Get ToolBar buttons\n */\n get toolbarButtons(): Promise {\n return (async () => {\n const fnTransition = (): ReturnType =>\n this.navigation.transitionToRouteId(EmberConnectedFleetDashboard),\n fleetCardToolbarButtons = [];\n\n fleetCardToolbarButtons.push(\n createToolbarButton(this.intl.t('generic.details'), 'chevron-right', {\n fn: fnTransition\n })\n );\n\n return fleetCardToolbarButtons;\n })();\n }\n\n /**\n * Get Fleet Data from /api/fleet/fleetVehicle\n */\n get fleetData(): Promise {\n return (async () => {\n let fleetCardInfo: CommercialFleetCardsInfo = {\n numberOfVehicles: 0,\n numberOfVehiclesDrivenToday: 0,\n numberOfVehiclesWithEngineOn: 0,\n numberOfVehiclesWithAlerts: 0,\n numberOfVehiclesWithIssues: 0\n };\n const vehicles = await this.store.findAll('fleet/fleet-vehicle');\n fleetCardInfo = {\n numberOfVehicles: vehicles.length,\n numberOfVehiclesDrivenToday: vehicles.filter((vehicle) => vehicle.tripsSinceBeginningOfDay !== 0)\n .length,\n numberOfVehiclesWithEngineOn: vehicles.filter((vehicle) => vehicle.isEngineOn).length,\n numberOfVehiclesWithAlerts: vehicles.filter((vehicle) => vehicle.hasAlerts).length,\n numberOfVehiclesWithIssues: vehicles.filter((vehicle) => vehicle.hasIssues).length\n };\n return fleetCardInfo;\n })();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::CommercialFleet': typeof DashboardCardsCommercialFleet;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{tc this \\'temperatureMonitoring\\'}}

\\n \\n \\n\\n <:card-body>\\n \\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/commercial-temperatures-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { action } from '@ember/object';\nimport { sort, bool } from '@ember/object/computed';\nimport { scheduleOnce } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberTemperatures } from '../../../../enums/CustomerPageUrl';\nimport { ICON_TEMPERATURE } from '../../../icons/circles/device-status/index';\nimport BaseDeviceCard from '../base-card';\n\nimport './_style.scss';\nimport type Store from '@ember-data/store';\nimport type CommercialTemperatureSensorModel from 'customer-site/models/devices/commercial-temperature-sensor';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * @classdesc\n * The card for displaying/editing water valve device state.\n */\n@intlPath({ path: 'dashboard-cards/devices/commercial-temperatures-card' })\nexport default class CommercialTemperaturesCard extends BaseDeviceCard<\n CommercialTemperatureSensorModel,\n BaseCardSignature\n> {\n @service declare store: Store;\n\n // region Overrides\n\n /** @override */\n iconType = ICON_TEMPERATURE;\n\n /** @override */\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n /** @override */\n detailsRouteId = EmberTemperatures;\n\n // endregion\n\n deviceSortProperties = ['isInRange:asc', 'hasIssues:desc', 'description:asc'];\n\n /**\n * sort by devices that are currently out of range, then by issues, then by name\n */\n @sort('args.devices', 'deviceSortProperties')\n declare sortedDevices: CommercialTemperatureSensorModel[];\n\n private refreshState(): void {\n const { sortedDevices } = this;\n sortedDevices.setEach('shouldPollRefreshState', false);\n sortedDevices.invoke('refreshState');\n }\n\n @bool('sortedDevices.firstObject.shouldPollRefreshState')\n declare willHardRefresh: boolean;\n\n @action refreshDeviceState(): void {\n if (this.willHardRefresh) {\n // Do not copy this deprecated usage. If you see this, please fix.\n // eslint-disable-next-line ember/no-runloop\n scheduleOnce('afterRender', this, this.refreshState);\n }\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n

{{this.seconds}}

\\n

{{t \\'generic.seconds\\' num=undefined}}

\\n
\",{ moduleName: \"customer-site/components/ui/countdown-timer/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { task, timeout } from 'ember-concurrency';\n\nimport './_style.scss';\n\ninterface CountdownTimerSignature {\n Element: HTMLElement;\n Args: {\n /** The duration of the countdown in milliseconds */\n duration: number;\n /** Optional callback function to be executed when countdown reaches zero */\n onComplete?: VoidFunction;\n };\n}\n\nexport default class CountdownTimerComponent extends Component {\n @tracked timeLeft: number;\n\n constructor(owner: unknown, args: CountdownTimerSignature['Args']) {\n super(owner, args);\n\n // use duration as time left\n this.timeLeft = args.duration;\n this.startCountdownEmber.perform();\n }\n\n startCountdownEmber = task(async () => {\n for (;;) {\n await timeout(1000);\n\n if ((this.timeLeft = Math.max(this.timeLeft - 1000, 0)) <= 0) {\n this.args.onComplete?.();\n return;\n }\n }\n });\n\n get seconds(): number {\n return Math.round(this.timeLeft / 1000);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Ui::CountdownTimer': typeof CountdownTimerComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{tc this \\\"fogGenerators\\\"}}

\\n \\n \\n\\n <:card-body>\\n \\n <:prompt-view >\\n \\n <:label as |device|>\\n {{#unless this.isHomeCard}}\\n

{{device.displayDate}}

\\n {{/unless}}\\n \\n \\n \\n\\n <:prompt-edit>\\n
\\n {{#if this.isIdle}}\\n \\n \\n {{else if this.isPendingDeployment}}\\n

{{tc this \\\"deployMessage\\\"}}

\\n \\n
\\n \\n \\n
\\n {{else if this.isDeploying}}\\n

{{tc this \\\"deployingMessage\\\"}}

\\n \\n {{else if this.isDeployed}}\\n

{{tc this \\\"deployedMessage\\\"}}

\\n \\n
\\n \\n \\n
\\n {{/if}}\\n
\\n \\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/devices/fog-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { tracked } from '@glimmer/tracking';\nimport { action, set, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { Deployed, Deploying, Idle, Scheduled } from 'customer-site/enums/SFGDeviceStatus';\nimport { intlPath } from '@adc/i18n/path';\nimport { EmberHome, EmberAlertsIssues } from '../../../../enums/CustomerPageUrl';\nimport { ICON_FOG_DEVICE } from '../../../icons/circles/device-status/index';\nimport { createToolbarButton } from '../../card-toolbar/index';\nimport BaseDeviceCard from '../base-card';\n\nimport type { DashboardCardToolbarButtons } from '../../card-toolbar/index';\nimport './_style.scss';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type Store from '@ember-data/store';\nimport type SfgModel from 'customer-site/models/devices/security-fog-generator';\nimport type TroubleCondition from 'customer-site/models/trouble-conditions/trouble-condition';\nimport type { BaseCardSignature } from '../base-card';\n\n/**\n * @classdesc\n * Shared device dashboard and details route card.\n */\n@intlPath({ path: 'dashboard-cards/devices/fog-card' })\nexport default class DashboardCardsDevicesSecurityFogGeneratorCard extends BaseDeviceCard<\n SfgModel,\n BaseCardSignature\n> {\n @service declare modals: ModalService;\n @service declare store: Store;\n\n /** @override */\n get isIconCard(): boolean {\n return true;\n }\n\n /** @override */\n detailsRouteId = EmberHome;\n\n /** @override */\n iconType = ICON_FOG_DEVICE;\n\n @tracked\n troubleConditions: TroubleCondition[] = [];\n\n /** @override */\n get rightToolbarButtons(): DashboardCardToolbarButtons {\n const buttons = super.rightToolbarButtons;\n if (this.troubleConditions.length > 0) {\n buttons.unshift(\n createToolbarButton(this.intl.tc(this, 'troubleConditions'), 'warning', {\n css: 'sfg-tc-icn',\n fn: () => this.navigation.transitionToRouteId(EmberAlertsIssues)\n })\n );\n }\n return buttons;\n }\n\n @tracked\n declare editSfg: SfgModel;\n\n constructor(owner: unknown, args: BaseCardSignature['Args']) {\n super(owner, args);\n this.editSfg = this.store.peekRecord('devices/security-fog-generator', { ...this.cardDevices }[0].id)!;\n this.getTroubleConditionsTask.perform();\n if (!this.isIdle) {\n this.editDeviceState(this.editSfg);\n }\n }\n\n getTroubleConditionsTask = task(this, { restartable: true }, async () => {\n this.troubleConditions = await this.editSfg.getFilteredTroubleConditions(this.editSfg.id);\n });\n\n get showRefreshButton(): boolean {\n return !this.isHomeCard;\n }\n\n @computed('editSfg', 'isIdle')\n get stateCSS(): string {\n return (!this.isIdle ? 'sfg-deploying' : '') + ' ' + (this.editSfg?.getStateCssFn()() ?? '');\n }\n\n @computed('editSfg.nextScheduledDeploymentUtc')\n get countdownDuration(): number {\n return (this.editSfg.nextScheduledDeploymentUtc?.getTime() ?? Date.now()) - Date.now();\n }\n\n @computed('editSfg.deploymentStatus')\n get isIdle(): boolean {\n return this.editSfg.deploymentStatus === Idle;\n }\n\n @computed('editSfg.deploymentStatus')\n get isPendingDeployment(): boolean {\n return this.editSfg.deploymentStatus === Scheduled;\n }\n\n @computed('editSfg.deploymentStatus')\n get isDeploying(): boolean {\n return this.editSfg.deploymentStatus === Deploying;\n }\n\n @computed('editSfg.deploymentStatus')\n get isDeployed(): boolean {\n return this.editSfg.deploymentStatus === Deployed;\n }\n\n @action\n afterCountdown(): void {\n set(this.editSfg, 'deploymentStatus', Deploying);\n }\n\n @action\n onDeploymentCancel(): void {\n set(this.editSfg, 'deploymentStatus', Idle);\n this.editDevice = undefined;\n }\n\n @action\n onDeployNow(): void {}\n\n @action\n onStopSiren(): void {\n set(this.editSfg, 'deploymentStatus', Idle);\n }\n\n @action\n openDeployConfirmation(): void {\n const { editSfg, intl } = this;\n this.modals.showConfirmationDialog(\n intl.tc(this, 'fogGenerators'),\n intl.tc(this, 'fogDeployMessage'),\n {\n text: intl.tc(this, 'sfgDeploy'),\n action: () => {\n if (editSfg) {\n editSfg.deployDevice();\n }\n },\n css: 'sfg-deploying'\n },\n {\n text: intl.t('generic.cancel'),\n action: () => {\n this.onDeploymentCancel();\n }\n }\n );\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{#each this.toggleSettings as |toggleSetting|}}\\n \\n {{/each}}\\n
\",{ moduleName: \"customer-site/components/dashboard-cards/card-settings/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { Hero } from 'customer-site/enums/CardType';\nimport { Activity, Video, None } from 'customer-site/enums/DefaultView';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type HomeCard from 'customer-site/models/ui/home-card';\nimport type ContextManager from 'customer-site/services/context-manager';\n\nexport interface CardSettingsSignature {\n Args: {\n deviceId?: string;\n cardType: string;\n };\n}\n\ntype Settings = {\n description: string;\n icon: string;\n iconTitle: string;\n selected: boolean;\n action: () => void;\n};\n\n/**\n * The hero card settings component.\n */\nexport default class CardSettings extends Component {\n @service declare store: Store;\n @service declare intl: ADCIntlService;\n @service declare contextManager: ContextManager;\n\n /**\n * Preexisting settings of the card.\n */\n get cardModel(): HomeCard | null {\n return this.store.peekRecord('ui/home-card', `${this.args.cardType}-${this.args.deviceId || 0}`);\n }\n\n @reads('contextManager.identityModel.canViewVideoClips')\n declare hasVideoClips: boolean;\n\n /**\n * Settings available for the card.\n */\n @computed('cardModel.{isVisible,cardType,isCollapsed,defaultView}', 'hasVideoClips')\n get toggleSettings(): Settings[] {\n const { cardModel, intl } = this,\n cardIsHidden = !cardModel?.isVisible ?? false,\n description = intl.t(cardIsHidden ? 'generic.show' : 'generic.hide'),\n isHero = cardModel?.cardType === Hero;\n\n return [\n isHero ? this.getHeroCardSettings('generic.activityHistory', 'activity-history', Activity) : undefined,\n isHero && this.hasVideoClips\n ? this.getHeroCardSettings('generic.video.clips', 'video-record', Video)\n : undefined,\n {\n description,\n icon: cardIsHidden ? 'invisible' : 'visible',\n iconTitle: intl.t(`generic.${cardIsHidden ? 'hidden' : 'visible'}`),\n selected: cardIsHidden,\n action: () => cardModel?.set('isVisible', !cardModel.isVisible)\n }\n ].compact();\n }\n\n /**\n * Settings for the hero card.\n *\n * @param key\n * @param icon\n * @param view\n *\n * @returns settings\n */\n getHeroCardSettings(key: string, icon: string, view: number): Settings {\n const description = this.intl.t(key),\n defaultView = this.cardModel?.defaultView ?? 1,\n cardIsHidden = !this.cardModel?.isVisible ?? false,\n setView = defaultView === None ? (this.hasVideoClips ? Video : Activity) : defaultView;\n\n return {\n description,\n icon,\n iconTitle: description,\n selected: setView === view && !cardIsHidden,\n action: () =>\n this.cardModel?.setProperties({\n isVisible: true,\n isCollapsed: false,\n defaultView: view\n })\n };\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::CardSettings': typeof CardSettings;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!-- @glint-expect-error featureCategories is a promise, we need to await it or use get to access the length. --}}\\n{{#let (tc this (if (eq this.featureCategories.length 1) \\'myTasks\\' \\'featureSuggestions\\')) as |cardName|}}\\n \\n <:card-toolbar>\\n \\n

{{cardName}}

\\n
\\n \\n\\n <:card-body>\\n \\n \\n \\n\\n
\\n {{category.name}} {{category.status}}\\n
\\n \\n \\n \\n\\n <:card-settings>\\n \\n \\n \\n{{/let}}\\n\",{ moduleName: \"customer-site/components/dashboard-cards/feature-suggestions/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { createToolbarButton } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport { EmberFeatureSuggestions } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type { DashboardCardToolbarButtons } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport type FeatureCategory from 'customer-site/models/feature-suggestions/feature-category';\nimport type HomePageManagerService from 'customer-site/services/homepage-manager';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { CardSettingsSignature } from '../card-settings';\nimport type { ContainerCardSignature } from '../container-card';\n\ninterface DashboardCardsFeatureSuggestionsSignature {\n Args: Pick & Pick;\n}\n\n/**\n * The homepage feature suggestions dashboard card.\n */\n@intlPath({ path: 'dashboard-cards/feature-suggestions' })\nexport default class DashboardCardsFeatureSuggestions extends Component {\n @service declare intl: ADCIntlService;\n @service declare navigation: NavigationService;\n @service declare store: Store;\n @service declare homepageManager: HomePageManagerService;\n\n /**\n * List of feature categories.\n */\n get featureCategories(): Promise {\n return this.store\n .findAll('feature-suggestions/feature-category')\n .then((categories) => categories?.toArray() ?? []);\n }\n\n /**\n * The toolbar buttons\n */\n get toolbarButtons(): DashboardCardToolbarButtons {\n return [\n createToolbarButton(this.intl.t('generic.details'), 'chevron-right', {\n css: 'details',\n fn: () =>\n this.navigation.transitionToRouteId(EmberFeatureSuggestions, {\n queryParams: {\n goToCategory: -1\n }\n })\n })\n ];\n }\n\n /**\n * Indicates if the item list should be keyboard accessible.\n */\n @tracked isListKeyboardActive = false;\n\n /**\n * Updates the isListKeyboardActive property if this card is active.\n */\n @action checkActiveCard(el: HTMLElement): void {\n this.isListKeyboardActive = el.id === this.homepageManager.activeCardId;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::FeatureSuggestions': typeof DashboardCardsFeatureSuggestions;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n {{#each this.thumbnails as |slide idx|}}\\n \\n \\n\\n {{#if slide.time}}\\n \\n {{/if}}\\n\\n \\n \\n {{/each}}\\n\\n
    \\n {{#if this.hasHighlights}}\\n
  • \\n \\n {{#if (is-fulfilled this.activityBar)}}\\n {{t\\n {{/if}}\\n

    {{t \\'generic.highlights\\'}}

    \\n \\n
  • \\n {{/if}}\\n\\n {{#each this.thumbnails as |thumb idx|}}\\n
  • \\n {{~#if thumb.relativeTime}}\\n
    \\n
    \\n \\n
    \\n {{/if~}}\\n\\n \\n
  • \\n {{/each}}\\n
\\n\\n \\n\\n \\n {{#if this.isPlayerVisible}}\\n
\\n {{~#if (await this.movieSrc)}}\\n \\n {{/if~}}\\n\\n {{#if (or this.videoError (and this.selectedVideoEvent this.emptySource))}}\\n
\\n

{{tc this \\'videoErrorMsg\\'}}

\\n
\\n {{/if}}\\n\\n \\n\\n \\n
\\n {{/if}}\\n
\\n
\\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/hero-card/saved-clips/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { getFocusableElements, isEnterOrSpaceCode, isEscapeCode } from '@adc/ember-utils/utils/a11y';\nimport { computed, action } from '@ember/object';\nimport { alias, and, or, empty } from '@ember/object/computed';\nimport { schedule } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { timeout, restartableTask } from 'ember-concurrency';\nimport DownloadOptionsModal from 'customer-site/components/modals/video/download-options/index';\nimport { GET } from '@adc/ajax/services/adc-ajax';\nimport { intlPath } from '@adc/i18n/path';\nimport { utcToZonedTime } from 'date-fns-tz';\nimport differenceInCalendarDays from 'date-fns/differenceInCalendarDays';\nimport ContainerObject from '../../../../utils/container-object';\n\nimport './_style.scss';\n\n/**\n * Aliases a {@link models.video.VideoEvent} for display as a saved clip.\n */\nclass Thumbnail extends ContainerObject {\n @service intl;\n\n @tracked model;\n\n /** @override */\n constructor(host, model) {\n super(host);\n\n this.model = model;\n }\n\n /**\n * Indicates this is the current thumbnail.\n *\n * @type {boolean}\n */\n @tracked isActive = false;\n\n /**\n * Indicates this thumbnail is current playing.\n *\n * @type {boolean}\n */\n @tracked isPlaying = false;\n\n /**\n * The date/time of the previous clip (if any).\n *\n * @type {Date}\n */\n @tracked previousTime;\n\n /**\n * The URL to retrieve the thumbnail image.\n *\n * @type {String}\n */\n @alias('model.thumbnail')\n thumbnail;\n\n /**\n * The name of the camera that captured this clip.\n *\n * @type {Promise}\n */\n @computed('model.camera')\n get cameraName() {\n return (async () => {\n const camera = await this.model.camera;\n return isEmpty(camera) ? this.intl.t('generic.video.deletedCamera') : camera.description;\n })();\n }\n\n /**\n * The date/time this clip was captured.\n *\n * @type {Date}\n */\n @computed('model.timestamp')\n get time() {\n return new Date(this.model.timestamp);\n }\n\n /**\n * How many days ago was this clip produced based on the system's timezone.\n *\n * @type {String}\n */\n @computed('intl.timeZone', 'previousTime', 'time')\n get relativeTime() {\n const timeZone = this.intl.timeZone;\n // Get days-ago value for current and previous clip times.\n const [now, then] = [this.time, this.previousTime].map(\n (time) =>\n time &&\n this.intl.formatRelative(\n -differenceInCalendarDays(utcToZonedTime(new Date(), timeZone), utcToZonedTime(time, timeZone)),\n {\n unit: 'day',\n numeric: 'auto',\n timeZone: this.intl.timeZone\n }\n )\n );\n\n return now !== then ? now : '';\n }\n\n /**\n * Returns the aria label for the given translation key.\n *\n * @param {String} key\n *\n * @returns {String}\n */\n async getAriaLabel(key) {\n const description = await this.cameraName;\n return this.intl.tc(this, key, {\n description,\n clipTime: this.intl.formatDateTz(this.time, {\n format: 'shortDateTimeFormat'\n })\n });\n }\n\n /**\n * The aria-label value for the thumbnail.\n *\n * @returns {String}\n */\n @computed('cameraName', 'time')\n get ariaThumb() {\n return this.getAriaLabel('selectClip');\n }\n\n /**\n * The aria-label value for the slide show image.\n *\n * @returns {String}\n */\n @computed('cameraName', 'time')\n get ariaSlide() {\n return this.getAriaLabel('ariaPlayClip');\n }\n}\n\n/**\n * A card for displaying a slide show of saved video clips (with inline video player), as well as links to live view cameras.\n */\n@intlPath({ path: 'dashboard-cards/hero-card/saved-clips' })\nexport default class SavedClipsCard extends Component {\n @service intl;\n @service modals;\n @service store;\n @service accessibility;\n @service homepageManager;\n @service envSettings;\n @service ajax;\n @service contextManager;\n\n /**\n * The file formats.\n */\n @computed()\n get fileFormats() {\n return this.store.findAll('video/download-format');\n }\n\n /**\n * Indicates the video failed to load.\n *\n * @type {boolean}\n */\n @tracked videoError = false;\n\n /**\n * Is the highlights player visible?\n *\n * @type {boolean}\n */\n @tracked areHighlightsVisible = false;\n\n /**\n * Is the player download-options modal open?\n *\n * @type {boolean}\n */\n @tracked isModalClosed = true;\n\n /**\n * Can the user view highlights?\n *\n * @type {boolean}\n */\n @alias('contextManager.identityModel.canViewHighlights')\n hasHighlights;\n\n /**\n * The slider/thumbnails to display.\n *\n * @type {Array}\n */\n @computed('args.videoEvents.[]')\n get thumbnails() {\n // Convert videoEvents to array of Thumbnail objects, sorted from newest to oldest.\n const thumbnails = this.args.videoEvents\n .map((model) => new Thumbnail(this, model))\n .sortBy('time')\n .reverse();\n\n // Update previous time label for each thumbnail.\n thumbnails.forEach((t, idx) => {\n // t.isActive = !idx;\n t.previousTime = thumbnails[idx - 1]?.time;\n });\n\n return thumbnails;\n }\n\n /**\n * @type {models.video.VideoEvent}\n */\n @computed('thumbnails.@each.isPlaying')\n get selectedVideoEvent() {\n return this.thumbnails.findBy('isPlaying')?.model;\n }\n\n /**\n * Focus trap options.\n */\n focusTrapOptions = {\n allowOutsideClick: true,\n escapeDeactivates: true,\n returnFocusOnDeactivate: true\n };\n\n /**\n * The movie source for the clip to be played.\n *\n * @type {String|Promise}\n */\n @computed('selectedVideoEvent')\n get movieSrc() {\n return this.selectedVideoEvent?.getPlaybackUrl() ?? '';\n }\n\n /**\n * Indicates the movie source is empty.\n *\n * @type {boolean}\n */\n @empty('movieSrc')\n emptySource;\n\n /**\n * Either have a video clip on screen or have the error message on screen.\n *\n * @type {boolean}\n */\n @or('videoError', 'movieSrc')\n isPlayerVisible;\n\n /**\n * Is the focus trapped on the video player?\n */\n @and('isPlayerVisible', 'isModalClosed')\n isPlayerFocused;\n\n /**\n * The next thumbnail that will be active after the current one.\n *\n * @type {components.dashboard-cards.hero-card.saved-clips.Card.Thumbnail}\n */\n @computed('thumbnails.@each.isActive')\n get nextThumbnail() {\n const { thumbnails } = this,\n nextIndex = thumbnails.indexOf(thumbnails.findBy('isActive')) + 1;\n\n return thumbnails.objectAt(nextIndex) ?? thumbnails.firstObject;\n }\n\n /**\n * Gets the resource name to render the activity bars for the day\n *\n * @type {Promise}\n */\n @computed()\n get activityBar() {\n return (async () => {\n const path = await this.ajax.apiRequest('activity/activityBar/today', null, null, GET);\n return this.contextManager.getStaticResourcePath(`webimages/hq_${path.value}`);\n })();\n }\n\n /**\n * Are thumbnails keyboard interactive?\n */\n @tracked areThumbnailsKeyboardInteractive = false;\n\n /**\n * Animates the slide show.\n *\n * @param {components.dashboard-cards.hero-card.saved-clips.Card.Thumbnail} thumbnail The thumbnail to select.\n *\n * @generator\n */\n @restartableTask *animateShow(thumbnail) {\n // Ensure initial slide is visible.\n this.updateActiveThumbnail(thumbnail);\n\n if (!this.envSettings.isTestEnvironment()) {\n while (true) {\n yield timeout(5000);\n\n // Show next thumbnail.\n this.updateActiveThumbnail(this.nextThumbnail);\n }\n }\n }\n\n /**\n * Updates all thumbnail active state.\n *\n * @param {components.dashboard-cards.hero-card.saved-clips.Card.Thumbnail} thumbnail The active thumbnail.\n */\n updateActiveThumbnail(thumbnail) {\n this.thumbnails.forEach((t) => (t.isActive = t === thumbnail));\n }\n\n /**\n * Selected the clip at the passed index.\n *\n * @param {number} index\n */\n @action selectClip(index) {\n this.animateShow.perform(this.thumbnails.objectAt(index));\n }\n\n /**\n * Called to configure and initiate play for the video element.\n *\n * @param {Event} evt\n */\n @action initVideoPlayer(evt) {\n const { timestampToStartClip } = this.selectedVideoEvent,\n { target: video } = evt;\n\n if (timestampToStartClip && video.readyState > 0 && !video.muted) {\n // For analytics clips we start them at the time of action.\n video.currentTime = timestampToStartClip;\n\n // Safari does not properly autoplay non-muted videos.\n video.muted = true;\n }\n\n video.play();\n }\n\n /**\n * Plays the saved clip from the passed {@link models.video.VideoEvent}.\n *\n * @param {number} index The index of thumbnail to play.\n */\n @action openPlayer(index) {\n this.accessibility.saveFocusedElement();\n\n this.animateShow.cancelAll();\n this.thumbnails.objectAt(index).isPlaying = true;\n\n const movieContainer = document.querySelector('.movie');\n const [firstElement] = getFocusableElements(movieContainer);\n firstElement?.focus();\n }\n\n /**\n * Closes saved clip video.\n */\n @action closePlayer() {\n const { thumbnails } = this;\n\n this.videoError = false;\n thumbnails.setEach('isPlaying', false);\n this.animateShow.perform(this.nextThumbnail);\n this.accessibility.restoreFocus();\n }\n\n /**\n * Downloads the clip with watermarking, if applicable.\n */\n @action async downloadClip() {\n this.accessibility.saveFocusedElement();\n this.isModalClosed = false;\n\n const formats = await this.fileFormats;\n\n this.modals.showModal(\n DownloadOptionsModal,\n {\n media: [this.selectedVideoEvent],\n formats\n },\n () => {\n this.isModalClosed = true;\n }\n );\n }\n\n /**\n * Called when a keyboard event is raised from the thumbnails container.\n *\n * @param { KeyboardEvent } event\n */\n @action keyupOnThumbnailsContainer(event) {\n const { target } = event;\n\n if (target.classList.contains('bottom-container')) {\n event.preventDefault();\n event.stopPropagation();\n\n const { code } = event;\n\n if (isEnterOrSpaceCode(code)) {\n this.areThumbnailsKeyboardInteractive = true;\n\n // Do not copy this deprecated usage. If you see this, please fix\n // eslint-disable-next-line ember/no-runloop\n schedule('afterRender', () => {\n const [firstElement] = getFocusableElements(target);\n firstElement?.focus();\n });\n } else if (isEscapeCode(code)) {\n this.areThumbnailsKeyboardInteractive = false;\n }\n }\n }\n\n /**\n * Toggles the highlights player to open or close\n */\n @action toggleHighlights() {\n this.areHighlightsVisible = !this.areHighlightsVisible;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n \\n
    \\n
  • {{@openCloseEvent.openCloseInfo}}
  • \\n
  • {{@openCloseEvent.openCloseTime}}
  • \\n
\\n \\n
\\n\\n {{#if this.isExpanded}}\\n
\\n
{{t \\'generic.moreActivity\\'}}
\\n {{#each (await this.openCloseHistory) as |event|}}\\n
\\n \\n
    \\n
  • {{event.openCloseInfo}}
  • \\n
  • {{event.openCloseTime}}
  • \\n
\\n
\\n {{/each}}\\n
\\n \\n
\\n
\\n {{/if}}\\n
\\n\",{ moduleName: \"customer-site/components/dashboard-cards/hero-card/business-hours/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { BusinessHourWarnings } from '../../../../enums/CustomerEventHistoryEventFilter';\nimport { EmberEventHistory, EventHistory } from '../../../../enums/CustomerPageUrl';\n\nimport './_style.scss';\n\n/**\n * Business Hours widget to be shown in the Hero card.\n */\nexport default class BusinessHoursComponent extends Component {\n @service navigation;\n\n /**\n * True if the widget is expanded.\n *\n * @type {boolean}\n */\n @tracked isExpanded = false;\n\n /**\n * The last five open/close events.\n *\n * @type {Promise}\n */\n @tracked openCloseHistory;\n\n /**\n * Expands the business-hours component.\n */\n @action toggleBusinessHoursHistory() {\n // Are we expanding the content AND have we not fetched the history yet?\n if (!this.isExpanded && !this.openCloseHistory) {\n // Update history.\n this.openCloseHistory = this.args.model.getOpenCloseHistory(true).then((data) => data.slice(1));\n }\n\n this.isExpanded = !this.isExpanded;\n }\n\n /**\n * Redirects to the Activity page.\n */\n @action viewAllActivity() {\n const { navigation } = this;\n\n // Transition to the ember page if we have permission, or the legacy page if we don't.\n navigation.transitionToRouteId(navigation.getRouteItem(EmberEventHistory) ? EmberEventHistory : EventHistory, {\n queryParams: {\n evtTypes: [BusinessHourWarnings]\n }\n });\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.issues}}\\n
\\n
\\n \\n\\n \\n {{this.issues.headerText}}\\n \\n\\n \\n
\\n
\\n{{/if}}\",{ moduleName: \"customer-site/components/dashboard-cards/hero-card/trouble-conditions/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberAlertsIssues } from 'customer-site/enums/CustomerPageUrl';\nimport { Alarm, Issue } from 'customer-site/enums/TroubleConditionSeverity';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\n\n/**\n * Gets the header text.\n *\n * @param {Array} [troubles=Array] - The trouble conditions currently active on the system.\n *\n * @returns {String}\n */\nfunction getTroubleConditionsHeaderText(troubles = []) {\n const numTroubles = troubles.length;\n\n if (!numTroubles) {\n return this.intl.tc(this, 'systemOk');\n }\n\n if (numTroubles === 1) {\n return troubles.firstObject.description;\n }\n\n const translationKey = [\n [Alarm, 'issues'],\n [Issue, 'alerts']\n ].reduce((value, [severity, key]) => (troubles.findBy('severity', severity) ? value : key), 'alertsAndIssues');\n\n return this.intl.tc(this, translationKey, { numTroubles: numTroubles });\n}\n\n/**\n * Trouble conditions widget to be shown in the Hero card.\n */\n@intlPath({ path: 'dashboard-cards/hero-card/trouble-conditions' })\nexport default class TroubleConditionsComponent extends Component {\n @service navigation;\n @service troubleConditions;\n @service intl;\n\n constructor(...args) {\n super(...args);\n\n Promise.resolve(this.troubleConditions.troublesPromise).then(() => (this.troubleConditionsLoaded = true));\n }\n\n /**\n * Did the trouble conditions finish loading?\n * This is to prevent to display \"System ok\" before the troubles are loaded.\n */\n @tracked troubleConditionsLoaded = false;\n\n /**\n * Trouble conditions.\n */\n @computed('args.loadData', 'troubleConditionsLoaded', 'troubleConditions.{troubles.[],didAcknowledge}')\n get issues() {\n const troubles = this.troubleConditions.troubles;\n\n if (!this.args.loadData || !troubles || !this.troubleConditionsLoaded) {\n return undefined;\n }\n\n const hasTroubles = troubles.length > 0,\n headerIcon = hasTroubles ? troubles.firstObject.icon : 'circle-check';\n\n return {\n headerIcon,\n headerIconTitle: this.intl.tc(this, hasTroubles ? headerIcon : 'systemOk'),\n headerIconClass: hasTroubles ? '' : 'system-ok',\n headerText: getTroubleConditionsHeaderText.call(this, troubles)\n };\n }\n\n /**\n * Transitions to Alerts and Issues route.\n */\n @action\n goToAlertsIssues() {\n this.navigation.transitionToRouteId(EmberAlertsIssues);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n \\n
\\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/hero-card/scene-execute/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { isEscapeCode } from '@adc/ember-utils/utils/a11y';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationService from '@adc/ui-components/services/notification-manager';\nimport type SceneModel from '../../../../models/automation/scene';\n\ninterface SceneExecuteSignature {\n Element: HTMLDivElement;\n Args: {\n model: SceneModel;\n onClose: () => void;\n };\n}\n\n/**\n * Gets translation string with sceneName token replaced.\n */\nfunction getTranslationWithSceneName(this: SceneExecuteComponent, translationKey: string, sceneName: string): string {\n return this.intl.tc(this, translationKey, { sceneName });\n}\n\n/**\n * Scene execute confirmation\n */\n@intlPath({ path: 'dashboard-cards/hero-card/scene-execute' })\nexport default class SceneExecuteComponent extends Component {\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationService;\n\n /**\n * Focus trap options.\n */\n focusTrapOptions = {\n returnFocusOnDeactivate: true,\n clickOutsideDeactivates: true,\n escapeDeactivates: true\n };\n\n /**\n * Gets the text that should be shown on the execute button.\n */\n @computed('args.model.name')\n get runSceneText(): string {\n return getTranslationWithSceneName.call(this, 'runScene', this.args.model.name);\n }\n\n /**\n * Keydown event on button.\n */\n @action keyDownEvent(e: KeyboardEvent & { target: HTMLElement }): void {\n const { target, code } = e;\n\n if (target.classList.contains('btn-scene-execute') && isEscapeCode(code)) {\n e.preventDefault();\n e.stopPropagation();\n\n this.close();\n }\n }\n\n /**\n * Execute the desired scene.\n */\n @action executeScene(scene: SceneModel): void {\n const fnShowMessage = (type: 'addSuccess' | 'addError', translationKey: string) =>\n this.notificationManager[type](getTranslationWithSceneName.call(this, translationKey, scene.name));\n\n // Close immediately\n this.close();\n\n scene\n .execute()\n .then(() => fnShowMessage('addSuccess', 'sceneExecutionSuccess'))\n .catch(() => fnShowMessage('addError', 'sceneExecutionFailure'));\n }\n\n /**\n * Propagate close action to components that listen on it.\n */\n @action close(): void {\n if (this.args.onClose) {\n this.args.onClose();\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::HeroCard::SceneExecute': typeof SceneExecuteComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.forecasts}}\\n
\\n
    \\n {{#each this.forecasts as |forecast|}}\\n
  • \\n \\n

    {{forecast.dayOfWeek}}

    \\n

    {{fmt-degree forecast.maxTemperature}}

    \\n
  • \\n {{/each}}\\n
\\n
\\n{{/if}}\",{ moduleName: \"customer-site/components/dashboard-cards/hero-card/forecasts/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, set } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { queryForecasts } from '../../../../models/weather/forecast';\n\nimport './_style.scss';\n\n/**\n * Forecasts widget to be shown in the Hero card.\n */\nexport default class ForecastsComponent extends Component {\n @service store;\n\n constructor() {\n super(...arguments);\n\n Promise.resolve(queryForecasts(this.store, 4)).then((data) => set(this, 'forecastsData', data));\n }\n\n /**\n * Forecasts\n */\n @computed('args.loadData', 'forecastsData')\n get forecasts() {\n return this.args.loadData && this.forecastsData ? this.forecastsData : [];\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\\n <:card-body>\\n
\\n \\n\\n
\\n\\n {{!-- Tooltip used for the graph items and icons in the event history graph. --}}\\n \\n {{this.tooltipText}}\\n \\n\\n {{#unless this.shouldHideDisplaySection}}\\n \\n {{#if this.errorMessage.length}}\\n
\\n
\\n {{this.errorMessage}}\\n
\\n
\\n {{/if}}\\n {{#if this.displayHighlights}}\\n \\n\\n {{else if this.displaySavedClips}}\\n \\n\\n {{else if this.displayActivityHistory}}\\n

{{tc this \\'todaysActivity\\'}}

\\n
\\n {{#each this.historyGraphData as |graphItem|}}\\n
\\n
\\n \\n \\n
\\n\\n \\n {{graphItem.text}}\\n \\n\\n {{#if graphItem.icon}}\\n \\n {{else if graphItem.period}}\\n \\n {{graphItem.period}}\\n \\n {{/if}}\\n
\\n {{/each}}\\n
\\n {{/if}}\\n \\n {{/unless}}\\n {{!-- This section is where we will display the current status, trouble conditions, scenes and cameras, and the hero-card display settings --}}\\n
\\n {{!-- Hero card expand/collapse button and drop down cog button --}}\\n
\\n {{#unless this.shouldHideButtons}}\\n \\n\\n \\n \\n \\n {{/unless}}\\n
\\n {{!-- Last event and system description --}}\\n {{#if this.lastEvent}}\\n
\\n \\n {{this.lastEvent.description}}\\n \\n\\n {{!-- Business Hours --}}\\n {{#if this.showOpenCloseEvent}}\\n
\\n
\\n \\n
\\n
\\n {{else if this.setupBusinessHours}}\\n \\n {{/if}}\\n
\\n {{/if}}\\n\\n {{!-- Trouble conditions --}}\\n \\n\\n {{!-- Scenes --}}\\n {{#if this.scenes}}\\n
\\n
\\n \\n {{tc this \\'scenes\\'}}\\n \\n \\n
\\n\\n
\\n \\n \\n \\n\\n {{#if this.sceneConfirmModel}}\\n \\n {{/if}}\\n
\\n\\n
\\n {{/if}}\\n\\n {{!-- Cameras --}}\\n {{#if this.cameras}}\\n
\\n
\\n \\n {{tc this \\'liveVideo\\'}}\\n \\n \\n
\\n\\n \\n \\n \\n
\\n {{/if}}\\n\\n {{!-- Weather --}}\\n {{#if this.showForecasts}}\\n \\n {{/if}}\\n
\\n
\\n \\n\\n <:card-settings>\\n \\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/hero-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { isEnterOrSpaceCode, isEscapeCode, getFocusableElements } from '@adc/ember-utils/utils/a11y';\nimport { isMobileBrowser } from '@adc/ember-utils/utils/browser-helpers';\nimport { A } from '@ember/array';\nimport { computed, set, setProperties, action } from '@ember/object';\nimport { or, and, alias, reads } from '@ember/object/computed';\nimport { debounce, cancel } from '@ember/runloop';\nimport { schedule } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { isEmpty } from '@ember/utils';\nimport { task, timeout } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownActionItem from '@adc/ui-components/utils/dropdown-action-item';\nimport { Hero } from '../../../enums/CardType';\nimport {\n EmberVideoLiveView,\n EventHistory,\n EmberScenes,\n SceneEdit,\n BusinessHours,\n EmberEventHistory\n} from '../../../enums/CustomerPageUrl';\nimport { Activity, Video, None } from '../../../enums/DefaultView';\nimport { IsOvReadyLogin } from '../../../enums/LoginFlag';\n\nimport './_style.scss';\n\n/**\n * The debounce inactivity time before the value change action is sent after the slider is initially touched.\n */\nconst TOOLTIP_DEBOUNCE_TIME_MS = 150;\n\n/**\n * The name of the variable used to store the debounced action.\n */\nlet TOOLTIP_DEBOUNCED_ACTION_KEY = 'debounceMouseEnter';\n\n/**\n * Describes a time-range in comparison to now.\n */\nconst relativeTimes = {\n PAST: 'past',\n PRESENT: 'current',\n FUTURE: 'future'\n};\n\n/**\n * A list of all the system Ids that have dismissed the \"Setup Business Hours\" message.\n */\nconst setupBusinessHoursList = [];\n\n/**\n * Opens the tooltip for the graph item that triggered the event.\n *\n * @param {String} [tooltipText]\n * @param {HTMLElement} [target]\n */\nfunction openTooltip(tooltipText, target) {\n setProperties(this, {\n isTooltipOpen: true,\n tooltipText,\n tooltipElementAnchor: target\n });\n}\n\n/**\n * Helper to create a dropdowm menu item for the hero-card view selection\n *\n * @param {String} key\n * @param {String} icon\n * @param {number} type\n *\n * @returns {Object}\n */\nfunction createDropDownItem(key, icon, type) {\n return DropdownActionItem.create({\n name: this.intl.t(`generic.${key}`),\n icon: icon,\n className: 'hero-card dropdown-item',\n action: () => this.updateDefaultView(type)\n });\n}\n\n/**\n * Create graph items for the activity graph.\n *\n * @param {Array<{text: String, count: number, current: boolean, sunrise: boolean, sunset: boolean}>} historyEvents\n *\n * @returns {Array<{\n * text: String,\n * period: String,\n * desiredStyle: String,\n * count: number,\n * tooltip: {text: String, style: Object},\n * relativeTime: String,\n * id: number,\n * timeEvent: String,\n * icon: String,\n * time: String\n * }>}\n */\nfunction processHistoryEventsToGraph(historyEvents) {\n if (!historyEvents) {\n return [];\n }\n\n // Get max number of events in item.\n const maxEvents = Math.max(...historyEvents.mapBy('count'), 0),\n noEventsHeightPercentage = 1,\n // Get height of one single event.\n percentHeightPerEvent = (100 - noEventsHeightPercentage) / (maxEvents || 1);\n\n let future = false;\n\n return historyEvents.map((event, index) => {\n // Create history event.\n const { text, period, count, current, event: timeEvent } = event,\n height = noEventsHeightPercentage + count * percentHeightPerEvent + '%',\n historyEvent = {\n text,\n period,\n desiredStyle: htmlSafe(`height:${height};`),\n count,\n relativeTime: current ? relativeTimes.PRESENT : future ? relativeTimes.FUTURE : relativeTimes.PAST,\n id: index\n };\n\n // Are there events?\n if (count > 0) {\n // Add tooltip configuration.\n historyEvent.tooltipText = this.intl.tc(this, 'events', { count });\n }\n\n // Is there an event?\n if (timeEvent) {\n const { time, icon } = timeEvent;\n historyEvent.time = time;\n\n // Is there an icon?\n if (icon) {\n // Add icon object to history event for icon key and tooltip status.\n historyEvent.icon = {\n key: icon,\n tooltipText: this.intl.tc(this, icon)\n };\n }\n }\n\n // Update future value.\n future = future || current;\n\n return historyEvent;\n });\n}\n\n/**\n * Returns a randomly selected static image source for the hero card.\n *\n * @param {services.ContextManager} contextManager - The context manager service.\n *\n * @returns {String}\n */\nexport function getHeroCardBackgroundImage(contextManager) {\n return contextManager.getStaticResourcePath(`images/hero-background/${Math.floor(Math.random() * 7) + 1}.jpg`);\n}\n\n/**\n * Updates or creates a record in the store.\n *\n * @param updateProperties {Object} The properties to be updated.\n */\nfunction updateOrCreateRecord(updateProperties) {\n let model = this.cardModel;\n\n if (model) {\n // Update the existing model.\n setProperties(model, updateProperties);\n } else {\n // Create new model.\n model = this.store.createRecord('ui/home-card', {\n cardType: Hero,\n deviceId: 0,\n order: 0,\n isVisible: true,\n ...updateProperties\n });\n }\n\n return model.save();\n}\n\n/**\n * Hero card to be shown in the Home route.\n */\n@intlPath({ path: 'dashboard-cards/hero-card' })\nexport default class HeroCard extends Component {\n @service ajax;\n @service contextManager;\n @service navigation;\n @service store;\n @service accessibility;\n @service homepageManager;\n @service media;\n @service intl;\n\n /**\n * The Hero card model.\n */\n get cardModel() {\n return this.store.peekRecord('ui/home-card', `${Hero}-0`);\n }\n\n /**\n * The scenes list.\n *\n * @type {Array}\n */\n @tracked scenes;\n\n /**\n * The graph activity buttons is focusable?\n *\n * @type {Boolean}\n */\n isGraphFocusable = false;\n\n /**\n * Indicates if the hero card is currently collapsed.\n *\n * @type {boolean}\n */\n @computed('contextManager.isEditingHomeScreen', 'isCollapsedInternal', 'args.isCollapsed')\n get isCollapsed() {\n return (\n !this.contextManager.isEditingHomeScreen &&\n (this.isCollapsedInternal === undefined ? this.args.isCollapsed : this.isCollapsedInternal)\n );\n }\n\n /**\n * Indicates the hero card is currently collapsed (internal value).\n *\n * @type {boolean}\n */\n @tracked isCollapsedInternal;\n\n /**\n * Focus trap options.\n */\n focusTrapOptions = {\n returnFocusOnDeactivate: true,\n escapeDeactivates: true\n };\n\n /**\n * Are the elements keyboard interactive?\n */\n @tracked isKeyboardInteractive = false;\n\n /**\n * Are we loading the card on a Mobile device?\n *\n * @type {boolean}\n */\n @reads('contextManager.identityModel.isMobileApp')\n isMobileDevice;\n\n /**\n * Should the \"display\" section of the card be hidden?\n *\n * @type {boolean}\n */\n @or('media.isMobile', 'media.isTabletPortrait', 'isCollapsed')\n shouldHideDisplaySection;\n\n /**\n * Is display section keyboard interactive?\n *\n * @type {boolean}\n */\n @tracked isDisplayKeyboardInteractive = false;\n\n /**\n * Should the collapse and cog buttons be hidden?\n *\n * @type {boolean}\n */\n @or('media.isMobile', 'media.isTabletPortrait')\n shouldHideButtons;\n\n /**\n * Can this login have OV Ready cameras?\n *\n * @type {boolean}\n */\n @alias(`contextManager.identityModel.profile.loginFlags.${IsOvReadyLogin}`)\n isOvReadyLogin;\n\n /**\n * The current default view for the hero card\n *\n * @type {Number}\n */\n @reads('args.defaultView')\n defaultView;\n\n /**\n * Does this user have video?\n *\n * @type {boolean}\n */\n @alias('contextManager.identityModel.canViewVideoClips')\n hasVideoClips;\n\n constructor(...args) {\n super(...args);\n\n this.populateCard.perform();\n }\n\n /**\n * Populates the Hero card with data.\n */\n populateCard = task({ drop: true }, async () => {\n if (this.args.devices) {\n const { contextManager, ajax } = this,\n system = this.args.devices,\n [numScenes, numCameras] = ['scenes', 'cameras'].map((name) => system.hasMany(name).ids().length);\n\n this.showForecasts = !(numScenes && numCameras && !this.isMobileDevice);\n\n let allLoaded = true,\n cameras = this.isMobileDevice ? [] : system.cameras,\n lastEvent = system.getLastSignificantEvent(),\n openCloseEventArray = contextManager.identityModel.isCommercial\n ? system.getOpenCloseHistory(false)\n : [],\n scenes = system.scenes;\n\n // Make sure that all data is loaded at the same time.\n [allLoaded, cameras, lastEvent, openCloseEventArray, scenes] = await Promise.all([\n allLoaded,\n cameras,\n lastEvent,\n openCloseEventArray,\n scenes\n ]);\n\n let data = {\n allLoaded,\n cameras: cameras.filterBy('supportsLiveView'),\n lastEvent: Object.keys(lastEvent || {}).length ? lastEvent : null,\n scenes\n };\n\n if (!isEmpty(data.scenes) && this.contextManager.identityModel.canCreateEditScenes) {\n data.scenes = [\n ...data.scenes.toArray(),\n {\n icon: {\n icon: 'add'\n },\n name: this.intl.tc(this, 'newScene'),\n canBeExecuted: true,\n isAddButton: true\n }\n ];\n }\n\n // The first open/close event that will be initially shown on the hero card\n const openCloseEvent = (data.openCloseEvent = openCloseEventArray[0]);\n\n if (openCloseEvent) {\n // Do we want to show the \"Setup Business Hours\" message instead?\n const setupBusinessHours = (data.setupBusinessHours =\n openCloseEvent.setupBusinessHours === 'True' && !setupBusinessHoursList.includes(system.id));\n // Bool to determine if we should show the widget\n data.showOpenCloseEvent = openCloseEvent.openCloseInfo && !setupBusinessHours;\n\n set(this, 'setupBusinessHours', setupBusinessHours);\n }\n\n // Set all data in the same run cycle.\n setProperties(this, data);\n\n const [historyEvents, videoEvents] = await Promise.all([\n ajax.apiRequest('activity/historyEvents/getTodaysEvents'),\n this.isMobileDevice ? [] : this.getSignificantEvents()\n ]);\n\n setProperties(this, {\n historyGraphData: processHistoryEventsToGraph.call(this, historyEvents.value),\n videoEvents,\n showDisplay: true\n });\n\n await timeout(0);\n this.historyGraphData.forEach((graphItem) => {\n const relativeTime = graphItem.relativeTime;\n\n setProperties(graphItem, {\n style: graphItem.desiredStyle,\n cssClass: relativeTime,\n disabled: relativeTime === relativeTimes.FUTURE\n });\n });\n }\n });\n\n /**\n * The random background image source.\n *\n * @type {String}\n */\n get randomImage() {\n return getHeroCardBackgroundImage(this.contextManager);\n }\n\n /**\n * Is forecasts widget visible?\n */\n @tracked showForecasts = false;\n\n /**\n * Has all the data loaded?\n */\n @tracked allLoaded = false;\n\n /**\n * Returns the list of the last significant events.\n *\n * @returns {DS.PromiseArray}\n */\n getSignificantEvents() {\n return this.ajax\n .apiRequest('video/videoEvents/getSignificantEvents')\n .then((result) => {\n if (!result || !result.data) {\n return [];\n }\n\n return this.store.push(result);\n })\n .catch((error) => {\n if (error.errors) {\n setProperties(this, {\n errorMessage: error.errors.map(({ detail }) => detail).join(' ')\n });\n }\n\n return [];\n });\n }\n\n /**\n * Returns the background image style that should be used for the background image element.\n *\n * @type {SafeString}\n */\n @computed('randomImage', 'canViewSavedClips', 'defaultView', 'displayActivityHistory')\n get backgroundImageStyle() {\n const { displayActivityHistory, defaultView, canViewSavedClips, randomImage } = this;\n let styleText = '';\n\n if (\n displayActivityHistory &&\n (defaultView === Activity || (defaultView === None && !canViewSavedClips)) &&\n randomImage\n ) {\n styleText = 'background-image:url(' + randomImage + ');';\n }\n\n return htmlSafe(styleText);\n }\n\n /**\n * Can video clips be an option for the hero card display?\n *\n * @type {boolean}\n */\n @and('hasVideoClips', 'showDisplay')\n canViewSavedClips;\n\n /**\n * Can history data be an option for the hero card display?\n *\n * @type {boolean}\n */\n @computed('historyGraphData', 'showDisplay', 'errorMessage')\n get canViewHistoryData() {\n return this.showDisplay && !this.errorMessage && this.historyGraphData;\n }\n\n /**\n * Displays Video Clips depending on canViewSavedClips and defaultView\n *\n * @type {boolean}\n */\n @computed('canViewSavedClips', 'defaultView')\n get displaySavedClips() {\n return this.canViewSavedClips && (this.defaultView === Video || this.defaultView === None);\n }\n\n /**\n * Displays Activity History depending on canViewHistoryData and defaultView\n *\n * @type {boolean}\n */\n @computed('canViewHistoryData', 'defaultView', 'canViewSavedClips')\n get displayActivityHistory() {\n return (\n (this.canViewHistoryData && (this.defaultView === Activity || this.defaultView === None)) ||\n (this.canViewSavedClips === false && this.defaultView === Video)\n );\n }\n\n /**\n * Contains the dropdown items for the hero card cog. Items allow user to change hero card display.\n *\n * @type {NativeArray}\n */\n @computed('canViewHistoryData', 'canViewSavedClips')\n get displayOptions() {\n let dropDown = [];\n\n if (this.canViewSavedClips) {\n dropDown.push(createDropDownItem.call(this, 'video.clips', 'video-record', Video));\n }\n\n if (this.canViewHistoryData) {\n dropDown.push(createDropDownItem.call(this, 'activityHistory', 'activity-history', Activity));\n }\n\n if (!isMobileBrowser()) {\n dropDown.push(\n DropdownActionItem.create({\n name: this.intl.tc(this, 'editDashboard'),\n className: 'hero-card dropdown-item edit-dashboard',\n action: () => this.contextManager.toggleProperty('isEditingHomeScreen')\n })\n );\n }\n\n return A(dropDown);\n }\n\n /**\n * Element in the event history graph that the tooltip should be anchored to.\n *\n * @type {String|HTMLElement}\n */\n tooltipElementAnchor = 'body';\n\n /**\n * Executes scene.\n *\n * @param {models.automation.Scene} scene\n */\n @action\n executeScene(scene) {\n if (!scene.canBeExecuted) {\n return;\n }\n\n if (scene.isAddButton) {\n this.navigation.transitionToRouteId(SceneEdit);\n return;\n }\n\n this.accessibility.saveFocusedElement();\n set(this, 'sceneConfirmModel', {\n active: true,\n model: scene\n });\n }\n\n /**\n * Clear model for showing of the scene trigger confirm.\n */\n @action\n closeConfirmAction() {\n this.accessibility.restoreFocus();\n set(this, 'sceneConfirmModel', undefined);\n }\n\n /**\n * Redirects to the live view page for that specific camera.\n *\n * @param {models.video.Camera} camera The camera to select.\n */\n @action\n viewCamera(camera) {\n this.navigation.transitionToRouteId(EmberVideoLiveView, {\n queryParams: {\n cameraGroupId: null,\n cameraId: camera.id\n }\n });\n }\n\n /**\n * Handles focus trap for the display section.\n */\n @action\n activateDisplayFocusTrap(event) {\n const { target } = event;\n\n if (target.classList.contains('display')) {\n event.preventDefault();\n event.stopPropagation();\n\n const { code } = event;\n\n if (isEnterOrSpaceCode(code)) {\n this.isDisplayKeyboardInteractive = true;\n // Do not copy this deprecated usage. If you see this, please fix.\n // eslint-disable-next-line ember/no-runloop\n schedule('afterRender', () => {\n const [firstElement] = getFocusableElements(event.target);\n firstElement?.focus();\n });\n } else if (isEscapeCode(code)) {\n this.isDisplayKeyboardInteractive = false;\n }\n }\n }\n\n /**\n * Redirects to the EventHistory page, filtered to show today's events.\n *\n * @param {Object} graphItem\n */\n @action\n graphClick(graphItem) {\n if (graphItem.relativeTime === relativeTimes.FUTURE) {\n return;\n }\n\n const { navigation } = this;\n navigation.transitionToRouteId(navigation.getRouteItem(EmberEventHistory) ? EmberEventHistory : EventHistory, {\n queryParams: navigation.addSearchQueryParam({\n today: 'true'\n })\n });\n }\n\n /**\n * Transitions to the live video route.\n */\n @action\n visitLiveVideo() {\n this.navigation.transitionToRouteId(EmberVideoLiveView, {\n queryParams: {\n cameraId: null\n }\n });\n }\n\n /**\n * Transitions to the scenes route.\n */\n @action\n visitScenes() {\n this.navigation.transitionToRouteId(EmberScenes);\n }\n\n /**\n * Debounces the tooltips on mouse enter event to prevent tool tips from opening and closing erratically.\n *\n * @param {String} text\n * @param {Event} event\n */\n @action\n handleMouseEnter(text, event) {\n if (text) {\n // Do not copy this deprecated usage. If you see this, please convert to ember-lifeline debounceTask.\n // eslint-disable-next-line ember/no-runloop\n TOOLTIP_DEBOUNCED_ACTION_KEY = debounce(this, openTooltip, text, event.target, TOOLTIP_DEBOUNCE_TIME_MS);\n return;\n }\n\n // Do not copy this deprecated usage. If you see this, please fix.\n // eslint-disable-next-line ember/no-runloop\n cancel(TOOLTIP_DEBOUNCED_ACTION_KEY);\n }\n\n /**\n * Closes the event graph tooltip.\n */\n @action\n closeTooltip() {\n // Do not copy this deprecated usage. If you see this, please fix.\n // eslint-disable-next-line ember/no-runloop\n cancel(TOOLTIP_DEBOUNCED_ACTION_KEY);\n set(this, 'isTooltipOpen', false);\n }\n\n /**\n * Collapse/expand the hero card.\n */\n @action\n toggleCollapsed() {\n if (this.isCollapsedInternal === undefined) {\n this.isCollapsedInternal = this.args.isCollapsed;\n }\n\n updateOrCreateRecord.call(this, {\n isCollapsed: (this.isCollapsedInternal = !this.isCollapsedInternal)\n });\n }\n\n /**\n * Updates defaultView.\n */\n @action\n updateDefaultView(view) {\n set(this, 'defaultView', view);\n\n updateOrCreateRecord.call(this, {\n defaultView: view\n });\n }\n\n /**\n * Transitions to the Business Hours route.\n */\n @action\n setBusinessHours() {\n this.navigation.transitionToRouteId(BusinessHours);\n }\n\n /**\n * Dismisses 'Setup Business Hours' message.\n */\n @action\n dismissSetupBusinessHours() {\n setupBusinessHoursList.push(this.args.devices.id);\n set(this, 'setupBusinessHours', false);\n }\n\n @action checkActiveCard(el) {\n this.isKeyboardInteractive = el.id === this.homepageManager.activeCardId;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n {{#each @model as |thumbnail idx|}}\\n \\n {{#if (await thumbnail.imageSensorName)}}\\n \\n {{/if}}\\n \\n {{/each}}\\n
\\n\\n
\\n
\\n {{#each @model as |thumbnail idx|}}\\n \\n \\n \\n {{/each}}\\n\\n \\n
\\n
\\n\\n
\\n
\\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/image-sensor/clips-modal/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { isEnterOrSpaceCode } from '@adc/ember-utils/utils/a11y';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { timeout, task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport { ImageSensorEventGallery } from '../../../../enums/CustomerPageUrl';\n\nimport './_style.scss';\nimport type EnvSettingsService from '@adc/app-infrastructure/services/env-settings';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { Thumbnail } from '../index';\n\ninterface ClipModalSignature {\n Args: {\n model: Thumbnail[];\n };\n}\n\n/**\n * @classdesc\n * Modal showing an animated slide show of recent image sensor images.\n */\n@intlPath({ path: 'dashboard-cards/image-sensor/clips-modal' })\nexport default class ClipModal extends Component {\n @service declare intl: ADCIntlService;\n @service declare contextManager: ContextManager;\n @service declare envSettings: EnvSettingsService;\n @service declare navigation: NavigationService;\n\n /**\n * The index of the currently visible clip.\n */\n @tracked selectedIndex = 0;\n\n /**\n * The modal title.\n */\n @computed('args.model.[]', 'selectedIndex')\n get title(): string {\n const thumbnails = this.args.model;\n if (isEmpty(thumbnails)) {\n return '';\n }\n\n return this.intl.formatDateTz(thumbnails[this.selectedIndex]?.time as Date, {\n format: 'longDateTimeFormat'\n });\n }\n\n /**\n * Animates the slide show.\n */\n animateShow = task({ restartable: true }, async () => {\n // Only animate when not in TEST AND there is more than one clip.\n const thumbnails = this.args.model;\n if (!this.envSettings.isTestEnvironment() && thumbnails.length > 1) {\n for (;;) {\n await timeout(5000);\n\n const nextIndex = this.selectedIndex + 1;\n this.selectedIndex = thumbnails[nextIndex] ? nextIndex : 0;\n }\n }\n });\n\n /**\n * Selected the clip at the passed index.\n */\n @action selectClip(index: number): void {\n this.animateShow.cancelAll();\n this.selectedIndex = index;\n this.animateShow.perform();\n }\n\n /**\n * Selects the clip if the user pressed enter or space while it had focus.\n */\n @action handleClipKeyUp(index: number, evt: KeyboardEvent): void {\n if (isEnterOrSpaceCode(evt.code)) {\n this.selectClip(index);\n }\n }\n\n /**\n * Navigates to the image sensor gallery route.\n */\n @action showGallery(): void {\n this.navigation.transitionToRouteId(ImageSensorEventGallery);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::ImageSensor::ClipsModal': typeof ClipModal;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-body>\\n \\n <:prompt-view>\\n {{#if this.retrieveImages.isRunning}}\\n

{{tc this \\'loadingImages\\'}}

\\n\\n {{else if this.noSlidesMessage}}\\n

{{this.noSlidesMessage}}

\\n\\n {{#if this.isPeekInAllowed}}\\n \\n {{/if}}\\n\\n {{#if this.canViewISGallery}}\\n \\n \\n \\n {{/if}}\\n\\n {{else}}\\n \\n
\\n {{#if (await this.defaultImage.imageSensorName)}}\\n \\n {{/if}}\\n\\n {{#if this.isPeekInAllowed}}\\n \\n {{/if}}\\n
\\n\\n {{#if this.defaultImage.time}}\\n \\n {{/if}}\\n\\n {{#if this.canViewISGallery}}\\n \\n \\n \\n {{/if}}\\n\\n \\n \\n\\n {{/if}}\\n \\n\\n <:prompt-edit>\\n h2 > :not(button)\\\"\\n capture=true\\n }}\\n >\\n {{#if this.promptMessage}}\\n

{{this.promptMessage}}

\\n\\n {{else}}\\n \\n

{{sensor.description}}

\\n {{#each sensor.buttons as |btn|}}\\n \\n {{/each}}\\n \\n {{/if}}\\n \\n \\n\\n \\n \\n\\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/image-sensor/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { isEmpty } from '@ember/utils';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport { ImageSensorEventGallery } from '../../../enums/CustomerPageUrl';\nimport ClipModal from './clips-modal/index';\n\nimport type ArrayProxy from '@ember/array/proxy';\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type Store from '@ember-data/store';\nimport type ImageSensorModel from 'customer-site/models/image-sensor/image-sensor';\nimport type ImageSensorImageModel from 'customer-site/models/image-sensor/image-sensor-image';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type NavigationService from 'customer-site/services/navigation';\n\ninterface ImageSensorCardSignature {\n Args: {\n cardId: string;\n devices: ArrayProxy;\n };\n}\n\ntype PeekAction = (sensor: ImageSensorModel) => Promise;\n\ntype SensorItemButton = {\n icon: string;\n action: PeekAction;\n title: string;\n test: string;\n disabled: boolean;\n};\n\ntype SensorItem = {\n description: string;\n buttons: SensorItemButton[];\n};\n\n/**\n * @classdesc\n * Aliases a {@link models.image-sensor.ImageSensorImage} for display as an image.\n */\nexport class Thumbnail {\n @tracked model: ImageSensorImageModel;\n\n constructor(model: ImageSensorImageModel) {\n this.model = model;\n }\n\n /**\n * A URL for displaying the image sensor image.\n */\n @alias('model.imageSrc')\n declare imageSrc: string;\n\n /**\n * The date/time this image was captured.\n */\n @computed('model.timestamp')\n get time(): Date {\n return new Date(this.model.timestamp);\n }\n\n /**\n * The name of the image sensor that captured this image.\n */\n @computed('model.imageSensor.description')\n get imageSensorName(): Promise {\n return (async () => {\n const imageSensor = await this.model.imageSensor;\n return imageSensor?.description ?? '';\n })();\n }\n}\n\n/**\n * @classdesc\n * The dashboard home card for displaying and requesting image sensor captures.\n */\n@intlPath({ path: 'dashboard-cards/image-sensor' })\nexport default class ImageSensorCard extends Component {\n @service declare store: Store;\n @service declare ajax: AjaxService;\n @service declare intl: ADCIntlService;\n @service declare contextManager: ContextManager;\n @service declare modals: ModalService;\n @service declare navigation: NavigationService;\n\n /**\n * The image sensor devices.\n */\n get devices(): ImageSensorModel[] {\n return this.args.devices?.slice() ?? [];\n }\n\n /**\n * Indicates the peek in prompt view should be visible.\n */\n @tracked showPeekInControls = false;\n\n /**\n * The last peek-message.\n */\n @tracked peekInRequestedText = '';\n\n /**\n * The collection of retrieved image sensor images.\n */\n @tracked recentImages?: Thumbnail[];\n\n /**\n * The default image to show (first).\n */\n @computed('recentImages')\n get defaultImage(): Thumbnail | undefined {\n const recentImages = this.recentImages ?? [];\n return recentImages.length ? recentImages[0] : undefined;\n }\n\n /**\n * Retrieves the most recent images.\n */\n retrieveImages = task(async () => {\n const recentImages = await this.ajax.apiRequestForDataRecords(\n 'imageSensor/imageSensorImages/getRecentImages'\n );\n\n this.recentImages = recentImages.map((model) => new Thumbnail(model));\n });\n\n /**\n * Message that should be shown when no image to view (no permission or no recent images).\n */\n @computed('devices', 'recentImages.[]', 'imageSensors.@each.canViewImages')\n get noSlidesMessage(): string {\n const { devices, recentImages } = this;\n\n // Are there NO image sensors (edge case) OR is there at least one image sensor that can be viewed?\n if (isEmpty(devices) || devices.some((d) => d.canViewImages)) {\n // Return message if recentImages exists but is empty.\n return recentImages !== undefined && isEmpty(recentImages) ? this.intl.tc(this, 'noRecent') : '';\n }\n\n return this.intl.tc(this, 'noImageViewPermission');\n }\n\n /**\n * Indicates whether peek-in is allowed.\n */\n @computed('devices.@each.{supportPeekInNow,supportPeekInNextMotion,isImageSensorDeleted}')\n get isPeekInAllowed(): boolean {\n return this.devices.some(\n ({ isImageSensorDeleted, supportPeekInNow, supportPeekInNextMotion }) =>\n !isImageSensorDeleted && (supportPeekInNow || supportPeekInNextMotion)\n );\n }\n\n /**\n * Returns the list of image sensor devices with icon buttons.\n */\n @computed(\n 'devices.@each.{hidePeekInNextMotionButton,isImageSensorDeleted,supportPeekInNextMotion,supportPeekInNow}',\n 'peekInMotion',\n 'peekInNow'\n )\n get sensorList(): SensorItem[] {\n const fnGetButton = (\n sensor: ImageSensorModel,\n icon: string,\n property: 'InNextMotion' | 'InNow',\n action: PeekAction,\n isAllowed = true\n ): SensorItemButton | undefined => {\n if (!isAllowed) {\n return;\n }\n\n const disabled = !sensor[`supportPeek${property}`];\n\n return {\n icon,\n title: this.intl.tc(this, `${disabled ? 'cannot' : 'supports'}Peek${property}`),\n disabled,\n test: dasherize(`peek${property}`),\n action: () => action(sensor)\n };\n };\n\n return this.devices\n .filter(\n (sensor) =>\n sensor.isImageSensorDeleted === false &&\n ['supportPeekInNow', 'supportPeekInNextMotion'].some((n: keyof ImageSensorModel) => sensor[n])\n )\n .map((sensor) => ({\n description: sensor.description,\n buttons: [\n fnGetButton(\n sensor,\n 'motion-action',\n 'InNextMotion',\n this.peekInMotion,\n !sensor.hidePeekInNextMotionButton\n ),\n fnGetButton(sensor, 'camera', 'InNow', this.peekInNow)\n ].filter((b) => b != undefined) as SensorItemButton[]\n }));\n }\n\n /**\n * Number of image uploads remaining this month.\n *\n * @todo This should not be on the system model, it should be either a custom api call, or a new model for image sensor stuff.\n */\n @alias('contextManager.identityModel.selectedSystem.remainingImageQuota')\n declare remainingImageUpload: number;\n\n /**\n * The message to display on the prompted segment of the card.\n */\n @computed('remainingImageUpload', 'peekInRequestedText')\n get promptMessage(): string {\n const { peekInRequestedText, remainingImageUpload } = this;\n\n if (peekInRequestedText) {\n return peekInRequestedText;\n }\n\n return remainingImageUpload > 0 ? '' : this.intl.tc(this, 'noImageUploadLeft');\n }\n\n /**\n * Whether or not the current user has access to the IS Event Gallery route.\n */\n @computed()\n get canViewISGallery(): boolean {\n return !!this.navigation.getRouteItem(ImageSensorEventGallery);\n }\n\n /**\n * Navigates to the image sensor gallery route.\n */\n @action openISGallery(): void {\n this.navigation.transitionToRouteId(ImageSensorEventGallery);\n }\n\n /**\n * Opens the prompt view, clearing any lingering prompt state.\n */\n @action openPrompt(): void {\n this.peekInRequestedText = '';\n this.showPeekInControls = true;\n }\n\n /**\n * Launch slide show modal.\n */\n @action startSlideShowModal(): void {\n const { recentImages } = this;\n if (!isEmpty(recentImages)) {\n this.modals.showModal(ClipModal, recentImages);\n }\n }\n\n @action async peekInNow(sensor: ImageSensorModel): Promise {\n await sensor.peekInNow();\n this.peekInRequestedText = this.intl.tc(this, 'peekInNow');\n }\n\n @action async peekInMotion(sensor: ImageSensorModel): Promise {\n await sensor.peekInMotion();\n this.peekInRequestedText = this.intl.tc(this, 'peekInNextMotion');\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::ImageSensor': typeof ImageSensorCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-body>\\n
\\n {{#if this.activeCamera}}\\n \\n
\\n \\n
\\n \\n {{/if}}\\n
\\n\\n
\\n {{#each this.cameraGroups as |group|}}\\n
\\n {{#each group as |camera|}}\\n \\n \\n\\n
\\n \\n
\\n \\n {{/each}}\\n
\\n {{/each}}\\n
\\n\\n {{#if this.groupIndicators}}\\n
\\n
\\n {{#each this.groupIndicators as |indicator|}}\\n \\n {{/each}}\\n
\\n
\\n {{/if}}\\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/live-view/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action } from '@ember/object';\nimport { gte, alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { task } from 'ember-concurrency';\n\nimport './_style.scss';\nimport type ContextManager from '@adc/app-infrastructure/services/context-manager';\nimport type DomService from '@adc/ember-utils/services/dom';\nimport type SystemModel from 'customer-site/models/systems/system';\nimport type Camera from 'customer-site/models/video/devices/camera';\nimport type { SafeString } from 'handlebars';\nimport type { ContainerCardSignature } from '../container-card';\n\nconst BULK_SIZE = 4;\n\nenum Swipe {\n Left = 1,\n Right,\n Down,\n Up\n}\n\nclass LiveViewCamera {\n /**\n * The video camera source.\n */\n @tracked model: Camera;\n\n constructor(model: Camera) {\n this.model = model;\n }\n\n /**\n * The name of the camera.\n */\n @alias('model.description')\n declare cameraName: string;\n\n /**\n * The URL to show a live view snapshot of this camera.\n */\n @alias('model.snapshot.url')\n declare url: Promise;\n\n /**\n * Error retrieving snapshots.\n */\n @alias('model.snapshot.error')\n declare error: string;\n}\n\ninterface DashboardCardsLiveViewSignature {\n Element: ContainerCardSignature['Element'];\n Args: Pick & {\n devices: SystemModel;\n };\n}\n\nexport default class DashboardCardsLiveView extends Component {\n @service declare dom: DomService;\n @service declare contextManager: ContextManager;\n\n /**\n * The collection of cameras that support streaming snapshots.\n */\n @tracked cameras: Camera[] = [];\n\n /**\n * The current active streaming camera.\n */\n @tracked activeCamera?: LiveViewCamera;\n\n /**\n * The width of the component viewport.\n */\n @tracked viewportWidth = 0;\n\n /**\n * Index of the slide the user has swiped to.\n */\n @tracked activeSlideIndex = 0;\n\n /**\n * A timestamp we will append to the snapshot URL to make it unique (to force the browser to reload the image).\n */\n @tracked imageReloadTimestamp = 0;\n\n constructor(owner: unknown, args: DashboardCardsLiveViewSignature['Args']) {\n super(owner, args);\n\n this.loadCameras.perform();\n }\n\n loadCameras = task(async () => {\n const cameras = await this.args.devices.cameras;\n this.cameras = cameras.filterBy('supportsSnapShot');\n });\n\n /**\n * Indicates whether to show cameras in \"bulk\" mode (four at a time) or singly.\n */\n @gte('cameras.length', BULK_SIZE)\n declare useBulkMode: boolean;\n\n /**\n * The number of card slides to render.\n */\n @computed('cameras.[]', 'useBulkMode')\n get numberOfSlides(): number {\n const { length } = this.cameras;\n return this.useBulkMode ? Math.ceil(length / BULK_SIZE) : length;\n }\n\n /**\n * The group indicators.\n */\n @computed('numberOfSlides', 'activeSlideIndex')\n get groupIndicators(): boolean[] {\n const { activeSlideIndex } = this;\n return Array.from({ length: this.numberOfSlides }, (_, idx) => idx === activeSlideIndex);\n }\n\n /**\n * The collection of live view camera groups to show.\n */\n @computed('cameras.[]', 'useBulkMode')\n get cameraGroups(): LiveViewCamera[][] {\n // Convert cameras to live view camera helper.\n const liveCameras = this.cameras.map((model) => new LiveViewCamera(model));\n\n // Iterate live view cameras.\n return liveCameras\n .map((camera, idx) => {\n // Is this NOT bulk mode?\n if (!this.useBulkMode) {\n // Return array of single camera.\n return [camera];\n }\n\n // Return array of up to bulkSize cameras.\n return idx % BULK_SIZE ? undefined : liveCameras.slice(idx, idx + BULK_SIZE);\n })\n .compact();\n }\n\n /**\n * Width percent of each camera inside the camera list. This decreases as number of cameras increases.\n */\n @computed('numberOfSlides')\n get previewCameraWidthPercentage(): number {\n return 100.0 / this.numberOfSlides;\n }\n\n /**\n * The CSS style for the collection of live view cameras, done in the component to avoid the possibility of XSS.\n */\n @computed('numberOfSlides', 'activeSlideIndex', 'previewCameraWidthPercentage')\n get cameraCollectionStyle(): SafeString {\n const width = Math.max(100.0, 100.0 * this.numberOfSlides),\n transform = this.activeSlideIndex * this.previewCameraWidthPercentage;\n\n return htmlSafe(`width: ${width}%; transform: translateX(-${transform}%);`);\n }\n\n /**\n * The CSS style indicating the camera group width.\n */\n @computed('previewCameraWidthPercentage')\n get groupWidthStyle(): SafeString {\n return htmlSafe(`width: ${this.previewCameraWidthPercentage}%;`);\n }\n\n /**\n * Active camera URL with the forceReload query param.\n * With the query param, each URL will be unique regardless of the token, which will force the browser to fetch the image again.\n */\n @computed('activeCamera.url', 'imageReloadTimestamp')\n get activeCameraUrlWithQueryParam(): string {\n return `${this.activeCamera?.url}&forceReload=${this.imageReloadTimestamp}`;\n }\n\n /**\n * Cancels active camera streaming (if present).\n */\n @action cancelStream(): void {\n this.activeCamera = undefined;\n }\n\n /**\n * Called whenever the snapshot image fails to load. We will retry a second later.\n */\n @action\n async imageError(): Promise {\n (await this.activeCamera?.model.snapshot)?.reloadSnapshotLater(1000);\n }\n\n /**\n * Called whenever the snapshot image finishes loading.\n */\n @action\n async imageLoaded(): Promise {\n // Reload almost instantaneously for best framerate.\n (await this.activeCamera?.model.snapshot)?.reloadSnapshotLater(50);\n this.imageReloadTimestamp = Math.round(performance.now());\n }\n\n /**\n * Updates the viewport width value.\n */\n @action\n updateViewportWidth(el: HTMLElement): void {\n this.viewportWidth = el.offsetWidth;\n }\n\n /**\n * Slide the live view cameras list.\n */\n @action\n slideViewport(event: TouchEvent): boolean {\n const { dom } = this;\n\n const touchValues: { [key: string]: [number, number] } = {},\n fnUpdateTouchValues = (mode: 'start' | 'move', evt: TouchEvent): boolean => {\n const { touches = [] } = evt;\n\n // Is this a gesture?\n if (touches.length !== 1) {\n return false;\n }\n\n // Cache current page coordinates.\n const [touchEvt] = touches;\n touchValues[mode] = [touchEvt.pageX, touchEvt.pageY];\n\n return true;\n };\n\n // Is this a gesture (more than one touch)?\n if (!fnUpdateTouchValues('start', event)) {\n // We don't handle gestures.\n return true;\n }\n\n // Add move and end listeners to document (in case they leave card during swipe).\n const hndMove = dom.addListener(this, document, 'touchmove', (evt: TouchEvent) =>\n fnUpdateTouchValues('move', evt)\n ),\n hndEnd = dom.addListener(this, document, 'touchend', () => {\n // Remove attached touch listeners.\n dom.removeListener(this, hndMove);\n dom.removeListener(this, hndEnd);\n\n // Are there no move values?\n const { move } = touchValues;\n if (!move) {\n return;\n }\n\n // Get start and current values.\n const [startX, startY] = touchValues.start,\n [endX, endY] = move;\n\n // Check to see if more than one finger was originally used to start this event and that there is an ending coordinate.\n if (!isNaN(endX) && !isNaN(endY)) {\n // Use the Distance Formula to determine the length of the swipe.\n const swipeLength = Math.round(Math.sqrt(Math.pow(endX - startX, 2) + Math.pow(endY - startY, 2)));\n\n // Did the user swipe more than the minimum length?.\n if (swipeLength >= this.viewportWidth / 4.0) {\n // Calculate new active slide index and update.\n const angle = this.calculateAngle(startX, startY, endX, endY),\n dir = this.determineSwipeDirection(angle);\n\n let offset = 0;\n if (dir === Swipe.Left) {\n offset = 1;\n }\n\n if (dir === Swipe.Right) {\n offset = -1;\n }\n\n this.activeSlideIndex = Math.max(\n Math.min(this.activeSlideIndex + offset, this.numberOfSlides - 1),\n 0\n );\n }\n }\n });\n\n return false;\n }\n\n /**\n * Calculate the swipe angle based on start position and current position.\n */\n private calculateAngle(startX: number, startY: number, curX: number, curY: number): number {\n const x = startX - curX,\n y = curY - startY,\n // Angle in radians (Cartesian system).\n r = Math.atan2(y, x);\n\n // Angle in degrees.\n const swipeAngle = Math.round((r * 180) / Math.PI);\n return swipeAngle < 0 ? 360 - Math.abs(swipeAngle) : swipeAngle;\n }\n\n /**\n * Based on the swipe angle, return the basic direction the finger is swiping.\n */\n private determineSwipeDirection(swipeAngle: number): Swipe {\n if ((swipeAngle <= 45 && swipeAngle >= 0) || (swipeAngle <= 360 && swipeAngle > 315)) {\n return Swipe.Left;\n }\n\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return Swipe.Right;\n }\n\n if (swipeAngle > 45 && swipeAngle < 135) {\n return Swipe.Down;\n }\n\n return Swipe.Up;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::LiveView': typeof DashboardCardsLiveView;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-body>\\n
\\n {{yield}}\\n
\\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/setup-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\nimport type { ContainerCardSignature } from 'customer-site/components/dashboard-cards/container-card';\n\nexport interface SetupCardSignature {\n Element: ContainerCardSignature['Element'];\n Args: {\n cardId: ContainerCardSignature['Args']['cardId'];\n };\n Blocks: {\n default: [];\n };\n}\n\nconst SetupCard = templateOnlyComponent();\nexport default SetupCard;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::SetupCard': typeof SetupCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n\",{ moduleName: \"customer-site/components/dashboard-cards/setup-card/boiler.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './boiler.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { SetupCardSignature } from './index.ts';\n\nexport interface BoilerCardSignature {\n Element: SetupCardSignature['Element'];\n Args: {\n data: string;\n };\n}\n\nconst BoilerCard = templateOnlyComponent();\nexport default BoilerCard;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n BoilerCard: typeof BoilerCard;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n \\n\\n <:card-body>\\n \\n \\n

{{tc this \\'title\\'}}

\\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/wellness-card/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { isEnterOrSpaceCode } from '@adc/ember-utils/utils/a11y';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { WellnessActivity } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\nimport ActiveCardTabIndexComponent from '../active-card-tab-index';\nimport { getDrillToDetailsButton } from '../card-toolbar/index';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { ContainerCardSignature } from 'customer-site/components/dashboard-cards/container-card';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { DashboardCardToolbarButtons } from '../card-toolbar/index';\n\ninterface DashboardCardsWellnessCardSignature {\n Element: ContainerCardSignature['Element'];\n Args: {\n cardId: ContainerCardSignature['Args']['cardId'];\n };\n}\n\n@intlPath({ path: 'dashboard-cards/wellness-card' })\nexport default class DashboardCardsWellnessCard extends ActiveCardTabIndexComponent {\n @service declare intl: ADCIntlService;\n @service declare navigation: NavigationService;\n\n get rightToolbarButtons(): DashboardCardToolbarButtons {\n return [getDrillToDetailsButton(this.intl, this.drillToDetails)];\n }\n\n @action handleKeyUp(evt: KeyboardEvent): void {\n if (isEnterOrSpaceCode(evt.code)) {\n this.drillToDetails();\n }\n }\n\n @action drillToDetails(): void {\n this.navigation.transitionToRouteId(WellnessActivity);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:card-toolbar>\\n \\n

{{t \\'generic.wifi.wifi\\'}}

\\n
\\n \\n\\n <:card-body>\\n \\n \\n \\n \\n\\n\",{ moduleName: \"customer-site/components/dashboard-cards/wifi/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { inject as service } from '@ember/service';\nimport { createToolbarButton } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport { EmberWifiDevices } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type { DashboardCardToolbarButtons } from 'customer-site/components/dashboard-cards/card-toolbar/index';\nimport type { ContainerCardSignature } from 'customer-site/components/dashboard-cards/container-card';\nimport type Network from 'customer-site/models/wifi/network';\nimport type NavigationService from 'customer-site/services/navigation';\n\nexport interface WifiDashboardCardSignature {\n Args: {\n cardId: ContainerCardSignature['Args']['cardId'];\n };\n}\n\n/**\n * @classdesc\n * The homepage wifi dashboard card.\n */\n@intlPath({ path: 'dashboard-cards/wifi' })\nexport default class DashboardCardsWifi extends Component {\n @service declare intl: ADCIntlService;\n @service declare navigation: NavigationService;\n @service declare store: Store;\n\n get toolbarButtons(): DashboardCardToolbarButtons {\n return [\n createToolbarButton(this.intl.t('generic.settings'), 'chevron-right', {\n fn: () => this.navigation.transitionToRouteId(EmberWifiDevices)\n })\n ];\n }\n\n get wifiNetworks(): Promise {\n return this.store.findAll('wifi/network').then((w) => w.sortBy('networkType'));\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'DashboardCards::Wifi': typeof DashboardCardsWifi;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n

{{tc this \\'body\\'}}

\\n
\\n\",{ moduleName: \"customer-site/components/modals/activity/alarm-recap/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type RouterService from '@ember/routing/router-service';\nimport type ContextManager from 'customer-site/services/context-manager';\n\n@intlPath({ path: 'modals/activity/alarm-recap' })\nexport default class ModalsActivityAlarmRecap extends Component {\n @service router!: RouterService;\n @service declare contextManager: ContextManager;\n\n @action goToAlarmRecapPage(): void {\n this.router.transitionTo('activity.alarm-recap');\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::Activity::AlarmRecap': typeof ModalsActivityAlarmRecap;\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport EmberController from '@ember/controller';\nimport { get, set, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { task, waitForQueue } from 'ember-concurrency';\nimport ActivityCard from 'customer-site/components/dashboard-cards/activity/index';\nimport BusinessActivityAnalyticsCard from 'customer-site/components/dashboard-cards/business-activity-analytics/index';\nimport CommercialFleetCard from 'customer-site/components/dashboard-cards/commercial-fleet/index';\nimport AccessPointDevicesCard from 'customer-site/components/dashboard-cards/devices/access-control-access-point-devices-card/index';\nimport ElevatorDevicesCard from 'customer-site/components/dashboard-cards/devices/access-control-elevator-devices-card/index';\nimport CommercialTemperaturesCard from 'customer-site/components/dashboard-cards/devices/commercial-temperatures-card/index';\nimport FogCard from 'customer-site/components/dashboard-cards/devices/fog-card/index';\nimport GarageCard from 'customer-site/components/dashboard-cards/devices/garage-card/index';\nimport GateCard from 'customer-site/components/dashboard-cards/devices/gate-card/index';\nimport LightCard from 'customer-site/components/dashboard-cards/devices/light-card/index';\nimport LockCard from 'customer-site/components/dashboard-cards/devices/lock-card/index';\nimport MpersDeviceCard from 'customer-site/components/dashboard-cards/devices/mpers-device-card/index';\nimport NoiseSensorCard from 'customer-site/components/dashboard-cards/devices/noise-sensor-card/index';\nimport PartitionCard from 'customer-site/components/dashboard-cards/devices/partition-card/index';\nimport SensorsCard from 'customer-site/components/dashboard-cards/devices/sensors-card/index';\nimport ShadeCard from 'customer-site/components/dashboard-cards/devices/shade-card/index';\nimport SumpPumpCard from 'customer-site/components/dashboard-cards/devices/sump-pump-card/index';\nimport SwitchCard from 'customer-site/components/dashboard-cards/devices/switch-card/index';\nimport ThermostatCard from 'customer-site/components/dashboard-cards/devices/thermostat-card/index';\nimport WaterMeterCard from 'customer-site/components/dashboard-cards/devices/water-meter-card/index';\nimport WaterSensorCard from 'customer-site/components/dashboard-cards/devices/water-sensor-card/index';\nimport WaterValveCard from 'customer-site/components/dashboard-cards/devices/water-valve-card/index';\nimport FeatureSuggestionsCard from 'customer-site/components/dashboard-cards/feature-suggestions/index';\nimport HeroCard from 'customer-site/components/dashboard-cards/hero-card/index';\nimport ImageSensorCard from 'customer-site/components/dashboard-cards/image-sensor/index';\nimport LiveViewCard from 'customer-site/components/dashboard-cards/live-view/index';\nimport RemoteTempsCard from 'customer-site/components/dashboard-cards/remote-temps/index';\nimport UnconfiguredBoilerCard from 'customer-site/components/dashboard-cards/setup-card/boiler';\nimport WellnessCard from 'customer-site/components/dashboard-cards/wellness-card/index';\nimport WifiCard from 'customer-site/components/dashboard-cards/wifi/index';\nimport ModalsActivityAlarmRecap from 'customer-site/components/modals/activity/alarm-recap/index';\nimport {\n Hero,\n Partitions,\n Sensors,\n RecentActivity,\n ImageSensors,\n GarageDoors,\n Gates,\n Locks,\n Lights,\n Thermostats,\n RemoteTemperatureSensors,\n WaterValves,\n WaterMeters,\n WaterSensors,\n SumpPumps,\n AccessControlAccessPointDevices,\n UnconfiguredBoilers,\n Wellness,\n LiveView,\n X10Lights,\n FeatureSuggestions,\n Shades,\n CommercialTemperatures,\n Switches,\n BusinessActivityAnalytics,\n Wifi,\n NoiseSensors,\n CommercialFleet,\n MpersDevices,\n AccessControlElevatorDevices,\n FogDevices\n} from '../../enums/CardType';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalsService from '@adc/ui-components/services/modals';\nimport type Store from '@ember-data/store';\nimport type { TOC } from '@ember/component/template-only';\nimport type RouterService from '@ember/routing/router-service';\nimport type Component from '@glimmer/component';\nimport type BaseDevice from 'customer-site/models/devices/base-device';\nimport type SfgModel from 'customer-site/models/devices/security-fog-generator';\nimport type System from 'customer-site/models/systems/system';\nimport type HomeCard from 'customer-site/models/ui/home-card';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type { DragulaOptions } from 'dragula';\nimport type HomeIndexRoute from './route';\n\n// region Constants.\n\n/**\n * A map indicating the name of the system property that contains the collection of models for each type.\n */\nconst systemModelMap: Record = {\n [Partitions]: 'partitions',\n [Sensors]: 'sensors',\n [ImageSensors]: 'imageSensors',\n [GarageDoors]: 'garageDoors',\n [Locks]: 'locks',\n [Lights]: 'lights',\n [X10Lights]: 'x10Lights',\n [Thermostats]: 'thermostats',\n [RemoteTemperatureSensors]: 'remoteTemperatureSensors',\n [WaterValves]: 'waterValves',\n [WaterMeters]: 'waterMeters',\n [WaterSensors]: 'waterSensors',\n [SumpPumps]: 'sumpPumps',\n [AccessControlAccessPointDevices]: 'accessControlAccessPointDevices',\n [AccessControlElevatorDevices]: 'accessControlElevatorDevices',\n [Shades]: 'shades',\n [CommercialTemperatures]: 'commercialTemperatureSensors',\n [Gates]: 'gates',\n [Switches]: 'switches',\n [NoiseSensors]: 'noiseSensors',\n [MpersDevices]: 'mpersDevices',\n [FogDevices]: 'sfgDevices'\n};\n\n/**\n * A map of newly refactored device card paths.\n */\nconst cardPathMap: Record | typeof Component> = {\n [AccessControlAccessPointDevices]: AccessPointDevicesCard,\n [AccessControlElevatorDevices]: ElevatorDevicesCard,\n [BusinessActivityAnalytics]: BusinessActivityAnalyticsCard,\n [CommercialTemperatures]: CommercialTemperaturesCard,\n [GarageDoors]: GarageCard,\n [Gates]: GateCard,\n [ImageSensors]: ImageSensorCard,\n [Lights]: LightCard,\n [Locks]: LockCard,\n [NoiseSensors]: NoiseSensorCard,\n [Partitions]: PartitionCard,\n [RecentActivity]: ActivityCard,\n [RemoteTemperatureSensors]: RemoteTempsCard,\n [Sensors]: SensorsCard,\n [Shades]: ShadeCard,\n [SumpPumps]: SumpPumpCard,\n [Switches]: SwitchCard,\n [Thermostats]: ThermostatCard,\n [WaterMeters]: WaterMeterCard,\n [WaterSensors]: WaterSensorCard,\n [WaterValves]: WaterValveCard,\n [Wellness]: WellnessCard,\n [Wifi]: WifiCard,\n [CommercialFleet]: CommercialFleetCard,\n [MpersDevices]: MpersDeviceCard,\n [FeatureSuggestions]: FeatureSuggestionsCard,\n [Hero]: HeroCard,\n [LiveView]: LiveViewCard,\n [UnconfiguredBoilers]: UnconfiguredBoilerCard,\n [FogDevices]: FogCard\n};\n\n// endregion\n\n// region Utility Methods.\n\n/**\n * Given a global device id string, returns a numerical version of the local device id portion of the string.\n */\nfunction getLocalDeviceId(id?: string): number | undefined {\n return id ? parseInt(id.split('-')[1], 10) : undefined;\n}\n\n// endregion\n\n// region Creating CardConfigs\n\ntype CardConfig = {\n id: string;\n isVisible: boolean;\n defaultView: number;\n isCollapsed: boolean;\n devices?: BaseDevice[] | System;\n path: TOC | typeof Component;\n cardType: number;\n isHero: boolean;\n};\n\n/**\n * Creates dashboard card configurations for each card model.\n */\nasync function getCardConfigsFromModels(\n this: HomeIndexController,\n cards: HomeCard[],\n system: System\n): Promise {\n const fnGetConfig = (cardModel: HomeCard, cardType: number, devices?: BaseDevice[] | System): CardConfig => ({\n id: cardModel.id,\n devices,\n path: cardPathMap[cardType],\n cardType,\n isVisible: cardModel.isVisible,\n defaultView: cardModel.defaultView,\n isCollapsed: cardModel.isCollapsed,\n isHero: cardType === Hero\n });\n\n return (\n await Promise.all(\n cards.map(async (cardModel) => {\n const { cardType } = cardModel;\n\n if ([LiveView, RemoteTemperatureSensors, Hero].includes(cardType)) {\n return fnGetConfig(cardModel, cardType, system);\n }\n\n const deviceRelationship = systemModelMap[cardType];\n if (deviceRelationship) {\n const devices = (await get(system, deviceRelationship)) as BaseDevice[],\n { deviceId } = cardModel;\n\n if (cardType === Thermostats && deviceId) {\n return fnGetConfig(cardModel, cardType, [\n devices.find((model) => getLocalDeviceId(model.id) === deviceId) as BaseDevice\n ]);\n }\n\n if (cardType === FogDevices && deviceId) {\n return fnGetConfig(cardModel, cardType, [\n devices.find((model) => getLocalDeviceId(model.id) === deviceId) as SfgModel\n ]);\n }\n\n return fnGetConfig(cardModel, cardType, devices);\n }\n\n return fnGetConfig(cardModel, cardType);\n })\n )\n ).compact();\n}\n\n// endregion\n\n// region Card Layout.\n\n/**\n * Creates the drag configuration for the dashboard cards.\n */\nfunction updateDragCardsConfig(this: HomeIndexController) {\n const fnCheckElement = (el?: Element, selector?: string, css?: string): boolean =>\n !!el?.closest(selector ?? '')?.classList.contains(css ?? ''),\n fnIsHero = (el: Element) => fnCheckElement(el, '.card', 'hero'),\n fnIsEditing = () => this.contextManager.isEditingHomeScreen;\n\n // Schedule drag configuration.\n this.dragCardsConfig = {\n options: {\n copy: false,\n direction: 'vertical',\n revertOnSpill: false,\n removeOnSpill: false,\n mirrorContainer: document.getElementById('app-page') as HTMLElement,\n\n // Only allow moves if editing home screen AND click is on drag handle.\n moves: (_el?: Element, _container?: Element, handle?: Element): boolean => {\n return fnIsEditing() && fnCheckElement(handle, 'svg', 'svg-move');\n },\n\n // Cannot move hero card.\n invalid: (el: Element): boolean => {\n return fnIsEditing() && fnIsHero(el);\n },\n\n // Cannot drop on hero card.\n accepts: (_el?: Element, _target?: Element, _source?: Element, sibling?: Element): boolean => {\n return !!(sibling && !fnIsHero(sibling));\n }\n },\n\n enabledEvents: ['cloned']\n };\n}\n\n/**\n * Updates and saves the card layout configuration based on the current card element positions.\n */\nfunction saveCardLayout(this: HomeIndexController) {\n const { cards = [] } = this.model;\n\n // Iterate card elements from DOM.\n Array.from(document.querySelectorAll('.card-container > div[data-card-id]')).map(\n (el: HTMLElement, idx: number): void => {\n // Update card order and save.\n const cardModel = cards.findBy('id', el.dataset.cardId);\n if (cardModel) {\n cardModel.set('order', idx);\n cardModel.save();\n }\n }\n );\n\n this.createCardConfigs.perform();\n}\n\n/**\n * Reverts the card layout to the most recent configuration.\n */\nasync function revertCardLayout(this: HomeIndexController) {\n this.isLoading = true;\n\n const cards = await this.store.findAll('ui/home-card');\n this.cardsModel = set(this.model, 'cards', cards.toArray()) as HomeCard[];\n\n this.createCardConfigs.perform();\n}\n\n/**\n * Resets the card layout to the default configuration.\n */\nasync function resetCardLayout(this: HomeIndexController) {\n // Start loading.\n this.isLoading = true;\n\n await this.ajax.apiRequest(\n `ui/homeCards/reset/${this.contextManager.getSelectedSystemId()}`,\n undefined,\n null,\n 'DELETE'\n );\n\n await revertCardLayout.call(this);\n}\n\n// endregion\n\ninterface ReorderButton {\n action: VoidFunction;\n text: string;\n disabled: boolean;\n}\n\n/**\n * The home/index route page controller.\n */\nexport default class HomeIndexController extends EmberController {\n @service declare ajax: AjaxService;\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n @service declare store: Store;\n @service declare router: RouterService;\n @service declare modals: ModalsService;\n\n declare model: ModelFrom;\n\n systemModel?: System;\n cardsModel?: HomeCard[];\n\n /**\n * Generates and returns information about the cards to display on the home screen.\n */\n @tracked cards: CardConfig[] = [];\n\n /**\n * Indicates the dashboard cards are loading.\n */\n @tracked isLoading = true;\n\n /**\n * The dnd configuration for dashboard cards.\n */\n @tracked dragCardsConfig?: { options: DragulaOptions; enabledEvents?: string[] };\n\n /**\n * The buttons to show on the configure home screen controls.\n */\n get editControlButtons(): ReorderButton[] {\n const fn = (key: string, fn: VoidFunction, disabled = false): ReorderButton => ({\n action: () => this.editAction(fn),\n text: this.intl.t(`generic.${key}`),\n disabled\n });\n\n return [fn('reset', resetCardLayout), fn('cancel', revertCardLayout), fn('save', saveCardLayout, true)];\n }\n\n editAction(fn: VoidFunction): void {\n this.contextManager.isEditingHomeScreen = false;\n fn.call(this);\n }\n\n /**\n * Creates and caches the configuration objects for all dashboard cards.\n */\n createCardConfigs = task({ restartable: true }, async (initDrag?: boolean) => {\n const { cardsModel, systemModel } = this;\n\n // Clear existing cards.\n this.cards = [];\n\n // Ensure cards DOM is destroyed.\n await waitForQueue('afterRender');\n\n // Ensure there are no orphaned cards (happens during drag and drop).\n Array.from(document.querySelectorAll('.card-container .dashboard-card')).invoke('remove');\n\n if (cardsModel) {\n // Need to sort the cards here by order, otherwise if they are being re-arranged they can retain the same position.\n this.cards = await getCardConfigsFromModels.call(this, cardsModel.sortBy('order') || A([]), systemModel);\n\n // Cards are loaded.\n this.isLoading = false;\n\n if (initDrag) {\n // Ensure cards are rendered.\n await waitForQueue('afterRender');\n\n updateDragCardsConfig.call(this);\n }\n }\n });\n\n /**\n * Processes loaded data.\n */\n @action async dataLoaded({ system, cards }: { system: System; cards: HomeCard[] }): Promise {\n // Save data and mark it as loaded.\n Object.assign(this, {\n cardsModel: cards,\n systemModel: system\n });\n\n const shouldShowAlarmRecap = this.contextManager.identityModel.alarmEventDateTime;\n\n if (shouldShowAlarmRecap) {\n // TODO: figure out issue with 'activity/alarm-recap' findRecord call\n this.modals.showModal(ModalsActivityAlarmRecap);\n }\n\n this.createCardConfigs.perform(true);\n }\n\n /**\n * Executes route links passed from card components.\n */\n @action cardLink(link: string): void {\n this.router.transitionTo(link);\n }\n\n /**\n * Called when the dragged card clone is created.\n */\n @action cardCloned(clone: HTMLDivElement, { offsetHeight, offsetWidth }: HTMLDivElement): void {\n // Ensure clone has the same dimensions as the source card.\n Object.assign(clone.style, {\n height: `${offsetHeight}px`,\n width: `${offsetWidth}px`\n });\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/index': HomeIndexController;\n }\n}\n","import { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { Lockdown } from 'customer-site/enums/AccessControlSystemMode';\nimport AdcBaseRoute from '../../classes/base-route';\nimport { EmberHome } from '../../enums/CustomerPageUrl';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { AsyncHasMany } from '@ember-data/model';\nimport type Store from '@ember-data/store';\nimport type Transition from '@ember/routing/transition';\nimport type System from 'customer-site/models/systems/system';\nimport type HomeCard from 'customer-site/models/ui/home-card';\nimport type Camera from 'customer-site/models/video/devices/camera';\n\ninterface HomeIndexRouteModel {\n system: Promise;\n cards: ADCAsyncStoreFindAll | HomeCard[];\n}\n\n/**\n * @classdesc\n * The home screen index route.\n */\nexport default class HomeIndexRoute extends AdcBaseRoute {\n @service declare intl: ADCIntlService;\n @service declare store: Store;\n\n routeId = EmberHome;\n\n model(): HomeIndexRouteModel {\n return {\n system: this.identityManager.getSelectedSystem(true),\n cards: this.store.findAll('ui/home-card')\n };\n }\n\n /** @override */\n async afterModel(model: HomeIndexRouteModel, transition: Transition) {\n const system = await model.system;\n\n if (system?.isInPartialLockdown) {\n system.getControllerNamesWithOperatingModeNotSynced(Lockdown).then((response) => {\n this.notificationManager.addNotification(\n this.intl.t('generic.systemInPartialLockdown', {\n controllerListOfNames: response.value\n }),\n 'issue',\n [],\n 0,\n true,\n false\n );\n });\n }\n\n if (!this.identityManager.isLoginAsLoginRep) {\n this.wakeupCameras(system?.cameras);\n }\n\n return super.afterModel(model, transition);\n }\n\n @action willTransition(transition: Transition): void {\n // hack to get around the fact that this route is native JS syntax and super class is not.\n super.actions.willTransition.call(this, transition);\n\n this.contextManager.isEditingHomeScreen = false;\n }\n\n async wakeupCameras(camerasPromise: AsyncHasMany | undefined): Promise {\n const cameras = await camerasPromise;\n cameras?.forEach((camera) => {\n if (camera.deviceModel === 'ADC-V731B') {\n console.log('waking up 731');\n this.ajax\n .apiRequest(\n `video/devices/cameras/wakeUpBatteryCamera?id=${camera.get('id')}`,\n undefined,\n {},\n 'POST'\n )\n .catch((error) => {\n console.log(`failed to wake up 731 camera with id=${camera.get('id')}:`, error);\n });\n }\n });\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { runTask } from 'ember-lifeline';\n\nimport type Route from 'customer-site/home/lights/edit/route';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type { ModelFrom, Resolved } from 'customer-site/utils/type-utils';\n\ntype RouteModel = ModelFrom;\n\n/**\n * Edit page for light device settings\n */\nexport default class LightCardEditController extends Controller {\n @service declare identityManager: IdentityManager;\n\n @alias('identityManager.identityModel.hasInternalBetaAccess')\n declare hasInternalBeta: boolean;\n\n declare model: RouteModel;\n\n @tracked light?: Resolved;\n loadDevice = task({ drop: true }, async () => {\n this.light = await this.model.device;\n });\n\n /**\n * Ensure Mobile build version is Pineapple fish or above AND user has custom icons permission.\n */\n @computed('identityManager.identityModel.{applicationBuildNumber,isMobileApp}', 'light.useCustomSwitchIcons')\n get canUseCustomIcons(): boolean {\n const identityModel = this.identityManager.identityModel,\n isMobileAllowed = identityModel?.isMobileApp ? identityModel?.applicationBuildNumber >= 1080 : true,\n customIconsPermission = this.light ? this.light.useCustomSwitchIcons : false;\n return isMobileAllowed && customIconsPermission;\n }\n\n /**\n * Icon code and strings values for light specific icons\n */\n @tracked lightCustomIcons?: Resolved;\n\n loadLightIconsTask = task({ drop: true }, async () => {\n this.lightCustomIcons = await this.model.lightCustomIcons;\n });\n\n /**\n * Indicates the device has changes outside the regular dirty attributes.\n */\n @tracked deviceHasChanges = false;\n\n /**\n * Called when the icon changes to signify device has changes.\n */\n @action iconUpdated(): void {\n runTask(this, () => (this.deviceHasChanges = true));\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/lights/edit': LightCardEditController;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Transition from '@ember/routing/transition';\nimport type Light from 'customer-site/models/devices/light';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\n/**\n * Details/edit page for alight device profile by given ID\n */\nexport default class LightEditRoute extends BaseEditDeviceRoute {\n model(\n { id_device }: { id_device: string },\n transition: Transition\n ): ModelFrom> & {\n lightCustomIcons: Promise<{ id: number; name: string }[]>;\n } {\n return {\n ...super.model({ id_device }, transition),\n lightCustomIcons: this.ajax.apiRequestForValue<{ id: number; name: string }[]>(\n 'iconAndColorPicker/getIcons/customLightsAndSwitches'\n )\n };\n }\n\n /** @override */\n async rollbackModelOnTransition(): Promise {\n super.rollbackModelOnTransition();\n\n const { device } = this.modelFor(this.routeName) as ModelFrom,\n resolvedDevice = await device;\n if (!resolvedDevice.isSaving) {\n resolvedDevice.deviceIcon.rollback();\n }\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport Controller from '@ember/controller';\n\nimport type ArrayProxy from '@ember/array/proxy';\nimport type Light from 'customer-site/models/devices/light';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type LightGroupDetailsRoute from './route';\n\n/**\n * @classdesc\n * The Light Group Details route page controller.\n */\nexport default class LightGroupDetailsController extends Controller {\n declare model: ModelFrom;\n\n @tracked lights?: ArrayProxy;\n\n get sortedLights(): Light[] {\n return A(this.lights?.toArray() ?? []).sortBy('description');\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/lights/group-details': LightGroupDetailsController;\n }\n}\n","import { inject as service } from '@ember/service';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberLightsGroupDetails } from 'customer-site/enums/CustomerPageUrl';\n\nimport type Store from '@ember-data/store';\nimport type LightGroup from 'customer-site/models/devices/light-group';\n\n/**\n * @classdesc\n * Showcases list of light-cards for each of lights in a light group\n */\nexport default class LightGroupDetailsRoute extends AdcBaseRoute {\n @service declare store: Store;\n\n routeId = EmberLightsGroupDetails;\n\n model(params: { id_group: string }): {\n lightGroup: ADCAsyncStoreFindRecord;\n } {\n return {\n lightGroup: this.store.findRecord('devices/light-group', params.id_group)\n };\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { computed, action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport LightGroupModal from 'customer-site/components/modals/lights/light-group-modal';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type Light from 'customer-site/models/devices/light';\nimport type LightGroup from 'customer-site/models/devices/light-group';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type ParentRoute from '../route';\n\n/**\n * Helper object for rendering light groups in the UI.\n */\nclass LightGroupItem {\n constructor(group: LightGroup) {\n this.group = group;\n }\n\n /**\n * The base light group.\n */\n @tracked group: LightGroup;\n\n /**\n * A unique ID for this group.\n */\n @alias('group.id')\n declare id: LightGroup['id'];\n\n /**\n * The name of this group.\n */\n @alias('group.name')\n declare name: LightGroup['name'];\n\n /**\n * The lights contained within this group.\n */\n @computed('group.lights.@each.description')\n get lights(): Light[] {\n const { lights = [] } = this.group;\n return [...lights.slice()].sort((a, b) => a.description.localeCompare(b.description));\n }\n}\n\n/**\n * The light bulb details route controller.\n */\nexport default class LightDetailsController extends Controller {\n @service declare ajax: ServiceRegistry['ajax'];\n @service declare store: ServiceRegistry['store'];\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare modals: ServiceRegistry['modals'];\n\n declare model: ModelFrom;\n\n @tracked resolvedModel?: ResolvedModelFrom;\n\n /**\n * All lights that don't currently belong to a group.\n */\n @computed('resolvedModel.{devices.[],x10Lights.[],lightGroups.@each.lightIds}')\n get ungroupedLights(): Light[] {\n const { resolvedModel } = this,\n lights = resolvedModel?.devices ?? [];\n\n if (!resolvedModel || !lights || isEmpty(lights)) {\n return [];\n }\n\n const x10Lights = resolvedModel?.x10Lights ?? [],\n lightGroups = resolvedModel?.lightGroups ?? [];\n const affiliatedIds = [...new Set(lightGroups.map((group) => group.lightIds).flat())];\n return [...lights.slice(), ...x10Lights.slice()].filter(({ id }) => !affiliatedIds.includes(id));\n }\n\n /**\n * Information about the grouped lights.\n */\n @computed('resolvedModel.lightGroups.[]')\n get groupedLights(): LightGroupItem[] {\n return ((this.resolvedModel?.lightGroups ?? []) as LightGroup[]).map((group) => new LightGroupItem(group));\n }\n\n /**\n * Opens modal for adding a group.\n */\n @action async addGroup(): Promise {\n const group = this.store.createRecord(\n 'devices/light-group',\n await this.ajax.apiRequestForValue>(\n 'devices/lightGroups/getNewLightGroup',\n undefined,\n null,\n 'GET',\n false\n )\n );\n\n this.modals.showModal(\n LightGroupModal,\n {\n allLights: this.resolvedModel?.devices?.slice() ?? [],\n group,\n isManageGroupModal: false\n },\n () => {\n if (group.isNew && !group.isSaving) {\n group.destroyRecord();\n }\n }\n );\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/lights/index': LightDetailsController;\n }\n}\n","import { EmberLights } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type { BaseDeviceDetailsRouteModel } from 'customer-site/home/device-details/route';\nimport type Light from 'customer-site/models/devices/light';\nimport type LightGroup from 'customer-site/models/devices/light-group';\nimport type X10Light from 'customer-site/models/devices/x10light';\nimport type System from 'customer-site/models/systems/system';\n\nexport interface HomeLightDetailsRouteModel extends BaseDeviceDetailsRouteModel {\n x10Lights: ADCAsyncStoreFindAll;\n lightGroups: ADCAsyncStoreFindAll;\n}\n\nexport default class HomeLightDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n systemModelRelationship: keyof System = 'lights';\n /** @override */\n routeId = EmberLights;\n\n /** @override */\n model(): HomeLightDetailsRouteModel {\n const { store } = this;\n return {\n ...super.model(),\n x10Lights: store.findAll('devices/x10light'),\n lightGroups: store.findAll('devices/light-group')\n };\n }\n\n /** @override */\n async getModelsToCheck(model: HomeLightDetailsRouteModel): Promise {\n const [devices, x10Lights] = await Promise.all([model.devices, model.x10Lights]);\n return [devices.slice(), x10Lights.slice()];\n }\n}\n","import { EmberLightsRules } from '../../../enums/CustomerPageUrl';\nimport { Light } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.lights.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.lights.rules\n */\nexport default class LightsRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberLightsRules;\n\n /** @override */\n getDeviceType(): number {\n return Light;\n }\n}\n","import { EmberAutomationSchedules, EmberLightsSchedules } from '../../../enums/CustomerPageUrl';\nimport { Light } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.lights.schedules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.lights.schedules\n */\nexport default class LightsSchedulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberLightsSchedules;\n\n /** @override */\n getDestinationRouteId(): number {\n return EmberAutomationSchedules;\n }\n\n /** @override */\n getDeviceType(): number {\n return Light;\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport ProgrammingCodeState from 'customer-site/enums/ProgrammingCodeState';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type { ModelFrom, Resolved } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\ntype RouteModel = ModelFrom;\n\nexport default class LockCardEditController extends Controller {\n @service declare identityManager: IdentityManager;\n @service declare modals: ModalService;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationManager;\n\n @reads('identityManager.identityModel.hasProgrammingCodeAsDeviceSettingFeatureToggle')\n declare HasProgrammingCodeAsDeviceSettingFeatureToggle: boolean;\n\n declare model: RouteModel;\n\n @tracked\n isCodeRevealed = false;\n\n @tracked programmingCode?: Resolved;\n loadProgrammingCode = task({ drop: true }, async () => {\n this.programmingCode = await this.model.lockProgrammingCode;\n });\n\n @action\n revealButtonPress(): void {\n this.modals.showConfirmationDialog(\n this.intl.tc(this, 'confirmationModalTitle'),\n this.intl.tc(this, 'confirmationModalBody'),\n {\n action: async () => {\n // Ensure there is a programming code object to add the code to.\n if (!this.programmingCode) return;\n\n this.programmingCode.programmingCode = (await this.programmingCode.getWithCode()).value;\n this.isCodeRevealed = true;\n this.programmingCode.programmingCodeState = ProgrammingCodeState.Revealed;\n return;\n }\n }\n );\n }\n\n @action\n randomizeCode(): void {\n this.modals.showConfirmationDialog(\n this.intl.tc(this, 'randomizationModalTitle'),\n this.intl.tc(this, 'randomizationModalBody'),\n {\n action: () => {\n this.programmingCode?.submitRandomizeRequest();\n this.notificationManager.addSuccess(this.intl.tc(this, 'randomizationToastMessage'));\n return;\n }\n }\n );\n }\n\n @action\n copyCode(): void {\n this.modals.showConfirmationDialog(\n this.intl.tc(this, 'copyCodeModalTitle'),\n this.intl.tc(this, 'copyCodeModalBody'),\n {\n action: async () => {\n // Ensure there is a programming code object to add the code to.\n if (!this.programmingCode) return;\n\n this.programmingCode.programmingCode = (await this.programmingCode.getWithCode()).value;\n navigator.clipboard.writeText(this.programmingCode.programmingCode);\n this.programmingCode.programmingCodeState = ProgrammingCodeState.Revealed;\n this.notificationManager.addSuccess(this.intl.tc(this, 'copyCodeToastMessage'));\n return;\n }\n }\n );\n }\n\n resetState(): void {\n this.isCodeRevealed = false;\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/locks/edit': LockCardEditController;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Transition from '@ember/routing/transition';\nimport type { BaseEditDeviceModel } from 'customer-site/home/edit-device-route';\nimport type Lock from 'customer-site/models/devices/lock';\nimport type LockProgrammingCode from 'customer-site/models/programming-code/lock-programming-code';\nimport type Controller from './controller';\n\ninterface LockEditRouteModel extends BaseEditDeviceModel {\n lockProgrammingCode: Promise;\n}\n/**\n * Details/edit page for a lock by given ID\n */\nexport default class LockEditRoute extends BaseEditDeviceRoute {\n declare controller: Controller;\n\n model(params: { id_device: string }, transition: Transition): LockEditRouteModel {\n return {\n ...super.model(params, transition),\n lockProgrammingCode: this.store.findRecord('programming-code/lock-programming-code', params.id_device)\n };\n }\n\n deactivate(): void {\n this.controller.resetState();\n }\n}\n","import LockCard from 'customer-site/components/dashboard-cards/devices/lock-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type LockModel from 'customer-site/models/devices/lock';\n\nexport default class LocksIndexController extends BaseDeviceDetailsController {\n card = LockCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/locks/index': LocksIndexController;\n }\n}\n","import { EmberLocks } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type LockModel from 'customer-site/models/devices/lock';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class HomeLockDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberLocks;\n\n /** @override */\n systemModelRelationship: keyof System = 'locks';\n}\n","import { EmberLocksRules } from '../../../enums/CustomerPageUrl';\nimport { Lock } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.locks.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.locks.rules\n */\nexport default class LocksRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberLocksRules;\n\n /** @override */\n getDeviceType() {\n return Lock;\n }\n}\n","import EmberController from '@ember/controller';\nimport { action, computed, set, setProperties } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type Store from '@ember-data/store';\nimport type RouterService from '@ember/routing/router-service';\nimport type MpersDevice from 'customer-site/models/devices/mpers-device';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\ntype State = {\n name: string;\n value: string;\n};\n\ntype ResolvedRouteModel = ResolvedModelFrom;\n\n/**\n * @classdesc\n * The mpers-device profile settings route controller.\n */\nexport default class MpersDeviceEdit extends EmberController {\n @service declare intl: ADCIntlService;\n @service declare ajax: AjaxService;\n @service declare router: RouterService;\n @service declare navigation: NavigationService;\n @service declare notificationManager: NotificationManager;\n @service declare store: Store;\n\n declare model: ModelFrom;\n resolvedModel?: ResolvedRouteModel;\n\n /**\n * The countries.\n */\n @alias('resolvedModel.countries')\n countryList?: ResolvedRouteModel['countries'];\n\n /**\n * The Mpers Device Model\n */\n @alias('resolvedModel.mpersDevice')\n mpersDevice?: ResolvedRouteModel['mpersDevice'];\n\n /**\n * The Address Resources Model\n */\n @alias('resolvedModel.addressResources')\n addressResources?: ResolvedRouteModel['addressResources'];\n /**\n * Populates the countries dropdown.\n */\n @computed('resolvedModel.countries')\n get countries(): DropdownSelectItem[] {\n return (this.resolvedModel?.countries ?? []).map(({ name, value }: { name: string; value: number }) =>\n DropdownSelectItem.create({\n name,\n value: String(value)\n })\n );\n }\n\n /**\n * The customer's state. We are making this a computed property since we need to reset the state value\n * when a new country is selected so that we don't throw an error finding the old value.\n */\n @computed('mpersDevice.stateName', 'states')\n get state(): Promise {\n return (async () => {\n const states = await this.states,\n profileState = this.mpersDevice?.stateName;\n if (!profileState) {\n return '';\n }\n const matchingState = states.find((state) => state.value.includes(profileState));\n return matchingState ? profileState : '';\n })();\n }\n\n /**\n * Gets the states available to choose from.\n */\n @computed('mpersDevice.country')\n get states(): Promise {\n return this.ajax.apiRequest(\n 'settings/accountManagement/accountInformation/accountInformation/getStates?countryId=' +\n this.mpersDevice?.country\n );\n }\n @computed('mpersDevice.{address1,address2,city,stateName,postalCode}')\n get isLocationNameRequired(): boolean {\n const { address1, address2, city, stateName, postalCode } = this.mpersDevice ?? {};\n\n return !isEmpty(address1 || address2 || city || stateName || postalCode);\n }\n\n /**\n * Clears an input field when it is clicked into.\n */\n @action\n async updateCountry(newCountry: string): Promise {\n if (!this.mpersDevice) {\n return;\n }\n\n // Need to set the country value first before we pull its states.\n const states = await this.states;\n setProperties(this.mpersDevice, {\n country: parseInt(newCountry),\n stateName: states[0].value,\n city: '',\n postalCode: '',\n address1: '',\n address2: ''\n });\n }\n\n /**\n * Clears an input field when it is clicked into.\n */\n @action\n clearField(key: 'address1' | 'address2' | 'city' | 'deviceNickname' | 'locationName' | 'postalCode'): void {\n if (!this.mpersDevice || isEmpty(key)) {\n return;\n }\n\n set(this.mpersDevice, key, '');\n }\n\n @action\n async saveProfile(device: MpersDevice): Promise {\n try {\n await device.save();\n return Promise.resolve();\n } catch (error) {\n return Promise.reject();\n }\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/mpers-devices/edit': MpersDeviceEdit;\n }\n}\n","import BaseRoute from '../../../classes/base-route';\nimport { EmberMpersDevicesEdit } from '../../../enums/CustomerPageUrl';\n\nimport type CountryAddressResource from '@adc/login-setup-addon/models/settings/account-management/country-address-resource';\nimport type MpersDevice from 'customer-site/models/devices/mpers-device';\n\ntype Country = {\n name: string;\n value: number;\n};\n\ninterface MpersDeviceEditModel {\n countries: Promise;\n mpersDevice: ADCAsyncStoreFindRecord;\n addressResources: Promise;\n}\n\nexport default class MpersDevicesEditRoute extends BaseRoute {\n routeId = EmberMpersDevicesEdit;\n\n model({ id_mpers_device }: { id_mpers_device: string }): MpersDeviceEditModel {\n const mpersDevice = this.store.findRecord('devices/mpersDevice', id_mpers_device);\n return {\n countries: this.ajax.apiRequest(\n 'settings/accountManagement/accountInformation/accountInformation/getCountries'\n ),\n mpersDevice,\n addressResources: mpersDevice.then((mpersDevice) =>\n this.store.findRecord('settings/account-management/country-address-resource', mpersDevice.country)\n )\n };\n }\n}\n","import MpersDeviceCard from 'customer-site/components/dashboard-cards/devices/mpers-device-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type MpersDevice from 'customer-site/models/devices/mpers-device';\n\nexport default class MpersDeviceIndexController extends BaseDeviceDetailsController {\n card = MpersDeviceCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/mpers-devices/index': MpersDeviceIndexController;\n }\n}\n","import { EmberMpersDevices } from '../../enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from '../device-details/route';\n\nimport type MpersDevice from 'customer-site/models/devices/mpers-device';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class HomeMpersDeviceDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberMpersDevices;\n\n /** @override */\n systemModelRelationship: keyof System = 'mpersDevices';\n}\n","import NoiseSensorCard from 'customer-site/components/dashboard-cards/devices/noise-sensor-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type NoiseSensor from 'customer-site/models/devices/noise-sensor';\n\nexport default class HomeNoiseController extends BaseDeviceDetailsController {\n card = NoiseSensorCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/noise': HomeNoiseController;\n }\n}\n","import { EmberNoise } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type NoiseSensor from 'customer-site/models/devices/noise-sensor';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class NoiseRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberNoise;\n\n /** @override */\n systemModelRelationship: keyof System = 'noiseSensors';\n}\n","import {\n EmberPartitionArmingSchedules,\n EmberArmingSchedulesAndAutoRearming\n} from 'customer-site/enums/CustomerPageUrl';\nimport AdcBaseRoute from '../../../classes/base-route';\n\n/**\n * @classdesc\n * Security Route for Ember Arming Schedules\n */\nexport default class EmberPartitionArmingSchedulesRoute extends AdcBaseRoute {\n /** @override */\n routeId = EmberPartitionArmingSchedules;\n\n redirect(): void {\n this.contextManager.replaceRouteWithNativeRoute(\n EmberArmingSchedulesAndAutoRearming,\n undefined,\n { nav: 'security' },\n this\n );\n }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberPanelWifi } from 'customer-site/enums/CustomerPageUrl';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\n/**\n * Edit page for partition.\n */\nexport default class EditPartitionController extends Controller {\n @service declare contextManager: ContextManager;\n @service declare navigation: NavigationService;\n @service declare intl: ADCIntlService;\n\n declare model: ModelFrom;\n\n /**\n * Transition to Panel Wifi Network route.\n */\n @action goToPanelWifiRoute(event: PointerEvent): void {\n event.preventDefault();\n\n // Since we are going into a route that is showInModalDefault = true,\n // we get a lot of issues like app-header not updating, etc\n // Thus, for now, we'll be clearing the route stack and transitioning into Panel Wifi Network Route.\n this.contextManager.clearVisitedRoutesStack();\n\n this.navigation.transitionToRouteId(EmberPanelWifi);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/partitions/edit': EditPartitionController;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Partition from 'customer-site/models/devices/partition';\n\n/**\n * Details/edit page for a Partition by given ID\n */\nexport default class PartitionEditRoute extends BaseEditDeviceRoute {}\n","import DashboardCardsDevicesPartitionCard from 'customer-site/components/dashboard-cards/devices/partition-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type PartitionModel from 'customer-site/models/devices/partition';\n\nexport default class PartitionsIndexController extends BaseDeviceDetailsController {\n card = DashboardCardsDevicesPartitionCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/partitions/index': PartitionsIndexController;\n }\n}\n","import { EmberPartitionReports } from 'customer-site/enums/CustomerPageUrl';\nimport { Partitions } from 'customer-site/enums/WebReportType';\nimport BaseReportsRoute from 'customer-site/home/base-reports-route';\n\nexport default class HomePartitionReports extends BaseReportsRoute {\n routeId = EmberPartitionReports;\n\n getReportType() {\n return Partitions;\n }\n}\n","import { EmberPartitions } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type PartitionModel from 'customer-site/models/devices/partition';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class PartitionDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberPartitions;\n\n /** @override */\n systemModelRelationship: keyof System = 'partitions';\n}\n","import { EmberPartitionsRules } from '../../../enums/CustomerPageUrl';\nimport { Partition } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.partitions.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.partitions.rules\n */\nexport default class PartitionsRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberPartitionsRules;\n\n /** @override */\n getDeviceType() {\n return Partition;\n }\n}\n","import { EmberPartitionsSmartArming, EmberSmartArming } from 'customer-site/enums/CustomerPageUrl';\nimport AdcBaseRoute from '../../../classes/base-route';\n\n/**\n * @classdesc\n * Security Route for Smart Arming\n */\nexport default class SmartArmingPartitionsRoute extends AdcBaseRoute {\n /** @override */\n routeId = EmberPartitionsSmartArming;\n\n redirect(): void {\n this.contextManager.replaceRouteWithNativeRoute(EmberSmartArming, undefined, { nav: 'security' }, this);\n }\n}\n","import { EmberSensorReports } from 'customer-site/enums/CustomerPageUrl';\nimport { Sensors } from 'customer-site/enums/WebReportType';\nimport BaseReportsRoute from 'customer-site/home/base-reports-route';\n\nexport default class HomeSensorReports extends BaseReportsRoute {\n routeId = EmberSensorReports;\n\n getReportType() {\n return Sensors;\n }\n}\n","import { EmberSensorsRules } from '../../../enums/CustomerPageUrl';\nimport { SecuritySensor } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.sensors.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.sensors.rules\n */\nexport default class SensorRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberSensorsRules;\n\n /** @override */\n getDeviceType() {\n return SecuritySensor;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Shade from 'customer-site/models/devices/shade';\n\n/**\n * Details/edit page for a shade by given ID\n */\nexport default class ShadeEditRoute extends BaseEditDeviceRoute {}\n","import ShadeCard from 'customer-site/components/dashboard-cards/devices/shade-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type ShadeModel from 'customer-site/models/devices/shade';\n\nexport default class ShadesIndexController extends BaseDeviceDetailsController {\n card = ShadeCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/shades/index': ShadesIndexController;\n }\n}\n","import { EmberShades } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type ShadeModel from 'customer-site/models/devices/shade';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class ShadesDetailRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberShades;\n\n /** @override */\n systemModelRelationship: keyof System = 'shades';\n}\n","import { EmberAutomationSchedules, EmberShadesSchedules } from '../../../enums/CustomerPageUrl';\nimport { Shade } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\nexport default class ShadesSchedulesRoute extends BaseHomeToAutomationRoute {\n routeId = EmberShadesSchedules;\n\n /** @override */\n getDestinationRouteId() {\n return EmberAutomationSchedules;\n }\n\n /** @override */\n getDeviceType() {\n return Shade;\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type SumpPump from 'customer-site/models/devices/sump-pump';\n\n/**\n * Details/edit page for a sump pump by given ID\n */\nexport default class SumpPumpEditRoute extends BaseEditDeviceRoute {}\n","import DashboardCardsDevicesSumpPumpCard from 'customer-site/components/dashboard-cards/devices/sump-pump-card';\nimport BaseDeviceDetailsController from 'customer-site/home/base-device-details-controller';\n\nimport type SumpPump from 'customer-site/models/devices/sump-pump';\n\nexport default class SumpPumpsIndexController extends BaseDeviceDetailsController {\n card = DashboardCardsDevicesSumpPumpCard;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/sump-pumps/index': SumpPumpsIndexController;\n }\n}\n","import { EmberSumpPumps } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type SumpPump from 'customer-site/models/devices/sump-pump';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class SumpPumpDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberSumpPumps;\n\n /** @override */\n systemModelRelationship: keyof System = 'sumpPumps';\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Switch from 'customer-site/models/devices/switch';\n\n/**\n * Details/edit page for a switch by given ID\n */\nexport default class SwitchEditRoute extends BaseEditDeviceRoute {}\n","import { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport Controller from '@ember/controller';\nimport { Generic, Siren } from 'customer-site/enums/ControlPointType';\n\nimport './style.scss';\nimport type SwitchModel from 'customer-site/models/devices/switch';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type HomeSwitchDetailsRoute from '../route';\n\n/**\n * The switches details route controller.\n */\nexport default class SwitchesController extends Controller {\n declare model: ModelFrom;\n\n /**\n * The resolved collection of all switches (control points).\n */\n @tracked switches?: SwitchModel[];\n\n /**\n * Switches with siren type.\n */\n get sirens(): SwitchModel[] {\n return A((this.switches ?? []).filter((s) => s.switchType === Siren)).sortBy('description');\n }\n\n /**\n * Switches with generic type.\n */\n get generics(): SwitchModel[] {\n return A((this.switches ?? []).filter((s) => s.switchType === Generic)).sortBy('description');\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/switches': SwitchesController;\n }\n}\n","import { EmberSwitches } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type SwitchModel from 'customer-site/models/devices/switch';\nimport type System from 'customer-site/models/systems/system';\n\nexport default class HomeSwitchDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n routeId = EmberSwitches;\n\n /** @override */\n systemModelRelationship: keyof System = 'switches';\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { computed, action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { EmberBoilers } from 'customer-site/enums/CustomerPageUrl';\nimport { ThermostatBoilerWizard } from 'customer-site/enums/WizardUrl';\n\nimport type ArrayProxy from '@ember/array/proxy';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type BaseDevice from 'customer-site/models/devices/base-device';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\ninterface Zone {\n description: string;\n devices: string;\n}\n\n/**\n * @classdesc\n * Boiler configuration route controller.\n */\nexport default class extends Controller {\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n\n declare model: ModelFrom;\n\n @tracked boilerControlSystem?: Awaited['boilerControlSystem']>;\n\n @computed('boilerControlSystem.{zoneThermostats,trvThermostats}.[]')\n get areTrvsEnabled(): boolean {\n const { boilerControlSystem } = this;\n if (!boilerControlSystem) {\n return false;\n }\n\n return (['trvThermostats', 'zoneThermostats'] as const).every(\n (n) => boilerControlSystem.hasMany(n).ids().length > 0\n );\n }\n\n /**\n * The heating system zone configurations.\n */\n @computed(\n 'boilerControlSystem.{masterSwitch.description,trvThermostats.@each.description,zoneThermostats.@each.valveSwitchesDescriptions,dhwThermostats,isSingleSwitchSystem,zoneSwitches}'\n )\n get zones(): Promise {\n return (async () => {\n const zones: Zone[] = [],\n { boilerControlSystem, intl } = this;\n\n if (!boilerControlSystem) {\n return zones;\n }\n\n const { isYPlanSystem } = boilerControlSystem,\n masterSwitchDescription = (await boilerControlSystem.masterSwitch).description,\n hwcSwitches = await boilerControlSystem.hwcSwitches,\n [zoneThermostats, dhwThermostats, trvThermostats] = await Promise.all(\n (['zoneThermostats', 'dhwThermostats', 'trvThermostats'] as const).map(\n (n) => boilerControlSystem[n]\n )\n ),\n fnAddZone = (description: string, devices: string) => zones.push({ description, devices }),\n fnGetPairedDevices = (devices: ArrayProxy) => devices.map((d) => d.description).join(', ');\n\n // Add the header and master boiler control configuration.\n fnAddZone(intl.tc(this, 'heatingZones'), intl.tc(this, 'pairedDevices'));\n\n if (!isYPlanSystem) {\n fnAddZone(intl.tc(this, 'boilerControl'), masterSwitchDescription);\n }\n\n // Add the various thermostat configurations if applicable.\n if (!isEmpty(dhwThermostats)) {\n fnAddZone(intl.tc(this, 'dhw'), fnGetPairedDevices(dhwThermostats));\n }\n\n if (!isEmpty(zoneThermostats)) {\n if (boilerControlSystem.isSingleSwitchSystem) {\n // On a single switch system, all the thermostats are paired only with the boiler.\n fnAddZone(intl.tc(this, 'thermostat'), fnGetPairedDevices(zoneThermostats));\n } else if (isYPlanSystem) {\n // There's only one thermostat.\n zoneThermostats.forEach((thermostat) => fnAddZone(thermostat.description, masterSwitchDescription));\n } else {\n // On a multiple switch system, zone thermostats are each paired with at least one unique valve switch.\n zoneThermostats.forEach((thermostat) =>\n fnAddZone(thermostat.description, thermostat.valveSwitchesDescriptions.join(', '))\n );\n }\n }\n\n if (!isEmpty(trvThermostats)) {\n fnAddZone(intl.tc(this, 'trv'), fnGetPairedDevices(trvThermostats));\n }\n\n if (!isEmpty(hwcSwitches)) {\n fnAddZone(intl.tc(this, 'hwc'), fnGetPairedDevices(hwcSwitches));\n }\n\n return zones;\n })();\n }\n\n /**\n * Start the setup wizard.\n */\n @action startWizard(): void {\n this.contextManager.transitionToWizard(ThermostatBoilerWizard, '', {}, EmberBoilers);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/boilers': Controller;\n }\n}\n","import { service } from '@ember/service';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberBoilers } from 'customer-site/enums/CustomerPageUrl';\n\nimport './_style.scss';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type BoilerControlSystem from 'customer-site/models/automation/boiler-control-system';\n\n/**\n * @classdesc\n * A route for displaying the collection of boilers.\n */\nexport default class HomeThermostatBoilerRoute extends AdcBaseRoute {\n @service declare store: ServiceRegistry['store'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n routeId = EmberBoilers;\n\n model(): {\n boilerControlSystem: Promise;\n } {\n return {\n boilerControlSystem: this.store\n .findRecord('systems/system', this.identityManager.getSelectedSystemId(), { reload: true })\n .then(async (system) => {\n // reload the system's relevant device models\n await system.thermostats.reload();\n await system.valveSwitches.reload();\n\n return (await system.boilerControlSystem).reload();\n })\n };\n }\n}\n","import { EmberThermostats } from 'customer-site/enums/CustomerPageUrl';\nimport BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type { BaseEditDeviceModel } from 'customer-site/home/edit-device-route';\nimport type Thermostat from 'customer-site/models/devices/thermostat';\n\n/**\n * Details/edit page for a thermostat by given ID\n */\nexport default class ThermostatEditRoute extends BaseEditDeviceRoute {\n /** @override */\n routeId = EmberThermostats;\n\n /** @override */\n model({ id_device }: { id_device: string }): BaseEditDeviceModel {\n return {\n device: this.store.findRecord('devices/thermostat', id_device)\n };\n }\n}\n","import Controller from '@ember/controller';\nimport { action, computed, getProperties } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { EmberManageDevices } from '../../../enums/CustomerPageUrl';\n\nimport type RemoteTemperatureSensorModel from 'customer-site/models/devices/remote-temperature-sensor';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type NavigationService from 'customer-site/services/navigation';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\n/**\n * The thermostat details route controller.\n */\nexport default class ThermostatDetailsRoute extends Controller {\n @service declare navigation: NavigationService;\n\n declare model: ModelFrom;\n\n /**\n * The thermostats on the system.\n */\n @alias('model.devices')\n declare thermostats: Promise;\n\n /**\n * The remote temperature sensors on the system.\n */\n @alias('model.remoteTemperatureSensors')\n declare remoteTemperatureSensors: Promise;\n\n /**\n * The temperatures card model.\n */\n @computed('thermostats', 'remoteTemperatureSensors')\n get temperaturesModel(): {\n thermostats: Promise;\n remoteTemperatureSensors: Promise;\n } {\n return getProperties(this, 'thermostats', 'remoteTemperatureSensors');\n }\n\n /**\n * The cards to render.\n */\n @computed('thermostats.@each.isControlled')\n get uncontrolledThermostats(): Promise {\n return (async () => {\n const thermostats = await this.thermostats;\n return thermostats.rejectBy('isControlled');\n })();\n }\n\n /**\n * Transitions to the initial manage devices.\n */\n @action redirectToManageDevice(): void {\n this.navigation.transitionToRouteId(EmberManageDevices);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/index': ThermostatDetailsRoute;\n }\n}\n","import { EmberThermostats } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type ArrayProxy from '@ember/array/proxy';\nimport type { BaseDeviceDetailsRouteModel } from 'customer-site/home/device-details/route';\nimport type RemoteTemperatureSensorModel from 'customer-site/models/devices/remote-temperature-sensor';\nimport type TemperatureDevice from 'customer-site/models/devices/temperature-device';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type System from 'customer-site/models/systems/system';\n\ninterface ThermostatDetailsModel extends BaseDeviceDetailsRouteModel {\n remoteTemperatureSensors: Promise>;\n}\n\nexport default class HomeThermostatDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n systemModelRelationship: keyof System = 'thermostats';\n /** @override */\n routeId = EmberThermostats;\n\n model(): ThermostatDetailsModel {\n const system = this.identityManager.getSelectedSystem(true, ['remoteTemperatureSensors']);\n\n return {\n ...super.model(),\n remoteTemperatureSensors: system.then((system) => system.remoteTemperatureSensors)\n };\n }\n\n async getModelsToCheck(model: ThermostatDetailsModel): Promise {\n const [devices, remoteTemperatureSensors] = await Promise.all([model.devices, model.remoteTemperatureSensors]);\n return [devices.slice(), remoteTemperatureSensors.slice()];\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { action, setProperties } from '@ember/object';\nimport { reads, not } from '@ember/object/computed';\nimport { once } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { MANUAL_MODE, SMART_SCHEDULES } from 'customer-site/enums/ThermostatProgrammingMode';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalsService from '@adc/ui-components/services/modals';\nimport type NotificationService from '@adc/ui-components/services/notification-manager';\nimport type RouterService from '@ember/routing/router-service';\nimport type PeakProtectModel from 'customer-site/models/automation/peak-protect';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type HomeThermostatsPeakProtectRoute from '../route';\n\nexport const peakProtectValueMap = [[], [], [-1, 1], [-1, 2], [-2, 2], [-2, 3], [-3, 3], [-3, 4], [-4, 4], [-4, 5]];\n\n/**\n * @classdesc\n * The PeakProtect index route.\n */\nexport default class HomeThermostatsPeakProtectIndexController extends Controller {\n @service declare router: RouterService;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationService;\n @service declare modals: ModalsService;\n\n declare model: ModelFrom;\n\n @tracked declare thermostat: ThermostatModel;\n @tracked declare peakProtect: PeakProtectModel;\n\n /**\n * Indicates whether the comfort slider is visible or the set temperature controls are visible.\n */\n @tracked isComfortMode = true;\n\n /**\n * The local lower comfort offset (pre-cool) value.\n */\n @tracked lowerComfort = -2;\n\n /**\n * The local upper comfort offset (pre-cool) value.\n */\n @tracked upperComfort = 3;\n\n /**\n * The local lower temp offset (on-peak) value.\n */\n @tracked lowerTemp = -2;\n\n /**\n * The local lower temp offset (on-peak) value.\n */\n @tracked upperTemp = 3;\n\n /**\n * Indicates the details popup is open.\n */\n @tracked isDetailsPopupOpen = false;\n\n /**\n * The desired home temperature.\n */\n @reads('thermostat.homeCoolSetpoint')\n declare homeTemp: number;\n\n /**\n * Indicates peak protect values cannot be changed.\n */\n @not('peakProtect.enabled')\n declare isDisabled: boolean;\n\n /**\n * The amount deducted to create the lowest temperature allowed during pre-cooling\n */\n @reads('peakProtect.min')\n declare peakMin: number;\n\n /**\n * The amount added to create highest temperature allowed during on-peak hours\n */\n @reads('peakProtect.max')\n declare peakMax: number;\n\n private addNoTariffNotification(): void {\n const { intl } = this;\n\n this.notificationManager.addNotification(\n intl.tc(this, 'missingTariff'),\n 'issue',\n [\n {\n text: intl.t('generic.update'),\n action: () => {\n this.openChildRoute('home.thermostats.peak-protect.utility');\n return true;\n }\n }\n ],\n 0,\n true,\n false,\n 'error'\n );\n }\n\n /**\n * Finds and returns the slide range based on passed values, if it exists.\n */\n private getSliderRange(min: number, max: number): number[] | undefined {\n return peakProtectValueMap.find(([l, u]) => min === l && max === u);\n }\n\n /**\n * The computed slider value based on the current comfort values.\n */\n get sliderValue(): number {\n const r = this.getSliderRange(this.lowerComfort, this.upperComfort);\n return r ? peakProtectValueMap.indexOf(r) : 5;\n }\n\n /**\n * Updates all comfort and temperature offsets.\n */\n private updateAllOffsets(lower: number, upper: number): void {\n const r = this.getSliderRange(lower, upper);\n if (r) {\n this.isComfortMode = true;\n this.lowerComfort = lower;\n this.upperComfort = upper;\n } else {\n const [min, max] = peakProtectValueMap[Math.max(Math.min(upper - lower, 9), 2)];\n this.isComfortMode = false;\n this.lowerComfort = min;\n this.upperComfort = max;\n }\n\n this.lowerTemp = lower;\n this.upperTemp = upper;\n }\n\n /**\n * Updates the lower and upper bounds when the route models change.\n */\n @action syncModels(): void {\n // This action could be called two times from the template (since it's based on two properties), so only run it once.\n // Do not copy this deprecated usage. If you see this, please fix\n // eslint-disable-next-line ember/no-runloop\n once(this, this.updateAllOffsets, this.peakMin, this.peakMax);\n }\n\n /**\n * Toggles peak-protect on/off.\n */\n @action async togglePeakProtect(): Promise {\n const { peakProtect, intl } = this;\n\n if (isEmpty(peakProtect.belongsTo('tariff').id())) {\n this.addNoTariffNotification();\n return Promise.reject();\n }\n\n if (peakProtect.enabled) {\n this.modals.showConfirmationDialog(\n intl.tc(this, 'disablePeakProtect'),\n intl.tc(this, 'ppMessage'),\n {\n text: intl.tc(this, 'ppDisable'),\n action: () => {\n peakProtect.enabled = !peakProtect.enabled;\n peakProtect.save();\n return true;\n }\n },\n {\n text: intl.tc(this, 'ppEnable')\n }\n );\n } else {\n peakProtect.enabled = !peakProtect.enabled;\n peakProtect.save();\n }\n }\n\n /**\n * Changes the lower and upper bounds based on the slider position selected by the user.\n */\n @action adjustComfort(value: number): void {\n const [min, max] = peakProtectValueMap[value];\n this.updateAllOffsets(min, max);\n }\n\n /**\n * Transitions to the passed route.\n */\n @action openChildRoute(route: string): void {\n this.router.transitionTo(route);\n }\n\n /**\n * Updates the peak protect min and max and saves to the server.\n */\n @action async saveChanges(): Promise {\n const { peakProtect, isComfortMode } = this;\n\n if (isEmpty(peakProtect.belongsTo('tariff').id())) {\n this.addNoTariffNotification();\n return Promise.reject();\n }\n\n setProperties(peakProtect, {\n min: isComfortMode ? this.lowerComfort : this.lowerTemp,\n max: isComfortMode ? this.upperComfort : this.upperTemp\n });\n\n if (peakProtect.get('hasDirtyAttributes')) {\n this.thermostat.setScheduleMode(peakProtect.enabled ? SMART_SCHEDULES : MANUAL_MODE);\n await peakProtect.save();\n }\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/peak-protect/index': HomeThermostatsPeakProtectIndexController;\n }\n}\n","import { setProperties } from '@ember/object';\nimport BaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsPeakProtect } from 'customer-site/enums/CustomerPageUrl';\n\nimport type Transition from '@ember/routing/transition';\nimport type { HomeThermostatsPeakProtectRouteModel } from '../route';\nimport type HomeThermostatsPeakProtectIndexController from './controller';\n\nexport default class HomeThermostatsPeakProtectIndexRoute extends BaseRoute {\n routeId = EmberThermostatsPeakProtect;\n\n /** @override */\n async setupController(\n controller: HomeThermostatsPeakProtectIndexController,\n model: HomeThermostatsPeakProtectRouteModel,\n transition: Transition\n ): Promise {\n super.setupController(controller, model, transition);\n\n // Is this a transition from outside the peak-protect route?\n if (transition.to.parent?.name !== transition.from?.parent?.name) {\n // Update controller properties and sync models.\n const resolvedModel = {\n peakProtect: await model.peakProtect,\n thermostat: await model.thermostat\n };\n\n setProperties(controller, resolvedModel);\n controller.syncModels();\n }\n }\n}\n","import { get } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { inject as service } from '@ember/service';\n\nimport type Store from '@ember-data/store';\nimport type PeakProtectModel from 'customer-site/models/automation/peak-protect';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\n\nexport interface HomeThermostatsPeakProtectRouteModel {\n thermostat: Promise;\n peakProtect: Promise;\n}\n\n/**\n * @classdesc\n * The peak protect main route.\n */\nexport default class HomeThermostatsPeakProtectRoute extends Route {\n @service declare store: Store;\n\n model({ id_thermostat }: { id_thermostat: string }): HomeThermostatsPeakProtectRouteModel {\n console.log('fix', id_thermostat);\n const [thermostat, peakProtect] = ['devices/thermostat', 'automation/peak-protect'].map((n) =>\n this.store.findRecord(n, id_thermostat)\n );\n return { thermostat, peakProtect };\n }\n\n async rollbackModelOnTransition(): Promise {\n const model = this.modelFor(this.routeName) as HomeThermostatsPeakProtectRouteModel;\n await Promise.all(\n [await model.thermostat, await model.peakProtect].map((m) =>\n !m.isSaving && get(m, 'hasDirtyAttributes') ? m.rollbackAttributes() : null\n )\n );\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { computed, action, set } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { Cool } from 'customer-site/enums/ThermostatStatus';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type HomeThermostatsPeakProtectRoute from '../route';\n\ninterface ButtonConfig {\n icon: string;\n text: string;\n disabled: boolean;\n action: () => void;\n}\n\nexport default class HomeThermostatsPeakProtectSchedule extends Controller {\n @service declare intl: ADCIntlService;\n\n declare model: ModelFrom;\n resolvedModel?: Pick, 'thermostat'>;\n\n @reads('resolvedModel.thermostat')\n declare thermostat: ThermostatModel;\n\n /**\n * The local thermostat setpoint.\n */\n @tracked preferredSetpoint = 0;\n\n /**\n * The temp changer buttons to show.\n */\n @computed('preferredSetpoint', 'thermostat.{minCoolSetpoint,maxCoolSetpoint}')\n get buttons(): ButtonConfig[] {\n const { preferredSetpoint, intl } = this,\n state = intl.t('home.thermostats.cooling'),\n fnGetText = (key: string): string => intl.t(`home.thermostats.${key}`, { state }) as string;\n\n return ['max', 'min'].map((type) => {\n const isMin = type === 'min',\n boundary = this.thermostat.getSetpointBoundary(type, Cool);\n\n return {\n icon: `chevron-${isMin ? 'down' : 'up'}`,\n text: fnGetText(isMin ? 'decreaseState' : 'increaseState'),\n disabled: !!(boundary && (isMin ? preferredSetpoint <= boundary : preferredSetpoint >= boundary)),\n // eslint-disable-next-line ember/no-side-effects\n action: () => (this.preferredSetpoint += isMin ? -1 : 1)\n };\n });\n }\n\n /**\n * Updates the local setpoint if the thermostat setpoint changes.\n */\n @action updateSetpoint(): void {\n this.preferredSetpoint = this.thermostat.homeCoolSetpoint;\n }\n\n /**\n * Updates the thermostat to use the local setpoint.\n */\n @action async saveChanges(): Promise {\n const { thermostat } = this;\n set(thermostat, 'homeCoolSetpoint', this.preferredSetpoint);\n await thermostat.save();\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/peak-protect/schedule': HomeThermostatsPeakProtectSchedule;\n }\n}\n","import BaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsPeakProtectSchedule } from 'customer-site/enums/CustomerPageUrl';\n\nexport default class HomeThermostatsPeakProtectScheduleRoute extends BaseRoute {\n routeId = EmberThermostatsPeakProtectSchedule;\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { action, computed, set } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { default as DropdownSelectItem, SELECTED, UNSELECTED } from '@adc/ui-components/utils/dropdown-select-item';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { AsyncBelongsTo } from '@ember-data/model';\nimport type PeakProtectModel from 'customer-site/models/automation/peak-protect';\nimport type PeakProtectTariffModel from 'customer-site/models/automation/peak-protect-tariff';\nimport type PeakProtectUtilityModel from 'customer-site/models/automation/peak-protect-utility';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\ntype RouteModel = ModelFrom;\n\n/**\n * The Peak Protect utility settings route controller.\n */\nexport default class HomeThermostatsPeakProtectUtility extends Controller {\n @service declare intl: ADCIntlService;\n\n declare model: RouteModel;\n @tracked resolvedModel?: {\n pp: Awaited;\n utilities: Awaited;\n };\n\n /**\n * Indicates the tariff has been change and not saved yet.\n */\n @tracked hasChanges = false;\n\n @reads('resolvedModel.pp')\n declare pp: PeakProtectModel;\n\n @reads('resolvedModel.utilities')\n declare utilities: PeakProtectUtilityModel[];\n\n /**\n * The id of the tariff currently associated with the customer (if any)\n */\n @computed('pp.tariff.id')\n get originalTariffId(): string | undefined {\n return this.pp.belongsTo('tariff').id();\n }\n\n /**\n * The tariff currently selected on the page\n */\n @tracked selectedTariff: PeakProtectTariffModel | undefined = undefined;\n\n /**\n * The id of tariff to associate with the user (the selected if one exists, otherwise the original)\n */\n @computed('originalTariffId', 'selectedTariff.id')\n get currentTariffId(): string | undefined {\n return this.selectedTariff?.id ?? this.originalTariffId;\n }\n\n /**\n * The currently selected utility.\n */\n get selectedUtility(): PeakProtectUtilityModel | undefined {\n const { currentTariffId, utilities } = this;\n\n if (currentTariffId) {\n return utilities.find((u) => u.hasMany('tariffs').ids().includes(currentTariffId));\n }\n\n return utilities.firstObject;\n }\n\n /**\n * The utility items to display.\n */\n get utilityItems(): DropdownSelectItem[] {\n const { selectedUtility } = this;\n\n return this.utilities\n .map((u) =>\n DropdownSelectItem.create({\n name: u.description,\n value: u.id,\n state: u.id === selectedUtility?.id ? SELECTED : UNSELECTED\n })\n )\n .sortBy('name');\n }\n\n /**\n * The tariff items to display.\n */\n get tariffItems(): Promise {\n return (async () => {\n const { currentTariffId } = this,\n tariffs = ((await this.selectedUtility?.tariffs) ?? []) as PeakProtectTariffModel[];\n\n return tariffs\n .map(({ id, description }) =>\n DropdownSelectItem.create({\n name: description,\n value: id,\n state: id === currentTariffId ? SELECTED : UNSELECTED\n })\n )\n .sortBy('name');\n })();\n }\n\n /**\n * Selects a new utility value.\n */\n @action async chooseUtility(id: string): Promise {\n const tariffs = await this.utilities.findBy('id', id)?.tariffs;\n\n if (tariffs?.firstObject) {\n this.selectedTariff = tariffs.firstObject;\n this.hasChanges = true;\n }\n }\n\n /**\n * Selects a new tariff value.\n */\n @action async chooseTariff(id: string): Promise {\n const tariffs = await this.selectedUtility?.tariffs;\n this.selectedTariff = tariffs?.findBy('id', id) as PeakProtectTariffModel;\n this.hasChanges = true;\n }\n\n /**\n * Save changes to the server.\n */\n @action async saveChanges(): Promise {\n const tariffs = await this.selectedUtility?.tariffs;\n await set(\n this.pp,\n 'tariff',\n tariffs?.findBy('id', this.currentTariffId) as unknown as AsyncBelongsTo\n );\n await this.pp.save();\n this.hasChanges = false;\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/peak-protect/utility': HomeThermostatsPeakProtectUtility;\n }\n}\n","import BaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsPeakProtectUtility } from 'customer-site/enums/CustomerPageUrl';\n\nimport type AutomationPpUtilityModel from 'customer-site/models/automation/peak-protect-utility';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type DS from 'ember-data';\nimport type HomeThermostatsPeakProtectRoute from '../route';\n\ninterface HomeThermostatsPeakProtectUtilityRouteModel extends ModelFrom {\n utilities: DS.PromiseArray;\n}\n\nexport default class HomeThermostatsPeakProtectUtilityRoute extends BaseRoute {\n routeId = EmberThermostatsPeakProtectUtility;\n\n model(): HomeThermostatsPeakProtectUtilityRouteModel {\n return {\n ...(this.modelFor('home/thermostats/peak-protect') as ModelFrom),\n utilities: this.store.findAll('automation/peak-protect-utility')\n };\n }\n}\n","import { EmberThermostatReports } from 'customer-site/enums/CustomerPageUrl';\nimport { Thermostats } from 'customer-site/enums/WebReportType';\nimport BaseReportsRoute from 'customer-site/home/base-reports-route';\n\nexport default class HomeThermostatReports extends BaseReportsRoute {\n routeId = EmberThermostatReports;\n\n getReportType() {\n return Thermostats;\n }\n}\n","import { EmberThermostatsRules } from '../../../enums/CustomerPageUrl';\nimport { Thermostat } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class home.thermostats.rules.Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberof home.thermostats.rules\n */\nexport default class ThermostatsRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberThermostatsRules;\n\n /** @override */\n getDeviceType() {\n return Thermostat;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n \\n
\\n
{{tc this \\'aboutSmartSchedules\\'}}
\\n

{{tc this \\'smartSchedulesHowItWorks\\'}}

\\n

{{tc this \\'smartSchedulesHowToUse\\'}}

\\n
    \\n
  • {{tc this \\'smartSchedulesTipOne\\'}}
  • \\n
  • {{tc this \\'smartSchedulesTipTwo\\'}}
  • \\n
\\n

{{tc this \\'dataUsage\\'}}

\\n
\\n\",{ moduleName: \"customer-site/components/modals/thermostats/schedules/smart-schedules-explainer/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberPresenceStateSettings } from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type Navigation from 'customer-site/services/navigation';\n\n/**\n * @classdesc\n * A modal for which explains Smart Schedules on the thermostat edit page\n */\n@intlPath({ path: 'modals/thermostats/schedules/smart-schedules-explainer' })\nexport default class SmartSchedulesExplainerModal extends Component {\n @service declare navigation: Navigation;\n\n @action exit(): void {\n this.navigation.transitionToRouteId(EmberPresenceStateSettings);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Modals::Thermostats::Schedules::SmartSchedulesExplainer': typeof SmartSchedulesExplainerModal;\n }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias, reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport SmartSchedulesExplainerModal from 'customer-site/components/modals/thermostats/schedules/smart-schedules-explainer/index';\nimport {\n EmberThermostatsScheduleEditScheduleType,\n EmberThermostatsSmartScheduleAudit,\n EmberThermostatsPeakProtect,\n EmberThermostatsScheduleEditSetpoint,\n ThermostatSchedule,\n ThermostatRuleEdit\n} from 'customer-site/enums/CustomerPageUrl';\nimport { Home, Away, Sleep } from 'customer-site/enums/ThermostatSetpointType';\nimport { smartSchedulesDateIdFormat } from 'customer-site/home/thermostats/smart-schedule-audit/controller';\nimport { utcToZonedTime } from 'date-fns-tz';\nimport format from 'date-fns/format';\n\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type RtsPresetModel from 'customer-site/models/schedules/rts-preset';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type Navigation from 'customer-site/services/navigation';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type ThermostatsSchedulesScheduleEditRoute from '../route';\n\ntype setpointTypesEnum = typeof Home | typeof Away | typeof Sleep;\n\n/**\n * @classdesc\n * The thermostat details route controller.\n */\nexport default class ThermostatScheduleEdit extends Controller {\n @service declare contextManager: ContextManager;\n @service declare navigation: Navigation;\n @service declare modals: ModalService;\n\n declare model: ModelFrom;\n resolvedModel?: ResolvedModelFrom;\n\n /**\n * The device's reported timezone.\n */\n @reads('contextManager.identityModel.timezone')\n declare timezone: string;\n\n /**\n * The thermostats on the system.\n */\n @alias('resolvedModel.thermostat')\n declare thermostat: ThermostatModel;\n\n /**\n * The RTS presets associated with the thermostat on it's available temperature modes.\n */\n @alias('resolvedModel.rtsPresets')\n declare rtsPresets: RtsPresetModel[];\n\n /**\n * Returns a list of objects, containing each setpoint type's name, and a formatted string of the paired temperature sensors\n */\n get setpointTypeInfo(): { type: string; rts: string }[] {\n return [\n {\n type: 'home',\n rts: this.generateRtsText(Home)\n },\n {\n type: 'away',\n rts: this.generateRtsText(Away)\n },\n {\n type: 'sleep',\n rts: this.generateRtsText(Sleep)\n }\n ];\n }\n\n /**\n * Finds the temperature sensors paired to a setpoint type on the thermostat,\n * and formats them into the appropriate string.\n * @param typeEnum the enum representing the setpoint type.\n * @returns Either a blank string, or a string formatted like so: \"[description of first temp sensor] +[number or remaining temp sensors]\"\n */\n generateRtsText(typeEnum: setpointTypesEnum): string {\n if (this.rtsPresets.length === 0) {\n return '';\n }\n\n const setpointPreset = this.rtsPresets.filter((r) => r.setpointType == typeEnum)[0];\n\n if (!setpointPreset || setpointPreset.deviceIds.length === 0) {\n return '';\n }\n\n const tempSensors = [this.thermostat, ...this.thermostat.availableSensors];\n const firstTempSensorId = setpointPreset.deviceIds[0];\n const firstTempSensorName = tempSensors.find((s) => s.id === firstTempSensorId)?.description;\n\n if (!firstTempSensorName) {\n return '';\n }\n\n let addition = '';\n if (setpointPreset.deviceIds.length > 1) {\n addition = `+${setpointPreset.deviceIds.length - 1}`;\n }\n\n return `${firstTempSensorName} ${addition}`;\n }\n\n @action\n editScheduleType(): void {\n this.navigation.transitionToRouteId(EmberThermostatsScheduleEditScheduleType);\n }\n\n @action\n editSetpoint(type: string): void {\n this.navigation.transitionToRouteId(EmberThermostatsScheduleEditSetpoint, type);\n }\n\n @action\n viewSmartScheduleActivity(): void {\n this.navigation.transitionToRouteId(\n EmberThermostatsSmartScheduleAudit,\n this.thermostat.id + 'D' + format(utcToZonedTime(new Date(), this.timezone), smartSchedulesDateIdFormat)\n );\n }\n\n @action\n viewHowSmartSchedulesWork(): void {\n this.modals.showModal(SmartSchedulesExplainerModal);\n }\n\n @action\n viewCoolingHeatingSchedule(): void {\n this.navigation.transitionToRouteId(ThermostatSchedule, {\n queryParams: {\n t: this.thermostat.id.split('-')[1],\n fromAutomation: 'False',\n /* This sets either cooling or heating, will default to heating but the user can easily navigate to cooling*/\n mode: 1,\n a: 'False'\n }\n });\n }\n\n @action\n viewFanSchedule(): void {\n this.navigation.transitionToRouteId(ThermostatRuleEdit, {\n queryParams: {\n from: 'ts',\n /* This is the enum value for fan-schedules*/ r: 8,\n t: this.thermostat.id.split('-')[1]\n }\n });\n }\n\n get hasPeakProtectAccess(): boolean {\n if (this.navigation.getRouteItem(EmberThermostatsPeakProtect)) {\n return true;\n }\n\n return false;\n }\n\n @action\n editPeakProtect(): void {\n this.navigation.transitionToRouteId(EmberThermostatsPeakProtect, this.thermostat.id);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/schedules/edit/index': ThermostatScheduleEdit;\n }\n}\n","import BaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsScheduleEdit } from 'customer-site/enums/CustomerPageUrl';\n\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type RtsPresetModel from 'customer-site/models/schedules/rts-preset';\n\nexport interface ThermostatSchedulesScheduleEditModel {\n thermostat: Promise;\n rtsPresets: Promise;\n}\n\n/**\n * @classdesc\n * The parent route for all routes which fall under the schedules/:id_thermostat route\n * Establishes the model for all pages\n */\nexport default class ThermostatsSchedulesScheduleEditRoute extends BaseRoute {\n /**\n * @override\n */\n routeId = EmberThermostatsScheduleEdit;\n\n /**\n * Retrieves all the modals needed for the edit pages, including the selected thermostat (needed for all)\n * and the rtsPreset model (needed for the index page, setpoint pages)\n */\n model({ id_thermostat }: { id_thermostat: string }): ThermostatSchedulesScheduleEditModel {\n const userThermostat = this.store.findRecord('devices/thermostat', id_thermostat);\n\n // this is the only way the available RTS devices can be given on a refreshed page.\n this.store.findAll('devices/remote-temperature-sensor');\n\n return {\n thermostat: userThermostat,\n rtsPresets: this.getRtsPresetList(userThermostat)\n };\n }\n\n /**\n * Determines which list of RtsPresets to send to the user, if any\n * @param thermostatPromise The thermostat the user is making changes to, wrapped in a promise\n * @returns Either a list of the appropriate RtsPreset objects, or an empty list\n */\n async getRtsPresetList(thermostatPromise: Promise): Promise {\n const thermostat = await thermostatPromise;\n\n const supportsHeatOrAuto =\n thermostat.supportsHeatMode || thermostat.supportsAuxHeatMode || thermostat.supportsAutoMode;\n\n // heatRtsPresets is the default here, if the thermostat supports heat/cool, these lists should be identical anyway.\n if (supportsHeatOrAuto) {\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error This code should be replaced with: `return thermostat.heatRtsPresets.toArray();`.\n return thermostat.heatRtsPresets;\n } else if (thermostat.supportsCoolMode) {\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error This code should be replaced with: `return thermostat.coolRtsPresets.toArray();`.\n return thermostat.coolRtsPresets;\n }\n\n return [];\n }\n}\n","import { tracked } from '@glimmer/tracking';\nimport Controller from '@ember/controller';\nimport { get } from '@ember/object';\nimport { action } from '@ember/object';\nimport { SMART_SCHEDULES, SCHEDULED, MANUAL_MODE } from 'customer-site/enums/ThermostatProgrammingMode';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type ThermostatsSchedulesScheduleEditRoute from '../route';\n\ntype ScheduleTypeItem = BinaryListItem & {\n props: {\n type: number;\n description: string;\n };\n};\n\n/**\n * @classdesc\n * The controller for the Schedule Type edit page\n */\nexport default class ScheduleEditScheduleTypeController extends Controller {\n declare model: ModelFrom;\n\n thermostat?: ThermostatModel;\n @tracked scheduleTypeOptions: ScheduleTypeItem[] = [];\n\n private getItem(\n type: number,\n label: string,\n description: string,\n isSupported = true\n ): ScheduleTypeItem | undefined {\n return isSupported\n ? (new BinaryListItem({\n state: this.thermostat?.scheduleMode === type,\n label,\n props: {\n type,\n description\n }\n }) as ScheduleTypeItem)\n : undefined;\n }\n\n @action\n dataLoaded({ thermostat }: { thermostat: ThermostatModel }): void {\n this.thermostat = thermostat;\n this.scheduleTypeOptions = [\n this.getItem(SMART_SCHEDULES, 'smart', 'smartDescription', thermostat.supportsSmartSchedules),\n this.getItem(SCHEDULED, 'basic', 'basicDescription'),\n this.getItem(MANUAL_MODE, 'off', 'offDescription')\n ].filter((item) => item !== undefined && item !== null) as ScheduleTypeItem[];\n }\n\n /**\n * Transitions the thermostat into the new chosen mode.\n */\n @action\n changeScheduleMode(options: ScheduleTypeItem[]): void {\n const newScheduleMode = options.find((option) => get(option, 'state'))?.props.type;\n if (newScheduleMode !== undefined) {\n this.thermostat?.setScheduleMode(newScheduleMode);\n }\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/schedules/edit/schedule-type': ScheduleEditScheduleTypeController;\n }\n}\n","import BaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsScheduleEditScheduleType } from 'customer-site/enums/CustomerPageUrl';\n\n/**\n * @classdesc\n *\n * The route for the schedule type edit page. Inherits a model from the route directly inside the\n * schedule-edit folder.\n *\n * @class home.thermostats.schedules.schedule-edit.schedule-edit-scheduleType.Route\n * @extends BaseRoute\n */\nexport default class ScheduleEditScheduleTypeRoute extends BaseRoute {\n routeId = EmberThermostatsScheduleEditScheduleType;\n}\n","import EmberController from '@ember/controller';\nimport { get } from '@ember/object';\nimport { action, computed } from '@ember/object';\nimport { alias, reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { EmberThermostatsScheduleEdit } from 'customer-site/enums/CustomerPageUrl';\nimport { SETPOINT_RESOURCES } from './route';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type RtsPresetModel from 'customer-site/models/schedules/rts-preset';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type Navigation from 'customer-site/services/navigation';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type { SafeString } from 'handlebars';\nimport type { SetpointAttributes } from './route';\nimport type Route from './route';\n\ninterface TempSensorItem {\n state: boolean;\n label: string;\n icon: string;\n props: {\n id: string;\n supportsHumidity: boolean;\n temperatureText: string | SafeString;\n humidityText: string | SafeString;\n };\n}\n\n/**\n * @classdesc\n * The controller for the thermostat setpoint edit page\n */\nexport default class ThermostatScheduleEditSetpointController extends EmberController {\n @service declare intl: ADCIntlService;\n @service declare contextManager: ContextManager;\n @service declare navigation: Navigation;\n\n declare model: ModelFrom;\n resolvedModel?: ResolvedModelFrom;\n\n /**\n * The state of the user has selected (home, away, or sleep)\n */\n @alias('resolvedModel.setpointType')\n declare thermostatSetpointType: string;\n\n /**\n * The thermostat changes are being applied to\n */\n @alias('resolvedModel.thermostat')\n declare thermostat: ThermostatModel;\n\n /**\n * The RTS preset model associated with the thermostat, on the designated setpoint type, given the supported temperature modes\n */\n @alias('resolvedModel.rtsPreset')\n declare setpointRtsPreset: RtsPresetModel;\n\n /**\n * Signifies whether any attributes on the thermostat model (in particular the setpoints) have changed\n */\n @reads('thermostat.hasDirtyAttributes')\n declare thermostatSetpointsChanged: boolean;\n\n /**\n * Verifies that there's a rtsPreset that can be saved, and that changes have been made to it\n */\n @reads('setpointRtsPreset.hasDirtyIds')\n get rtsPresetCanBeSaved(): boolean {\n return this.setpointRtsPreset && this.setpointRtsPreset.hasDirtyIds;\n }\n\n /**\n * The temperature unit associated with the thermostat, for displaying on the setpoint buffer warning\n */\n get temperatureUnit(): string {\n const translationKey = this.contextManager.identityModel.localizeTempUnitsToCelsius\n ? 'degreesCelsius'\n : 'degreesFahrenheit';\n return this.intl.tc(this, translationKey);\n }\n\n /**\n * The attributes associated with the current state\n */\n get currentSetpointType(): SetpointAttributes {\n return SETPOINT_RESOURCES[this.thermostatSetpointType];\n }\n\n /**\n * The attribute for the full translation for the desired setpoint question.\n */\n get setpointQuestion(): string {\n return this.intl.t(SETPOINT_RESOURCES[this.thermostatSetpointType].setpointQuestion);\n }\n\n /**\n * The attribute for the full translation for selecting temperature sensors.\n */\n get tempSensorsSelect(): string {\n return this.intl.t(SETPOINT_RESOURCES[this.thermostatSetpointType].tempSensorsSelect);\n }\n\n /**\n * The attribute for the current states's cool setpoint\n */\n @computed('thermostat.{homeCoolSetpoint,awayCoolSetpoint,sleepCoolSetpoint}', 'thermostatSetpointType')\n get coolSetpoint(): number {\n return this.thermostat[SETPOINT_RESOURCES[this.thermostatSetpointType].coolKey];\n }\n\n /**\n * The attribute for the current state's heat setpoint\n */\n @computed('thermostat.{homeHeatSetpoint,awayHeatSetpoint,sleepHeatSetpoint}', 'thermostatSetpointType')\n get heatSetpoint(): number {\n return this.thermostat[SETPOINT_RESOURCES[this.thermostatSetpointType].heatKey];\n }\n\n /**\n * The list of all relevant info for each temperature sensor a user can select\n */\n @computed('setpointRtsPreset.deviceIds', 'thermostat.availableSensors')\n get tempSensorList(): TempSensorItem[] {\n const available = [\n this.thermostat,\n ...this.thermostat.availableSensors.filter((sensor) => get(sensor, 'supportsPairing'))\n ];\n\n return available.map((tempSensor) => {\n return {\n state: this.setpointRtsPreset ? this.setpointRtsPreset.deviceIds.includes(tempSensor.id) : false,\n label: tempSensor.description,\n icon: tempSensor.deviceIcon.icon,\n props: {\n id: tempSensor.id,\n supportsHumidity: tempSensor.supportsHumidity,\n temperatureText: tempSensor.temperatureText,\n humidityText: tempSensor.humidityText\n }\n };\n });\n }\n\n /**\n * Determines whether the user's setpoints are closer to each other than the buffer\n */\n @computed('thermostat.autoSetpointBuffer', 'coolSetpoint', 'heatSetpoint')\n get showSetpointInfo(): boolean {\n return Math.abs(this.coolSetpoint - this.heatSetpoint) < this.thermostat.autoSetpointBuffer;\n }\n\n /**\n * Determines whether the thermostat has enough pairable RTS devices to be shown\n * The temp sensor list should not be shown if 1 of these conditions are met:\n * 1. There are no available sensors\n * 2. The only available sensor is the thermostat itself\n * 3. the \"showRts\" boolean is false\n */\n @computed('tempSensorList.length', 'thermostat.{id,showRts}')\n get showRtsList(): boolean {\n return (\n this.tempSensorList.length !== 0 &&\n !(this.tempSensorList.length === 1 && this.tempSensorList[0].props?.id === this.thermostat.id) &&\n this.thermostat.showRts\n );\n }\n\n /**\n * Determines if the user has made any changes that can be saved\n */\n @computed('thermostatSetpointsChanged', 'rtsPresetCanBeSaved')\n get canSave(): boolean {\n return !(this.rtsPresetCanBeSaved || this.thermostatSetpointsChanged);\n }\n\n /**\n * Add or remove an RTS from the appropriate RTS preset lists\n * @param sensors the list of available temperature sensors\n */\n @action\n updatePairings(sensors: TempSensorItem[]): void {\n const deviceIds = sensors.filter((sensor) => get(sensor, 'state')).map((s) => s.props.id);\n this.setpointRtsPreset.set('deviceIds', deviceIds);\n }\n\n /**\n * Return to the page the user last visited, and revert any changes made without saving\n */\n @action\n back(): void {\n this.thermostat.rollbackAttributes();\n this.setpointRtsPreset.rollbackAttributes();\n this.navigation.transitionToRouteId(EmberThermostatsScheduleEdit);\n }\n\n /**\n * Apply the changes the user has made to the thermostat\n */\n @action\n async save(): Promise {\n if (this.thermostatSetpointsChanged) {\n await this.thermostat.setSetpointsOnSetpointType({\n coolSetpointOnSetpointType: this.coolSetpoint,\n heatSetpointOnSetpointType: this.heatSetpoint,\n thermostatSetpointType: this.currentSetpointType.setpointEnum\n });\n }\n\n if (this.rtsPresetCanBeSaved) {\n await this.setpointRtsPreset.save();\n }\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/schedules/edit/setpoint': ThermostatScheduleEditSetpointController;\n }\n}\n","import BaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsScheduleEditSetpoint } from 'customer-site/enums/CustomerPageUrl';\nimport { Home, Away, Sleep } from 'customer-site/enums/ThermostatSetpointType';\n\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\nimport type RtsPresetModel from 'customer-site/models/schedules/rts-preset';\nimport type { ThermostatSchedulesScheduleEditModel } from '../route';\n\nexport interface ThermostatSchedulesScheduleEditSetpointModel {\n thermostat: Promise;\n setpointType: string;\n rtsPreset: Promise;\n}\n\nexport type SetpointAttributes = {\n translation: string;\n coolKey: 'homeCoolSetpoint' | 'awayCoolSetpoint' | 'sleepCoolSetpoint';\n heatKey: 'homeHeatSetpoint' | 'awayHeatSetpoint' | 'sleepHeatSetpoint';\n setpointQuestion: string;\n tempSensorsSelect: string;\n setpointEnum: typeof Home | typeof Away | typeof Sleep;\n};\n\n/**\n * The resources needed for each individual state, including the internal name, the translation path, and the heat/coolSetpoint attributes\n */\nexport const SETPOINT_RESOURCES: { [setpoint: string]: SetpointAttributes } = {\n home: {\n translation: 'home.thermostats.home',\n coolKey: 'homeCoolSetpoint',\n heatKey: 'homeHeatSetpoint',\n setpointQuestion: 'home.thermostats.schedules.edit.setpoint.homeSetpointQuestion',\n tempSensorsSelect: 'home.thermostats.schedules.edit.setpoint.homeSensorsSelect',\n setpointEnum: Home\n },\n away: {\n translation: 'home.thermostats.away',\n coolKey: 'awayCoolSetpoint',\n heatKey: 'awayHeatSetpoint',\n setpointQuestion: 'home.thermostats.schedules.edit.setpoint.awaySetpointQuestion',\n tempSensorsSelect: 'home.thermostats.schedules.edit.setpoint.awaySensorsSelect',\n setpointEnum: Away\n },\n sleep: {\n translation: 'home.thermostats.schedules.edit.setpoint.sleep',\n coolKey: 'sleepCoolSetpoint',\n heatKey: 'sleepHeatSetpoint',\n setpointQuestion: 'home.thermostats.schedules.edit.setpoint.sleepSetpointQuestion',\n tempSensorsSelect: 'home.thermostats.schedules.edit.setpoint.sleepSensorsSelect',\n setpointEnum: Sleep\n }\n};\n\n/**\n * @classdesc\n *\n * Route for the schedule edit setpoint page\n *\n * @class home.thermostats.schedules.edit.setpoint.Route\n * @extends AdcBaseRoute\n */\nexport default class ScheduleEditSetpointRoute extends BaseRoute {\n routeId = EmberThermostatsScheduleEditSetpoint;\n\n /**\n * Generate the title of the page, given the provided thermostat state\n * @returns The title of the page (either the thermostat state translated, or a generic title)\n */\n getRouteItemTitle(): string {\n const state = this.slugs && this.slugs[this.slugs.length - 1];\n const stateRouteTitle = state && SETPOINT_RESOURCES[state].translation;\n\n return stateRouteTitle ? this.intl.t(stateRouteTitle) : this.intl.tc(this, 'defaultTitle');\n }\n\n model({ setpoint_type }: { setpoint_type: string }): ThermostatSchedulesScheduleEditSetpointModel {\n const parentModel: ThermostatSchedulesScheduleEditModel = this.modelFor('home.thermostats.schedules.edit');\n const rtsPresets = parentModel.rtsPresets;\n const setpointEnum = SETPOINT_RESOURCES[setpoint_type].setpointEnum;\n\n return {\n thermostat: parentModel.thermostat,\n setpointType: setpoint_type,\n rtsPreset: (async () => {\n const presetList = await rtsPresets;\n return presetList.find((r) => r.setpointType === setpointEnum);\n })()\n };\n }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberThermostatsScheduleEdit, EmberThermostatsPeakProtect } from '../../../../enums/CustomerPageUrl';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Navigation from 'customer-site/services/navigation';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\n/**\n * @classdesc\n * The thermostat details route controller.\n */\nexport default class ThermostatDetailsRoute extends Controller {\n @service declare navigation: Navigation;\n @service declare intl: ADCIntlService;\n\n declare model: ModelFrom;\n resolvedModel?: ResolvedModelFrom;\n\n @action\n editThermostatSchedule(thermostatSortID: string): void {\n this.navigation.transitionToRouteId(EmberThermostatsScheduleEdit, thermostatSortID);\n }\n\n get hasPeakProtectAccess(): boolean {\n if (this.navigation.getRouteItem(EmberThermostatsPeakProtect)) {\n return true;\n }\n\n return false;\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/schedules/index': ThermostatDetailsRoute;\n }\n}\n","import AdcBaseRoute from '../../../../classes/base-route';\nimport { EmberThermostatsSchedules } from '../../../../enums/CustomerPageUrl';\nimport { Thermostat } from '../../../../enums/WebDeviceType';\n\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\n\nexport default class ThermostatsSchedulesRoute extends AdcBaseRoute {\n /** @Override */\n routeId = EmberThermostatsSchedules;\n\n /** @Override */\n getDeviceType(): typeof Thermostat {\n return Thermostat;\n }\n\n model(): ADCAsyncStoreFindAll {\n return this.store.findAll('devices/thermostat');\n }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { addWeeks, addDays } from 'date-fns';\nimport { utcToZonedTime } from 'date-fns-tz';\nimport format from 'date-fns/format';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type RouterService from '@ember/routing/router-service';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from './route';\n\nexport const smartSchedulesDateIdFormat = 'MM-dd-yyyy';\n\n/**\n * @classdesc\n *\n * The controller for the base Smart Schedule Audit page.\n *\n */\nexport default class SmartScheduleAuditController extends Controller {\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n @service declare router: RouterService;\n\n declare model: ModelFrom;\n resolvedModel?: {\n date: Date;\n thermostatId: string;\n timeframes: Awaited['timeframes']>;\n };\n\n /**\n * The device's reported timezone.\n */\n @reads('contextManager.identityModel.timezone')\n declare timezone: string;\n\n /**\n * The date the user is auditing, in the account's timezone\n */\n @reads('resolvedModel.date')\n declare currentDate: Date;\n\n /**\n * The global id of the thermostat the audit model is associated with\n */\n @reads('resolvedModel.thermostatId')\n declare thermostatId: string;\n\n /**\n * Get the current date, with the time\n */\n get today(): Date {\n return utcToZonedTime(new Date(), this.timezone);\n }\n\n /**\n * Get the current date, without any hours/minutes/seconds/ms\n */\n get todayDate(): Date {\n const nowInLocalTz = utcToZonedTime(new Date(), this.timezone);\n nowInLocalTz.setHours(0, 0, 0, 0);\n\n return nowInLocalTz;\n }\n\n /**\n * The furthest a user should be able to view in the future, which is 7 days (1 week)\n * further than today\n */\n get maxDate(): Date {\n const weeksInFuture = 1;\n return addWeeks(this.todayDate, weeksInFuture);\n }\n\n /**\n * The furthest a user should be able to view in the past, which is 59 days\n * behind today\n */\n get minDate(): Date {\n const daysInPast = 59;\n return addDays(this.todayDate, -daysInPast);\n }\n\n /**\n * Called when the pickaday-input's date is changed.\n * Calls the api with the new date, and update the model accordingly.\n * @param {Date} newDate the new date passed from the pickaday-input\n */\n @action\n updateModel(): void {\n const dateString = format(this.currentDate, smartSchedulesDateIdFormat);\n\n this.router.transitionTo('home.thermostats.smart-schedule-audit', this.thermostatId + 'D' + dateString);\n }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/thermostats/smart-schedule-audit': SmartScheduleAuditController;\n }\n}\n","import toInteger from \"../_lib/toInteger/index.js\";\nimport addDays from \"../addDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of week to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the weeks added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\n\nexport default function addWeeks(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n var days = amount * 7;\n return addDays(dirtyDate, days);\n}","import { A } from '@ember/array';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberThermostatsSmartScheduleAudit } from 'customer-site/enums/CustomerPageUrl';\nimport { NUM_MILLISECONDS_IN_HOUR } from 'customer-site/utils/datetime';\n\nimport type SchedulePresetTimeFrame from 'customer-site/models/schedules/schedule-preset-time-frame';\nimport type SmartSchedulesAudit from 'customer-site/models/schedules/smart-schedules-audit';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\nconst HALF_HOUR_IN_MS = NUM_MILLISECONDS_IN_HOUR / 2;\n\ntype SmartSchedulesAuditRouteModel = {\n audit: Promise;\n timeframes: Promise;\n};\n\n/**\n * @classdesc\n * The route for smart-schedule-audit\n */\nexport default class SmartScheduleAuditRoute extends AdcBaseRoute {\n routeId = EmberThermostatsSmartScheduleAudit;\n\n model({ id_smart_schedule }: { id_smart_schedule: string }): SmartSchedulesAuditRouteModel {\n // fix the Id, since the legacy button lowercases the 'D'.\n const id = id_smart_schedule.toUpperCase(),\n audit = this.store.findRecord('schedules/smart-schedules-audit', id);\n\n return {\n audit: audit,\n timeframes: (async () => {\n const a = await audit;\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error TS is confused by the `A`, we should verify if we really need it, or change the `filterAuditRecords` method to accept a SyncHasMany.\n return this.filterAuditRecords(A(a.timeframes).toArray());\n })()\n };\n }\n\n /**\n * Filters the SchedulePresetTimeFrames retrieved by the backend in three ways:\n * 1. Reverts any changes that may have been made previously to the timeframe (so if this date has been visited previously)\n * 2. Merges timeframes smaller than 30 mins into the timeframe below\n * 3. Merges timeframes that have the same state/timeframe into the timeframe below\n * @param originalArray The list of timeframes retrieved from the backend for a given day\n * @returns A list of timeframes, filtered\n */\n filterAuditRecords(originalArray: SchedulePresetTimeFrame[]): Array {\n this.rollbackDirtyTimeframes(originalArray);\n const smallFiltered = this.mergeShortAuditRecords(originalArray);\n return this.mergeDuplicateAuditRecords(smallFiltered);\n }\n\n /**\n * Iterates through a list of timeframes, and merges any elements shorter than 30 mins in length to the timeframe below\n * @param timeframes A list of timeframes\n * @returns A list of timeframes, with small entries filtered out\n */\n mergeShortAuditRecords(timeframes: SchedulePresetTimeFrame[]): Array {\n const smallFiltered = Array();\n\n // We first want to remove any timeframe that lasts less than 30 mins\n let cursor = 0;\n while (cursor < timeframes.length) {\n // If this is the last timeframe, then either add it, or if it's too small add it's time to the prior timeframe\n if (cursor === timeframes.length - 1) {\n const finalTimeframeLength =\n timeframes[cursor].endTimeLocal.valueOf() - timeframes[cursor].startTimeLocal.valueOf();\n if (finalTimeframeLength < HALF_HOUR_IN_MS) {\n smallFiltered[smallFiltered.length - 1].endTimeLocal = timeframes[cursor].endTimeLocal;\n } else {\n smallFiltered.push(timeframes[cursor]);\n }\n\n cursor++;\n continue;\n }\n\n // If we reach this point, it means that there are timeframes below this one, and we want to check the length of this current timeframe\n const timeframe = timeframes[cursor];\n const timeframeLength = timeframe.endTimeLocal.valueOf() - timeframe.startTimeLocal.valueOf();\n\n // If the timeframe is big enough that we want to show it, add it to our list and move on to the next one\n if (timeframeLength >= HALF_HOUR_IN_MS) {\n smallFiltered.push(timeframe);\n cursor++;\n continue;\n }\n\n // If we've reached this point, the timeframe too small! That means we want to coalesce it's length into a timeframe the we actually want to show\n // (This is done so if we have a lot of smaller timeframes, there isn't just a gap in the graph where those once were)\n\n let currentTimeframeLength =\n timeframes[cursor].endTimeLocal.valueOf() - timeframes[cursor].startTimeLocal.valueOf();\n // We don't want to just add the small timeframes length to the next timeframe, because what if that timeframe is also small?\n // Instead, we want to check all of the subsequent timeframes, passing any small ones until we find a large one, or until we run out of timeframes\n while (cursor < timeframes.length && currentTimeframeLength < HALF_HOUR_IN_MS) {\n cursor++;\n if (cursor < timeframes.length) {\n currentTimeframeLength =\n timeframes[cursor].endTimeLocal.valueOf() - timeframes[cursor].startTimeLocal.valueOf();\n }\n }\n\n // Now that we're out of the while loop, we have to figure out why we got out of it:\n // If it was because we ran out of timeframes, modify the start time of the last large timeframe.\n // If we found a big enough timeframe, modify the start time of that, add it to the array, and move the cursor past it\n if (cursor >= timeframes.length) {\n smallFiltered[smallFiltered.length - 1].endTimeLocal = timeframes[cursor - 1].endTimeLocal;\n } else {\n timeframes[cursor].startTimeLocal = timeframe.startTimeLocal;\n smallFiltered.push(timeframes[cursor]);\n cursor++;\n }\n }\n\n return smallFiltered;\n }\n\n /**\n * Iterates through a list of timeframes to remove any duplicates (defined here as two timeframes that share a state/timeline)\n * @param timeframes A list of timeframes\n * @returns A list of timeframes where duplicates have been filtered out\n */\n mergeDuplicateAuditRecords(timeframes: SchedulePresetTimeFrame[]): Array {\n const duplicatesFiltered = Array();\n\n // We want to make sure we haven't created transitions to the same state\n // (So there shouldn't for example be a home timeframe directly next to anothe home timeframe)\n let cursor = 0;\n while (cursor < timeframes.length) {\n // If this is the last timeframe, then just add it\n if (cursor === timeframes.length - 1) {\n duplicatesFiltered.push(timeframes[cursor]);\n cursor++;\n continue;\n }\n\n const currentStartingTimeframe = timeframes[cursor];\n // Check if the timeframe after this timeframe has the same exact state\n if (currentStartingTimeframe.presetTransitionState !== timeframes[cursor + 1].presetTransitionState) {\n duplicatesFiltered.push(currentStartingTimeframe);\n cursor++;\n continue;\n }\n\n // If we have duplicates that are in different timelines (i.e. an actual home timeframe\n // next to a predicted home timeframe), we would not want to merge those duplicates, and\n // should continue on.\n if (currentStartingTimeframe.timeline !== timeframes[cursor + 1].timeline) {\n duplicatesFiltered.push(currentStartingTimeframe);\n cursor++;\n continue;\n }\n\n // If the next timeframe has the same exact state and timeline, iterate further down the list to see if there are several duplicates\n // (We know that the next one is the same state, but what if the next 4 are too?)\n while (\n cursor < timeframes.length &&\n timeframes[cursor].presetTransitionState === currentStartingTimeframe.presetTransitionState &&\n timeframes[cursor].timeline === currentStartingTimeframe.timeline\n ) {\n cursor++;\n }\n\n // Once we have found a timeframe that has a different state (or we have reached the end of the list),\n // adjust the starting timeframe accordingly, and then add it.\n\n // If we've reached the end of the list, then the cursor is beyond the bounds, and that last element has the same preset state,\n // so our starting timeframe should have the same ending.\n // If we found a timeframe with a different state, then the element just behind the cursor has the same state, and the same logic applies.\n currentStartingTimeframe.endTimeLocal = timeframes[cursor - 1].endTimeLocal;\n duplicatesFiltered.push(currentStartingTimeframe);\n }\n\n return duplicatesFiltered;\n }\n\n /**\n * When the user navigates to another page, rollback any local changes made to the timeframes (to absorb empty space\n * created by ommitting smaller timeframes from the graph)\n */\n async rollbackModelOnTransition(): Promise {\n const model = this.modelFor>(this.routeName);\n const timeframes = await model.timeframes;\n\n this.rollbackDirtyTimeframes(timeframes);\n }\n\n /**\n * Revert any changes to the timeframes made in the front-end\n * @param timeframes A list of resolved timeframes\n */\n rollbackDirtyTimeframes(timeframes: SchedulePresetTimeFrame[]): void {\n timeframes\n .filter((timeframe) => this.timeframeCanBeRolledBack(timeframe))\n .map((timeframe) => timeframe.rollbackAttributes());\n }\n\n timeframeCanBeRolledBack(timeframe: SchedulePresetTimeFrame): boolean {\n return timeframe.canBeRolledBack() && !timeframe.isSaving && timeframe.hasDirtyAttributes;\n }\n}\n","import EmberController from '@ember/controller';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { EmberThermostatGrouping } from '../../../enums/CustomerPageUrl';\nimport { ThermostatGroupingWizard } from '../../../enums/WizardUrl';\n\n/**\n * @classdesc\n * Thermostat grouping configuration route controller.\n *\n * @class home.thermostats.thermostat-grouping.ThermostatGroupingController\n * @extends Ember.Controller\n */\nexport default class ThermostatGroupingController extends EmberController {\n @service contextManager;\n\n @action startWizard() {\n this.contextManager.transitionToWizard(ThermostatGroupingWizard, '', {}, EmberThermostatGrouping);\n }\n\n /**\n * Returns the path of the large Thermostat grouping image from customer site resources.\n *\n * @function\n * @returns {string}\n */\n get largeThermostatImagePath() {\n return this.contextManager.getStaticResourcePath('webimages/wizardimages/thermostat_groups_large.png');\n }\n}\n","import { inject as service } from '@ember/service';\nimport AdcBaseRoute from '../../../classes/base-route';\nimport { EmberThermostatGrouping } from '../../../enums/CustomerPageUrl';\n\n/**\n * @class home.thermostats.thermostat-grouping.Route\n * @extends classes.BaseRoute\n */\nexport default class ThermostatGroupingRoute extends AdcBaseRoute {\n @service store;\n\n /** @override */\n routeId = EmberThermostatGrouping;\n\n /** @override */\n model() {\n return {\n masters: (async () => {\n const thermostats = await this.store.findAll('devices/thermostat'),\n masters = thermostats.filter((t) => t.hasMany('controlledThermostats').ids().length > 0),\n devices = await Promise.all(masters.map((m) => m.get('controlledThermostats')));\n\n return devices.map((d, idx) => ({\n description: masters[idx].description,\n devices: d.mapBy('description').join(', ')\n }));\n })()\n };\n }\n}\n","import AdcBaseRoute from '../../../classes/base-route';\nimport { EmberThermostatRewardProgram } from '../../../enums/CustomerPageUrl';\nimport { Thermostat } from '../../../enums/WebDeviceType';\n\nimport type ThermostatModel from 'customer-site/models/devices/thermostat';\n\n/**\n * @classdesc\n * The main Thermostat Reward Program page route\n */\nexport default class ThermostatRewardProgramsRoute extends AdcBaseRoute {\n /** @Override */\n routeId = EmberThermostatRewardProgram;\n\n /** @Override */\n getDeviceType(): typeof Thermostat {\n return Thermostat;\n }\n\n model(): ADCAsyncStoreFindAll {\n return this.store.findAll('devices/thermostat');\n }\n}\n","import BaseEditDeviceRoute from 'customer-site/home/edit-device-route';\n\nimport type Transition from '@ember/routing/transition';\nimport type { BaseEditDeviceModel } from 'customer-site/home/edit-device-route';\nimport type WaterMeter from 'customer-site/models/devices/water-meter';\nimport type WaterValve from 'customer-site/models/devices/water-valve';\n\n/**\n * Details/edit page for a water valve by given ID\n */\nexport default class WaterEditRoute extends BaseEditDeviceRoute {\n model({ id_device }: { id_device: string }, transition: Transition): BaseEditDeviceModel {\n const { devices, waterMeters } = this.modelFor<{\n devices: ADCAsyncStoreFindAll;\n waterMeters: ADCAsyncStoreFindAll;\n }>(transition.to.parent!.name),\n device = Promise.all([devices, waterMeters]).then(\n ([devices, waterMeters]) =>\n (devices.find(({ id }) => id === id_device) ?? waterMeters.find(({ id }) => id === id_device))!\n );\n\n return {\n device\n };\n }\n}\n","import Controller from '@ember/controller';\n\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type Route from '../route';\n\nexport default class HomeWaterIndexController extends Controller {\n declare model: ModelFrom;\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'home/water/index': HomeWaterIndexController;\n }\n}\n","import { EmberWater } from 'customer-site/enums/CustomerPageUrl';\nimport BaseDeviceDetailsRoute from 'customer-site/home/device-details/route';\n\nimport type ArrayProxy from '@ember/array/proxy';\nimport type { BaseDeviceDetailsRouteModel } from 'customer-site/home/device-details/route';\nimport type BaseManagedDevice from 'customer-site/models/devices/base-managed-device';\nimport type WaterMeter from 'customer-site/models/devices/water-meter';\nimport type WaterSensor from 'customer-site/models/devices/water-sensor';\nimport type WaterValveModel from 'customer-site/models/devices/water-valve';\nimport type System from 'customer-site/models/systems/system';\n\ninterface HomeWaterDetailsRouteModel extends BaseDeviceDetailsRouteModel {\n waterMeters: Promise>;\n waterSensors: Promise>;\n}\n\nexport default class HomeWaterDetailsRoute extends BaseDeviceDetailsRoute {\n /** @override */\n systemModelRelationship: keyof System = 'waterValves';\n /** @override */\n routeId = EmberWater;\n\n /** @override */\n model(): HomeWaterDetailsRouteModel {\n const system = this.identityManager.getSelectedSystem(true, ['waterMeters', 'waterSensors']);\n\n return {\n ...super.model(),\n waterMeters: system.then((system) => system.waterMeters),\n waterSensors: system.then((system) => system.waterSensors)\n };\n }\n\n /** @override */\n async getModelsToCheck(model: HomeWaterDetailsRouteModel): Promise {\n const [devices, waterMeters, waterSensors] = await Promise.all([\n model.devices,\n model.waterMeters,\n model.waterSensors\n ]);\n return [devices.slice(), waterMeters.slice(), waterSensors.slice()];\n }\n}\n","import { EmberWaterRules } from '../../../enums/CustomerPageUrl';\nimport { WaterValve } from '../../../enums/WebDeviceType';\nimport BaseHomeToAutomationRoute from '../../base-home-to-automation-route';\n\n/**\n * @class Route\n * @extends home.BaseHomeToAutomationRoute\n * @memberOf home.water.rules\n */\nexport default class WaterValvesRulesRoute extends BaseHomeToAutomationRoute {\n /** @override */\n routeId = EmberWaterRules;\n\n /** @override */\n getDeviceType() {\n return WaterValve;\n }\n}\n","import { EmberWellnessReports } from 'customer-site/enums/CustomerPageUrl';\nimport { Wellness } from 'customer-site/enums/WebReportType';\nimport BaseReportsRoute from 'customer-site/home/base-reports-route';\n\nexport default class HomeWellnessReports extends BaseReportsRoute {\n routeId = EmberWellnessReports;\n\n getReportType() {\n return Wellness;\n }\n}\n"],"names":["createTemplateFactory","scope","homeEditDeviceView_","tc_","await_","insetGroup_","t_","drillThroughItem_","fn","dashboardCardsDetailLayout_","formGroup_","tc_0","coalesce_","Navigation","intlPath","path","_dec","_class2","Component","constructor","arguments","_initializerDefineProperty","_descriptor","transitionToSettingsRoute","this","contextManager","transitionToRouteId","EmberSmartChimeSettings","transitionToWirelessNetworksRoute","EmberSmartChimeWirelessNetworks","_applyDecoratedDescriptor","prototype","service","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","_class","setComponentTemplate","TEMPLATE","accessPointBaseAccessPointSettings_","accessPointNavigation_","buttonIcon_","media_","automationRulesRuleCollection_","svgSymbol_","sliderAdc_","dropdownSelectSingleSelect_","toString_","buttonAsync_","not_","simpleBinary_","on","handleBinaryChange_","ChimeConfigurationSettings","_descriptor2","_descriptor3","selectedSmartChime","args","smartChimeSoundOptions","entries","W115CChimeSoundsEnumObj","filter","entry","map","_ref","name","idx","DropdownSelectItem","create","intl","tc","concat","value","String","changeChimeConfiguration","save","then","notificationManager","addSuccess","catch","error","rollbackAttributes","addError","errors","detail","testChimeTone","message","rollbackModelOnTransition","_this$selectedSmartCh","accessPointChimeConfigurationSettings_","modalsDialogModalsSimpleSimpleDialog_","didInsert_","perform_","spinnerSvg_","ConnectToWifi","_defineProperty","_buildTask","context","generator","model","connectToWifiFn","length","modals","closeModal","drop","array","getModalButton_","noop_","settingsPanelWifiNetworkInfo_","NetworkRow","n","network","_objectSpread","id","attributes","tracked","CopyNetworkFromCameraModal","_dec2","computed","_dec3","_class3","_descriptor4","videoCamerasWifiNetworks","networksAttachedToVideoCameras","reject","item","ssid","m","selectedNetworkRow","findBy","connectToNetwork","showModal","encryptionType","deviceIdsAttachedToNetwork","password","connectToNetworkFn","setSelectedItem","networkRow","setEach","isRowSelected","textInput_","autoFocus_","passwordInput_","ManualNetworkConfiguration","_dec4","_dec5","_descriptor5","_descriptor6","_descriptor7","wifiEncryptionTypeDropdownSelectItems","NoEncryption","Wpa","Wpa2","Wpa2Enterprise","resource","wifiEncryptionAlgorithmDropdownSelectItems","AmbiguousOpenShared","Tkip","Aes","Open","Shared","_ref2","showSsidErrorMessage","showNoErrorMessages","inputtedSsid","showEncryptionTypeErrorMessage","isEmpty","selectedWifiEncryption","showWifiPasswordErrorMessage","needsWifiPassword","inputtedWifiPassword","showEncryptionAlgorithmErrorMessage","needsEncryptionAlgorithm","selectedEncryptionAlgorithm","errorOnFormExists","later","selectWifiEncryptionType","v","Number","selectWifiEncryptionAlgorithm","ScanForNetworks","networks","scanForNetworksFn","wifiNetworks","_this$wifiNetworks","_this$wifiNetworks2","scanForNetworks","scanWifiNetworksTask","perform","asyncLoader_","wifiSignalStrengthIcon_","hash","WirelessSettings","refreshSignalStrength","_this$args$smartChime","accessPointPanelSignalStrengthInfo","smartChime","getAccessPointWifiSignalStrength","openCopyNetworkFromVideoCameraModal","CopyNetworkFromCamera","_this$args$smartChime2","connectSmartChimeDeviceToWirelessNetwork","openScanForNetworksModal","getAccessPointsScannedWifiNetworks","deviceType","t","openManualNetworkConfigurationModal","encryptionAlgorithm","_this$args$smartChime3","smartChimeModelText","keys","PanelTypeEnumObj","find","key","_this$args$smartChime4","chimeModel","accessPointWirelessSettings_","dashboardCardsContainerCard_","didUpdate_","dashboardCardsCardToolbar_","dashboardCardsList_","preventDefault_","stopPropagation_","FeatureListCard","allFeatures","category","tasks","features","Promise","all","slice","checkActiveCard","el","isListKeyboardActive","homepageManager","activeCardId","keyupOnFeature","feature","evt","isEnterOrSpaceCode","code","preventDefault","transition","FeatureTask","markTaskAsCompleted","queryParams","pageEnum","FeatureSuggestion","contactUsMessage","mustContactDealer","EmberSupport","search","transitionToRouteForBaseFeature","isCompleted","ajax","apiRequest","undefined","POST","_unused","Unknown","navigation","routeItem","getRouteItem","EmberEditUserInformation","push","userType","General","isNative","addSearchQueryParam","transitionToRoute","routeView_","promiseHashTracked_","dashboardCardsFeatureSuggestionsFeatureListCard_","guidFor_","eq_","buttonSimple_","LockdownAlertCard","equal","Lockdown","alertBannerText","systemModel","isInPartialLockdown","getControllerNamesWithOperatingModeNotSynced","response","controllerListOfNames","cancelLockdown","launchCancelLockdownConfirmationModel","call","accessControlLockdownLockdownAlert_","emberDragula_","emberDragulaContainer_","or_","actionSheet_","uiColoredIcon_","IconPicker","closeActionSheet","deviceIcon","icon","currentIconName","_this$args$iconUpdate","_this$args","set","isActionSheetActive","iconUpdated","openActionSheet","changeSelectedIcon","iconsList","icons","rejectBy","NotSet","and_","uiIconPicker_","pageView_","get","dashboardCardsDevicesLightCard_","searchToolbar_","t_0","inlineAlert_","validationError_","buttonNative_","getRoute_","dashboardCardsDevicesSwitchCard_","safeHtml_","hrefTo_","dashboardCardsDevicesThermostatCard_","dashboardCardsRemoteTemps_","uiStackedIconLabel_","Input","math_","math_0","fmtDegree_","AutomationPeakProtectSetting","isInteractive","isPresent","updateValue","type","isPreCool","min","homeTemp","max","handleKeyDown","useForce","parsedValue","Math","round","isNaN","isBetween","constrainRange","handleBlur","input","target","handleInput","popoverMenu_","automationPeakProtectSetting_","fmtDegree_0","actionButtons_","fieldsetHeader_","pageViewDetails_","simpleBinaryList_","ThermostatSetpoint","alias","reads","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","setpointType","isHeat","increaseText","decreaseText","setpointChange","isIncrease","isValidIncrease","isValidDecrease","newSetpoint","setpoint","thermostat","setpointAttribute","maxTemp","maxHeat","maxCool","minTemp","minHeat","minCool","increaseClass","decreaseClass","pageViewEdit_","thermostatsScheduleEditSetpoint_","highchartsAccessibleChart_","HighchartsXrangeChart","loadAdditionalModules","module","default","highchartsXrangeChart_","Highcharts","translation","thermostatTranslation","getSVG","Sleep","Home","Away","AwayToHome","transitionPreset","HomeToAway","Disabled","Past","Present","Future","href","title","getTemperatureMode","cool","heat","currentTime","startOfDay","currentDate","getHours","NUM_MILLISECONDS_IN_HOUR","getMinutes","NUM_MILLISECONDS_IN_MINUTE","buildDataLabel","presetMode","tempLabel","buildTimeframeElement","timeframe","timeframes","firstTimeframe","lastTimeframe","labelType","timelines","timeline","timeframeStart","startTimeLocal","valueOf","timeframeEnd","endTimeLocal","dataElem","x","x2","y","presets","presetTransitionState","tempMode","coolTemperaturePresetLocalUnit","heatTemperaturePresetLocalUnit","className","toLowerCase","color","screenReaderAutoTempLabel","coolTemp","heatTemp","coolSVG","autoSVG","heatSVG","useAutoTempLabel","startTime","formatDate","Date","hour","minute","endTime","custom","labelFormat","screenReaderLabelFormat","dataLabelY","labelSize","labelrank","dataLabels","enabled","inside","format","verticalAlign","align","style","fontFamily","textOutline","fontSize","fontWeight","useHTML","partialFill","amount","fill","timeframeOffset","generateTimeframeElements","createPlotlines","date","plotLines","Array","from","_","i","timeframeDate","getMonth","getDate","getFullYear","zIndex","chart","_timeframeData$","_timeframeData","timeframeData","XrangeChart","chartOptions","accessibility","description","point","valueDescriptionFormat","height","inverted","plotOptions","xrange","borderRadius","series","data","pointWidth","tooltip","xAxis","dateTimeLabelFormats","day","tickInterval","tickLength","yAxis","categories","text","visible","smartDate_","thermostatsSmartScheduleAuditHighchart_","resolveModel_","dashboardCardsDevicesWaterValveCard_","dashboardCardsDevicesWaterMeterCard_","dashboardCardsDevicesWaterSensorCard_","d","window","define","esc","require","BaseAccessPointSettings","smartChimesDropSelectItems","smartChimes","dataLoaded","selectNewSmartChime","accessPointDeviceId","_this$contextManager$","currentRouteData","routeId","DashboardCardsDetailLayout","dashboardCardsDevicesPromptCard_","dashboardCardsDevicesDeviceList_","dashboardCardsDevicesDeviceIcons_","dashboardCardsDevicesHiddenEditState_","dashboardCardsDevicesEditState_","AccessControlElevatorDevicesComponent","AccessPointCard","ICON_ELEVATOR","EmberAccessControlElevatorDevices","async","editDevice","cardDevices","desiredState","getUnknownState","refreshState","executeStateChange","cardFloorDevices","forEach","floor","Buzz","Closed","showRefreshButton","isHomeCard","rightToolbarButtons","buttons","batteryButton","showDrillToDetailsButton","getDrillToDetailsButton","drillToDetailsRoute","getDeviceRefreshButton","invoke","compact","getAccessPointStateText","state","SyncUnlocked","getDeviceEditActions","device","_actions$device$desir","refreshAction","getRefreshDeviceAction","getAccessPointStateCSS","iconType","actions","AccessControlElevatorDevice","canBuzz","canLockUnlock","hasScheduledAccess","isElevatorBayUnlocked","SyncLocked","Hidden","getDeviceItemAction","getSubItems","elevatorNameForFloorList","shouldShowFloorUI","showListOnHome","GATE_CSS","GateCard","BaseDeviceCard","ICON_GATE","EmberGates","canChangeState","editGate","isOpening","isInTransition","supportsRemoteClose","editDeviceState","addNotification","LightCardColorSwatch","templateOnlyComponent","dashboardCardsDevicesLightCardColorSwatch_","circleIcon_","dimmerSwitch_","lightbulbColorPicker_","LIGHT_CSS","On","Off","NoState","Offline","DIMMER_STATES","STATE_ON","STATE_OFF","LightCard","notEmpty","EmberLights","lightDeviceIcon","_descriptor8","_descriptor9","isIconCard","isLightGroupCard","super","devices","ArrayProxy","toArray","detailsRouteId","getDeviceModalButton","createToolbarButton","allLights","lights","group","isManageGroupModal","LightGroupModal","stateTrackingEnabled","_this$cardDevices$0$d","_this$cardDevices$","ICON_LIGHT","transitionToNativeRoute","EmberLightsGroupDetails","isDimmer","closeTargetInfo","element","document","body","selector","startDeviceEditing","supportsColorControl","assign","hexToHSL","hexColor","replace","endDeviceEditing","isColorPickerShown","dimmerState","_this$_dimmerState","_dimmerState","STATE_UNKNOWN","getComputedDimmerState","editDeviceStyle","htmlSafe","computedColor","cpAnchorId","_this$editDevice$id","_this$editDevice","cpIsTemperatureFormat","supportsWhiteLightColorControl","lightColorFormat","WarmToCool","colorPresetsBackground","getStaticResourcePath","cardTitle","turnOnLightsInGroup","turnOnLights","turnOffLightsInGroup","turnOffLights","dimmerValueChanged","lightLevel","isFromSlider","isMouseUp","saveDeviceState","dimmerLevel","setProperties","showColorPicker","_this$editDevice2","colorChanged","values","percentWarmth","hslColor","_objectWithoutProperties","_excluded","isPercentWarmth","props","RGBW","hslToHex","DashboardCardsDevicesMpersDeviceCardToolbar","leftButtons","getSettingsText","navigateToProfileSettings","mpersDeviceRightButtons","signalStrength","getSignalStrengthTitle","getSignalStrengthIcon","rightButtons","_this$args$rightButto","getImeiIdText","imeiId","getImeiDisplayText","_this$model$imeiId","_this$model$imeiId2","substring","EmberMpersDevicesEdit","dashboardCardsDevicesMpersDeviceCardToolbar_","formatDateTz_","MpersDeviceCard","ICON_MPERS_DEVICE","EmberMpersDevices","showBatteryButton","goToDetails","NoiseSensorCard","ICON_NOISE_SENSOR","EmberNoise","commonLeftToolbarButtons","getSettingsButton","_this$cardDevices$fir","EmberNoiseSettings","firstObject","DashboardCardsDevicesShadeCard","ICON_SHADES","EmberShades","_this$_dimmerLevel","_this$editShade","_dimmerLevel","editShade","shadeLevel","_this$editShade2","stateCSS","_editDevice$getStateC","getStateCssFn","updateDeviceStatus","cancelDebounce","deviceState","deviceLevel","debounceTask","DashboardCardsDevicesSumpPumpCard","ICON_SUMP_PUMP","EmberSumpPumps","SWITCH_CSS","SwitchCard","sort","ICON_SWITCH","EmberSwitches","_actionMap","uiCircleGauge_","await_0","WaterMeterCardIcon","WaterMeterCardListSignature","dashboardCardsSetupCardInstructions_","dashboardCardsDevicesWaterMeterCardWaterMeterIcon_","dashboardCardsDevicesWaterMeterCardList_","WaterMeterCard","ICON_WATER_METER","EmberWater","meter","pairedWaterValve","waterMeter","requiresCalibrationSetup","_this$waterMeter","WaterSensor","ICON_WATER_SENSOR","WaterValveAndMeterCardIcon","WaterValveCardIcon","WaterValveCardListSignature","dashboardCardsDevicesWaterValveCardWaterValveAndMeterIcon_","dashboardCardsDevicesWaterValveCardWaterValveIcon_","dashboardCardsDevicesWaterValveCardList_","WaterValveCard","gt","ICON_WATER_VALVE","_stateMap$device$desi","isInUnknownState","isOpen","hasPairedWaterMeter","leftToolbarButtons","totalSensors","activeSensors","count","total","css","sensorsPopupAnchor","join","toggleSensorsMenu","pairedWaterMeter","cardId","waterSensors","hasWaterSensors","store","peekAll","stateText","_this$cardDevices","hasWaterIssues","issueDescription","displayDate","sensorsMenuOpen","dashboardCardsLabelledbySpan_","scrollContainer_","simpleList_","didResize_","coalesce_0","List","iconsCirclesDeviceStatus_","dashboardCardsRemoteTempsDevice_","DashboardCardsRemoteTempsDevice","LOADING_STATE","humidityText","temperatureText","batteryIcon","batteryDetails","animationCSS","ThermostatModel","hasSensors","_this$thermostat","hasMany","ids","sensors","_this$thermostat2","_sensors$sortBy","remoteTemperatureSensors","sortBy","simpleListItem_","getSimpleListItem_","DashboardCardsRemoteTemps","forecast","queryForecasts","EmberManageDevices","selectedFilters","Thermostats","toString","getDevices","thermostats","getDeviceBatteryButton","mapBy","EmberThermostats","refreshDevices","s","deviceItems","items","fnGetItems","A","isForecast","belongsTo","_sensors$firstObject","submitCustomApiCall","DownloadApp","isMobileBrowser","showDownloadScreen","isMobileOrTablet","bypassDeviceCheck","redirectToApp","_this$navigation$getR","open","AppDownload","url","EditDeviceView","saveDevice","successNotification","_this$args$beforeDevi","_this$args$deviceSave","_this$args2","beforeDeviceSaved","deviceSaved","transitionToPreviousRoute","resolve","owner","selectedLights","l","originalLights","groupName","lightsList","a","b","localeCompare","BinaryListItem","label","includes","disabled","canEditLightList","canNotBeSaved","canEditName","groupNameChange","newName","lightsListChanged","lightItems","deleteGroup","destroyRecord","saveGroup","setObjects","light","ex","content","reduce","attribute","UiStackedIconLabel","ACDoorEditController","Controller","permissions","getAccessControlPermissions","identityManager","showReaderBasedAntiPassback","acDoor","hasMiwaLock","antiPassbackUnits","ANTI_PASSBACK_UNIT_VALUES","weeks","days","hours","minutes","noDelayText","minutesText","hoursText","daysText","weeksText","sendAntiPassbackUpdates","accessPoint","accessControlAccessPoint","canBeModified","editAccessPoint","accessPointId","EmberAccessControlAccessPointEdit","ACDoorEditRoute","BaseEditDeviceRoute","ACDoorsIndexController","BaseDeviceDetailsController","AccessControlAccessPointDevicesComponent","Route","BaseDeviceDetailsRoute","EmberAccessControlAccessPointDevices","AccessControlDoorRulesRoute","BaseHomeToAutomationRoute","EmberAccessControlDoorRules","getDeviceType","AccessControlDoor","ACElevatorEditController","ACElevatorEditRoute","ACElevatorsIndexController","HomeAcElevatorsRoute","elevatorFloors","findAll","DEVICE_CSS","BaseZWaveDeviceCard","commonRightToolbarButtons","fnAddButton","commandClassBasicGet","_options","commandClassBasicSet","HomeCCControlController","AdcBaseRoute","EmberCcControl","findRecord","getContextId","deviceCatalog","basicCommandClassSupportedDevices","afterModel","router","transitionTo","finally","addWarning","HomeChimesIndexController","createNewRuleWithEmberRulesBuilder","_this$model","EmberRulesBuilder","returnToAfterSave","EmberSmartChime","returnToAfterSaveSlug","getQueryParams","_this$model2","canCreateChimeRules","_this$model$permissio","_this$model3","_this$model$selectedS","_this$model4","allowedRuleDisplays","EmberRulesBuilderRules","shouldShowChimeScheduling","EmberSmartChimeRoute","beforeModel","isFullTransition","queryRecord","Chime","id_smart_chime_device","peekRecord","chimeRules","query","globalDeviceId","EmberSmartChimeSettingsRoute","baseRouteModel","modelFor","smartChimePermissions","reload","SmartChimeWirelessRoute","getNetworksAttachedToVideoCameras","res","smartGateways","relationship","systemModelRelationship","getSelectedSystem","system","redirectToHomeIfEmptyModel","modelsToCheck","redirect","every","getModelsToCheck","models","FeatureSuggestionsRoute","EmberFeatureSuggestions","goToCategory","featureCategories","selectedCategory","GarageEditRoute","GarageIndexController","GarageCard","HomeGarageDetailsRoute","EmberGarageDoors","GarageRulesRoute","EmberGarageDoorsRules","GarageDoor","GateEditRoute","GatesIndexController","HomeGatesRoutes","GateRulesRoute","EmberGatesRules","Gate","ImageSensorRulesRoute","EmberImageSensorRules","ImageSensor","DashboardCardsActivity","modelName","unloadAll","includeCommands","numberOfEvents","activityItems","historyEvents","reverse","toolbarButtons","EmberEventHistory","_this$populateActivit","_this$populateActivit2","populateActivityHistory","lastSuccessful","BusinessActivityAnalyticsCard","transitionToRuleListPage","slot","EmberVideoBusinessActivityAnalyticsRuleList","rule","cameraId","ruleSlots","BUSINESS_ACTIVITY_ANALYTICS_RULE_TYPES","ruleType","slotNumber","split","SlotType","ruleTypesToSlotTypes","DashboardCardsCommercialFleetEngineStatus","DashboardCardsCommercialFleetIssuesRow","dashboardCardsCommercialFleetFleetEngineStatus_","dashboardCardsCommercialFleetFleetIssuesRow_","DashboardCardsCommercialFleet","fleetCardToolbarButtons","fnTransition","EmberConnectedFleetDashboard","fleetData","fleetCardInfo","numberOfVehicles","numberOfVehiclesDrivenToday","numberOfVehiclesWithEngineOn","numberOfVehiclesWithAlerts","numberOfVehiclesWithIssues","vehicles","vehicle","tripsSinceBeginningOfDay","isEngineOn","hasAlerts","hasIssues","CommercialTemperaturesCard","bool","ICON_TEMPERATURE","EmberTemperatures","sortedDevices","refreshDeviceState","willHardRefresh","scheduleOnce","CountdownTimerComponent","_this$args$onComplete","timeout","timeLeft","onComplete","duration","startCountdownEmber","seconds","uiCountdownTimer_","DashboardCardsDevicesSecurityFogGeneratorCard","troubleConditions","unshift","EmberAlertsIssues","EmberHome","ICON_FOG_DEVICE","editSfg","getFilteredTroubleConditions","restartable","getTroubleConditionsTask","isIdle","_this$editSfg$getStat","_this$editSfg","countdownDuration","_this$editSfg$nextSch","_this$editSfg$nextSch2","nextScheduledDeploymentUtc","getTime","now","deploymentStatus","Idle","isPendingDeployment","Scheduled","isDeploying","Deploying","isDeployed","Deployed","afterCountdown","onDeploymentCancel","onDeployNow","onStopSiren","openDeployConfirmation","showConfirmationDialog","deployDevice","CardSettings","cardModel","cardType","deviceId","toggleSettings","_cardModel$isVisible","cardIsHidden","isVisible","isHero","Hero","getHeroCardSettings","Activity","hasVideoClips","Video","iconTitle","selected","view","_this$cardModel$defau","_this$cardModel","_this$cardModel$isVis","_this$cardModel2","defaultView","None","_this$cardModel3","isCollapsed","navigateToRouteName_","dashboardCardsCardSettings_","DashboardCardsFeatureSuggestions","_categories$toArray","uiImagesStatelessImage_","focusTrap_","isFulfilled_","uiImagesOvImage_","activityHighlightsCarousel_","Thumbnail","ContainerObject","host","cameraName","camera","time","timestamp","relativeTime","timeZone","previousTime","formatRelative","differenceInCalendarDays","utcToZonedTime","unit","numeric","getAriaLabel","clipTime","formatDateTz","ariaThumb","ariaSlide","SavedClipsCard","_dec12","_dec13","empty","_dec14","or","_dec15","and","_dec16","_dec17","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","_descriptor15","_descriptor16","_descriptor17","_descriptor18","allowOutsideClick","escapeDeactivates","returnFocusOnDeactivate","_descriptor19","_descriptor20","_descriptor21","_descriptor22","fileFormats","thumbnails","videoEvents","_thumbnails","selectedVideoEvent","_this$thumbnails$find","movieSrc","_this$selectedVideoEv","_this$selectedVideoEv2","getPlaybackUrl","nextThumbnail","_thumbnails$objectAt","nextIndex","indexOf","objectAt","activityBar","GET","animateShow","thumbnail","updateActiveThumbnail","envSettings","isTestEnvironment","isActive","selectClip","index","initVideoPlayer","timestampToStartClip","video","readyState","muted","play","openPlayer","saveFocusedElement","cancelAll","isPlaying","movieContainer","querySelector","firstElement","getFocusableElements","focus","closePlayer","videoError","restoreFocus","downloadClip","isModalClosed","formats","DownloadOptionsModal","media","keyupOnThumbnailsContainer","event","classList","contains","stopPropagation","areThumbnailsKeyboardInteractive","schedule","isEscapeCode","toggleHighlights","areHighlightsVisible","restartableTask","BusinessHoursComponent","toggleBusinessHoursHistory","isExpanded","openCloseHistory","getOpenCloseHistory","viewAllActivity","EventHistory","evtTypes","BusinessHourWarnings","getTroubleConditionsHeaderText","troubles","numTroubles","translationKey","Alarm","Issue","severity","TroubleConditionsComponent","troublesPromise","troubleConditionsLoaded","issues","loadData","hasTroubles","headerIcon","headerIconTitle","headerIconClass","headerText","goToAlertsIssues","onClickOutside_","getTranslationWithSceneName","sceneName","SceneExecuteComponent","clickOutsideDeactivates","runSceneText","keyDownEvent","e","close","executeScene","scene","fnShowMessage","execute","onClose","ForecastsComponent","forecasts","forecastsData","toolTip_","dashboardCardsHeroCardSavedClips_","dropdownActions_","dashboardCardsHeroCardBusinessHours_","dashboardCardsHeroCardTroubleConditions_","uiHorizontalList_","dashboardCardsHeroCardSceneExecute_","dashboardCardsHeroCardForecasts_","TOOLTIP_DEBOUNCED_ACTION_KEY","relativeTimes","setupBusinessHoursList","openTooltip","tooltipText","isTooltipOpen","tooltipElementAnchor","createDropDownItem","DropdownActionItem","updateDefaultView","processHistoryEventsToGraph","percentHeightPerEvent","future","period","current","timeEvent","historyEvent","desiredStyle","updateOrCreateRecord","updateProperties","createRecord","order","HeroCard","IsOvReadyLogin","isEditingHomeScreen","isCollapsedInternal","numScenes","numCameras","showForecasts","isMobileDevice","allLoaded","cameras","lastEvent","getLastSignificantEvent","openCloseEventArray","identityModel","isCommercial","scenes","filterBy","canCreateEditScenes","canBeExecuted","isAddButton","openCloseEvent","setupBusinessHours","showOpenCloseEvent","openCloseInfo","getSignificantEvents","historyGraphData","showDisplay","graphItem","cssClass","populateCard","randomImage","random","result","errorMessage","backgroundImageStyle","displayActivityHistory","canViewSavedClips","styleText","canViewHistoryData","displaySavedClips","displayOptions","dropDown","toggleProperty","SceneEdit","active","closeConfirmAction","viewCamera","EmberVideoLiveView","cameraGroupId","activateDisplayFocusTrap","isDisplayKeyboardInteractive","graphClick","today","visitLiveVideo","visitScenes","EmberScenes","handleMouseEnter","debounce","cancel","closeTooltip","toggleCollapsed","setBusinessHours","BusinessHours","dismissSetupBusinessHours","isKeyboardInteractive","ClipModal","selectedIndex","_thumbnails$this$sele","handleClipKeyUp","showGallery","ImageSensorEventGallery","imageSensorName","imageSensor","_imageSensor$descript","ImageSensorCard","recentImages","apiRequestForDataRecords","_this$args$devices$sl","_this$args$devices","defaultImage","_this$recentImages","noSlidesMessage","some","canViewImages","isPeekInAllowed","isImageSensorDeleted","supportPeekInNow","supportPeekInNextMotion","sensorList","_this","fnGetButton","sensor","property","test","dasherize","peekInMotion","hidePeekInNextMotionButton","peekInNow","promptMessage","peekInRequestedText","remainingImageUpload","canViewISGallery","openISGallery","openPrompt","showPeekInControls","startSlideShowModal","willDestroy_","uiImagesStateImage_","Swipe","LiveViewCamera","DashboardCardsLiveView","gte","loadCameras","numberOfSlides","useBulkMode","ceil","groupIndicators","activeSlideIndex","cameraGroups","liveCameras","previewCameraWidthPercentage","cameraCollectionStyle","width","transform","groupWidthStyle","activeCameraUrlWithQueryParam","_this$activeCamera","activeCamera","imageReloadTimestamp","cancelStream","imageError","_await$this$activeCam","_this$activeCamera2","snapshot","reloadSnapshotLater","imageLoaded","_await$this$activeCam2","_this$activeCamera3","performance","updateViewportWidth","viewportWidth","offsetWidth","slideViewport","dom","touchValues","fnUpdateTouchValues","mode","touches","touchEvt","pageX","pageY","hndMove","addListener","hndEnd","removeListener","move","startX","startY","start","endX","endY","sqrt","pow","angle","calculateAngle","dir","determineSwipeDirection","offset","Left","Right","curX","curY","r","atan2","swipeAngle","PI","abs","Down","Up","SetupCard","dashboardCardsSetupCard_","BoilerCard","DashboardCardsWellnessCard","ActiveCardTabIndexComponent","drillToDetails","handleKeyUp","WellnessActivity","DashboardCardsWifi","EmberWifiDevices","w","ModalsActivityAlarmRecap","goToAlarmRecapPage","systemModelMap","Partitions","Sensors","ImageSensors","GarageDoors","Locks","Lights","X10Lights","RemoteTemperatureSensors","WaterValves","WaterMeters","WaterSensors","SumpPumps","AccessControlAccessPointDevices","AccessControlElevatorDevices","Shades","CommercialTemperatures","Gates","Switches","NoiseSensors","MpersDevices","FogDevices","cardPathMap","AccessPointDevicesCard","ElevatorDevicesCard","BusinessActivityAnalytics","LockCard","PartitionCard","RecentActivity","ActivityCard","RemoteTempsCard","SensorsCard","ShadeCard","SumpPumpCard","ThermostatCard","WaterSensorCard","Wellness","WellnessCard","Wifi","WifiCard","CommercialFleet","CommercialFleetCard","FeatureSuggestions","FeatureSuggestionsCard","LiveView","LiveViewCard","UnconfiguredBoilers","UnconfiguredBoilerCard","FogCard","getCardConfigsFromModels","cards","fnGetConfig","deviceRelationship","getLocalDeviceId","parseInt","updateDragCardsConfig","fnCheckElement","_el$closest","closest","fnIsHero","fnIsEditing","dragCardsConfig","options","copy","direction","revertOnSpill","removeOnSpill","mirrorContainer","getElementById","moves","_el","_container","handle","invalid","accepts","_target","_source","sibling","enabledEvents","saveCardLayout","querySelectorAll","dataset","createCardConfigs","revertCardLayout","isLoading","cardsModel","resetCardLayout","getSelectedSystemId","HomeIndexController","EmberController","initDrag","waitForQueue","editControlButtons","editAction","alarmEventDateTime","cardLink","link","cardCloned","clone","offsetHeight","HomeIndexRoute","isLoginAsLoginRep","wakeupCameras","willTransition","camerasPromise","deviceModel","console","log","LightCardEditController","lightCustomIcons","canUseCustomIcons","isMobileAllowed","isMobileApp","applicationBuildNumber","customIconsPermission","useCustomSwitchIcons","runTask","deviceHasChanges","LightEditRoute","id_device","apiRequestForValue","routeName","resolvedDevice","isSaving","rollback","LightGroupDetailsController","sortedLights","_this$lights$toArray","_this$lights","LightGroupDetailsRoute","params","lightGroup","id_group","LightGroupItem","LightDetailsController","ungroupedLights","_resolvedModel$device","_resolvedModel$x10Lig","_resolvedModel$lightG","resolvedModel","x10Lights","lightGroups","affiliatedIds","Set","lightIds","flat","groupedLights","_this$resolvedModel$l","_this$resolvedModel","addGroup","_this$resolvedModel$d","_this$resolvedModel2","isNew","HomeLightDetailsRoute","LightsRulesRoute","EmberLightsRules","Light","LightsSchedulesRoute","EmberLightsSchedules","getDestinationRouteId","EmberAutomationSchedules","LockCardEditController","programmingCode","lockProgrammingCode","revealButtonPress","getWithCode","isCodeRevealed","programmingCodeState","ProgrammingCodeState","Revealed","randomizeCode","_this$programmingCode","submitRandomizeRequest","copyCode","navigator","clipboard","writeText","resetState","LockEditRoute","deactivate","controller","LocksIndexController","HomeLockDetailsRoute","EmberLocks","LocksRulesRoute","EmberLocksRules","Lock","MpersDeviceEdit","countries","_this$resolvedModel$c","states","profileState","_this$mpersDevice","mpersDevice","stateName","_this$mpersDevice2","country","isLocationNameRequired","_this$mpersDevice3","address1","address2","city","postalCode","updateCountry","newCountry","clearField","saveProfile","MpersDevicesEditRoute","BaseRoute","id_mpers_device","addressResources","MpersDeviceIndexController","HomeMpersDeviceDetailsRoute","HomeNoiseController","NoiseRoute","EmberPartitionArmingSchedulesRoute","EmberPartitionArmingSchedules","replaceRouteWithNativeRoute","EmberArmingSchedulesAndAutoRearming","nav","EditPartitionController","goToPanelWifiRoute","clearVisitedRoutesStack","EmberPanelWifi","PartitionEditRoute","PartitionsIndexController","DashboardCardsDevicesPartitionCard","HomePartitionReports","BaseReportsRoute","EmberPartitionReports","getReportType","PartitionDetailsRoute","EmberPartitions","PartitionsRulesRoute","EmberPartitionsRules","Partition","SmartArmingPartitionsRoute","EmberPartitionsSmartArming","EmberSmartArming","HomeSensorReports","EmberSensorReports","SensorRulesRoute","EmberSensorsRules","SecuritySensor","ShadeEditRoute","ShadesIndexController","ShadesDetailRoute","ShadesSchedulesRoute","EmberShadesSchedules","Shade","SumpPumpEditRoute","SumpPumpsIndexController","SumpPumpDetailsRoute","SwitchEditRoute","SwitchesController","sirens","_this$switches","switches","switchType","Siren","generics","_this$switches2","Generic","HomeSwitchDetailsRoute","areTrvsEnabled","boilerControlSystem","zones","isYPlanSystem","masterSwitchDescription","masterSwitch","hwcSwitches","zoneThermostats","dhwThermostats","trvThermostats","fnAddZone","fnGetPairedDevices","isSingleSwitchSystem","valveSwitchesDescriptions","startWizard","transitionToWizard","ThermostatBoilerWizard","EmberBoilers","HomeThermostatBoilerRoute","valveSwitches","ThermostatEditRoute","ThermostatDetailsRoute","temperaturesModel","getProperties","uncontrolledThermostats","redirectToManageDevice","HomeThermostatDetailsRoute","peakProtectValueMap","HomeThermostatsPeakProtectIndexController","not","addNoTariffNotification","openChildRoute","getSliderRange","u","sliderValue","lowerComfort","upperComfort","updateAllOffsets","lower","upper","isComfortMode","lowerTemp","upperTemp","syncModels","once","peakMin","peakMax","togglePeakProtect","peakProtect","adjustComfort","route","saveChanges","setScheduleMode","SMART_SCHEDULES","MANUAL_MODE","HomeThermostatsPeakProtectIndexRoute","EmberThermostatsPeakProtect","setupController","_transition$to$parent","_transition$from","to","parent","HomeThermostatsPeakProtectRoute","id_thermostat","HomeThermostatsPeakProtectSchedule","preferredSetpoint","isMin","boundary","getSetpointBoundary","Cool","updateSetpoint","homeCoolSetpoint","HomeThermostatsPeakProtectScheduleRoute","EmberThermostatsPeakProtectSchedule","HomeThermostatsPeakProtectUtility","originalTariffId","pp","currentTariffId","_this$selectedTariff$","_this$selectedTariff","selectedTariff","selectedUtility","utilities","utilityItems","SELECTED","UNSELECTED","tariffItems","_await$this$selectedU","_this$selectedUtility","tariffs","chooseUtility","_this$utilities$findB","hasChanges","chooseTariff","_this$selectedUtility2","_this$selectedUtility3","HomeThermostatsPeakProtectUtilityRoute","EmberThermostatsPeakProtectUtility","HomeThermostatReports","EmberThermostatReports","ThermostatsRulesRoute","EmberThermostatsRules","Thermostat","getStaticResourcePath_","SmartSchedulesExplainerModal","exit","EmberPresenceStateSettings","ThermostatScheduleEdit","setpointTypeInfo","rts","generateRtsText","typeEnum","_tempSensors$find","rtsPresets","setpointPreset","deviceIds","tempSensors","availableSensors","firstTempSensorId","firstTempSensorName","addition","editScheduleType","EmberThermostatsScheduleEditScheduleType","editSetpoint","EmberThermostatsScheduleEditSetpoint","viewSmartScheduleActivity","EmberThermostatsSmartScheduleAudit","timezone","smartSchedulesDateIdFormat","viewHowSmartSchedulesWork","viewCoolingHeatingSchedule","ThermostatSchedule","fromAutomation","viewFanSchedule","ThermostatRuleEdit","hasPeakProtectAccess","editPeakProtect","ThermostatsSchedulesScheduleEditRoute","EmberThermostatsScheduleEdit","userThermostat","getRtsPresetList","thermostatPromise","supportsHeatMode","supportsAuxHeatMode","supportsAutoMode","heatRtsPresets","supportsCoolMode","coolRtsPresets","ScheduleEditScheduleTypeController","getItem","scheduleMode","scheduleTypeOptions","supportsSmartSchedules","SCHEDULED","changeScheduleMode","_options$find","newScheduleMode","option","ScheduleEditScheduleTypeRoute","ThermostatScheduleEditSetpointController","rtsPresetCanBeSaved","setpointRtsPreset","hasDirtyIds","temperatureUnit","localizeTempUnitsToCelsius","currentSetpointType","SETPOINT_RESOURCES","thermostatSetpointType","setpointQuestion","tempSensorsSelect","coolSetpoint","coolKey","heatSetpoint","heatKey","tempSensorList","tempSensor","supportsHumidity","showSetpointInfo","autoSetpointBuffer","showRtsList","_this$tempSensorList$","showRts","canSave","thermostatSetpointsChanged","updatePairings","back","setSetpointsOnSetpointType","coolSetpointOnSetpointType","heatSetpointOnSetpointType","setpointEnum","home","away","sleep","ScheduleEditSetpointRoute","getRouteItemTitle","slugs","stateRouteTitle","setpoint_type","parentModel","rtsPreset","editThermostatSchedule","thermostatSortID","ThermostatsSchedulesRoute","EmberThermostatsSchedules","SmartScheduleAuditController","todayDate","nowInLocalTz","setHours","maxDate","dirtyDate","dirtyAmount","requiredArgs","toInteger","addDays","addWeeks","minDate","updateModel","dateString","thermostatId","HALF_HOUR_IN_MS","SmartScheduleAuditRoute","id_smart_schedule","toUpperCase","audit","filterAuditRecords","originalArray","rollbackDirtyTimeframes","smallFiltered","mergeShortAuditRecords","mergeDuplicateAuditRecords","cursor","currentTimeframeLength","duplicatesFiltered","currentStartingTimeframe","timeframeCanBeRolledBack","canBeRolledBack","hasDirtyAttributes","ThermostatGroupingController","ThermostatGroupingWizard","EmberThermostatGrouping","largeThermostatImagePath","ThermostatGroupingRoute","masters","ThermostatRewardProgramsRoute","EmberThermostatRewardProgram","WaterEditRoute","waterMeters","_devices$find","_ref3","_ref4","HomeWaterIndexController","HomeWaterDetailsRoute","WaterValvesRulesRoute","EmberWaterRules","WaterValve","HomeWellnessReports","EmberWellnessReports"],"sourceRoot":""}