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YAAAD,EAAAA,EAAAA,GAAApE,EAAAqE,UAAA,cAON9C,EAAAA,QAAMoD,OAAAC,yBAAA5E,EAAAqE,UAAA,cAAArE,EAAAqE,WAAArE,IApC4BwW,EAAAA,EAAAA,sBAAAC,EAAA29B,E","sources":["./access-control/access-plans/edit/controller.ts","./access-control/access-plans/edit/route.ts","./access-control/access-plans/new/route.ts","./access-control/access-points/edit/controller.js","./access-control/access-points/edit/route.ts","./access-control/system-mode-configuration/controller.ts","./access-control/system-mode-configuration/lockdown-configuration/edit/controller.ts","./access-control/system-mode-configuration/lockdown-configuration/edit/route.ts","./access-control/system-mode-configuration/lockdown-configuration/index/controller.ts","./access-control/system-mode-configuration/lockdown-configuration/index/route.ts","./access-control/users/bulk-create/route.ts","./access-control/users/edit-not-supported/route.ts","./access-control/users/edit/access-plans/controller.ts","./access-control/users/edit/access-plans/route.js","./access-control/users/edit/expiring-credentials/controller.ts","./access-control/users/edit/expiring-credentials/route.js","./access-control/users/edit/index/controller.ts","./access-control/users/edit/index/route.js","./access-control/users/edit/route.ts","./access-control/users/edit/user-group/route.js","./access-control/users/edit/user-information/controller.ts","./access-control/users/edit/user-information/route.ts","./access-control/users/user-groups/edit/controller.js","./access-control/users/user-groups/edit/route.js","./access-control/users/user-groups/index/controller.js","./access-control/users/user-groups/index/route.js","./access-control/users/user-groups/new/controller.js","./access-control/users/user-groups/new/route.js","./components/access-control/access-plans/edit/timetable/advanced/index.hbs","./components/access-control/access-plans/edit/timetable/advanced/index.ts","./components/access-control/access-plans/edit/timetable/operating-modes/index.hbs","./components/access-control/access-plans/edit/timetable/operating-modes/index.ts","./components/access-control/access-plans/edit/timetable/index.hbs","./components/access-control/access-plans/edit/timetable/index.ts","./components/access-control/access-plans/edit/base/header/index.hbs","./components/access-control/access-plans/edit/base/header/index.ts","./components/access-control/access-plans/edit/name/index.hbs","./components/access-control/access-plans/edit/name/index.ts","./components/access-control/access-plans/edit/performance-monitor/index.hbs","./components/access-control/access-plans/edit/performance-monitor/index.ts","./components/access-control/access-plans/edit/user-types/common/index.hbs","./components/access-control/access-plans/edit/user-types/common/index.ts","./components/access-control/access-plans/edit/user-types/index.hbs","./components/access-control/access-plans/edit/user-types/index.ts","./components/access-control/access-plans/edit/users/index.hbs","./components/access-control/access-plans/edit/users/index.ts","./components/access-control/access-plans/edit/access-points/index.hbs","./components/access-control/access-plans/edit/access-points/index.ts","./components/access-control/access-plans/edit/base/index.hbs","./components/access-control/access-plans/edit/base/index.ts","./components/access-control/access-plans/item/access-plan-pending-changes/collection/index.hbs","./components/access-control/access-plans/item/access-plan-pending-changes/collection/index.ts","./components/access-control/access-plans/item/access-plan-pending-changes/index.hbs","./components/access-control/access-plans/item/access-plan-pending-changes/index.ts","./components/access-control/access-plans/item/access-plan-limit-issues/index.hbs","./components/access-control/access-plans/item/access-plan-limit-issues/index.ts","./components/access-control/access-plans/index-route/index.hbs","./components/access-control/access-plans/index-route/index.ts","./components/access-control/access-plans/item/access-plan-icon-list/index.hbs","./components/access-control/access-plans/item/access-plan-icon-list/index.ts","./components/access-control/access-points/collapsible-list/index.hbs","./components/access-control/access-points/collapsible-list/index.ts","./components/access-control/access-points/edit/index.hbs","./components/access-control/access-points/edit/index.ts","./components/access-control/access-points/index-route/index.hbs","./components/access-control/access-points/index-route/index.ts","./components/access-control/access-points/index-route/list-item/index.hbs","./components/access-control/access-points/index-route/list-item/index.ts","./components/access-control/filter-bar/index.hbs","./components/access-control/filter-bar/index.ts","./components/access-control/holidays/access-control-holiday-page/index.hbs","./components/access-control/holidays/access-control-holiday-page/index.ts","./components/access-control/scrolling-list-select/filter-toolbar/index.hbs","./components/access-control/scrolling-list-select/filter-toolbar/index.ts","./components/access-control/scrolling-list-select/items-list/index.hbs","./components/access-control/scrolling-list-select/items-list/index.ts","./components/access-control/scrolling-list-select/list-item/nested-checkbox/index.hbs","./components/access-control/scrolling-list-select/list-item/nested-checkbox/index.ts","./components/access-control/scrolling-list-select/list-item/label/index.hbs","./components/access-control/scrolling-list-select/list-item/label/index.ts","./components/access-control/scrolling-list-select/list-item/checkbox/index.hbs","./components/access-control/scrolling-list-select/list-item/checkbox/index.ts","./components/access-control/scrolling-list-select/selected-items-toolbar/index.hbs","./components/access-control/scrolling-list-select/selected-items-toolbar/index.ts","./components/access-control/scrolling-list-select/selected-items-list/index.hbs","./components/access-control/scrolling-list-select/selected-items-list/index.ts","./components/access-control/scrolling-list-select/index.hbs","./components/access-control/scrolling-list-select/index.ts","./components/access-control/system-mode-configuration-base/index.hbs","./components/access-control/system-mode-configuration-base/index.ts","./components/access-control/timetables/item/edit-timetable-schedule/index.hbs","./components/access-control/timetables/item/edit-timetable-schedule/index.js","./components/access-control/users/bulk-create/index.hbs","./components/access-control/users/bulk-create/index.ts","./components/access-control/users/edit-not-supported/index.hbs","./components/access-control/users/edit-not-supported/index.ts","./components/access-control/users/edit/access-plans/index.hbs","./components/access-control/users/edit/access-plans/index.ts","./components/access-control/users/edit/expiring-credentials/index.hbs","./components/access-control/users/edit/expiring-credentials/index.ts","./components/access-control/users/item/two-person-conflict/index.hbs","./components/access-control/users/item/two-person-conflict/index.js","./components/access-control/users/item/conflicting-credentials/index.hbs","./components/access-control/users/item/conflicting-credentials/index.ts","./components/access-control/users/list/index.hbs","./components/access-control/users/list/index.js","./components/access-control/users/index-route/index.hbs","./components/access-control/users/index-route/index.ts","./components/access-control/users/item/armed-panels-warning/index.hbs","./components/access-control/users/item/armed-panels-warning/index.ts","./components/access-control/users/item/expiring-credentials/index.hbs","./components/access-control/users/item/expiring-credentials/index.ts","./components/access-control/users/item/mobile-credential-utilization/index.hbs","./components/access-control/users/item/mobile-credential-utilization/index.ts","./components/access-control/users/item/users-missing-credentials/index.hbs","./components/access-control/users/item/users-missing-credentials/index.ts","./components/access-control/users/promote-user/promote-user-item/index.hbs","./components/access-control/users/promote-user/promote-user-item/index.ts","./components/access-control/users/promote-user/user-list/index.hbs","./components/access-control/users/promote-user/user-list/index.ts","./components/access-control/users/promote-user/promote-user-page/index.hbs","./components/access-control/users/promote-user/promote-user-page/index.ts","./components/access-control/users/user-groups/edit/index.hbs","./components/access-control/users/user-groups/edit/index.ts","./components/access-control/user-groups/list/user-group-item/index.hbs","./components/access-control/user-groups/list/user-group-item/index.js","./components/access-control/users/user-groups/index-page/index.hbs","./components/access-control/users/user-groups/index-page/index.ts","./components/users/edit-user-group/index.hbs","./components/users/edit-user-group/index.ts"],"sourcesContent":["import EmberController from '@ember/controller';\nimport { ModifyPlanName } from 'customer-site/enums/AccessPlanPropertyEdit';\n\nimport type { AccessPlanEditState } from 'customer-site/components/access-control/access-plans/edit/base/index';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type AccessControlAccessPlansEditRoute from './route';\n\n/**\n * Access Control Access Plan Edit Controller.\n */\nexport default class AccessControlAccessPlansEditController extends EmberController {\n declare model: ModelFrom;\n\n /**\n * The current editing step for access plans\n *\n * Default to Modify Plan Name step.\n * Note: Also set in SetupController() from base-access-plan-edit-route\n */\n currentEditState: AccessPlanEditState = ModifyPlanName;\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 'access-control/access-plans/edit': AccessControlAccessPlansEditController;\n }\n}\n","import BaseAccessGroupEditRoute from '../../../classes/access-control/access-plans/base-access-plan-edit-route';\nimport { EmberAccessControlAccessPlanEdit } from '../../../enums/CustomerPageUrl';\n\n/**\n * Route for editing access groups\n */\nexport default class AccessControlAccessPlansEditRoute extends BaseAccessGroupEditRoute {\n /** @override */\n routeId = EmberAccessControlAccessPlanEdit;\n}\n","import BaseAccessGroupEditRoute from '../../../classes/access-control/access-plans/base-access-plan-edit-route';\nimport { EmberAccessControlAccessPlanNew } from '../../../enums/CustomerPageUrl';\n\n/**\n * @classdesc\n * Route for creating new access groups.\n */\nexport default class NewAccessPlanRoute extends BaseAccessGroupEditRoute {\n // region override properties\n\n /** @override */\n routeId = EmberAccessControlAccessPlanNew;\n\n /** @override */\n async rollbackModelOnTransition(): Promise {\n const accessPlan = await this.currentModel.accessPlan;\n\n // If the access plan was not saved, let's remove it from the store.\n if (accessPlan?.isNew) {\n accessPlan.destroy();\n }\n }\n\n // endregion\n}\n","import EmberController from '@ember/controller';\nimport { action, set, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { ANTI_PASSBACK_UNIT_VALUES } from 'customer-site/utils/access-control-access-point';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\n\n/**\n * @class EditController\n * @extends EmberController\n * @memberof access-control.access-points.edit\n */\nexport default class AccessControlAccessPointsEditController extends EmberController {\n @service intl;\n @service contextManager;\n @service notificationManager;\n @service modals;\n\n /**\n * Should the system name that this access point belongs to be shown?\n *\n * @type {boolean}\n */\n showSystemName = false;\n\n /**\n * Attempt to save the accessPoint. Transition to access points route if successful.\n *\n * @param {models.access-control.AccessControlAccessPoint} accessPoint - The accessPoint we are attempting to save.\n */\n @action async saveAccessPoint(accessPoint) {\n const multipleCreds = this.selectedAccessPlans.any((plan) =>\n plan.users.any((user) => user.accessCards.length > 1)\n );\n if (accessPoint.twoPersonAccessEnabled && multipleCreds) {\n const { modals, intl } = this;\n modals.showConfirmationDialog(\n this.intl.t('components.access-control.access-plans.edit.access-points.dualAccessMode'),\n this.intl.t('components.access-control.access-plans.edit.access-points.dualAccessModeDetailsSingular'),\n {\n text: intl.tc('generic.ok'),\n action: async () => {\n await this.handleAccessPointSave(accessPoint);\n this.contextManager.transitionToPreviousRoute();\n }\n },\n {\n text: intl.tc('generic.cancel'),\n action: () => {\n return true;\n }\n },\n 'center-confirm-button'\n );\n } else {\n await this.handleAccessPointSave(accessPoint);\n this.contextManager.transitionToPreviousRoute();\n }\n }\n\n async handleAccessPointSave(accessPoint) {\n accessPoint.set('accessPlans', this.selectedAccessPlans);\n let point = accessPoint.save();\n this.notificationManager.addSuccess(this.intl.t('classes.users.edit.updatesHaveBeenSaved'));\n return point;\n }\n\n @action cancelEdit() {\n this.contextManager.transitionToPreviousRoute();\n }\n\n @action updateDeviceModel(accessPoint, isTwoPerson, isDisabled, event) {\n if (isDisabled) {\n const name = isTwoPerson ? 'twoPersonAccessEnabled' : 'readerAntiPassbackEnabled';\n if (accessPoint[name] === false) {\n event.target.checked = false;\n this.openConfirmationModal(accessPoint, isTwoPerson);\n }\n return;\n }\n\n if (isTwoPerson) {\n accessPoint.twoPersonAccessEnabled = !accessPoint.twoPersonAccessEnabled;\n if (accessPoint.twoPersonAccessEnabled) {\n event.target.checked = false;\n const { modals, intl } = this;\n\n modals.showConfirmationDialog(\n this.intl.t('access-control.access-points.edit.dualAccess'),\n this.intl.t('access-control.access-points.edit.dualAccessTurnedOn'),\n {\n text: intl.tc('generic.ok'),\n action: () => {\n accessPoint.twoPersonAccessEnabled = true;\n return true;\n }\n },\n {\n text: intl.tc('generic.cancel'),\n action: () => {\n return true;\n }\n },\n 'center-confirm-button'\n );\n }\n } else {\n accessPoint.readerAntiPassbackEnabled = !accessPoint.readerAntiPassbackEnabled;\n }\n }\n\n /**\n * Sets access plans\n *\n * @param activeAccessPlans - list of active access plans for the access point.\n */\n @action setAccessPlans(activeAccessPlans) {\n set(this, 'selectedAccessPlans', activeAccessPlans);\n }\n\n /**\n * Sets needed data after it has been loaded.\n *\n * @param {*}\n */\n @action dataLoaded({ accessPoint }) {\n set(this, 'selectedAccessPlans', accessPoint.get('accessPlans').slice());\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 * @type {DropdownSelectItem[]}\n */\n @computed()\n get antiPassbackUnits() {\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.t('access-control.access-points.edit.noDelayText');\n const minutesText =\n minutes > 0 ? this.intl.t('access-control.access-points.edit.minutesText', { minutes }) : null;\n const hoursText = hours > 0 ? this.intl.t('access-control.access-points.edit.hoursText', { hours }) : null;\n const daysText = days > 0 ? this.intl.t('access-control.access-points.edit.daysText', { days }) : null;\n const weeksText = weeks > 0 ? this.intl.t('access-control.access-points.edit.weeksText', { weeks }) : null;\n\n const name = value === 0 ? noDelayText : weeksText ?? daysText ?? hoursText ?? minutesText;\n\n return DropdownSelectItem.create({\n name: name,\n value: value\n });\n });\n }\n\n /**\n * Open a modal specifically for swapping between antipassback and two person access\n *\n * @param {boolean} isTwoPerson - whether the access point currently has twoperson or antipassback enabled\n * @param {models.access-control.accessControlAccessPoint} accessPoint - the access control access point model\n */\n openConfirmationModal(accessPoint, isTwoPerson) {\n const { modals, intl } = this;\n\n modals.showConfirmationDialog(\n this.intl.t('access-control.access-points.edit.incompatibleSelection'),\n this.intl.t(\n isTwoPerson\n ? 'access-control.access-points.edit.switchDetailsDualAccess'\n : 'access-control.access-points.edit.switchDetailsAntiPassback'\n ),\n {\n text: intl.tc('generic.ok'),\n action: () => {\n accessPoint.twoPersonAccessEnabled = !accessPoint.twoPersonAccessEnabled;\n accessPoint.readerAntiPassbackEnabled = !accessPoint.readerAntiPassbackEnabled;\n return true;\n }\n },\n {\n text: intl.tc('generic.cancel'),\n action: () => {\n return true;\n }\n },\n 'center-confirm-button'\n );\n }\n}\n","import { getAccessControlPermissions } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlAccessPointEdit } from 'customer-site/enums/CustomerPageUrl';\nimport { AccessCardReader } from 'customer-site/enums/DeviceType';\nimport { getPlanDetailTotals } from 'customer-site/models/access-control/access-control-access-plan';\n\nimport type { AsyncBelongsTo } from '@ember-data/model';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessControlTimetable from 'customer-site/models/access-control/access-control-timetable';\nimport type AccessControlAccessPointDevice from 'customer-site/models/devices/access-control-access-point-device';\n\n/**\n * @classdesc\n * Route for editing an existing accessPoint.\n */\nexport default class AccessControlAccessPointsEditRoute extends AdcBaseRoute {\n routeId = EmberAccessControlAccessPointEdit;\n\n isMediumWidthPage = true;\n\n model({ id_access_point }: { id_access_point: string }): {\n accessPoint: ADCAsyncStoreFindRecord;\n device: Promise | undefined>;\n timetables: ADCAsyncStoreFindAll;\n planDetailTotals: ReturnType;\n permissions: ReturnType;\n } {\n const store = this.store,\n accessPoint = store.findRecord('access-control/access-control-access-point', id_access_point);\n\n return {\n accessPoint,\n device: accessPoint.then((ap) =>\n ap.deviceType === AccessCardReader && !ap.isElevatorReader ? ap.device : undefined\n ),\n timetables: store.findAll('access-control/access-control-timetable'),\n planDetailTotals: getPlanDetailTotals(this.ajax),\n permissions: getAccessControlPermissions(store, this.identityManager)\n };\n }\n}\n","import EmberController from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { DefaultOperatingMode } from 'customer-site/enums/MercuryControllerOperatingMode';\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 { SafeString } from 'handlebars';\n\n/**\n * @classdesc\n * Base Controller for system mode configuration.\n */\nexport default class SystemModeConfigurationController extends EmberController {\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n @service declare router: RouterService;\n\n /**\n * Operating mode associated with the access plans on the page.\n */\n accessPlanOperatingMode = DefaultOperatingMode;\n\n /**\n * Should timetables be displayed for access plan details.\n */\n canViewTimeTables = true;\n\n /**\n * Should schedules edit option be displayed for access plan.\n */\n showEditScheduleOption = true;\n\n /**\n * List of the translation keys with cssClass for each field description\n */\n @computed()\n get descriptionTexts(): { text: SafeString | string; cssClass: string; navLinkId?: number }[] {\n return [];\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 'access-control/system-mode-configuration': SystemModeConfigurationController;\n }\n}\n","import AccessControlAccessPlansEditController from '../../../access-plans/edit/controller';\n\n/**\n * @classdesc\n * Lockdown Access access plan edit controller.\n */\nexport default class LockdownConfigurationEditController extends AccessControlAccessPlansEditController {}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your controllers.\ndeclare module '@ember/controller' {\n interface Registry {\n 'access-control/system-mode-configuration/lockdown-configuration/edit': LockdownConfigurationEditController;\n }\n}\n","import { EmberAccessControlLockdownConfigurationEdit } from 'customer-site/enums/CustomerPageUrl';\nimport AccessControlAccessPlansEditRoute from '../../../access-plans/edit/route';\n\n/**\n * @classdesc\n * Lockdown access plan edit route.\n */\nexport default class LockdownConfigurationEditRoute extends AccessControlAccessPlansEditRoute {\n /** @override */\n routeId = EmberAccessControlLockdownConfigurationEdit;\n}\n","import { htmlSafe } from '@ember/template';\nimport SystemModeConfigurationController from 'customer-site/access-control/system-mode-configuration/controller';\nimport { EmberRules, NotificationsCenter, EnterpriseNotificationsCenter } from 'customer-site/enums/CustomerPageUrl';\nimport { LockdownOperatingMode } from 'customer-site/enums/MercuryControllerOperatingMode';\n\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type { SafeString } from 'handlebars';\nimport type Route from './route';\n\n/**\n * @classdesc\n * Controller lockdown configuration route.\n */\nexport default class Controller extends SystemModeConfigurationController {\n declare model: ModelFrom;\n\n /**\n * Operating mode associated with the access plans on the page. Lockdown\n */\n accessPlanOperatingMode: number = LockdownOperatingMode;\n\n /**\n * Should timetables be displayed for access plan details. Currently hidden for lockdown access plans\n */\n canViewTimeTables = false;\n\n /**\n * Should schedules edit option be displayed for access plan. Currently hidden for lockdown access plans\n */\n showEditScheduleOption = false;\n\n /**\n * Lockdown description text\n * @override\n */\n get descriptionTexts(): { text: SafeString | string; cssClass: string; navLinkId?: number }[] {\n const { intl, contextManager } = this,\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line @adc/ember/no-context-manager-get-route\n automationDefaultRoute = contextManager.getRouteItem(EmberRules),\n baseResourcePath = 'access-control.system-mode-configuration.lockdown-configuration.index.';\n let lockdownAccessPlanStepTwoText, navLinkId;\n\n if (contextManager.isEnterprise) {\n lockdownAccessPlanStepTwoText = htmlSafe(\n intl.t(`${baseResourcePath}enterpriseCreateLockdownAccessPlanStepTwo`)\n );\n navLinkId = EnterpriseNotificationsCenter;\n } else {\n lockdownAccessPlanStepTwoText = htmlSafe(\n intl.t(`${baseResourcePath}createLockdownAccessPlanStepTwo`, {\n link: this.router.urlFor(automationDefaultRoute.url)\n })\n );\n navLinkId = NotificationsCenter;\n }\n\n // use intl.t() to account for enterprise/access-control/lockdown-configuration/controller extending this \"base\" class\n return [\n { text: intl.t(`${baseResourcePath}lockdownMainDescription`), cssClass: '' },\n { text: intl.t(`${baseResourcePath}createLockdownAccessPlanHeader`), cssClass: '' },\n {\n text: intl.t(`${baseResourcePath}createLockdownAccessPlanStepOne`),\n cssClass: 'lockdown-access-plan-step-one'\n },\n { text: lockdownAccessPlanStepTwoText, cssClass: 'lockdown-access-plan-step-two' },\n { text: intl.t(`${baseResourcePath}lockdownDrillsNote`), cssClass: '' },\n { text: htmlSafe(intl.t(`${baseResourcePath}lockdownNotificationNote`)), cssClass: '', navLinkId },\n { text: intl.t(`${baseResourcePath}lockdownLoginPermissionNote`), cssClass: '' }\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 'access-control/system-mode-configuration/lockdown-configuration/index': Controller;\n }\n}\n","import { inject as service } from '@ember/service';\nimport { getAccessControlPermissions } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport { getAccessPlans } from 'customer-site/classes/access-control/access-plans/filter-results-controller';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlLockdownConfiguration } from 'customer-site/enums/CustomerPageUrl';\nimport { LockdownOperatingMode } from 'customer-site/enums/MercuryControllerOperatingMode';\nimport { getPlanDetailTotals } from 'customer-site/models/access-control/access-control-access-plan';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\n\n/**\n * View for the Access Control Lockdown access plans\n */\nexport default class LockdownConfigurationRoute extends AdcBaseRoute {\n @service declare store: ServiceRegistry['store'];\n\n // region override properties\n\n /** @override */\n routeId = EmberAccessControlLockdownConfiguration;\n\n /** @override */\n isMediumWidthPage = true;\n\n // endregion\n\n /** @override */\n model(): {\n planDetailTotals: ReturnType;\n lockdownAccessPlans: ReturnType;\n permissions: ReturnType;\n } {\n const { store, identityManager } = this,\n includeChildAndParentScope = identityManager.isEnterprise;\n\n return {\n planDetailTotals: getPlanDetailTotals(\n this.ajax,\n includeChildAndParentScope,\n includeChildAndParentScope,\n false\n ),\n lockdownAccessPlans: getAccessPlans(store, '', null, false, LockdownOperatingMode),\n permissions: getAccessControlPermissions(store, identityManager)\n };\n }\n}\n","import AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlUserBulkCreate } from 'customer-site/enums/CustomerPageUrl';\n\nimport type Transition from '@ember/routing/transition';\nimport type { AccessControlUsersBulkCreateSignature } from 'customer-site/components/access-control/users/bulk-create';\n\ntype BulkCreateArgs = AccessControlUsersBulkCreateSignature['Args'];\n\n/**\n * @classdesc\n * Bulk Create allows a user to upload a CSV file containing a list of new users to create.\n */\nexport default class UserBulkCreateRoute extends AdcBaseRoute {\n routeId = EmberAccessControlUserBulkCreate;\n\n isMediumWidthPage = true;\n\n model(_: unknown, transition: Transition): BulkCreateArgs {\n return {\n permissions: this.modelFor<{ permissions: BulkCreateArgs['permissions'] }>(transition.to.parent!.name)\n .permissions,\n csvResources: this.ajax.apiRequestForValue>(\n 'accessControl/bulkUserImport/getExampleCsvResources'\n )\n };\n }\n}\n","import AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlUserEditNotSupported } from 'customer-site/enums/CustomerPageUrl';\n\n/**\n * @classdesc\n * A route displaying a message saying editing of this user is not supported.\n */\nexport default class AccessControlUsersEditNotSupportedRoute extends AdcBaseRoute {\n routeId = EmberAccessControlUserEditNotSupported;\n}\n","import { action, computed, get, set, setProperties } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport BaseController from 'customer-site/classes/users/edit/base-user-edit-controller';\nimport { saveUserModel } from 'customer-site/classes/users/edit/index/controller';\nimport { ViewAccessPlan } from 'customer-site/enums/AccessPlanPropertyEdit';\nimport { Personal } from 'customer-site/enums/AccessPlanType';\nimport {\n EmberAccessControlAccessPlanNew,\n EmberAccessControlUserEdit,\n EmberEnterpriseAccessControlAccessPlanNew\n} from 'customer-site/enums/CustomerPageUrl';\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 Store from '@ember-data/store';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type ParentRoute from '../route';\n\n/**\n * Transition to the create new access plan page.\n */\nfunction addPersonalAccessPlan(this: AccessControlUsersEditAccessPlansController): void {\n const { user, intl } = this,\n path = 'access-control.users.edit.';\n\n if (!user) {\n return;\n }\n\n // Personal access plans require a PIN code so let the user know if they don't have one yet.\n if (!user.pinCodes.length) {\n this.notificationManager.addError(intl.t(`${path}pinRequired`));\n return;\n }\n\n const userNeedsToBeSaved = get(user, 'isNew') || get(user, 'hasDirtyAttributes'),\n needsToSavePinCodes = user.pinCodes.any((pin) => get(pin, 'isNew') || get(pin, 'hasDirtyAttributes'));\n\n // If this user needs to be saved before letting the user navigate to the access plans page\n // display a model warning the user and giving them the option to save or ditch the changes.\n if (userNeedsToBeSaved || needsToSavePinCodes) {\n this.modals.showConfirmationDialog(intl.t(`${path}unsavedChanges`), intl.t(`${path}changedMustBeSaved`), {\n text: intl.t('generic.save'),\n action: async () => {\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error This should be replaced with `user.accessPlans.setObjects(this.selectedAccessPlans ?? []);`.\n set(user, 'accessPlans', this.selectedAccessPlans ?? []);\n await saveUserModel(user, this.modals);\n navigateToCreatePersonalAccessPlan.call(this);\n }\n });\n } else {\n navigateToCreatePersonalAccessPlan.call(this);\n }\n}\n\n/**\n * Navigate to the page to create a new personal access plan for the current user.\n */\nfunction navigateToCreatePersonalAccessPlan(this: AccessControlUsersEditAccessPlansController): void {\n const { contextManager } = this,\n destination = contextManager.identityModel.isEnterprise\n ? EmberEnterpriseAccessControlAccessPlanNew\n : EmberAccessControlAccessPlanNew;\n\n contextManager.transitionToNativeRoute(destination, undefined, {\n property: ViewAccessPlan,\n planType: Personal,\n userId: this.user?.id\n });\n}\n\n/**\n * @classDesc\n * The controller for editing the access plans of an access control user.\n */\nexport default class AccessControlUsersEditAccessPlansController extends BaseController<\n AccessControlUser,\n ModelFrom\n> {\n @service declare contextManager: ContextManager;\n @service declare notificationManager: NotificationManager;\n @service declare intl: ADCIntlService;\n @service declare modals: ModalService;\n @service declare store: Store;\n\n user?: AccessControlUser;\n accessPlans?: AccessControlAccessPlanModel[];\n selectedAccessPlans?: AccessControlAccessPlanModel[];\n originalAccessPlans?: AccessControlAccessPlanModel[];\n\n baseUserEditRoute = EmberAccessControlUserEdit;\n\n /**\n * Does this system contain a security panel?\n */\n @computed('model.accessPoints.@each.isPartition')\n get isSecurityPanelPresentOnSystem(): boolean {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return !!this.model.accessPoints.findBy('isPartition');\n }\n\n @computed('isSecurityPanelPresentOnSystem', 'user.accessPlans.@each.isPersonalAccessPlan')\n get addAccessPlanMenuItems(): Promise<{ name: string; icon: string; action: VoidFunction }[]> {\n return (async () => {\n // Users must be saved before personal access plans can be added. There can only be one personal access plan per user.\n // A personal access plan can only have panels and z-wave locks on it, so the system must have a panel.\n if (\n !this.isSecurityPanelPresentOnSystem ||\n ((await this.user?.accessPlans) ?? []).isAny('isPersonalAccessPlan')\n ) {\n return [];\n }\n\n return [\n {\n name: this.intl.t('access-control.access-plans.personalAccessPlan'),\n icon: 'user-control-plan',\n action: () => addPersonalAccessPlan.call(this)\n }\n ];\n })();\n }\n\n /**\n * Do any of the currently selected access plans contain\n * an access point with dual access enabled?\n */\n @computed('selectedAccessPlans.[]')\n get dualAccessOnPlans() {\n if (!this.selectedAccessPlans) {\n return false;\n }\n const dualAccessByPlan = this.selectedAccessPlans.map(async (plan) => {\n const points = await plan.accessPoints;\n return points.any((point) => point.twoPersonAccessEnabled);\n });\n return Promise.all(dualAccessByPlan).then((results) => {\n return results.some((result) => result);\n });\n }\n\n /**\n * Setup data after things have been loaded.\n */\n @action dataLoaded({\n user,\n accessPlans\n }: {\n user: AccessControlUser;\n accessPlans: AccessControlAccessPlanModel[];\n }): void {\n setProperties(this, {\n user,\n accessPlans,\n selectedAccessPlans: user.accessPlans.slice(),\n originalAccessPlans: user.accessPlans.slice()\n });\n }\n\n @action async saveUserPlans(user: AccessControlUser): Promise {\n const numCredentials = user.accessCards.length + user.mobileCredentials.length;\n if ((await this.dualAccessOnPlans) && numCredentials > 1) {\n this.modals.showConfirmationDialog(\n this.intl.t('access-control.users.edit.dualAccessBypass'),\n this.intl.t('access-control.users.edit.dualAccessBypassText'),\n {\n text: this.intl.t('generic.ok'),\n action: () => {\n this.saveUser(user);\n }\n },\n {\n text: this.intl.t('generic.cancel'),\n action: () => {\n return;\n }\n },\n 'center-confirm-button'\n );\n } else {\n this.saveUser(user);\n }\n }\n\n /**\n * When an access plan is deleted on this page, we need to remove it and ensure it doesn't get recovered.\n */\n @action deleteAccessPlan(accessPlan: AccessControlAccessPlanModel): void {\n const { originalAccessPlans, user } = this;\n if (originalAccessPlans && user) {\n originalAccessPlans.removeObject(accessPlan);\n set(this, 'originalAccessPlans', originalAccessPlans);\n\n const userAccessPlans = user.accessPlans;\n userAccessPlans.removeObject(accessPlan);\n set(user, 'accessPlans', userAccessPlans);\n }\n }\n\n /**\n * Sets access plans on the user.\n */\n @action setAccessPlans(activeAccessPlans: AccessControlAccessPlanModel[]): void {\n const { user } = this;\n if (user) {\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error This should be replaced with `user.accessPlans.setObjects(activeAccessPlans);`.\n set(user, 'accessPlans', activeAccessPlans);\n }\n }\n\n /**\n * Cancel action to ensure that the access plan data is updated in the UI\n */\n @action cancelAction() {\n this.setAccessPlans(this.originalAccessPlans ?? []);\n this.contextManager.transitionToPreviousRoute();\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 'access-control/users/edit/access-plans': AccessControlUsersEditAccessPlansController;\n }\n}\n","import { set } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlUserEditAccessPlans } from 'customer-site/enums/CustomerPageUrl';\n\n/**\n * @classDesc\n *\n * Edit route to change which access plans this user belongs to.\n */\nexport default class AccessControlUsersEditAccessPlansRoute extends AdcBaseRoute {\n routeId = EmberAccessControlUserEditAccessPlans;\n\n @service contextManager;\n @service identityManager;\n @service store;\n\n async model(params, transition) {\n const baseModel = super.model(params, transition);\n const user = await baseModel.user;\n\n // Done to make sure all selected access plans including access plans on nested scopes are resolved\n await user.accessPlans;\n\n return baseModel;\n }\n\n /** @override */\n rollbackModelOnTransition() {\n let user = this.controller.user;\n\n if (user) {\n // Set access plans back to what they were when the route loaded.\n if (user.hasDirtyAttributes) {\n set(this.currentModel.user, 'accessPlans', this.controller.originalAccessPlans);\n }\n\n user.rollbackAttributes();\n }\n }\n}\n","import { action, setProperties } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport BaseController from 'customer-site/classes/users/edit/base-user-edit-controller';\nimport { EmberAccessControlUserEdit } from 'customer-site/enums/CustomerPageUrl';\n\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type ParentRoute from '../route';\n\n/**\n * @classDesc\n * The controller for editing when credentials will expire or become active.\n */\nexport default class ExpiringCredentialsController extends BaseController> {\n baseUserEditRoute = EmberAccessControlUserEdit;\n\n @alias('resolvedModel.user')\n user?: AccessControlUser;\n\n resolvedModel?: ModelFrom;\n\n /**\n * Update the start and end date for expiring credentials.\n */\n @action updateExpiringCredentialsDates(startDate: Date, endDate: Date): void {\n setProperties(this.user, {\n hasStartDate: !!startDate,\n hasEndDate: !!endDate,\n startDate,\n endDate\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 'access-control/users/edit/expiring-credentials': ExpiringCredentialsController;\n }\n}\n","import AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlUserEditExpiringCredentials } from 'customer-site/enums/CustomerPageUrl';\n\n/**\n * @classDesc\n * The route for editing when credentials will expire or become active.\n */\nexport default class AccessControlEditExpiringUserCredentials extends AdcBaseRoute {\n routeId = EmberAccessControlUserEditExpiringCredentials;\n\n /** @override */\n rollbackModelOnTransition() {\n let user = this.controller.user;\n if (user) {\n user.rollbackAttributes();\n }\n }\n}\n","import { action } from '@ember/object';\nimport BaseUsersEditIndexController from '../../../../classes/users/edit/index/controller';\nimport {\n EmberAccessControlUserEditUserInformation,\n EmberAccessControlUserEditLanguage,\n EmberAccessControlUserEditUserGroup,\n EmberAccessControlUserEditAccessPlans,\n EmberAccessControlUserEditExpiringCredentials,\n EmberAccessControlEditUserAttributes,\n EmberAccessControlEditUserAttributesEdit,\n EmberAccessControlUserEditAddContact,\n EmberAccessControlUserEditContactInformation,\n EmberAccessControlUsersLinkLogin,\n EmberAccessControlUsersUsername,\n EmberAccessControlUsers\n} from '../../../../enums/CustomerPageUrl';\n\n/**\n * @classdesc\n * Controller for viewing an access control user.\n */\nexport default class AccessControlUserOverviewController extends BaseUsersEditIndexController {\n routeMap = {\n userInformation: EmberAccessControlUserEditUserInformation,\n languagePreference: EmberAccessControlUserEditLanguage,\n userGroup: EmberAccessControlUserEditUserGroup,\n accessPlans: EmberAccessControlUserEditAccessPlans,\n expiringCredentials: EmberAccessControlUserEditExpiringCredentials,\n addNewUserAttribute: EmberAccessControlEditUserAttributes,\n editUserAttribute: EmberAccessControlEditUserAttributesEdit,\n userAddContactAddressRoute: EmberAccessControlUserEditAddContact,\n userEditContactInformationRoute: EmberAccessControlUserEditContactInformation,\n userLinkLoginRoute: EmberAccessControlUsersLinkLogin,\n username: EmberAccessControlUsersUsername,\n usernameRedirect: EmberAccessControlUsers\n };\n\n /**\n * for preventing getting stuck in confirm dialog loop\n */\n confirmedTransition = false;\n\n /**\n * we need to notify the willTransition hook in the route about this change\n */\n @action toggleConfirmedTransitionFlag(): void {\n this.confirmedTransition = !this.confirmedTransition;\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 'access-control/users/edit/index': AccessControlUserOverviewController;\n }\n}\n","import { isDestroyed } from '@adc/ember-utils/utils/ember-helpers';\nimport { action, get } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport AdcBaseRoute from '../../../../classes/base-route';\nimport { EmberAccessControlUserEdit, ManageLoginPermissions } from '../../../../enums/CustomerPageUrl';\n\n/**\n * @classDesc\n * Route for editing contact information of an access control user.\n */\nexport default class AccessControlUserEditIndexRoute extends AdcBaseRoute {\n @service modals;\n @service contextManager;\n @service navigation;\n\n /** @override */\n routeId = EmberAccessControlUserEdit;\n\n /** @override */\n setupController(controller, model, transition) {\n super.setupController(controller, model, transition);\n controller.confirmedTransition = false;\n }\n\n @action queryParamsDidChange(changedParams) {\n /**\n * This check is to fix the issue where the queryParamsDidChange is called twice when the user tries navigates to the Manage Login Permissions page\n * from the User Profile page causing the transition to not work correctly.\n */\n const manageLoginPermissionsRoute = this.navigation.getRouteItem(ManageLoginPermissions);\n if (changedParams.url === encodeURIComponent(manageLoginPermissionsRoute?.url ?? '')) {\n return;\n }\n }\n\n @action willTransition(transition) {\n const user = this.currentModel.user;\n if (!user || isDestroyed(user) || this.contextManager.isInactive) {\n return;\n }\n\n const fnGetText = (key) => this.intl.t(`access-control.users.edit.index.${key}`);\n\n // This is needed to prevent getting stuck in a loop of confirm windows.\n if (!this.controller.confirmedTransition) {\n if (this.shouldShowConfirmDialog(user, transition)) {\n // abort transition so we can wait for async confirmation dialog\n transition.abort();\n\n // set title, and description. warn for missing credentials first, then access plans.\n let title = fnGetText('noAccessPlanWarningTitle'),\n description = fnGetText('noAccessPlanWarning');\n\n if (!(get(user, 'pinCodes').length || get(user, 'accessCards').length)) {\n title = fnGetText('noCredentialsWarningTitle');\n description = fnGetText('noCredentialsWarning');\n }\n\n // show the dialog and wait for answer\n this.modals.showConfirmationDialog(\n title,\n description,\n {\n text: fnGetText('noAccessPlanWarningConfirmText'),\n action: () => {\n this.controller.confirmedTransition = true;\n transition.retry();\n }\n },\n {\n action: () => {\n this.contextManager.clearVisitedRoutesStack();\n this.refresh();\n }\n }\n );\n }\n }\n }\n\n shouldShowConfirmDialog(user, transition) {\n // show confirmation dialog if not going to part of the edit page, and the user has either no credentials or no access plan\n return (\n !transition.to.name.includes('access-control.users.edit') &&\n !transition.to.name.includes('merge-users-list') &&\n (!(get(user, 'pinCodes').length || get(user, 'accessCards').length) || !get(user, 'accessPlans').length)\n );\n }\n}\n","import BaseUserEditRoute from 'customer-site/classes/users/edit/base-user-edit-route';\nimport { EmberAccessControlUserEdit, EmberAccessControlUserEditNotSupported } from '../../../enums/CustomerPageUrl';\n\nimport type Transition from '@ember/routing/transition';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type ParentRoute from '../route';\n\n/**\n * @classDesc\n * Edit a User\n */\nexport default class ResidentialEditAccessControlUserRoute extends BaseUserEditRoute<\n AccessControlUser,\n ModelFrom\n> {\n routeId = EmberAccessControlUserEdit;\n\n readonly userModelName = 'access-control/access-control-user' as const;\n baseUsersRouteName = 'access-control/users';\n userEditNotSupportedRoute = EmberAccessControlUserEditNotSupported;\n\n model(\n params: { id_user: string },\n transition: Transition\n ): ReturnType>['model']> & {\n accessPlans?: ADCAsyncStoreQuery;\n } {\n const baseModel = super.model(params, transition),\n { id_user } = params;\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return id_user === 'new'\n ? baseModel\n : {\n ...baseModel,\n accessPlans: this.store.query('access-control/access-control-access-plan', {\n userId: id_user\n })\n };\n }\n}\n","import AdcBaseRoute from 'customer-site/classes/base-route';\nimport { EmberAccessControlUserEditUserGroup } from 'customer-site/enums/CustomerPageUrl';\n\n/**\n * @classdesc\n * Edit route to change which user group this user belongs to.\n */\nexport default class EditContactUserGroupRoute extends AdcBaseRoute {\n routeId = EmberAccessControlUserEditUserGroup;\n\n /** @override */\n rollbackModelOnTransition() {\n (async () => {\n (await this.currentModel.user)?.rollbackAttributes();\n })();\n }\n}\n","import BaseController from 'customer-site/classes/users/edit/user-information/controller';\nimport { EmberAccessControlUserEdit } from 'customer-site/enums/CustomerPageUrl';\n\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\n\n/**\n * @classdesc\n * The controller for editing the User Information section of a {@link models.access-control.AccessControlUser } model.\n */\nexport default class AccessControlUserInformationController extends BaseController {\n baseUserEditRoute = EmberAccessControlUserEdit;\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 'access-control/users/edit/user-information': AccessControlUserInformationController;\n }\n}\n","import EditUserInfoBaseRoute from 'customer-site/classes/users/edit/user-information/route';\nimport { EmberAccessControlUserEditUserInformation } from 'customer-site/enums/CustomerPageUrl';\n\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type ParentRoute from '../route';\n\nexport default class AccessControlEditUserInfoRoute extends EditUserInfoBaseRoute<\n AccessControlUser,\n ModelFrom\n> {\n routeId = EmberAccessControlUserEditUserInformation;\n\n isAccessControl = true;\n}\n","import { RSVPReject } from '@adc/ember-utils/utils/rsvp';\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\n\n/**\n * @classdesc\n *\n * Controller for editing user groups.\n */\nexport default class UserGroupEditController extends Controller {\n @service contextManager;\n @service notificationManager;\n @service intl;\n @service router;\n\n /**\n * Alias so we don't have to reference model.userGroup every time we access it.\n *\n * @function\n * @returns {models.access-control.AccessControlAccessGroup}\n */\n @alias('resolvedModel.userGroup')\n userGroup;\n\n /**\n * Whether or not a new user group is being created.\n * @type {boolean}\n */\n @alias('userGroup.isNew')\n isNew;\n\n /**\n * User Group Name Initial\n */\n @computed('userGroup.name')\n get userGroupInitial() {\n const { name = '' } = this.userGroup || {};\n return name.charAt(0);\n }\n\n /**\n * Saves the user via Ember Data's store and eventually through a POST call to our server side C# application.\n *\n * @param {models.access-control.AccessControlAccessGroup} userGroup - The new UserGroup model we are attempting to save.\n * @param {Ember.RSVP.Promise} delayedHandler - The promise provided by the button so a custom action can be taken after the animation finishes.\n * @returns {Ember.RSVP.Promise} - The promise from the POST request that allows the button to know how to animate.\n */\n @action\n async saveUserGroup(userGroup, delayedHandler) {\n const isNew = this.isNew;\n\n userGroup = await userGroup;\n\n return userGroup\n .save()\n .then(() => {\n this.notificationManager.addSuccess(\n this.intl.t('access-control.users.user-groups.successUserGroupAdd'),\n 15000\n );\n if (isNew) {\n delayedHandler.then(() => {\n this.contextManager.transitionToPreviousRoute();\n });\n } else {\n this.contextManager.transitionToPreviousRoute();\n }\n })\n .catch(() => {\n return isNew ? RSVPReject() : delayedHandler.reject();\n });\n }\n\n /**\n * Redirects to the UserGroup index route. The cancellation of the edit is handled by the route.\n */\n @action\n cancelEdit() {\n this.router.transitionTo('user-groups.index');\n }\n}\n","import { inject as service } from '@ember/service';\nimport { EmberAccessControlUserGroupsEdit } from '../../../../enums/CustomerPageUrl';\nimport BaseUserGroupEditRoute from '../base-user-group-edit-route';\n\n/**\n * The route for the UserGroup edit page.\n */\nexport default class UserGroupEditRoute extends BaseUserGroupEditRoute {\n @service store;\n\n // region override properties\n /**\n * @override\n */\n routeId = EmberAccessControlUserGroupsEdit;\n\n /**\n * Get access control access plan model object by id\n *\n * @override\n * @ignore\n */\n getUserGroupModel(groupId) {\n const userGroupModel = this.store.findRecord('access-control/access-control-access-group', groupId);\n\n return userGroupModel;\n }\n // endregion\n}\n","import Controller from '@ember/controller';\nimport { computed, action } from '@ember/object';\nimport { notEmpty } from '@ember/object/computed';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport {\n EmberEnterpriseAccessControlUserGroupsNew,\n EmberAccessControlUserGroupsNew,\n EmberRules\n} from '../../../../enums/CustomerPageUrl';\n\n/**\n * How many user groups should we load at once.\n *\n * @type {number}\n *\n * @private\n * @static\n * @memberof access-control.users.index.Controller\n */\nconst BATCH_SIZE = 75;\n\n/**\n * Returns a promise for the users query, given query arguments\n *\n * Small number here allows for the view to be rendered faster and something to be shown on the screen quickly\n *\n * @param {DS.Store} store\n * @param {number} startIndex\n * @param {String} searchString\n * @param {number} batchSize\n * @param {boolean} includeChildScope\n * @param {Array} ids\n * @returns {Ember.RSVP.PromiseArray}\n *\n * @static\n * @memberof access-control.users.index.Controller\n */\nexport function getUserGroupsQuery(store, startIndex = 0, searchString = '', batchSize = BATCH_SIZE) {\n return store.query('access-control/access-control-access-group', {\n searchString,\n batchSize,\n startIndex\n });\n}\n\n/**\n * @classdesc\n *\n * The controller for the User Group index route.\n */\nexport default class UserGroupsController extends Controller {\n @service contextManager;\n @service intl;\n @service router;\n @service store;\n\n isEnterprise = false;\n\n queryParams = ['searchString'];\n\n /**\n * The query parameter used to filter users.\n *\n * @type {String}\n */\n searchString = '';\n\n /**\n * Should we reset user group list\n */\n resetUserGroups = false;\n\n /**\n * Used to show/hide user groups count if user groups count is undefined\n */\n @notEmpty('userGroupsCount')\n showUserGroupsCount;\n\n /**\n * User group count for the search toolbar display\n */\n userGroupsCount = undefined;\n\n @reads('contextManager.identityModel.viewingParentGroup')\n isParentGroupContext;\n\n /**\n * Gets the link to the automation page for the user group summary\n * @returns {string}\n */\n @computed('isEnterprise')\n get getUserGroupInfoText() {\n const { intl } = this,\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line @adc/ember/no-context-manager-get-route\n route = this.contextManager.getRouteItem(EmberRules);\n\n if (this.isEnterprise) {\n return this.intl.t('access-control.users.user-groups.index.userGroupInfoEnterprise');\n }\n\n return htmlSafe(intl.tc(this, 'userGroupInfo', { link: this.router.urlFor(route.url) }));\n }\n\n @action\n loadMoreUserGroupsAction(index = 0) {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n const { 'model.data': initialData, wasInitialDataConsumed } = this.getProperties(\n 'model.data',\n 'wasInitialDataConsumed'\n );\n\n if (index === 0 && initialData && !wasInitialDataConsumed) {\n // Clear initial data so that it is not used next time.\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n this.set('wasInitialDataConsumed', true);\n\n return initialData;\n }\n\n const promise = getUserGroupsQuery(this.store, index, this.searchString);\n\n if (index === 0 && initialData === undefined && !wasInitialDataConsumed) {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n this.set('model.data', promise);\n }\n\n return promise;\n }\n\n /**\n * Action to update userGroupsCount when listview items count changes\n * @param newUserGroupCount\n */\n @action\n userGroupCountChanged(newUserGroupCount) {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n this.set('userGroupsCount', newUserGroupCount);\n }\n\n /**\n * Filters Access Groups\n *\n * @param {String} search\n */\n @action\n filterAccessGroups(searchString) {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n this.set('searchString', searchString);\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n this.set('resetUserGroups', true);\n\n this.send('loadMoreUserGroupsAction');\n }\n\n /**\n * Transitions to the New User Group page.\n */\n @action\n addUserGroup() {\n this.isEnterprise\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(EmberEnterpriseAccessControlUserGroupsNew)\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(EmberAccessControlUserGroupsNew);\n }\n}\n","import { inject as service } from '@ember/service';\nimport AdcBaseRoute from '../../../../classes/base-route';\nimport { EmberAccessControlUserGroups } from '../../../../enums/CustomerPageUrl';\n\n/**\n * User groups management route\n */\nexport default class UserGroupsRoute extends AdcBaseRoute {\n @service store;\n\n /** @override */\n routeId = EmberAccessControlUserGroups;\n\n /**\n * @returns\n * accessGroups: Array,\n */\n model() {\n const { store } = this;\n\n return {\n accessGroups: store.findAll('access-control/access-control-access-group', {})\n };\n }\n}\n","import UserGroupEditController from '../edit/controller';\n\n/**\n * @classdesc\n *\n * This controller extends the UserGroup Edit controller.\n */\nexport default class UserGroupNewController extends UserGroupEditController {}\n","import { inject as service } from '@ember/service';\nimport { EmberAccessControlUserGroupsNew } from '../../../../enums/CustomerPageUrl';\nimport BaseUserGroupEditRoute from '../base-user-group-edit-route';\n\n/**\n * The route for the UserGroup edit page.\n */\nexport default class UserGroupNewRoute extends BaseUserGroupEditRoute {\n @service store;\n\n /**\n * @override\n */\n routeId = EmberAccessControlUserGroupsNew;\n\n /**\n * A variable to cache the blank user-group we create when visiting this route.\n *\n * @type {models.access-control.AccessControlAccessGroup}\n */\n newUserGroup = undefined;\n\n /**\n * We want to create a blank UserGroup in EmberData's store so the model can be updated and saved on the site.\n *\n * @function\n * @returns {models.access-control.AccessControlAccessGroup}f\n * @override\n */\n getUserGroupModel() {\n const newUserGroup = this.store.createRecord('access-control/access-control-access-group');\n // The createRecord() method searches the \"models\" folder for the specified path and then creates a new record in the store.\n // Note: We use Ember.set() to cache the blank user-group to our \"newUserGroup\" property defined above, so we can delete it if the process is cancelled.\n return newUserGroup;\n }\n\n /** @override */\n /**\n * This built-in Ember method is called whenever we leave the UserGroup Edit route.\n */\n willTransition() {\n const userGroup = this.newUserGroup;\n\n if (!userGroup.id) {\n // Delete the blank, unsaved record we created.\n userGroup.destroyRecord();\n }\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n

{{tc this \\'editTimetablesDescription\\'}}

\\n
\\n
\\n

{{tc this \\'availableTimetables\\'}}

\\n \\n
\\n {{#unless (media \\'isMobile\\')}}\\n
\\n \\n
\\n {{/unless}}\\n
\\n
\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/timetable/advanced/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport type { ScheduleObject } from '@adc/ui-components/components/views/types';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type AccessControlTimetable from 'customer-site/models/access-control/access-control-timetable';\nimport type { EditAccessPlanTimetableSignature } from '../index';\n\ninterface EditAccessPlanTimetableAdvancedSignature {\n Args: Pick;\n}\n\n/**\n * DEPRECATED COMPONENT\n * This feature is no longer supported on new accounts. However, there still\n * exist some accounts in production that need this old UI, so we can't get\n * rid of it.\n */\n@intlPath({ path: 'access-control/access-plans/edit/timetable/advanced' })\nexport default class AccessControlAccessPlansEditTimetableAdvancedComponent extends Component {\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare store: ServiceRegistry['store'];\n\n @tracked selectedTimetables: AccessControlTimetable[] = [];\n @tracked timetables: AccessControlTimetable[] = [];\n\n loadData = task({ restartable: true }, async () => {\n const defaultTimetables = A([...(await this.args.accessPlan.timetables).slice()]);\n this.timetables = A((await this.store.findAll('access-control/access-control-timetable')).toArray());\n this.selectedTimetables = defaultTimetables;\n\n this.args.setActionButtons({\n confirmAction: this.updateTimetables,\n confirmButtonDisabled: !this.accessPlanCanBeModified\n });\n });\n\n /**\n * List of Binary Input Items based off accessible items and the current access plan's access to them\n */\n @computed('timetables.[]', 'selectedTimetables.[]')\n get itemsOptions(): BinaryListItem<{ id: string }>[] {\n return this.timetables.map(\n (timetable) =>\n new BinaryListItem({\n label: timetable.name,\n state: this.selectedTimetables.includes(timetable),\n props: {\n id: timetable.id\n }\n })\n );\n }\n\n /**\n * Schedule objects to render in the schedule grid\n */\n @computed('args.accessPlan.{colorName,id}', 'selectedTimetables.[]')\n get scheduleObjects(): ScheduleObject[] {\n const { accessPlan } = this.args;\n\n return [\n {\n id: Number(accessPlan.id),\n colorName: accessPlan.colorName,\n timetables: this.selectedTimetables\n }\n ];\n }\n\n /**\n * Whether or not the access plan and all of its devices can be modified.\n */\n @computed('args.accessPlan.{canBeModified,hasUnmodifiableAccessPoints}')\n get accessPlanCanBeModified(): boolean {\n const { accessPlan } = this.args;\n return accessPlan.canBeModified && !accessPlan.hasUnmodifiableAccessPoints;\n }\n\n @action async updateTimetables(): Promise {\n this.args.accessPlan.timetables.setObjects([...this.selectedTimetables]);\n return this.args.save();\n }\n\n /**\n * Called when the selected items change\n */\n @action itemsOptionsChanged(items: AccessControlAccessPlansEditTimetableAdvancedComponent['itemsOptions']): void {\n const itemMap = items.filter((item) => item.state).map((item) => item.props.id);\n this.selectedTimetables = this.timetables.filter(({ id }) => itemMap.includes(id));\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Timetable::Advanced': typeof AccessControlAccessPlansEditTimetableAdvancedComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n {{tc this (if (is-enterprise) \\'restrictedAccessTitleEnterprise\\' \\'restrictedAccessTitle\\')}}\\n \\n \\n
\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/timetable/operating-modes/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { assert } from '@ember/debug';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { task } from 'ember-concurrency';\nimport { EmberSettingsAccessControlRestrictedAccess } from 'customer-site/enums/CustomerPageUrl';\nimport {\n DefaultOperatingMode,\n RestrictedAccessOperatingMode\n} from 'customer-site/enums/MercuryControllerOperatingMode';\nimport { intlPath } from '@adc/i18n/path';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { EditAccessPlanTimetableSignature } from '../index';\n\ninterface EditOperatingModesSignature {\n Args: Pick;\n}\n\n@intlPath({ path: 'access-control/access-plans/edit/timetable' })\nexport default class AccessControlAccessPlansEditTimetableOperatingModesComponent extends Component {\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare router: ServiceRegistry['router'];\n\n @tracked panelKey = 'Panel';\n @tracked enterpriseKey = '';\n\n @action\n updateOperatingModes(\n operatingModeRadioItems: AccessControlAccessPlansEditTimetableOperatingModesComponent['operatingModeRadioItems']\n ): void {\n this.args.accessPlan.operatingModes = operatingModeRadioItems.find((item) => item.state)!.props.selection;\n }\n\n /**\n * Generates the binary list items for operating modes radio list.\n */\n @computed('args.accessPlan.{isAllAccess,operatingModes}', 'armedDisarmedText', 'disarmedOnlyText')\n get operatingModeRadioItems(): BinaryListItem<{ selection: number[] }>[] {\n const { accessPlan } = this.args;\n\n // If this is an \"all access\" access plan, use disarmed and armed setting.\n const disarmedOnlySelected =\n !accessPlan.isAllAccess && !accessPlan.operatingModes.includes(RestrictedAccessOperatingMode);\n\n return [true, false].map((disarmedOnly) => {\n return new BinaryListItem<{ selection: number[] }>({\n label: disarmedOnly ? this.disarmedOnlyText : this.armedDisarmedText,\n state: disarmedOnly ? disarmedOnlySelected : !disarmedOnlySelected,\n props: {\n selection: [\n DefaultOperatingMode,\n !disarmedOnly ? RestrictedAccessOperatingMode : undefined\n ].compact()\n }\n });\n });\n }\n\n @computed('args.accessPlan.{canBeModified,hasUnmodifiableAccessPoints,isAllAccess}')\n get disabled(): boolean {\n const { canBeModified, hasUnmodifiableAccessPoints, isAllAccess } = this.args.accessPlan;\n return !canBeModified || hasUnmodifiableAccessPoints || isAllAccess;\n }\n\n /**\n * Returns localized text for the 'Disarmed Only' radio button option.\n */\n @computed('enterpriseKey', 'panelKey')\n get disarmedOnlyText(): string | ReturnType {\n const { intl, enterpriseKey, panelKey } = this,\n usesHyperlink = panelKey === 'Partition' && enterpriseKey === '';\n\n // Create resource key string\n const key = 'disarmedOnly' + panelKey + enterpriseKey;\n\n if (usesHyperlink) {\n const route = this.navigation.getRouteItem(EmberSettingsAccessControlRestrictedAccess);\n assert('Restricted access settings page route not found.', !!route);\n\n return htmlSafe(intl.tc(this, key, { link: this.router.urlFor(route.url) }));\n }\n\n return intl.tc(this, key);\n }\n\n /**\n * Returns localized text for the 'Armed and Disarmed Only' radio button option.\n */\n @computed('enterpriseKey', 'panelKey')\n get armedDisarmedText(): string {\n const { enterpriseKey, panelKey } = this;\n\n // Create resource key string\n const key = 'armedAndDisarmed' + panelKey + enterpriseKey;\n return this.intl.tc(this, key);\n }\n\n checkPartitions = task({ restartable: true }, async () => {\n const accessPlan = this.args.accessPlan,\n visitedIds: string[] = [];\n let useMultiplePartitionsUI = false;\n\n this.enterpriseKey = this.identityManager.isEnterprise ? 'Enterprise' : '';\n\n // If this is SS, just check the system value\n if (!this.identityManager.isEnterprise) {\n const system = await this.identityManager.getSelectedSystem();\n useMultiplePartitionsUI = system.hasMultiplePartitions;\n } else {\n // For enterprise case, check if any of the selected access points\n // belong to a system with multiple partitions\n if (this.args.accessPlan.isAllAccess) {\n // All access access plans have every access point selected\n useMultiplePartitionsUI = true;\n }\n\n const accessPoints = await accessPlan.accessPoints;\n const systems = (\n await Promise.all(\n accessPoints.slice().map(async ({ system }) => {\n const sys = await system;\n\n // Only check models we haven't already checked\n if (visitedIds.includes(sys.id)) {\n return undefined;\n }\n\n visitedIds.push(sys.id);\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error This should use `sys` because it's already resolved `return await sys.reload();`.\n return await system.reload();\n })\n )\n ).compact();\n\n useMultiplePartitionsUI = systems.some((item) => item.hasMultiplePartitions);\n }\n\n if (useMultiplePartitionsUI) {\n // Use text referring to multiple partitions\n this.panelKey = 'Partition';\n }\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Timetable::OperatingModes': typeof AccessControlAccessPlansEditTimetableOperatingModesComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n{{#if @permissions.isUsingAdvancedTimetables}}\\n \\n{{else}}\\n
\\n {{#if this.showTemporaryAccess}}\\n
\\n \\n
\\n {{/if}}\\n\\n {{#if this.timetable}}\\n {{!-- @glint-expect-error This component needs to be converted to TS, please fix. --}}\\n \\n {{/if}}\\n\\n {{#if @permissions.showRestrictedAccessUI}}\\n \\n {{/if}}\\n
\\n{{/if}}\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/timetable/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 { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { LockdownOperatingMode } from 'customer-site/enums/MercuryControllerOperatingMode';\nimport { intlPath } from '@adc/i18n/path';\nimport { ALL_TIMES_PROPERTIES } from '@adc/ui-components/components/views/base-schedule';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type { TimetableScheduleDay } from 'customer-site/models/access-control/access-control-timetable';\nimport type AccessControlTimetable from 'customer-site/models/access-control/access-control-timetable';\nimport type { EditAccessPlanResolvedModel } from '../base/index';\nimport type AccessControlAccessPlansEditBaseComponent from '../base/index';\n\nexport interface EditAccessPlanTimetableSignature {\n Args: Pick & {\n setActionButtons: AccessControlAccessPlansEditBaseComponent['setActionButtons'];\n save: AccessControlAccessPlansEditBaseComponent['save'];\n cancel: AccessControlAccessPlansEditBaseComponent['cancel'];\n };\n}\n\nexport function createDefaultTimetable(\n accessPlan: AccessControlAccessPlanModel,\n store: ServiceRegistry['store']\n): AccessControlTimetable {\n // lockdown access plans (plans with lockdown operating mode) should have \"All Times\" timeTimetable\n const scheduleDictionary = accessPlan.operatingModes.includes(LockdownOperatingMode)\n ? [Object.create(ALL_TIMES_PROPERTIES)]\n : [];\n\n const timetable = store.createRecord('access-control/access-control-timetable', {\n canBeModified: true,\n scheduleDictionary: scheduleDictionary,\n accessPlans: [accessPlan],\n name: accessPlan.name\n });\n\n return timetable;\n}\n\n@intlPath({ path: 'access-control/access-plans/edit/timetable' })\nexport default class AccessControlAccessPlansEditTimetableComponent extends Component {\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare store: ServiceRegistry['store'];\n\n @tracked timetable?: AccessControlTimetable;\n @tracked useMultiplePartitionsUI = false;\n @tracked displayOperatingModeSettings = false;\n\n /**\n * Task that runs when the component is opened to load the timetables\n * (and other) data and initialize tracked values\n */\n loadData = task({ restartable: true }, async () => {\n const accessPlan = this.args.accessPlan,\n timetables = (await accessPlan.timetables)?.slice(),\n operatingModes = accessPlan.operatingModes.slice();\n\n this.timetable = timetables?.length > 0 ? timetables[0] : createDefaultTimetable(accessPlan, this.store);\n\n this.args.setActionButtons({\n confirmAction: this.updateTimetables,\n confirmButtonDisabled: !this.timetable!.canBeModified,\n cancelAction: () => {\n this.timetable?.rollbackAttributes();\n accessPlan.operatingModes = operatingModes;\n this.args.cancel();\n }\n });\n });\n\n // region Update Actions\n\n @action updateSchedule(schedule: TimetableScheduleDay[]): void {\n if (this.timetable) {\n this.timetable.scheduleDictionary = schedule;\n }\n }\n\n @action async updateTimetables(): Promise {\n const timetable = this.timetable ?? createDefaultTimetable(this.args.accessPlan, this.store);\n\n if (!this.args.accessPlan.isNew) {\n await timetable.save();\n }\n\n this.args.accessPlan.timetables.setObjects([timetable]);\n return this.args.save();\n }\n\n @action updateAccessPlanStartAndEnd(startDate?: Date, endDate?: Date, selectedTimezone?: string): void {\n if (this.timetable) {\n Object.assign(this.timetable, {\n startDate: startDate,\n endDate: endDate,\n startEndTimeZoneString: selectedTimezone\n });\n }\n }\n\n // endregion\n\n @computed(\n 'args.permissions.allScopesSupportTemporaryAccessPlan',\n 'args.accessPlan.{isAllAccess,isPersonalAccessPlan}'\n )\n get showTemporaryAccess(): boolean {\n return (\n this.args.permissions.allScopesSupportTemporaryAccessPlan &&\n !this.args.accessPlan.isAllAccess &&\n !this.args.accessPlan.isPersonalAccessPlan\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Timetable': typeof AccessControlAccessPlansEditTimetableComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#if this.showEditButton}}\\n \\n \\n \\n {{/if}}\\n {{#if this.showSaveDisabledWarning}}\\n \\n {{/if}}\\n\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/base/header/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport { ModifyTimetables, ModifyUsers, ViewAccessPlan } from 'customer-site/enums/AccessPlanPropertyEdit';\n\nimport type { DropdownActionsSignature } from '@adc/ui-components/components/dropdown-actions';\nimport type { AccessPlanCardHeaderSignature } from '../../../item/card/header/index';\nimport type { EditAccessPlanSignature } from '../index';\n\ninterface AccessControlAccessPlansEditHeaderSignature {\n Args: Pick & {\n editState: EditAccessPlanSignature['Args']['editState'];\n dropdownItems?: DropdownActionsSignature['Args']['items'];\n };\n}\n\nexport default class AccessControlAccessPlansEditHeaderComponent extends Component {\n @computed('args.accessPlan.{disableModification,hasPartitionsPreventingChange}', 'args.editState')\n get showSaveDisabledWarning(): boolean {\n switch (this.args.editState) {\n case ModifyTimetables:\n return this.args.accessPlan.hasPartitionsPreventingChange;\n case ModifyUsers:\n return this.args.accessPlan.disableModification;\n default:\n return false;\n }\n }\n\n // TODO: Move these resources\n @computed('args.editState')\n get warningTextKey(): string {\n const root = 'components.access-control.access-plans.edit.';\n switch (this.args.editState) {\n case ModifyTimetables:\n return root + 'timetable.armedPartitionWarning';\n case ModifyUsers:\n return root + 'users.saveDisabledWarning';\n default:\n return '';\n }\n }\n\n @computed('args.editState')\n get showEditButton(): boolean {\n return this.args.editState === ViewAccessPlan;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Base::Header': typeof AccessControlAccessPlansEditHeaderComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n

{{tc this \\'nameAndIcon\\'}}

\\n
\\n
\\n {{#unless this.loadData.isRunning}}\\n \\n {{! errors does not have \\'name\\'}}\\n {{! @glint-expect-error }}\\n \\n \\n \\n {{/unless}}\\n
\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/name/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { ENTER_CODE } from '@adc/ember-utils/utils/a11y';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { IconAndColorPickerSignature } from 'customer-site/components/ui/icon-and-color-picker/index';\nimport type AccessControlAccessPlansEditBaseComponent from '../base/index';\nimport type { EditAccessPlanTimetableSignature } from '../timetable/index';\n\ntype ColorOptions = IconAndColorPickerSignature['Args']['colors'];\ntype IconOptions = IconAndColorPickerSignature['Args']['icons'];\n\n/**\n * If the user hits enter, focus on the next/save button\n */\nexport function focusOnSaveButtonOnEnter(event: KeyboardEvent): void {\n if (event.key === ENTER_CODE) {\n // Set focus to \"next\" button\n const confirmButtonEl = document.querySelector('button[type=\"confirm\"]');\n confirmButtonEl?.focus();\n }\n}\n\ninterface AccessControlAccessPlansEditNameSignature {\n Args: Pick & {\n save: AccessControlAccessPlansEditBaseComponent['save'];\n cancel: AccessControlAccessPlansEditBaseComponent['cancel'];\n };\n}\n\n@intlPath({ path: 'access-control/access-plans/edit/name' })\nexport default class AccessControlAccessPlansEditNameComponent extends Component {\n @service declare ajax: ServiceRegistry['ajax'];\n @service declare intl: ServiceRegistry['adc-intl'];\n\n @tracked colorOptions?: ColorOptions;\n @tracked iconOptions?: IconOptions;\n @tracked planNameErrorMessage?: string;\n\n async validateName(): Promise {\n const { name } = this.args.accessPlan;\n if (!name || name.trim().length === 0) {\n this.planNameErrorMessage = this.intl.tc(this, 'accessPlanNameCannotBeEmpty');\n return Promise.reject();\n }\n }\n\n /**\n * Task that runs when the component is opened to load the color/icon options\n */\n loadData = task({ restartable: true }, async () => {\n this.colorOptions = await this.ajax.apiRequestForValue('iconAndColorPicker/getColors');\n this.iconOptions = await this.ajax.apiRequestForValue('iconAndColorPicker/getIcons/accessPlan');\n\n const { name, colorName, iconName } = this.args.accessPlan;\n\n this.args.setActionButtons({\n confirmAction: () => this.validateName().then(() => this.args.save()),\n cancelAction: () => {\n const { accessPlan } = this.args;\n accessPlan.setProperties({ name, colorName, iconName });\n this.args.cancel();\n }\n });\n });\n\n @action keyPressHandler(event: KeyboardEvent): void {\n focusOnSaveButtonOnEnter(event);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Name': typeof AccessControlAccessPlansEditNameComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n{{yield this.api}}\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/performance-monitor/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport type AjaxService from 'customer-site/services/ajax';\n\n// Metric for time from render starts to first batch of users is rendered\nexport const EDIT_ACCESS_PLAN_USERS_OLD_INITIAL = 'EditAccessPlan.Users.InitialLoadTime.Old';\nexport const EDIT_ACCESS_PLAN_USERS_NEW_INITIAL = 'EditAccessPlan.Users.InitialLoadTime.New';\n\n// Metric for time from location filter is closed to first batch of results is rendered\nexport const EDIT_ACCESS_PLAN_USERS_OLD_LOCATION_FILTER = 'EditAccessPlan.Users.AfterLocationFilterLoadTime.Old';\nexport const EDIT_ACCESS_PLAN_USERS_NEW_LOCATION_FILTER = 'EditAccessPlan.Users.AfterLocationFilterLoadTime.New';\n\n// Metric for time from render starts to first batch of access points is rendered\nexport const EDIT_ACCESS_PLAN_ACCESS_POINTS_OLD_INITIAL = 'EditAccessPlan.AccessPoints.InitialLoadTime.Old';\nexport const EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_INITIAL = 'EditAccessPlan.AccessPoints.InitialLoadTime.New';\n\n// Metric for time from location filter is closed to first batch of results is rendered\nexport const EDIT_ACCESS_PLAN_ACCESS_POINTS_OLD_LOCATION_FILTER =\n 'EditAccessPlan.AccessPoints.AfterLocationFilterLoadTime.Old';\nexport const EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_LOCATION_FILTER =\n 'EditAccessPlan.AccessPoints.AfterLocationFilterLoadTime.New';\n\nexport interface AccessControlAccessPlanPerformanceMonitor {\n start: (metricName: string) => void;\n end: VoidFunction;\n}\n\nexport interface EditAccessPlanPerformanceMonitorSignature {\n Args: {\n // The metric to start when the performance monitor component is rendered\n metricName:\n | typeof EDIT_ACCESS_PLAN_USERS_OLD_INITIAL\n | typeof EDIT_ACCESS_PLAN_USERS_NEW_INITIAL\n | typeof EDIT_ACCESS_PLAN_ACCESS_POINTS_OLD_INITIAL\n | typeof EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_INITIAL;\n };\n Blocks: {\n default: [AccessControlAccessPlanEditPerformanceMonitorComponent['api']];\n };\n}\n\nconst REQUEST_PATH = 'accessControl/accessControlAccessPlans/logAccessPlanPerformanceMetric?';\n\nexport default class AccessControlAccessPlanEditPerformanceMonitorComponent extends Component {\n @service declare ajax: AjaxService;\n\n @tracked metricName?: string;\n @tracked startTime?: number;\n\n @action markRenderStart(metricName: string): void {\n this.startTime = Date.now();\n this.metricName = metricName;\n }\n\n @action markRenderEnd(): void {\n this.logTimeToRender(this.startTime, Date.now(), this.metricName);\n this.startTime = this.metricName = undefined;\n }\n\n api: AccessControlAccessPlanPerformanceMonitor = {\n start: this.markRenderStart,\n end: this.markRenderEnd\n };\n\n async logTimeToRender(startTime?: number, endTime?: number, metricName?: string): Promise {\n if (startTime && endTime && metricName) {\n const timeToRender = endTime - startTime;\n\n // Send time to wavefront\n this.ajax.apiRequest(\n REQUEST_PATH + `metricName=${metricName}&metricVal=${timeToRender}`,\n undefined,\n undefined,\n 'POST'\n );\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::PerformanceMonitor': typeof AccessControlAccessPlanEditPerformanceMonitorComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
{{tc this \\\"checkboxDescription\\\"}}
\\n
\\n \\n
\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/user-types/common/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 { Guest } from 'customer-site/enums/AccessPointUserType';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { Registry } from '@ember/service';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlCommonPlanUserType from 'customer-site/models/access-control/access-control-common-plan-user-type';\nimport type { EditAccessPlanUserTypesSignature } from '../index';\n\ninterface EditAccessPlanCommonUserTypesSignature {\n Args: Pick;\n}\n\n/**\n * The current common plan user types.\n */\nconst COMMON_USER_TYPES = [Guest.toString()];\n\n@intlPath({ path: 'access-control/access-plans/edit/user-types/common' })\nexport default class AccessControlAccessPlansEditCommonUserTypesComponent extends Component {\n @service declare intl: ADCIntlService;\n @service declare store: Registry['store'];\n @service declare modals: Registry['modals'];\n @service declare contextManager: Registry['context-manager'];\n @service declare identityManager: Registry['identity-manager'];\n\n /**\n * Task that runs when the component is opened to load the timetables\n * (and other) data and initialize tracked values\n */\n loadData = task({ restartable: true }, async () => {\n const commonPlanUserTypes = await this.args.accessPlan.commonPlanUserTypes,\n allCommonPlanUserTypes = await this.store.findAll('access-control/access-control-common-plan-user-type');\n\n this.commonPlanUserTypes = commonPlanUserTypes.slice();\n this.allCommonPlanUserTypes = allCommonPlanUserTypes.slice();\n this.applyAccessPlanToGuests = this.commonPlanUserTypes.length > 0;\n\n this.args.setActionButtons({ confirmAction: this.saveGuestUserAccess });\n });\n\n /**\n * Local property for the CommonPlanUserType.\n */\n @tracked commonPlanUserTypes: AccessControlCommonPlanUserType[] = [];\n\n /**\n * All the common plan user types.\n */\n @tracked allCommonPlanUserTypes: AccessControlCommonPlanUserType[] = [];\n\n /**\n * Whether or not we consider this common area checkbox selected.\n */\n @tracked applyAccessPlanToGuests = false;\n\n /**\n * Updates the selection of the guest user type.\n */\n @action updateUserTypes(): void {\n const wasSelected = this.applyAccessPlanToGuests;\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error This should be `this.args.accessPlan.commonPlanUserTypes.setObjects(wasSelected ? [] : this.allCommonPlanUserTypes.filter((userType) => COMMON_USER_TYPES.includes(userType.id)))\n this.args.accessPlan.commonPlanUserTypes = wasSelected\n ? []\n : this.allCommonPlanUserTypes.filter((userType) => COMMON_USER_TYPES.includes(userType.id));\n }\n\n /**\n * Save the access plan.\n */\n @action async saveGuestUserAccess(): Promise {\n if (this.identityManager.pointCentralIdentity?.isGuestCommonAreaImprovementFeatureToggleEnabled) {\n return this.modals.showConfirmationDialog(\n this.intl.tc(this, 'updatingGuestAccess'),\n this.intl.tc(this, 'updatingGuestAccessDescription'),\n {\n action: async () => {\n await this.args.accessPlan.save();\n this.contextManager.transitionToPreviousRoute();\n }\n }\n );\n }\n\n await this.args.accessPlan.save();\n this.contextManager.transitionToPreviousRoute();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::UserTypes::Common': typeof AccessControlAccessPlansEditCommonUserTypesComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.identityManager.pointCentralIdentity.isPointCentralAccessControlSTR}}\\n \\n{{else}}\\n
\\n
\\n

{{tc this \\\"pageDescription\\\" htmlSafe=true}}

\\n
\\n \\n
\\n{{/if}}\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/user-types/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { A } from '@ember/array';\nimport { action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { type Registry as ServiceRegistry } from '@ember/service';\nimport ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\nimport { intlPath } from '@adc/i18n/path';\nimport { SELECTED, UNSELECTED } from '@adc/ui-components/utils/checkbox-tree-item';\n\nimport './_style.scss';\nimport type { ScrollingListSelectComponentSignature } from 'customer-site/components/access-control/scrolling-list-select/index';\nimport type AccessControlUserTypeModel from 'customer-site/models/access-control/access-control-user-type';\nimport type AccessControlAccessPlansEditBaseComponent from '../base/index';\nimport type { EditAccessPlanResolvedModel } from '../base/index';\n\ntype UserTypesDynamicArray = ReturnType>;\n\n/**\n * Checkbox items used in both lists for the edit access plan -> user types page.\n * The items are formatted to get passed to ScrollingListSelect.\n */\nclass UserTypeCheckboxItem extends ScrollingListSelectItem {\n model: AccessControlUserTypeModel;\n constructor(model: AccessControlUserTypeModel, ...args: any[]) {\n super(...args);\n this.model = model;\n }\n}\n\nexport interface EditAccessPlanUserTypesSignature {\n Args: Pick & {\n setActionButtons: AccessControlAccessPlansEditBaseComponent['setActionButtons'];\n save: () => Promise;\n };\n}\n\nexport async function createUserTypeFilterItems(store: ServiceRegistry['store']): Promise {\n const userTypes = await store.findAll('access-control/access-control-user-type');\n\n // Create checkbox items for each user type\n return userTypes.map(({ id, name }) =>\n UserTypeCheckboxItem.create({\n name: name,\n value: id,\n state: SELECTED\n })\n );\n}\n\nfunction createUserTypeCheckbox(userType: AccessControlUserTypeModel, isSelected: boolean): UserTypeCheckboxItem {\n const { id, name, icon } = userType;\n return UserTypeCheckboxItem.create({\n id,\n name,\n icon,\n state: isSelected ? SELECTED : UNSELECTED,\n model: userType\n });\n}\n\n@intlPath({ path: 'access-control/access-plans/edit/user-types' })\nexport default class AccessControlAccessPlansEditUserTypesComponent extends Component {\n @service declare store: ServiceRegistry['store'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n options = {};\n filterProperties = {};\n\n @action async saveUserTypes(userTypes: UserTypesDynamicArray): Promise {\n this.args.accessPlan.userTypes.setObjects(userTypes.map((userType) => userType.model).compact());\n return this.args.save();\n }\n\n /**\n * Returns the function ScrollingListSelect uses to fetch a batch of items.\n * Currently we are not batching userTypes, so this just loads everything.\n */\n get loadUserTypesFn(): ScrollingListSelectComponentSignature['Args']['loadItems'] {\n const { store, args } = this;\n return async () => {\n const userTypes = await store.findAll('access-control/access-control-user-type');\n return {\n items: userTypes.map((userType) =>\n createUserTypeCheckbox(userType, args.accessPlan.hasMany('userTypes').ids().includes(userType.id))\n ),\n totalCount: userTypes.length,\n index: userTypes.length\n };\n };\n }\n\n /**\n * Returns the function ScrollingListSelect uses to fetch a batch of selected items.\n * Currently we are not batching userTypes, so this just loads everything.\n */\n get loadSelectedUserTypesFn(): ScrollingListSelectComponentSignature['Args']['loadSelectedItems'] {\n const { args } = this;\n return async () => {\n const userTypes = await args.accessPlan.userTypes;\n return {\n items: A(userTypes.slice().map((userType) => createUserTypeCheckbox(userType, true))),\n totalCount: userTypes.length,\n index: userTypes.length\n };\n };\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::UserTypes': typeof AccessControlAccessPlansEditUserTypesComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\\n
\\n {{#if this.initializeDone}}\\n \\n {{/if}}\\n
\\n
\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/users/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\nimport AvailableSystemItemsFilteringEnum from 'customer-site/enums/AvailableSystemItemsFilteringEnum';\nimport { intlPath } from '@adc/i18n/path';\nimport { SELECTED, UNSELECTED } from '@adc/ui-components/utils/checkbox-tree-item';\nimport {\n EDIT_ACCESS_PLAN_USERS_NEW_INITIAL,\n EDIT_ACCESS_PLAN_USERS_NEW_LOCATION_FILTER\n} from '../performance-monitor/index';\nimport { createUserTypeFilterItems } from '../user-types/index';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type {\n ScrollingListSelectComponentSignature,\n ScrollingListSelectQueryParams,\n ScrollingListSelectQueryResult\n} from 'customer-site/components/access-control/scrolling-list-select/index';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type AccessControlAccessPlansEditBaseComponent from '../base/index';\nimport type { EditAccessPlanResolvedModel } from '../base/index';\nimport type { EditAccessPlanPerformanceMonitorSignature } from '../performance-monitor/index';\n\ntype UsersDynamicArray = ReturnType>;\ntype UserQueryResult = Awaited> & {\n meta?: {\n totalCount: number;\n allLoaded?: boolean;\n };\n};\n\nclass UserItem extends ScrollingListSelectItem {\n model: AccessControlUser;\n constructor(model: AccessControlUser, ...args: any[]) {\n super(...args);\n this.model = model;\n }\n}\n\nconst BATCH_SIZE = 25;\nconst LOCATION_PROPERTIES = {\n includeGroups: true,\n filterType: AvailableSystemItemsFilteringEnum.APUMUsers,\n metricName: EDIT_ACCESS_PLAN_USERS_NEW_LOCATION_FILTER\n};\n\ninterface EditAccessPlanUsersSignature {\n Args: Pick & {\n setActionButtons: AccessControlAccessPlansEditBaseComponent['setActionButtons'];\n save: () => Promise;\n };\n}\n\n@intlPath({ path: 'access-control/access-plans/edit/users' })\nexport default class AccessControlAccessPlansEditUsersComponent extends Component {\n @service declare store: ServiceRegistry['store'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare modals: ServiceRegistry['modals'];\n\n @tracked options: ScrollingListSelectComponentSignature['Args']['options'] = {};\n @tracked filterProperties: ScrollingListSelectComponentSignature['Args']['filterProperties'] = {};\n @tracked initializeDone = false;\n @tracked selectedUserIds?: string[];\n\n batchSize = BATCH_SIZE;\n metricName: EditAccessPlanPerformanceMonitorSignature['Args']['metricName'] = EDIT_ACCESS_PLAN_USERS_NEW_INITIAL;\n\n @action async saveUsers(users: UsersDynamicArray): Promise {\n // Action to set access plan users and save the model\n const saveAction = async (): Promise => {\n this.args.accessPlan.users.setObjects(users.map((item) => item.model));\n await this.args.save();\n };\n\n const hasUserWithMultipleCredentials = users.some((user) => user.model.hasMany('accessCards').ids().length > 1);\n\n // Show the warning modal if the access plan has a device with Dual Access enabled,\n // and we're attempting to save with a user that has multiple credentials\n hasUserWithMultipleCredentials && this.options.showCredentialCount\n ? await this.saveUsersWithDualAccessModal(saveAction)\n : await saveAction();\n }\n\n @action async loadUsers(\n batchSize = BATCH_SIZE,\n index = 0,\n params: ScrollingListSelectQueryParams\n ): Promise {\n const { search = '', scopeIds, userTypes } = params,\n { accessPlan, planDetailTotals } = this.args;\n\n // Load batch of users using params\n const queryResult: UserQueryResult = await this.store.query('access-control/access-control-user', {\n searchString: search,\n batchSize,\n startIndex: index,\n scopeIds: scopeIds,\n accessPlanType: accessPlan.accessPlanType,\n accessPlanOperatingMode: accessPlan.operatingMode,\n userType: userTypes,\n includeChildScope: true,\n includeEnterpriseUsers: this.identityManager.isPointCentralAccessControl\n });\n\n // Filter out non-normal users (this filtering should probably be moved to the back-end)\n const userItems = queryResult?.filter((user) => user.isNormalUser).map((user) => this.createUserItem(user));\n\n return {\n items: A(userItems),\n totalCount: planDetailTotals?.userTotal ?? 0,\n index: index + queryResult?.length,\n allLoaded: queryResult.meta?.allLoaded ?? false\n };\n }\n\n @action async loadAccessPlanUsers(): Promise {\n const users = await this.args.accessPlan.users;\n // Create items\n const userItems = users.map((user) => this.createUserItem(user));\n\n return {\n items: A(userItems),\n totalCount: users.length,\n index: users.length\n };\n }\n\n @action createUserItem(user: AccessControlUser): UserItem {\n const { id, activeDirectoryFlag, canChangeUserCode, displayName, isHigherLevelUserOnLowerLevel } = user,\n { accessPlan, permissions } = this.args,\n isSelected = this.selectedUserIds?.includes(id),\n item = UserItem.create({\n id,\n name: displayName,\n icon: 'user',\n disabled:\n accessPlan.disableModification ||\n !canChangeUserCode ||\n (activeDirectoryFlag && permissions.mapADUsersToAccessPlans) ||\n (isHigherLevelUserOnLowerLevel && !permissions.canPromoteUser),\n state: isSelected ? SELECTED : UNSELECTED,\n model: user\n });\n\n return item;\n }\n\n @action async saveUsersWithDualAccessModal(saveAction: () => Promise): Promise {\n const { intl, modals } = this,\n root = 'components.access-control.access-plans.item.edit-users.',\n confirmProperties = {\n text: intl.t('generic.ok'),\n action: async () => await saveAction()\n },\n cancelProperties = {\n text: intl.t('generic.cancel'),\n action: () => {}\n };\n\n modals.showConfirmationDialog(\n intl.t(root + 'dualAccessBypass'),\n intl.t(root + 'dualAccessBypassDetails'),\n confirmProperties,\n cancelProperties,\n 'center-confirm-button'\n );\n }\n\n initializeComponent = task({ restartable: true }, async () => {\n const { identityManager } = this,\n { includeGroups, filterType, metricName } = LOCATION_PROPERTIES;\n\n // Load all selected users\n const users = await this.args.accessPlan.users;\n this.selectedUserIds = users.map((user) => user.id);\n\n // Set filter properties\n this.filterProperties = {\n locationFilterProperties: identityManager.isEnterprise\n ? {\n defaultSelectedScopes: [this.identityManager.getSelectedSystemGroupId()],\n includeGroups,\n filterType,\n metricName\n }\n : undefined,\n userTypeFilters: identityManager.isPointCentralAccessControl\n ? await createUserTypeFilterItems(this.store)\n : undefined\n };\n\n // Load all access points on the access plan to check if we should\n // show the credential count on the user items. This might be slow.\n const accessPoints = (await this.args.accessPlan.accessPoints).slice(),\n { isPointCentralAccessControl = false, viewingParentGroup = false } = identityManager.identityModel ?? {},\n twoPersonAccessOnPlan = accessPoints.some((accessPoint) => accessPoint.twoPersonAccessEnabled);\n\n this.options = {\n showSystem: this.identityManager.isEnterprise,\n showSystemGroup:\n !isPointCentralAccessControl && viewingParentGroup && this.args.permissions.hasMLEGAccessControl,\n showCredentialCount: twoPersonAccessOnPlan\n };\n\n this.initializeDone = true;\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Users': typeof AccessControlAccessPlansEditUsersComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n {{#if this.initializeDone}}\\n \\n {{/if}}\\n
\\n
\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/access-points/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\nimport AvailableSystemItemsFilteringEnum from 'customer-site/enums/AvailableSystemItemsFilteringEnum';\nimport { intlPath } from '@adc/i18n/path';\nimport { SELECTED, UNSELECTED } from '@adc/ui-components/utils/checkbox-tree-item';\nimport {\n EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_LOCATION_FILTER,\n EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_INITIAL\n} from '../performance-monitor/index';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type {\n ScrollingListSelectFilterProperties,\n ScrollingListSelectOptions,\n ScrollingListSelectQueryParams,\n ScrollingListSelectQueryResult\n} from 'customer-site/components/access-control/scrolling-list-select/index';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessControlElevator from 'customer-site/models/access-control/access-control-elevator';\nimport type { EditAccessPlanResolvedModel } from '../base/index';\nimport type AccessControlAccessPlansEditBaseComponent from '../base/index';\nimport type { EditAccessPlanPerformanceMonitorSignature } from '../performance-monitor/index';\n\n/**\n * The default batch size to use when fetching access points\n */\nconst ACCESS_POINTS_BATCH_SIZE = 25;\nconst DUAL_ACCESS_DESCRIPTION = 'components.access-control.access-plans.edit.access-points.dualAccessEnabled';\nconst LOCATION_PROPERTIES = {\n includeGroups: false,\n filterType: AvailableSystemItemsFilteringEnum.AccessPoints,\n metricName: EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_LOCATION_FILTER\n};\n\ntype AccessPointsDynamicArray = ReturnType>;\ntype AccessPointsQueryResult = Awaited> & {\n meta?: {\n totalCount: number;\n };\n};\n\ninterface EditAccessPlanAccessPointsSignature {\n Args: Pick & {\n setActionButtons: AccessControlAccessPlansEditBaseComponent['setActionButtons'];\n save: () => Promise;\n };\n}\n\n/**\n * Checkbox items used in both lists for the edit access plan -> access points page.\n * The items are formatted to get passed to ScrollingListSelect. Can be either\n * a nested checkbox (with subitems) or a single checkbox item.\n */\nclass AccessPointCheckboxItem extends ScrollingListSelectItem {\n model: AccessControlAccessPoint;\n constructor(model: AccessControlAccessPoint, ...args: any[]) {\n super(...args);\n this.model = model;\n }\n}\n\n@intlPath({ path: 'access-control/access-plans/edit/access-points' })\nexport default class AccessControlAccessPlansEditAccessPointsComponent extends Component {\n @service declare store: ServiceRegistry['store'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare modals: ServiceRegistry['modals'];\n\n @tracked options: ScrollingListSelectOptions = {};\n @tracked filterProperties: ScrollingListSelectFilterProperties = {};\n @tracked initializeDone = false;\n\n @tracked elevatorsCache?: ReturnType>;\n @tracked selectedAccessPointIds?: string[];\n\n batchSize = ACCESS_POINTS_BATCH_SIZE;\n metricName: EditAccessPlanPerformanceMonitorSignature['Args']['metricName'] =\n EDIT_ACCESS_PLAN_ACCESS_POINTS_NEW_INITIAL;\n\n @action async saveAccessPoints(accessPoints: AccessPointsDynamicArray): Promise {\n // Action to set access plan access points and save the model\n const saveAction = async (): Promise => {\n this.args.accessPlan.accessPoints.setObjects(accessPoints.map((item) => item.model));\n await this.args.save();\n };\n\n // Check if any of the access points we're saving on the plan has dual access enabled\n const planHasDualAccess = accessPoints.some((accessPoint) => accessPoint.model.twoPersonAccessEnabled);\n\n if (planHasDualAccess) {\n // Load all users on plan to check whether to display warning modal\n const users = (await this.args.accessPlan.users).slice(),\n hasUserWithMultipleCredentials = users.some((user) => user.hasMany('accessCards').ids().length > 1);\n\n if (hasUserWithMultipleCredentials) {\n const usePluralText = users.filter((u) => u.accessCards.length > 1).length > 1;\n await this.saveAccessPointsWithDualAccessModal(usePluralText, saveAction);\n return;\n }\n }\n\n await saveAction();\n }\n\n @action async loadAccessPoints(\n batchSize = ACCESS_POINTS_BATCH_SIZE,\n index = 0,\n params: ScrollingListSelectQueryParams\n ): Promise {\n const { search, scopeIds } = params,\n { accessPlanType } = this.args.accessPlan,\n modelName = 'access-control/access-control-access-point';\n\n // Load batch of access points using params\n const accessPoints: AccessPointsQueryResult = await this.store.query(modelName, {\n searchString: search,\n scopeIds,\n accessPlanType,\n startIndex: index,\n batchSize\n });\n\n // Only create items for access points that are not elevator floors.\n // Elevator floors will instead be included as sub items of the main elevator reader.\n const nonFloorAccessPoints = accessPoints.filter((accessPoint) => !accessPoint.isElevatorFloor);\n\n // If we encounter any elevator readers, load the elevators cache.\n // We'll use the cache to make sure we never have a case where an elevator is only partially loaded.\n if (nonFloorAccessPoints.some((accessPoint) => accessPoint.isElevatorReader)) {\n await this.loadElevators.perform();\n }\n\n // Create the items for each reader\n const items = await Promise.all(\n nonFloorAccessPoints.map(async (accessPoint) => this.createCheckboxItem(accessPoint))\n );\n\n return {\n items: A(items),\n totalCount: accessPoints.meta?.totalCount ?? 0,\n index: index + accessPoints.length\n };\n }\n\n @action async loadAccessPlanAccessPoints(): Promise {\n const accessPoints = await this.args.accessPlan.accessPoints;\n\n // Floors will be added separately\n const nonFloorAccessPoints =\n accessPoints?.filter((accessPoint) => !accessPoint.isElevatorFloor) ?? A();\n\n // If we encounter any elevator readers, load the elevators cache.\n // We'll use the cache to make sure we never have a case where an elevator is only partially loaded.\n if (nonFloorAccessPoints.some((accessPoint) => accessPoint.isElevatorReader)) {\n await this.loadElevators.perform();\n }\n\n const items = A();\n\n // The selected items list does not use sub-items. Instead, any floors will be their own items\n // directly following the parent, in sorted order. But we still need to ensure all selected floors\n // are loaded if we are loading the parent reader.\n await Promise.all(\n nonFloorAccessPoints.map(async (accessPoint) => {\n // Load any elevator floors (if any)\n const floors = await this.floorsFromAccessPoint(accessPoint);\n\n // Create checbox items for the selected floors (if any)\n const floorItems = floors\n .map((floor, index) => {\n // Need to keep the right order even if not every floor is selected\n return {\n floor,\n order: index\n };\n })\n .filter(({ floor }) => this.selectedAccessPointIds?.includes(floor.id))\n .map(({ floor, order }) => this.createCheckboxItem(floor, order));\n\n // Create checkbox item for main reader (without including subitems)\n const item = await this.createCheckboxItem(accessPoint, 0, undefined, false);\n items.pushObjects([item].concat(await Promise.all(floorItems)));\n })\n );\n\n return {\n items: A(items),\n totalCount: accessPoints.length,\n index: accessPoints.length\n };\n }\n\n @action async createCheckboxItem(\n accessPoint: AccessControlAccessPoint,\n orderIndex = 0,\n parent?: AccessPointCheckboxItem,\n createSubItems = true\n ): Promise {\n const { id, name, icon, isElevatorReader } = accessPoint,\n showSystemName = this.identityManager.isEnterprise,\n floors = A();\n\n if (isElevatorReader && createSubItems) {\n // Load all floors using the elevators cache\n floors.pushObjects(await this.floorsFromAccessPoint(accessPoint));\n }\n\n const hasSubItems = floors.length > 0;\n\n // Create the base item\n const item = AccessPointCheckboxItem.create({\n id,\n name,\n icon,\n description: accessPoint.twoPersonAccessEnabled ? this.intl.t(DUAL_ACCESS_DESCRIPTION) : '',\n secondaryDescription: showSystemName ? accessPoint.systemDescription : undefined,\n disabled:\n this.args.accessPlan.disableModification || accessPoint.disableModification || accessPoint.isEBSPanel,\n state: this.selectedAccessPointIds?.includes(id) ? SELECTED : UNSELECTED,\n model: accessPoint,\n isCheckboxTree: !!parent || hasSubItems,\n isCollapsible: hasSubItems,\n isCollapsed: hasSubItems\n });\n\n // Create the sub-items for any floors\n const subItems = await Promise.all(floors.map((floor, index) => this.createCheckboxItem(floor, index, item)));\n\n // Assign additional properties\n Object.assign(item, {\n parent,\n subitems: A(subItems),\n orderIndex\n });\n\n return item;\n }\n\n @action async floorsFromAccessPoint(accessPoint: AccessControlAccessPoint): Promise {\n const elevatorModel = this.elevatorsCache?.find((elevator) => {\n return elevator.elevatorReader.id === accessPoint.id;\n });\n\n return (await elevatorModel?.floors)?.slice() ?? [];\n }\n\n /**\n * Load all elevators on the account (if they haven't already been loaded) and store them in the cache.\n */\n loadElevators = task({ enqueue: true }, async () => {\n if (!this.elevatorsCache) {\n this.elevatorsCache = A((await this.store.findAll('access-control/access-control-elevator')).slice());\n }\n\n return this.elevatorsCache;\n });\n\n @action async initializeOptions(): Promise {\n const accessPoints = await this.args.accessPlan.accessPoints;\n this.selectedAccessPointIds = accessPoints.map((ap) => ap.id);\n\n // Set filter properties\n this.filterProperties = {\n locationFilterProperties: this.identityManager.isEnterprise ? LOCATION_PROPERTIES : undefined\n };\n\n this.options = {\n showSystem: this.identityManager.isEnterprise\n };\n\n this.initializeDone = true;\n }\n\n @action async saveAccessPointsWithDualAccessModal(\n usePlural: boolean,\n saveAction: () => Promise\n ): Promise {\n const { intl, modals } = this,\n root = 'components.access-control.access-plans.item.edit-access-points.',\n confirmProperties = {\n text: intl.t('generic.ok'),\n action: async () => await saveAction()\n },\n cancelProperties = {\n text: intl.t('generic.cancel'),\n action: () => {}\n };\n\n modals.showConfirmationDialog(\n intl.t(root + 'dualAccessMode'),\n intl.t(root + (usePlural ? 'dualAccessModeDetailsPlural' : 'dualAccessModeDetailsSingular')),\n confirmProperties,\n cancelProperties,\n 'center-confirm-button'\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::AccessPoints': typeof AccessControlAccessPlansEditAccessPointsComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#if this.resolvedModel}}\\n {{#unless this.isModifyingPlanName}}\\n \\n {{/unless}}\\n {{#if this.isViewingAccessPlan}}\\n {{!-- TODO: Make type-safe details components and replace this usage --}}\\n {{! @glint-expect-error }}\\n \\n {{/if}}\\n {{#if this.isModifyingPlanName}}\\n \\n {{/if}}\\n {{#if this.isModifyingTimetables}}\\n \\n {{/if}}\\n {{#if this.isModifyingUsers}}\\n \\n {{/if}}\\n {{#if this.isModifyingAccessPoints}}\\n \\n {{/if}}\\n {{#if this.isModifyingUserTypes}}\\n \\n {{/if}}\\n {{/if}}\\n\",{ moduleName: \"customer-site/components/access-control/access-plans/edit/base/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 { alias, equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport {\n NotSet,\n ModifyTimetables,\n ModifyPlanName,\n ModifyUsers,\n ModifyAccessPoints,\n ModifyUserTypes,\n ViewAccessPlan\n} from 'customer-site/enums/AccessPlanPropertyEdit';\nimport { AllDeviceAccess, Personal } from 'customer-site/enums/AccessPlanType';\nimport DropdownActionItem from '@adc/ui-components/utils/dropdown-action-item';\nimport { getPlanStatusAndIcon } from '../../row/base-access-plan/index';\nimport { createDefaultTimetable } from '../timetable/index';\n\nimport './_style.scss';\nimport type { ActionButtonsSignature } from '@adc/ui-components/components/action-buttons';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { AwaitedObject } from 'adc-ember-promise-helpers';\nimport type { EditAccessPlanModel } from 'customer-site/classes/access-control/access-plans/base-access-plan-edit-route';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlPermissionsCollection from 'customer-site/models/access-control/access-control-permissions-collection';\nimport './_style.scss';\n\nexport type AccessPlanEditState =\n | typeof ModifyTimetables\n | typeof NotSet\n | typeof ModifyPlanName\n | typeof ModifyAccessPoints\n | typeof ModifyUsers\n | typeof ModifyUserTypes\n | typeof ViewAccessPlan;\n\ntype ActionButtonArgs = Pick & {\n confirmAction: ActionButtonsSignature['Args']['confirm-action'];\n cancelAction: ActionButtonsSignature['Args']['cancel-action'];\n doNotGoBackAfterAction: boolean;\n confirmText?: ActionButtonsSignature['Args']['confirmButtonText'];\n};\n\nconst RESOURCE_ROOT = 'components.access-control.access-plans.';\nconst ICONS = ['', 'user', 'user-control-open', 'schedule', 'user-control-plan', 'property-group'];\nconst RESOURCE_KEYS = [\n '',\n 'generic.users',\n 'generic.access-control.accessPoints',\n `${RESOURCE_ROOT}edit.timetable.schedule`,\n `${RESOURCE_ROOT}edit.name.nameAndIcon`,\n `${RESOURCE_ROOT}edit.user-types.community`\n];\nconst COLOR_MAP = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'greenblue'];\n\nexport interface EditAccessPlanPermissions extends AccessControlPermissionsCollection {\n showRestrictedAccessUI?: boolean;\n}\n\nexport interface EditAccessPlanSignature {\n Args: {\n model: EditAccessPlanModel;\n editState: AccessPlanEditState;\n };\n}\n\nexport type EditAccessPlanResolvedModel = Pick, 'planDetailTotals'> & {\n accessPlan: AccessControlAccessPlanModel;\n permissions: AccessControlPermissionsCollection & {\n showTemporaryAccessPlansUI?: boolean;\n showRestrictedAccessUI?: boolean;\n };\n};\n\nexport default class AccessControlAccessPlansEditBaseComponent extends Component {\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare notificationManager: ServiceRegistry['notification-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare store: ServiceRegistry['store'];\n @service declare contextManager: ServiceRegistry['context-manager'];\n\n @tracked returnToViewOnCancel = false;\n\n @tracked currentEditState: AccessPlanEditState = NotSet;\n\n @tracked actionButtonArgs: ActionButtonArgs = {\n confirmAction: this.save,\n confirmButtonDisabled: true,\n cancelAction: this.cancel,\n doNotGoBackAfterAction: true\n };\n\n @tracked resolvedModel?: EditAccessPlanResolvedModel;\n\n @equal('currentEditState', ViewAccessPlan)\n declare isViewingAccessPlan: boolean;\n\n @equal('currentEditState', ModifyTimetables)\n declare isModifyingTimetables: boolean;\n\n @equal('currentEditState', ModifyPlanName)\n declare isModifyingPlanName: boolean;\n\n @equal('currentEditState', ModifyUsers)\n declare isModifyingUsers: boolean;\n\n @equal('currentEditState', ModifyAccessPoints)\n declare isModifyingAccessPoints: boolean;\n\n @equal('currentEditState', ModifyUserTypes)\n declare isModifyingUserTypes: boolean;\n\n @computed('resolvedModel.accessPlan.{canBeModified,hasUnmodifiableAccessPoints}')\n get accessPlanCanBeEdited(): boolean {\n const accessPlan = this.resolvedModel?.accessPlan;\n return !accessPlan || (accessPlan.canBeModified && !accessPlan.hasUnmodifiableAccessPoints);\n }\n\n @computed('resolvedModel.{accessPlan.accessPlanStatus}')\n get planStatusClass(): string {\n return getPlanStatusAndIcon(this.intl, this.resolvedModel?.accessPlan).statusClass;\n }\n\n @computed()\n get toolsDropdownItems(): DropdownActionItem[] {\n const options: AccessPlanEditState[] = [\n ModifyUsers,\n ModifyAccessPoints,\n ModifyTimetables,\n ModifyPlanName,\n ModifyUserTypes\n ];\n return options\n .filter((option) => this.showEditOption(option))\n .map((state) => {\n const name = this.intl.t(RESOURCE_KEYS[state]),\n icon = ICONS[state],\n action = (): void => this.updateEditState(state);\n return DropdownActionItem.create({ icon, name, action });\n });\n }\n\n @alias('resolvedModel.accessPlan.isNew')\n declare isNew: boolean;\n\n @action updateEditState(state: AccessPlanEditState): void {\n this.currentEditState = state;\n }\n\n @action\n dataLoaded(model?: AwaitedObject): void {\n if (model) {\n const { permissions, restrictedAccessSetting, planType, user, accessPoints, planDetailTotals } = model,\n accessPlan = model.accessPlan ?? this.createAccessPlan(planType, user, accessPoints);\n\n Object.assign(permissions, {\n showTemporaryAccessPlansUI: !accessPlan.isAllAccess && !accessPlan.isPersonalAccessPlan,\n showRestrictedAccessUI: restrictedAccessSetting?.enabled && !accessPlan.isPersonalAccessPlan\n });\n\n this.resolvedModel = {\n accessPlan,\n permissions,\n planDetailTotals\n };\n\n this.currentEditState = this.args.editState;\n\n // Enable save button once done loading\n this.setActionButtons({\n confirmButtonDisabled: !this.accessPlanCanBeEdited\n });\n }\n }\n\n @action\n setActionButtons(args: Partial): void {\n const {\n confirmAction = this.actionButtonArgs.confirmAction ?? (() => {}),\n confirmButtonDisabled = this.actionButtonArgs.confirmButtonDisabled,\n cancelAction = this.actionButtonArgs.cancelAction ?? (() => {}),\n doNotGoBackAfterAction = this.actionButtonArgs.doNotGoBackAfterAction,\n confirmText = this.actionButtonArgs.confirmText\n } = args;\n\n this.actionButtonArgs = {\n confirmButtonDisabled: !this.accessPlanCanBeEdited || confirmButtonDisabled,\n confirmAction,\n cancelAction,\n doNotGoBackAfterAction,\n confirmText\n };\n }\n\n /**\n * The default save button action. This will either\n */\n @action async save(): Promise {\n const { accessPlan } = this.resolvedModel ?? {};\n if (accessPlan) {\n if (this.isNew && !this.isViewingAccessPlan) {\n // Return to access plan view without saving model and reset action buttons\n this.setActionButtons({ confirmAction: this.save, cancelAction: this.cancel });\n this.returnToViewOnCancel = true;\n this.updateEditState(ViewAccessPlan);\n } else {\n const planHasTimetable = accessPlan.timetables?.length;\n\n // Make sure the access plan has a timetable\n const timetable = planHasTimetable\n ? (await accessPlan.timetables).slice()[0]\n : createDefaultTimetable(accessPlan, this.store);\n\n // Save the plan's timetable if it hasn't been already\n if (timetable.hasDirtyAttributes) {\n await timetable.save();\n\n if (!planHasTimetable) {\n accessPlan.timetables.setObjects([timetable]);\n }\n }\n\n // Save the model and return\n await accessPlan?.save();\n this.notificationManager.addSuccess(this.intl.t('access-control.access-plans.twoMinuteDelay'), 15000);\n this.contextManager.transitionToPreviousRoute();\n }\n }\n }\n\n /**\n * The default cancel button action. This will either return to the\n * ViewAccessPlan state or save the plan and return to the previous route.\n */\n @action cancel(): void {\n if (this.returnToViewOnCancel && !this.isViewingAccessPlan) {\n // Return to access plan view and reset action buttons\n this.setActionButtons({ confirmAction: this.save, cancelAction: this.cancel });\n this.updateEditState(ViewAccessPlan);\n } else {\n // If we created a new timetable, destroy it\n const timetables = this.resolvedModel?.accessPlan.timetables.slice();\n if (timetables && timetables.length > 0 && timetables[0].isNew) {\n timetables[0].destroy();\n }\n\n // Rollback attributes and return\n this.resolvedModel?.accessPlan.rollbackAttributes();\n this.contextManager.transitionToPreviousRoute();\n }\n }\n\n /**\n * Should the given edit state be shown when modifying this access plan?\n *\n * @param editState\n * @returns Whether the given edit state should be visible.\n */\n private showEditOption(editState: AccessPlanEditState): boolean {\n const { accessPlan } = this.resolvedModel ?? {},\n { identityManager } = this;\n\n if (!accessPlan) {\n return false;\n }\n\n switch (editState) {\n case ModifyUsers:\n // Only show the edit users option if this is not a personal access plan\n return accessPlan.accessPlanType !== Personal;\n case ModifyAccessPoints:\n // Only show the edit access points option if this is not an all-access\n // access plan\n return accessPlan.canModifyAccessPoints;\n case ModifyUserTypes:\n // Only show the edit user types option if this is an AC-PC\n // enterprise account\n return identityManager.isPointCentralAccessControl && identityManager.isEnterprise;\n default:\n // Other options should always appear\n return true;\n }\n }\n\n /**\n * Create a new access plan model of the given type.\n *\n * @param planType The type of access plan being created.\n * @param user (Optional) The user associated with this access plan (only used for personal access plans)\n * @param accessPoints (Optional) The access points associated with this access plan (only used for all-access access plans)\n * @returns A newly created access plan model\n */\n private createAccessPlan(\n planType: number,\n user?: Awaited,\n accessPoints?: Awaited\n ): AccessControlAccessPlanModel {\n const planName = user\n ? // If this is a personal access plan, use the name of the user\n this.intl.t('access-control.access-plans.personalPlanName', { user: user.firstName })\n : planType === AllDeviceAccess\n ? // If this is an all-access plan, use \"All Access\"\n this.intl.t('access-control.access-plans.allAccess')\n : '';\n\n // Generate a random color from the map of colors we can choose from.\n const colorName = COLOR_MAP[Math.floor(Math.random() * Object.keys(COLOR_MAP).length)];\n\n return this.store.createRecord('access-control/access-control-access-plan', {\n accessPlanType: planType,\n name: planName,\n colorName,\n operatingModes: [0],\n canBeModified: true,\n users: user ? [user] : [],\n userTypes: [],\n commonPlanUserTypes: [],\n // We never want EBS panels as part of access plans.\n accessPoints: accessPoints?.filter((ap) => !ap.isEBSPanel) ?? [],\n holidays: [],\n timetables: []\n });\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Edit::Base': typeof AccessControlAccessPlansEditBaseComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if (media \\'isMobile\\')}}\\n {{#each @changes as |pc|}}\\n
\\n
\\n
\\n

{{t \\'access-control.users.user\\'}}

\\n {{pc.userName}}\\n
\\n {{yield pc to=\\\"mobile\\\"}}\\n
\\n \\n
\\n {{/each}}\\n{{else}}\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n {{#each @changes as |pc|}}\\n \\n \\n \\n \\n \\n {{/each}}\\n \\n
{{t \\'access-control.users.user\\'}}{{yield to=\\\"desktop-column-header\\\"}}\\n {{t \\'generic.accept\\'}}\\n {{t \\'generic.undo\\'}}\\n
\\n {{pc.userName}}\\n {{#if pc.isActiveDirectoryUser}}\\n ({{t \\'access-control.users.edit.index.activeDirectoryUser\\'}})\\n {{/if}}\\n \\n {{yield pc to=\\\"desktop-column-row\\\"}}\\n \\n \\n
\\n{{/if}}\\n\",{ moduleName: \"customer-site/components/access-control/access-plans/item/access-plan-pending-changes/collection/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\nimport type { AsyncHasMany } from '@ember-data/model';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessPlanPendingChange from 'customer-site/models/access-control/access-plan-pending-change';\n\nexport type AccessPlanPendingChangeItem = Pick & {\n accessPointsAdded?: string[];\n accessPointsRemoved?: string[];\n accessPointsUpdated?: AsyncHasMany;\n actionOptions: BinaryListItem<{ v: boolean }>[];\n};\n\ninterface AccessPlanPendingChangesCollectionSignature {\n Args: {\n changes: AccessPlanPendingChangeItem[];\n changeAction: (\n pendingChange: AccessPlanPendingChangeItem,\n items: AccessPlanPendingChangeItem['actionOptions']\n ) => void;\n canBeDisabled?: boolean;\n };\n Blocks: {\n mobile: [AccessPlanPendingChangeItem];\n 'desktop-column-header': [];\n 'desktop-column-row': [AccessPlanPendingChangeItem];\n };\n}\n\nconst AccessPlanPendingChangesCollection = templateOnlyComponent();\nexport default AccessPlanPendingChangesCollection;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Item::AccessPlanPendingChanges::Collection': typeof AccessPlanPendingChangesCollection;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n {{#if @pendingChangeCollection.hasPendingAccessPlanChanges}}\\n \\n

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

\\n\\n

{{t \\'generic.example\\'}} - {{tc this \\'accessAdded\\' htmlSafe=true}}

\\n

{{t \\'generic.example\\'}} - {{tc this \\'accessRemoved\\' htmlSafe=true}}

\\n\\n \\n <:mobile as |pc|>\\n
\\n

{{tc this \\'accessChanges\\'}}

\\n {{#each pc.accessPointsAdded as |desc|}}\\n \\n {{desc}}\\n \\n {{/each}}\\n {{#each pc.accessPointsRemoved as |desc|}}\\n \\n {{desc}}\\n \\n {{/each}}\\n
\\n \\n\\n <:desktop-column-header>\\n {{tc this \\'accessChanges\\'}}\\n \\n\\n <:desktop-column-row as |pc|>\\n {{#each pc.accessPointsAdded as |desc|}}\\n \\n {{desc}}\\n \\n {{/each}}\\n {{#each pc.accessPointsRemoved as |desc|}}\\n \\n {{desc}}\\n \\n {{/each}}\\n \\n \\n\\n {{#if this.showAllAccessUserWarning}}\\n

{{tc this \\'allAccessUserWarning\\'}}

\\n {{/if}}\\n
\\n {{/if}}\\n\\n {{#if @pendingChangeCollection.hasPendingPinCodeChanges}}\\n \\n

\\n {{tc this \\'pinCodeChangedDescription\\'}}\\n {{#if @permissions.isLinkedToActiveDirectory}}\\n {{tc this \\'activeDirectoryPinCodeChangeDescription\\'}}\\n {{/if}}\\n

\\n\\n \\n
\\n {{/if}}\\n\\n
\\n \\n
\\n
\\n\",{ moduleName: \"customer-site/components/access-control/access-plans/item/access-plan-pending-changes/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed, set } 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 { Registry as ServiceRegistry } from '@ember/service';\nimport type {\n getAccessControlPermissions,\n getAccessPlanPendingChanges\n} from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessPlanPendingChange from 'customer-site/models/access-control/access-plan-pending-change';\nimport type { AccessPlanPendingChangeItem } from './collection/index';\nimport './_style.scss';\n\nexport interface AccessPlanPendingChangesSignature {\n Element: HTMLDivElement;\n Args: {\n pendingChangeCollection: Awaited>;\n pendingChangesUpdated: VoidFunction;\n permissions: Awaited>;\n };\n}\n\n/**\n * Display a list of pending access plan changes for the user to accept or undo.\n */\n@intlPath({ path: 'access-control.access-plans.item.access-plan-pending-changes' })\nexport default class AccessPlanPendingChangesComponent extends Component {\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n\n /**\n * List of pending changes.\n */\n @alias('args.pendingChangeCollection.pendingChanges')\n pendingChanges?: AccessPlanPendingChangesSignature['Args']['pendingChangeCollection']['pendingChanges'];\n\n /**\n * Get pending changes for given properties.\n * For every change in the given AccessPlanPendingChanges, it awaits the given properties ('accessPointsAdded', 'accessPointsRemoved', 'accessPointsUpdated'),\n * then returns all the pending changes that have the specified properties.\n */\n private async getPendingChangesOfProperties(\n ...keys: ('accessPointsAdded' | 'accessPointsRemoved' | 'accessPointsUpdated')[]\n ): Promise {\n const results: AccessPlanPendingChange[] = [];\n\n await Promise.all(\n (this.pendingChanges?.slice() ?? []).map(async (pc) => {\n for (const n of keys) {\n if ((await pc[n]).length > 0) {\n results.push(pc);\n return;\n }\n }\n })\n );\n\n return results;\n }\n\n /**\n * Gets the relevant information for displaying access points in pending changes.\n */\n private getAccessPointsInfo(accessPoints: AccessControlAccessPoint[]): Promise {\n return Promise.all(\n accessPoints.map(async (accessPoint) => {\n const { name } = accessPoint;\n\n if (this.identityManager.isEnterprise) {\n return `${name} (${(await accessPoint.system).description})`;\n }\n\n return name;\n })\n );\n }\n\n private getActionOptions(selectedValue: number): BinaryListItem<{ v: boolean }>[] {\n return ['accept', 'undo'].map(\n (translationKey, id) =>\n new BinaryListItem({\n label: this.intl.t(`generic.${translationKey}`),\n state: id === selectedValue,\n props: {\n v: id === 0\n }\n })\n );\n }\n\n /**\n * List of pending access plan changes adapted to work with radio button input.\n */\n @computed('pendingAccessPlanChanges', 'identityManager.isEnterprise')\n get pendingAccessPlanChangeRows(): Promise {\n return this.pendingAccessPlanChanges.then((pendingChanges) =>\n Promise.all(\n pendingChanges.map(\n async ({\n id,\n userName,\n isActiveDirectoryUser,\n accessPointsAdded,\n accessPointsRemoved,\n acceptChanges\n }) => ({\n id,\n userName,\n isActiveDirectoryUser,\n accessPointsAdded: await this.getAccessPointsInfo(accessPointsAdded.slice()),\n accessPointsRemoved: await this.getAccessPointsInfo(accessPointsRemoved.slice()),\n actionOptions: this.getActionOptions(acceptChanges ? 0 : 1)\n })\n )\n )\n );\n }\n\n /**\n * List of pending pin code changes adapted to work with radio button input.\n */\n @computed('pendingPinCodeChanges')\n get pendingPinCodeChangeRows(): Promise {\n return this.pendingPinCodeChanges.then((pendingChanges) =>\n pendingChanges.map(({ id, userName, isActiveDirectoryUser, accessPointsUpdated, acceptChanges }) => ({\n id,\n userName,\n isActiveDirectoryUser,\n accessPointsUpdated,\n actionOptions: this.getActionOptions(acceptChanges && !isActiveDirectoryUser ? 0 : 1)\n }))\n );\n }\n\n /**\n * List of access plan pending changes.\n */\n @computed('pendingChanges.@each.{accessPointsAdded,accessPointsRemoved}')\n get pendingAccessPlanChanges(): Promise {\n return this.getPendingChangesOfProperties('accessPointsAdded', 'accessPointsRemoved');\n }\n\n /**\n * List of pin code pending changes.\n */\n @computed('pendingChanges.@each.accessPointsUpdated')\n get pendingPinCodeChanges(): Promise {\n return this.getPendingChangesOfProperties('accessPointsUpdated');\n }\n\n /**\n * Show warning for all access users\n */\n @computed('pendingChanges.[]')\n get showAllAccessUserWarning(): boolean {\n return !!this.pendingChanges?.slice().some(({ wasAllAccessUser }) => !!wasAllAccessUser);\n }\n\n /**\n * Change whether the pending change should be accepted or undone.\n */\n @action changeAction(\n pendingChange: AccessPlanPendingChangeItem,\n items: AccessPlanPendingChangeItem['actionOptions']\n ): void {\n const item = items.find(({ state }) => !!state);\n if (item) {\n const change = this.pendingChanges?.find(({ id }) => id === pendingChange.id);\n if (change) {\n set(change, 'acceptChanges', item.props.v);\n }\n }\n }\n\n /**\n * Confirm the changes.\n */\n @action\n confirmChanges(buttonAnimation: Promise): Promise {\n const { pendingChangeCollection } = this.args;\n\n return pendingChangeCollection\n .save()\n .then(() => {\n buttonAnimation.then(() => Promise.resolve());\n })\n .finally(() => {\n pendingChangeCollection.reload();\n this.args.pendingChangesUpdated();\n });\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Item::AccessPlanPendingChanges': typeof AccessPlanPendingChangesComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.hasAccessPlanLimitIssues}}\\n {{#if this.showLimitIssues}}\\n
\\n {{#if this.identityManager.isEnterprise}}\\n

{{tc this \\'descriptionEnterprise\\' locations=@aeroLocationNames}}

\\n {{else}}\\n

{{tc this \\'descriptionSingleSystem\\'}}

\\n {{/if}}\\n\\n
\\n {{#each this.accessPlanLimitIssues as |limitIssue|}}\\n
\\n \\n
\\n {{/each}}\\n
\\n\\n
\\n \\n
\\n
\\n {{/if}}\\n{{/if}}\\n\\n\\n\",{ moduleName: \"customer-site/components/access-control/access-plans/item/access-plan-limit-issues/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 { notEmpty } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport {\n EmberAccessControlUserEditAccessPlans,\n EmberEnterpriseAccessControlUserEditAccessPlans\n} from '../../../../../enums/CustomerPageUrl';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { AccessPlansIndexRouteModel } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport type AccessPlanLimitIssue from 'customer-site/models/access-control/access-plan-limit-issue';\nimport './_style.scss';\n\ninterface AccessPlanLimitIssuesSignature {\n Args: {\n limitIssues?: Awaited;\n aeroLocationNames?: string;\n };\n}\n\n/**\n * Display a list of users with access plan limit issues\n */\n@intlPath({ path: 'access-control/access-plans/item/access-plan-limit-issues' })\nexport default class AccessPlanLimitIssuesComponent extends Component {\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n /**\n * List of users with access plan limit issues.\n */\n @computed('args.limitIssues.[]')\n get accessPlanLimitIssues(): Awaited | AccessPlanLimitIssue[] {\n const { limitIssues } = this.args;\n return limitIssues ?? [];\n }\n\n /**\n * Are there pending access plan changes?\n */\n @notEmpty('accessPlanLimitIssues')\n declare hasAccessPlanLimitIssues: boolean;\n\n /**\n * Show the limit issues?\n */\n @tracked showLimitIssues = true;\n\n @action dismiss(): void {\n this.showLimitIssues = false;\n }\n\n @action editUserAccessPlans(contactId: number): void {\n const routeEnum = this.identityManager.isEnterprise\n ? EmberEnterpriseAccessControlUserEditAccessPlans\n : EmberAccessControlUserEditAccessPlans;\n this.contextManager.transitionToNativeRoute(routeEnum, String(contactId));\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Item::AccessPlanLimitIssues': typeof AccessPlanLimitIssuesComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:toolbar>\\n \\n <:items-count>\\n \\n {{t \\'access-control.access-plans.index.accessPlanCount\\' numAccessPlans=this.totalAccessPlansCount}}\\n \\n \\n\\n <:default>\\n {{#unless (media \\'isMobile\\')}}\\n
\\n \\n\\n \\n
\\n {{/unless}}\\n \\n \\n \\n\\n <:default as |PageViewContainer|>\\n\\n \\n \\n\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n\\n {{#if data.accessPlanPendingChanges.pendingChanges.length}}\\n
\\n \\n
\\n {{/if}}\\n\\n {{#if (and data.permissions.hasInternalBeta data.accessPlanLimitIssues.length)}}\\n
\\n \\n
\\n {{/if}}\\n\\n {{#if @isListView}}\\n {{!-- TODO: Use VerticalCollection for ListView as well --}}\\n
\\n \\n
\\n {{else}}\\n \\n {{/if}}\\n \\n\\n <:no-results>\\n \\n \\n
\\n\\n \\n\",{ moduleName: \"customer-site/components/access-control/access-plans/index-route/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\n\nimport type AccessPlansIndexRoute from 'customer-site/access-control/access-plans/index/route';\nimport type { AccessPlansIndexRouteModel } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport type { AccessPlansQueryParams } from 'customer-site/classes/access-control/access-plans/filtering-controller';\nimport type FilterManager from 'customer-site/classes/helpers/filter-manager';\nimport type { ResolvedModelFrom } from 'customer-site/utils/type-utils';\n\ntype AccessPlansQueryResult = Awaited & {\n meta?: {\n totalCount: number;\n };\n};\n\ninterface AccessControlAccessPlansIndexSignature {\n Args: {\n model: AccessPlansIndexRouteModel;\n filterAccessPlans: VoidFunction;\n updateViewMode: (isListView: boolean) => void;\n isListView?: boolean;\n filterParams?: AccessPlansQueryParams;\n filtersManager?: FilterManager;\n };\n}\n\nexport default class AccessControlAccessPlansIndexComponent extends Component {\n @tracked totalAccessPlansCount = 0;\n @tracked inFlight = true;\n\n @action\n dataLoaded(\n resolvedModel?: ResolvedModelFrom & {\n accessPlans: AccessPlansQueryResult;\n }\n ): void {\n this.totalAccessPlansCount = this.args.isListView\n ? resolvedModel?.accessPlans.length ?? 0\n : resolvedModel?.accessPlans?.meta?.totalCount ?? 0;\n this.inFlight = false;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::IndexRoute': typeof AccessControlAccessPlansIndexComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n\\n\\n\",{ moduleName: \"customer-site/components/access-control/access-plans/item/access-plan-icon-list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { sort } from '@ember/object/computed';\n\nimport './_style.scss';\nimport type ArrayProxy from '@ember/array/proxy';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\n\ninterface AccessPlanIconListSignature {\n Args: {\n accessPlans: AccessControlAccessPlanModel[] | ArrayProxy;\n };\n}\n\nexport default class AccessPlanIconList extends Component {\n sortName = ['name'];\n\n @sort('args.accessPlans', 'sortName')\n declare accessPlansToDisplay: AccessControlAccessPlanModel[];\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPlans::Item::AccessPlanIconList': typeof AccessPlanIconList;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n {{yield to=\\\"header\\\"}}\\n
\\n
\\n {{#if this.isExpanded}}\\n \\n {{else}}\\n \\n {{/if}}\\n
\\n
\\n{{#if this.isExpanded}}\\n
\\n {{yield to=\\\"body\\\"}}\\n
\\n{{/if}}\",{ moduleName: \"customer-site/components/access-control/access-points/collapsible-list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\n\nimport './_style.scss';\n\nexport interface AccessControlAccessPointsCollapsibleListSignature {\n Args: {\n /** Whether the list should start expanded or collapsed */\n isExpanded: boolean;\n };\n Blocks: {\n header: [];\n body: [];\n };\n}\n\nexport default class AccessControlAccessPointsCollapsibleList extends Component {\n @tracked isExpanded = this.args.isExpanded ?? true;\n\n @action\n toggleExpanded() {\n this.isExpanded = !this.isExpanded;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPoints::CollapsibleList': typeof AccessControlAccessPointsCollapsibleList;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck: Please convert this to use PageView. }}\\n\\n\\n \\n \\n\\n \\n \\n {{#if @showSystemName}}\\n \\n {{/if}}\\n \\n
\\n \\n \\n \\n {{#if data.accessPoint.isArmedUnchangeablePanel}}\\n \\n {{/if}}\\n
\\n\\n {{#if (and\\n data.accessPoint.isAccessControlDoor\\n (and (not data.accessPoint.isElevatorFloor) (not data.accessPoint.isElevatorReader)))}}\\n \\n {{#if (and data.permissions.showReaderBasedAntiPassback (not data.accessPoint.hasMiwaLock))}}\\n
\\n \\n \\n \\n
\\n {{#if data.accessPoint.readerAntiPassbackEnabled}}\\n
\\n \\n \\n \\n
\\n
\\n {{/if}}\\n {{/if}}\\n {{#if (and data.accessPoint.twoPersonAccessSupported data.permissions.additionalAccessSettingsEnabled) }}\\n
\\n \\n \\n \\n
\\n {{/if}}\\n {{/if}}\\n\\n {{!-- Access Plans --}}\\n \\n \\n\\n \\n
\\n\\n \\n
\\n
\\n\",{ moduleName: \"customer-site/components/access-control/access-points/edit/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\nimport type DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\nimport type { getAccessControlPermissions } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type { getPlanDetailTotals } from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessControlTimetable from 'customer-site/models/access-control/access-control-timetable';\n\nexport interface AccessControlAccessPointsEditSignature {\n Args: {\n model: {\n accessPoint: ADCAsyncStoreFindRecord;\n device?: Promise;\n timetables: ADCAsyncStoreFindAll;\n planDetailsTotals: ReturnType;\n permissions: ReturnType;\n };\n dataLoaded: ({ accessPoint }: { accessPoint: AccessControlAccessPoint }) => void;\n showSystemName: boolean;\n updateDeviceModel: (\n accessPoint: AccessControlAccessPoint,\n isTwoPerson: boolean,\n isDisabled: boolean,\n event: Event\n ) => void;\n antiPassbackUnits: DropdownSelectItem[];\n selectedAccessPlans: AccessControlAccessPlanModel[];\n setAccessPlans: (accessPlans: AccessControlAccessPlanModel[]) => void;\n saveAccessPoint: (accessPoint: AccessControlAccessPoint) => void;\n cancelEdit: () => void;\n };\n}\n\nconst AccessControlAccessPointsEdit = templateOnlyComponent();\nexport default AccessControlAccessPointsEdit;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPoints::Edit': typeof AccessControlAccessPointsEdit;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:toolbar>\\n \\n <:location-select-button>\\n {{#if (and (is-enterprise) this.identityManager.identityModel.hasCommercialInternalBetaAccess)}}\\n \\n \\n {{/if}}\\n \\n\\n <:items-count>\\n \\n {{#if this.useTabUI}}\\n {{get (get this.tabs this.activeTabId) \\'allItemsText\\'}}\\n {{else}}\\n {{t \\'components.access-control.access-points.index-route.accessPointsCount\\' numPoints=this.totalCount}}\\n {{/if}}\\n \\n \\n\\n <:sub-bar>\\n {{#if this.useTabUI}}\\n
\\n {{#each this.tabs as |tab idx|}}\\n \\n {{/each}}\\n
\\n {{/if}}\\n \\n \\n \\n\\n <:default as |PageViewContainer|>\\n {{#if this.useTabUI}}\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n {{#let (get this.tabs this.activeTabId) as |tab|}}\\n \\n \\n \\n\\n \\n\\n \\n {{/let}}\\n \\n\\n\\n \\n {{else}}\\n {{#each this.tabs as |section|}}\\n

{{section.title}}

\\n \\n {{#each section.items as |item|}}\\n \\n {{/each}}\\n \\n {{/each}}\\n {{/if}}\\n\\n \\n\\n\\n\",{ moduleName: \"customer-site/components/access-control/access-points/index-route/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { isPresent } from '@ember/utils';\nimport { task } from 'ember-concurrency';\nimport { General } from 'customer-site/enums/AccessPlanType';\nimport AvailableSystemItemsFilteringEnum from 'customer-site/enums/AvailableSystemItemsFilteringEnum';\nimport { intlPath } from '@adc/i18n/path';\nimport { AccessCardReader, Partition, ZwaveLock } from '../../../../enums/DeviceType';\n\nimport './_style.scss';\nimport type { PageViewSignature } from '@adc/ui-components/components/page-view';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { AwaitedObject } from 'adc-ember-promise-helpers';\nimport type FilteringAccessPointsRoute from 'customer-site/classes/access-control/access-points/filtering-route';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\nimport type { AccessControlFilterBarSignature } from '../../filter-bar/index';\n\ntype DeviceType = typeof AccessCardReader | typeof Partition | typeof ZwaveLock;\n\nconst ACCESS_POINTS_BATCH_SIZE = 25;\nconst DEVICE_SECTION_TITLES = {\n [AccessCardReader]: 'generic.doors',\n [Partition]: 'generic.devices.panels',\n [ZwaveLock]: 'generic.devices.locks'\n};\nconst DEVICE_ALL_ITEMS_TEXT = {\n [AccessCardReader]: 'numDoors',\n [Partition]: 'numPanels',\n [ZwaveLock]: 'numLocks'\n};\n\ninterface AccessPointsTab {\n title: string;\n allItemsText: string;\n items: ReturnType>;\n loadItems: () => Promise;\n index: number;\n totalCount: number;\n type: DeviceType;\n}\n\ntype AccessPointsQueryResult = Awaited> & {\n meta?: {\n totalCount: number;\n totalCountOfType: number;\n };\n};\n\nexport interface AccessControlAccessPointsIndexRouteSignature {\n Element: PageViewSignature>['Element'];\n Args: {\n model: ModelFrom;\n filtersManager: AccessControlFilterBarSignature['Args']['filtersManager'];\n };\n}\n\n@intlPath({ path: 'access-control/access-points/index-route' })\nexport default class AccessControlAccessPointsIndexRoute extends Component {\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare store: ServiceRegistry['store'];\n\n filterType = AvailableSystemItemsFilteringEnum.AccessPoints;\n\n @tracked tabs: AccessPointsTab[] = [];\n @tracked isLocationSelectionActionSheetOpen = false;\n @tracked totalCount = 0;\n @tracked useTabUI = true;\n @tracked params: { search: string; locations?: string[] } = { search: '' };\n @tracked locations?: string[];\n @tracked isInitialLoad = true;\n @tracked activeTabId = 0;\n\n @action dataLoaded(resolvedModel?: AwaitedObject>): void {\n const { search = '', locations } = this.params,\n { search: newSearch = '', locations: newLocations } = resolvedModel?.qp ?? {};\n\n if (!resolvedModel?.permissions.useAccessPointsPaginationEnhancements || !this.identityManager.isEnterprise) {\n this.useTabUI = false;\n }\n\n this.params = { search: newSearch, locations: newLocations };\n\n if (this.isInitialLoad || search !== newSearch || locations !== newLocations) {\n // If QP have changed, reset tabs\n this.updateTabs.perform();\n this.isInitialLoad = false;\n }\n }\n\n loadItems = task({ enqueue: true }, async (tab: AccessPointsTab) => {\n await tab.loadItems();\n });\n\n updateTabs = task({ restartable: true }, async () => {\n const tabs: AccessPointsTab[] = Array(3),\n { search = '', locations } = this.params,\n { store, intl } = this;\n\n // If the useAcessPointsEnhancements FT is off, don't attempt to load in batches.\n const loadAllItems = !this.useTabUI;\n\n // Reset totalCount\n this.totalCount = 0;\n\n // Load initial batch of each access point type\n await Promise.all(\n [Partition, ZwaveLock, AccessCardReader].map(async (deviceType: DeviceType, idx) => {\n // Load batch of (or all) access points\n const queryResult = await this.loadAccessPointsOfType(\n store,\n deviceType,\n 0,\n loadAllItems ? undefined : ACCESS_POINTS_BATCH_SIZE,\n search,\n locations\n ),\n items = A(queryResult?.slice());\n\n // Set the total number of items to be sum of each device type\n // Not using meta.totalCount because that includes elevator floors\n this.totalCount += queryResult?.length ?? 0;\n\n const totalCountOfType = queryResult?.meta?.totalCountOfType ?? 0;\n\n // Create tab item\n const tab: AccessPointsTab = {\n title: intl.t(DEVICE_SECTION_TITLES[deviceType]),\n type: deviceType,\n allItemsText: intl.tc(this, DEVICE_ALL_ITEMS_TEXT[deviceType], {\n numItems: totalCountOfType\n }),\n items,\n totalCount: totalCountOfType,\n loadItems: async () => {},\n index: queryResult?.length ?? 0\n };\n\n tab.loadItems = this.getLoadItemsFn(tab);\n tabs[idx] = tab;\n })\n );\n\n // Only use tabs which actually have items (unless we are already showing that tab)\n const visibleTabs = this.tabs.map(({ type }) => type);\n this.tabs = tabs.filter((tab) => tab.items.length || visibleTabs.includes(tab.type));\n });\n\n /**\n * Returns the async function used to load items into the given tab.\n */\n getLoadItemsFn(tab: AccessPointsTab): () => Promise {\n const { search = '', locations } = this.params ?? {};\n\n return async () => {\n // Load more items if we haven't reached the last index\n if (tab.index < tab.totalCount) {\n const queryResult = await this.loadAccessPointsOfType(\n this.store,\n tab.type,\n tab.index,\n ACCESS_POINTS_BATCH_SIZE,\n search,\n locations\n );\n\n // Add items to the corresponding tab and increment the index\n if (queryResult) {\n tab.items.pushObjects(queryResult.slice());\n tab.index = tab.index + queryResult.length;\n }\n }\n };\n }\n\n /**\n * Closes the location selection action sheet and reloads the items based\n * on the currently selected locations/groups.\n */\n @action closeLocationSelectionActionSheet(result?: { selectedIds: string[] }): void {\n this.isLocationSelectionActionSheetOpen = false;\n\n if (isPresent(result?.selectedIds)) {\n this.args.filtersManager?.submitFilterValues({\n locations: result?.selectedIds\n });\n }\n }\n\n displayAddlAccessIcon(\n accessPoint: AccessControlAccessPoint,\n permissions: Awaited['permissions']>\n ): boolean | undefined {\n return (\n permissions.additionalAccessSettingsEnabled &&\n (accessPoint.twoPersonAccessEnabled || accessPoint.readerAntiPassbackEnabled)\n );\n }\n\n async loadAccessPointsOfType(\n store: ServiceRegistry['store'],\n deviceType: DeviceType,\n startIndex = 0,\n batchSize?: number,\n searchString = '',\n scopeIds?: string[],\n accessPlanType = General\n ): Promise {\n return store.query('access-control/access-control-access-point', {\n searchString,\n scopeIds,\n accessPlanType,\n startIndex,\n batchSize,\n deviceType\n });\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPoints::IndexRoute': typeof AccessControlAccessPointsIndexRoute;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n {{#if (and @permissions.additionalAccessSettingsEnabled (or @accessPoint.twoPersonAccessEnabled @accessPoint.readerAntiPassbackEnabled))}}\\n \\n {{/if}}\\n
\\n

{{@accessPoint.name}}

\\n {{#if @showSystemName}}\\n

{{get @accessPoint.system \\'description\\'}}

\\n {{/if}}\\n
\\n
\\n\\n {{#unless (media \\'isMobile\\')}}\\n \\n {{#if this.accessPlans}}\\n \\n {{/if}}\\n {{#if this.loadAccessPlans.isRunning}}\\n \\n {{/if}}\\n {{/unless}}\\n\\n \\n
\",{ moduleName: \"customer-site/components/access-control/access-points/index-route/list-item/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport {\n EmberAccessControlAccessPointEdit,\n EmberEnterpriseAccessControlAccessPointEdit\n} from 'customer-site/enums/CustomerPageUrl';\n\nimport './_style.scss';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessControlPermissionsCollection from 'customer-site/models/access-control/access-control-permissions-collection';\n\ninterface AccessPointListItemSignature {\n Element: HTMLDivElement;\n Args: {\n accessPoint: AccessControlAccessPoint;\n permissions?: AccessControlPermissionsCollection;\n showSystemName?: boolean;\n editAction?: VoidFunction;\n };\n}\n\nexport default class AccessPointListItem extends Component {\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare navigation: ServiceRegistry['navigation'];\n\n @tracked accessPlans?: Awaited;\n\n @action editAccessPoint(): void {\n const routeEnum = this.identityManager.isEnterprise\n ? EmberEnterpriseAccessControlAccessPointEdit\n : EmberAccessControlAccessPointEdit;\n this.navigation.transitionToRouteId(routeEnum, this.args.accessPoint.id);\n }\n\n loadAccessPlans = task({ restartable: true }, async () => {\n this.accessPlans = await this.args.accessPoint.accessPlans;\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::AccessPoints::IndexRoute::ListItem': typeof AccessPointListItem;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n\\n {{yield to=\\\"location-select-button\\\"}}\\n\\n {{#if @showDropdown}}\\n \\n {{/if}}\\n\\n {{#if (and @filtersManager.hasAppliedFilters (not @hideFiltersCount))}}\\n
\\n

{{t \\'generic.appliedFiltersCount\\' numFilters=@filtersManager.appliedFilters.length}}

\\n
\\n {{/if}}\\n\\n {{#unless (media \\'isMobile\\')}}\\n {{yield to=\\\"items-count\\\"}}\\n {{/unless}}\\n\\n {{#if @filtersManager.hasAppliedFilters}}\\n \\n {{/if}}\\n\\n
\\n\\n {{yield}}\\n\\n {{#if @showActionButtons}}\\n {{#if (media \\'isMobile\\')}}\\n \\n \\n \\n {{else}}\\n {{#each this.visibleButtons as |action|}}\\n \\n {{/each}}\\n\\n {{#if this.overflowButtons}}\\n \\n \\n \\n {{/if}}\\n {{/if}}\\n {{/if}}\\n \\n\\n {{#if (has-block \\\"sub-bar\\\")}}\\n {{yield to=\\\"sub-bar\\\"}}\\n {{else}}\\n
\\n \\n
\\n {{/if}}\\n
\",{ moduleName: \"customer-site/components/access-control/filter-bar/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 { filterBy } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { runTask } from 'ember-lifeline';\nimport { ViewAccessPlan } from 'customer-site/enums/AccessPlanPropertyEdit';\nimport { AllDeviceAccess, General } from 'customer-site/enums/AccessPlanType';\nimport {\n EmberAccessControlAccessPlanNew,\n EmberAccessControlHolidaysEdit,\n EmberAccessControlLockdownConfiguration,\n EmberEnterpriseAccessControlAccessPlanNew,\n EmberEnterpriseAccessControlHolidaysEdit,\n EmberEnterpriseAccessControlLockdownConfiguration\n} from 'customer-site/enums/CustomerPageUrl';\nimport DropdownActionItem from '@adc/ui-components/utils/dropdown-action-item';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { AccessPlansIndexRouteModel } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport type FilterManager from 'customer-site/classes/helpers/filter-manager';\nimport type BaseFilter from 'customer-site/classes/helpers/filters/base-filter';\nimport type CustomerSiteIntlService from 'customer-site/services/intl';\nimport './_style.scss';\n\nexport interface AccessControlFilterBarSignature {\n Element: HTMLDivElement;\n Args: {\n showDropdown?: boolean;\n hideFiltersCount?: boolean;\n filtersManager?: FilterManager;\n showActionButtons?: boolean;\n accessPlans?: Awaited;\n permissions?: Awaited;\n isListView?: boolean;\n updateViewMode?: (val: boolean) => void;\n };\n Blocks: {\n default: [];\n 'sub-bar': [];\n 'location-select-button': [];\n 'items-count': [];\n };\n}\n\nclass AccessControlFilterBarButton extends DropdownActionItem {\n isPrimary?: boolean;\n onlyOverflow?: boolean;\n}\n\nexport default class AccessControlFilterBar extends Component {\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare intl: CustomerSiteIntlService;\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare media: ServiceRegistry['media'];\n\n @tracked filterVisible = false;\n @tracked haveSearched = false;\n\n /**\n * Set focus to search bar only if have inputed a search.\n */\n @action\n focusSearchBar(): void {\n runTask(\n this,\n () => {\n if (this.haveSearched) {\n document.getElementById('search-input')?.focus();\n }\n },\n 0\n );\n }\n\n /**\n * The search filter.\n */\n @computed('args.filtersManager.filters')\n get searchFilter(): BaseFilter | undefined {\n return this.args.filtersManager?.getFilterByName('search');\n }\n\n @action\n applySearchFilter(value: any): void {\n if (this.searchFilter && typeof this.searchFilter.apply === 'function') {\n this.searchFilter.apply(value);\n }\n this.haveSearched = true;\n }\n\n /**\n * Reset filter values.\n */\n @action\n resetFilters(): void {\n this.args.filtersManager?.resetFilterValues({ page: 1 });\n }\n\n /**\n * Whether the filter panel is visible or not.\n */\n @action\n toggleFilter(): void {\n this.filterVisible = !this.filterVisible;\n }\n\n @filterBy('buttons', 'onlyOverflow', false)\n declare visibleButtons: AccessControlFilterBarButton[];\n\n @filterBy('buttons', 'onlyOverflow', true)\n declare overflowButtons: AccessControlFilterBarButton[];\n\n @computed(\n 'args.{accessPlans,permissions,showActionButtons,updateViewMode}',\n 'identityManager.{isEnterprise,identityModel.accessControlLockdownEnabled}',\n 'media.isMobile'\n )\n get buttons(): AccessControlFilterBarButton[] {\n const { updateViewMode, permissions, accessPlans, showActionButtons } = this.args,\n actions = [];\n\n if (showActionButtons) {\n if (\n !this.identityManager.isEnterprise ||\n this.navigation.getRouteItem(EmberEnterpriseAccessControlHolidaysEdit)\n ) {\n actions.push([\n this.intl.t('access-control.access-plans.index.manageHolidays'),\n () => this.manageHolidays()\n ]);\n }\n\n if (permissions?.canModifyUserAccess) {\n actions.push([\n this.intl.t('access-control.access-plans.index.addNewPlan'),\n () => this.addNewAccessPlan(),\n true,\n false\n ]);\n\n // If there are no all-access plan, allow the user to create one.\n if (!accessPlans?.isAny('isAllAccess')) {\n actions.push([\n this.intl.t('access-control.access-plans.index.addAllAccessPlan'),\n () => this.addNewAccessPlan(true)\n ]);\n }\n }\n\n if (this.identityManager.identityModel?.accessControlLockdownEnabled) {\n actions.push([\n this.intl.t('access-control.access-plans.index.lockdownConfiguration'),\n () => this.systemModeConfigurationTransition()\n ]);\n }\n\n // if it's mobile add view mode buttons to actions\n if (this.media.isMobile && updateViewMode) {\n actions.push([this.intl.t('access-control.access-plans.index.cardView'), () => updateViewMode(false)]);\n actions.push([this.intl.t('access-control.access-plans.index.listView'), () => updateViewMode(true)]);\n }\n }\n\n return actions.map(\n ([name, action, isPrimary = false, onlyOverflow = true]: [string, () => void, boolean, boolean]) => {\n return AccessControlFilterBarButton.create({\n name,\n action,\n isPrimary,\n onlyOverflow\n });\n }\n );\n }\n\n /**\n * Transitions the app to the view for managing holidays\n */\n @action manageHolidays(): void {\n const routeId = this.identityManager.isEnterprise\n ? EmberEnterpriseAccessControlHolidaysEdit\n : EmberAccessControlHolidaysEdit;\n this.contextManager.transitionToNativeRoute(routeId);\n }\n\n /**\n * Transitions the app to the view for creating a new Access Group.\n */\n @action addNewAccessPlan(isAllAccess = false): void {\n const routeId = this.identityManager.isEnterprise\n ? EmberEnterpriseAccessControlAccessPlanNew\n : EmberAccessControlAccessPlanNew,\n planType = isAllAccess ? AllDeviceAccess : General,\n property = isAllAccess ? ViewAccessPlan : undefined;\n\n this.contextManager.transitionToNativeRoute(routeId, undefined, {\n property,\n planType\n });\n }\n\n /**\n * Transition the app to the view for Lockdown Configuration\n */\n @action systemModeConfigurationTransition(): void {\n const routeId = this.identityManager.isEnterprise\n ? EmberEnterpriseAccessControlLockdownConfiguration\n : EmberAccessControlLockdownConfiguration;\n\n this.contextManager.transitionToNativeRoute(routeId);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::FilterBar': typeof AccessControlFilterBar;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{!-- @glint-expect-error class should be an html attribute once we convert to PageView, please convert. --}}\\n \\n \\n\\n \\n \\n \\n \\n\\n \\n\\n {{#if this.hasHolidays}}\\n \\n \\n \\n \\n \\n \\n {{#if (media \\'isMobile\\')}}\\n \\n {{/if}}\\n \\n {{#unless (media \\'isMobile\\')}}\\n \\n
\\n \\n
\\n \\n {{/unless}}\\n
\\n {{else}}\\n

{{t \\'access-control.holidays.edit.noHolidays\\'}}

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

\\n {{cell.row.name}}\\n

\\n
\\n \\n \\n \\n \\n \\n
\\n\\n \\n
\\n\\n \\n
\\n
\",{ moduleName: \"customer-site/components/access-control/holidays/access-control-holiday-page/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, computed, set } from '@ember/object';\nimport { notEmpty } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport isSameDay from 'date-fns/isSameDay';\n\nimport type ContextManager from '@adc/app-infrastructure/services/context-manager';\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 Store from '@ember-data/store';\nimport type AccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlHoliday from 'customer-site/models/access-control/access-control-holiday';\nimport type AccessControlPermissionsCollection from 'customer-site/models/access-control/access-control-permissions-collection';\nimport './_style.scss';\n\ninterface AccessControlHolidayPageArgs {\n holidays: ADCAsyncStoreFindAll;\n accessPlans: ADCAsyncStoreFindAll;\n permissions: ADCAsyncStoreFindRecord;\n}\n\ninterface HolidayAccessPlan extends Pick {\n isSelected: boolean;\n model: AccessPlanModel;\n}\n\n@intlPath({ path: 'access-control.holidays.access-control-holiday-page' })\nexport default class AccessControlHolidayPage extends Component {\n @service declare contextManager: ContextManager;\n @service declare modals: ModalService;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationManager;\n @service declare store: Store;\n\n resolvedModel?: {\n holidays: Awaited;\n accessPlans: Awaited;\n permissions: Awaited;\n };\n\n @computed('resolvedModel.accessPlans')\n get allAccessPlans(): HolidayAccessPlan[] {\n return ((this.resolvedModel?.accessPlans ?? []) as AccessPlanModel[]).map((ap) => {\n const { id, name, colorName, iconName } = ap;\n const isSelected = ap.pausedOnHolidays;\n\n return {\n id,\n name,\n colorName,\n iconName,\n isSelected,\n model: ap\n };\n });\n }\n\n @computed('allAccessPlans.@each.isSelected')\n get selectedAccessPlanIds(): string[] {\n return this.allAccessPlans.filterBy('isSelected').mapBy('id');\n }\n\n @tracked\n holidaySaveErrorMessage = '';\n\n @computed('resolvedModel.holidays.@each.{name,date,isDeleted}')\n get currentHolidays(): AccessControlHoliday[] {\n return (this.resolvedModel?.holidays ?? ([] as AccessControlHoliday[])).rejectBy('isDeleted').sortBy('date');\n }\n\n @computed('resolvedModel.holidays.@each.hasDirtyAttributes', 'allAccessPlans.@each.{isSelected,model}')\n get hasUnsavedChanges(): boolean {\n const holidays = this.resolvedModel?.holidays ?? [];\n return (\n !!holidays.findBy('hasDirtyAttributes') ||\n !!holidays.findBy('isDeleted') ||\n !!this.allAccessPlans.find((ap) => ap.model.pausedOnHolidays !== ap.isSelected)\n );\n }\n\n @computed('hasUnsavedChanges', 'resolvedModel.permissions.canModifyUserAccess')\n get saveButtonEnabled(): boolean {\n return this.hasUnsavedChanges && !!this.resolvedModel?.permissions.canModifyUserAccess;\n }\n\n @notEmpty('currentHolidays')\n declare hasHolidays: boolean;\n\n @action addNewHoliday(): void {\n this.store.createRecord('access-control/access-control-holiday', {\n name: '',\n date: new Date(),\n canBeDeleted: true,\n canBeModified: true\n });\n }\n\n @action updateSelectedAccessPlans(accessPlan: HolidayAccessPlan): void {\n set(accessPlan, 'isSelected', !accessPlan.isSelected);\n }\n\n /**\n * Calls a helper method to save the holidays and set the save button's promise so it can change state correctly.\n */\n @action async saveHoliday(\n holidays: AccessControlHoliday[],\n accessPlans: AccessPlanModel[]\n ): Promise {\n this.holidaySaveErrorMessage = '';\n\n const invalidHolidayCheck = this.checkInvalidHolidays();\n\n // Only make API calls for holidays that were modified\n // If holiday.get('isDeleted') is true, DELETE will be called\n // Otherwise if holiday.get('isNew') is true, POST will be called\n if (invalidHolidayCheck === 1) {\n this.holidaySaveErrorMessage = this.intl.t('access-control.holidays.edit.missingHolidayName');\n }\n\n if (invalidHolidayCheck === 2) {\n this.holidaySaveErrorMessage = this.intl.t('access-control.holidays.edit.sameHolidayDate');\n }\n\n if (this.holidaySaveErrorMessage !== '') {\n this.notificationManager.addError(this.holidaySaveErrorMessage);\n return Promise.reject();\n }\n\n const { store } = this;\n\n // get all holidays that have been changed but not deleted\n // delete the old record and add a new one\n // should eventually switch to a PUT method but for now keeping DELETE and POST\n const newHolidays = holidays\n .filterBy('hasDirtyAttributes')\n .rejectBy('isDeleted')\n .map((holiday: AccessControlHoliday) => {\n const { name, date } = holiday;\n holiday.deleteRecord();\n\n return this.store.createRecord('access-control/access-control-holiday', {\n name: name,\n date: date,\n canBeDeleted: true,\n canBeModified: true\n });\n });\n\n // delete all holidays that have been marked for deletion\n await Promise.all(holidays.filterBy('isDeleted').map((holiday) => holiday.save()));\n\n // save the new ones\n await Promise.all(newHolidays.invoke('save'));\n\n const allHolidays = await store.findAll('access-control/access-control-holiday'); // todo check this logic with adding all of these holidays\n\n return Promise.all(\n accessPlans.map((accessPlan) => {\n // selectedAccessPlans.includes(accessPlan) = paused = no access on holidays\n accessPlan.set('holidays', this.selectedAccessPlanIds.includes(accessPlan.id) ? allHolidays : []);\n return accessPlan.save();\n })\n );\n }\n\n private checkInvalidHolidays(): number {\n const dates: Date[] = [];\n let returnVal = 0;\n this.currentHolidays.forEach((holiday) => {\n if (holiday.name.trim().length === 0) {\n returnVal = 1;\n return;\n }\n\n if (dates.any((date) => isSameDay(date, holiday.date))) {\n returnVal = 2;\n return;\n }\n\n dates.push(holiday.date);\n });\n\n return returnVal;\n }\n\n @action deleteHoliday(holiday: AccessControlHoliday): void {\n if (!holiday) {\n return;\n }\n\n const holidayName = holiday.name,\n { intl } = this;\n\n // Create confirmation dialog promise\n this.modals.showConfirmationDialog(\n intl.t('access-control.holidays.edit.deleteHoliday'),\n intl.t('access-control.holidays.edit.confirmDelete', { holidayName }),\n {\n text: intl.t('generic.delete'),\n css: 'btn-color-danger',\n // Set isDeleted to true but won't make the API call to DELETE\n action: () => {\n holiday.deleteRecord();\n }\n }\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Holidays::AccessControlHolidayPage': typeof AccessControlHolidayPage;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#if @filterProperties.locationFilterProperties}}\\n \\n \\n {{/if}}\\n {{#if @filterProperties.userTypeFilters}}\\n \\n {{/if}}\\n \\n\\n\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/filter-toolbar/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 { SELECTED } from '@adc/ui-components/utils/checkbox-tree-item';\n\nimport type CheckboxTreeItem from '@adc/ui-components/utils/checkbox-tree-item';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { SelectionResult } from 'customer-site/components/action-sheets/enterprise/locations/location-selection/helpers/selection-items';\nimport type { ScrollingListSelectFilterProperties, ScrollingListSelectFilters } from '../index';\n\ninterface FilterToolbarSignature {\n Args: {\n toggleSelectAll: (selectAll: boolean) => Promise;\n filterProperties: ScrollingListSelectFilterProperties;\n applyFilters: (filters: ScrollingListSelectFilters) => void;\n };\n}\n\nexport default class FilterToolbarComponent extends Component {\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n @tracked isLocationSelectionActionSheetOpen = false;\n @tracked locationSelectionResult?: SelectionResult;\n @tracked search = '';\n @tracked userTypes?: string[];\n\n @action searchValueChange(search: string): void {\n this.search = search;\n this.applyFilters();\n }\n\n /**\n * @param {SelectionResult} result: contains the ids of selected locations and groups,\n * whether all locations/groups were selected, and the close function\n */\n @action closeLocationSelectionActionSheet(result: SelectionResult): void {\n this.isLocationSelectionActionSheetOpen = false;\n this.locationSelectionResult = result ?? this.locationSelectionResult;\n this.applyFilters();\n }\n\n @action applyFilters(): void {\n const { search, locationSelectionResult, userTypes } = this;\n this.args.applyFilters({\n search,\n locationSelectionResult,\n userTypes\n });\n }\n\n @action userTypeFilterChange(userTypeFilters: CheckboxTreeItem[]): void {\n const selectedItems = userTypeFilters.filter((item) => item.state === SELECTED);\n\n // If every option is selected, we keep the parameter set to \"undefined\"\n this.userTypes =\n selectedItems.length === userTypeFilters.length ? undefined : selectedItems.map((item) => item.value);\n\n // Apply filters to reload data\n this.applyFilters();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::FilterToolbar': typeof FilterToolbarComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n {{yield item}}\\n \\n {{#if @isLoading}}\\n \\n {{/if}}\\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/items-list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { A } from '@ember/array';\nimport type ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\n\ntype MutableItemArray = ReturnType>;\n\ninterface ItemsListSignature {\n Args: {\n items: MutableItemArray;\n loadItems: () => Promise;\n isLoading?: boolean;\n bufferSize?: number;\n };\n Blocks: {\n default: [ScrollingListSelectItem];\n };\n}\n\nconst SelectedItemsListComponent = templateOnlyComponent();\nexport default SelectedItemsListComponent;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::ItemsList': typeof SelectedItemsListComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/list-item/nested-checkbox/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\n\nimport type { CheckboxTreeSignature } from '@adc/ui-components/components/checkbox-tree';\nimport type CheckboxTreeItem from '@adc/ui-components/utils/checkbox-tree-item';\n\ninterface ScrollingListSelectNestedCheckboxItemSignature {\n Args: {\n item: CheckboxTreeItem;\n toggleSelect: (item: CheckboxTreeItem) => void;\n };\n}\n\nexport default class ScrollingListSelectNestedCheckboxItemComponent extends Component {\n get items(): CheckboxTreeItem[] {\n return [this.args.item];\n }\n\n get toggleSelectFn(): CheckboxTreeSignature['Args']['items-changed'] {\n return (items: CheckboxTreeItem[]) => {\n if ((items?.length ?? 0 > 0) && items[0]) {\n this.args.toggleSelect(items![0]);\n }\n };\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::ListItem::NestedCheckbox': typeof ScrollingListSelectNestedCheckboxItemComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
\\n
\\n
{{@item.name}}
\\n {{#if @options.showSystem}}\\n \\n
{{coalesce description (t \\'generic.enterprise\\')}}
\\n
\\n {{/if}}\\n
\\n {{#if (and @options.showCredentialCount (math \\'gt\\' this.accessCardsCount 1)) }}\\n {{#if (math \\'gt\\' this.numCredentialsWarning 0)}}\\n
\\n {{#unless @options.showOnlyWarningIcon}}\\n
\\n {{ t \\'components.access-control.access-plans.edit.users.credentialCount\\' count=this.accessCardsCount}}\\n
\\n {{/unless}}\\n \\n
\\n {{else}}\\n
\\n {{#unless @options.showOnlyWarningIcon}}\\n
\\n {{ t \\'components.access-control.access-plans.edit.users.credentialCount\\' count=this.accessCardsCount}}\\n
\\n {{/unless}}\\n \\n
\\n {{/if}}\\n {{/if}}\\n {{#if @item.description}}\\n

{{@item.description}}

\\n {{/if}}\\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/list-item/label/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\n\nimport type ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\n\ntype ItemModel = (AccessControlUser | AccessControlAccessPoint) & {\n mobileCredentials?: AccessControlUser['mobileCredentials'];\n accessCards?: AccessControlUser['accessCards'];\n systemGroup?: AccessControlUser['systemGroup'];\n};\n\nexport interface ScrollingListItemOptions {\n showCredentialCount?: boolean;\n showSystem?: boolean;\n showSystemGroup?: boolean;\n showOnlyWarningIcon?: boolean;\n}\n\ninterface ScrollingListSelectItemLabelSignature {\n Args: {\n item: ScrollingListSelectItem & {\n model?: ItemModel;\n };\n options: ScrollingListItemOptions;\n };\n}\n\nexport default class ScrollingListSelectItemLabel extends Component {\n get accessCardsCount(): number {\n return this.args.item.model?.hasMany('accessCards').ids().length ?? 0;\n }\n\n get mobileCredentialsCount(): number {\n return this.args.item.model?.mobileCredentials?.length ?? 0;\n }\n\n @computed('accessCardsCount', 'mobileCredentialsCount')\n get numCredentialsWarning(): number {\n return this.accessCardsCount - this.mobileCredentialsCount;\n }\n\n @computed('args.item.model.{system,systemGroup}', 'args.options.showSystemGroup')\n get description(): Promise {\n return (async () => {\n const { item, options } = this.args;\n\n if (item.systemDescription) {\n return item.systemDescription;\n }\n\n const system = await item.model?.system,\n systemGroup = await item.model?.systemGroup;\n\n return system?.description ?? (options.showSystemGroup ? systemGroup?.description : undefined);\n })();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::ListItem::Label': typeof ScrollingListSelectItemLabel;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n \\n \\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/list-item/checkbox/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { selectItems } from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\n\nimport type ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\n\ninterface SelectableItem {\n isSelected: boolean;\n}\n\ninterface CheckboxOptions {\n showCredentialCount?: boolean;\n showSystem?: boolean;\n showSystemGroup?: boolean;\n}\n\ninterface CheckboxItemSignature {\n Args: {\n item: ScrollingListSelectItem;\n toggleSelect: (item: SelectableItem) => void;\n options: CheckboxOptions;\n };\n}\n\nexport default class ScrollingListSelectCheckboxItemComponent extends Component {\n @action toggleItem(item: ScrollingListSelectItem): void {\n selectItems([item], !item.isSelected);\n this.args.toggleSelect(item);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::ListItem::Checkbox': typeof ScrollingListSelectCheckboxItemComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if @selectedItemsTitle}}\\n

{{@selectedItemsTitle}}

\\n{{/if}}\\n
\\n
\\n {{t \\'generic.xOfY\\'\\n x=@selectedItemsCount\\n y=@totalItemsCount\\n }}\\n
\\n
\\n \\n
\\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/selected-items-toolbar/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\ninterface SelectedItemsToolbarSignature {\n Args: {\n selectedItemsCount: number;\n totalItemsCount: number;\n toggleSelectAll: (selectAll: boolean) => Promise;\n selectedItemsTitle?: string;\n };\n}\n\nconst SelectedItemsToolbarComponent = templateOnlyComponent();\nexport default SelectedItemsToolbarComponent;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::SelectedItemsToolbar': typeof SelectedItemsToolbarComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n
\\n \\n \\n
\\n \\n {{#if @isLoading}}\\n \\n {{/if}}\\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/selected-items-list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { selectItems } from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\n\nimport type { A } from '@ember/array';\nimport type ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\nimport type { ScrollingListItemOptions } from '../list-item/label/index';\n\ntype MutableItemArray = ReturnType>;\n\ninterface SelectedItemsListSignature {\n Args: {\n selectedItems: MutableItemArray;\n unselectItem: (item: ScrollingListSelectItem) => void;\n loadItems?: () => Promise;\n isLoading?: boolean;\n options: ScrollingListItemOptions;\n };\n Blocks: {\n default: [ScrollingListSelectItem];\n };\n}\n\nexport default class SelectedItemsListComponent extends Component {\n get options(): ScrollingListItemOptions {\n const { showSystem, showSystemGroup, showCredentialCount } = this.args.options;\n return {\n showSystem,\n showSystemGroup,\n showCredentialCount,\n showOnlyWarningIcon: true\n };\n }\n\n @action unselectItem(item: ScrollingListSelectItem): void {\n selectItems([item], false);\n this.args.unselectItem(item);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect::SelectedItemsList': typeof SelectedItemsListComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n
\\n {{#unless (or (media \\'isMobile\\') (not @title))}}\\n

{{@title}}

\\n {{/unless}}\\n \\n \\n {{#if item.hasSubitems}}\\n \\n {{else}}\\n \\n {{/if}}\\n {{#if item.endPerformanceMonitorAfterRender}}\\n {{#if @performanceMonitor}}\\n \\n {{/if}}\\n\\n {{/if}}\\n \\n
\\n {{#unless (or (media \\'isMobile\\') (not @loadSelectedItems))}}\\n
\\n \\n \\n
\\n {{/unless}}\\n
\",{ moduleName: \"customer-site/components/access-control/scrolling-list-select/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { action, set } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { type Registry as ServiceRegistry } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport {\n addItems,\n findDuplicateItems,\n findItem,\n flattenItem,\n getAllSelectedSubitems,\n insertAfterParentSorted,\n selectItems,\n selectItemsAndSubItems,\n validateFilterLength\n} from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\n\nimport './_style.scss';\nimport type ActionButtons from '@adc/ui-components/components/action-buttons';\nimport type CheckboxTreeItem from '@adc/ui-components/utils/checkbox-tree-item';\nimport type ScrollingListSelectItem from 'customer-site/classes/access-control/scrolling-list-select/scrolling-list-select-item';\nimport type { SelectionResult } from 'customer-site/components/action-sheets/enterprise/locations/location-selection/helpers/selection-items';\nimport type { LocationSelectionActionSheetProperties } from 'customer-site/components/action-sheets/enterprise/locations/location-selection/index';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type AccessControlUserTypeModel from 'customer-site/models/access-control/access-control-user-type';\nimport type System from 'customer-site/models/systems/system';\nimport type User from 'customer-site/models/users/user';\nimport type { AccessControlAccessPlanPerformanceMonitor } from '../access-plans/edit/performance-monitor/index';\nimport './_style.scss';\n\ntype ActionButtonArgs = Pick & Pick;\n\nexport type ScrollingListSelectModel =\n | AccessControlUser\n | AccessControlAccessPoint\n | AccessControlUserTypeModel\n | User\n | System;\nexport type ScrollingListSelectItemDynamicArray = ReturnType>;\n\nexport interface ScrollingListSelectOptions {\n showSystem?: boolean;\n showSystemGroup?: boolean;\n showCredentialCount?: boolean;\n}\n\nexport interface ScrollingListSelectFilters {\n search: string;\n locationSelectionResult?: SelectionResult;\n userTypes?: string[];\n}\n\nexport interface ScrollingListSelectQueryParams extends Pick {\n scopeIds?: string[];\n userTypes?: string[];\n}\n\nexport interface ScrollingListSelectFilterProperties {\n locationFilterProperties?: LocationSelectionActionSheetProperties & {\n metricName?: string;\n defaultSelectedScopes?: string[];\n };\n userTypeFilters?: CheckboxTreeItem[];\n}\n\nexport type ScrollingListSelectQueryResult = {\n index: number;\n totalCount: number;\n items: ScrollingListSelectItemDynamicArray;\n allLoaded?: boolean;\n};\n\nexport type ScrollingListSelectLoadFunction = (\n batchSize: number,\n index: number,\n params?: ScrollingListSelectQueryParams\n) => Promise | ScrollingListSelectQueryResult;\n\nexport interface ScrollingListSelectComponentSignature {\n Element: HTMLDivElement;\n Args: {\n batchSize: number;\n loadItems: ScrollingListSelectLoadFunction;\n saveItems: (items: ScrollingListSelectItemDynamicArray) => void | Promise;\n setActionButtons: (args: Partial) => void;\n options: ScrollingListSelectOptions;\n filterProperties: ScrollingListSelectFilterProperties;\n loadSelectedItems?: ScrollingListSelectLoadFunction;\n title?: string;\n selectedItemsTitle?: string;\n performanceMonitor?: AccessControlAccessPlanPerformanceMonitor;\n };\n Blocks: {\n default: [];\n 'selected-items': [];\n };\n}\n\nexport async function loadBatch(\n this: AccessControlScrollingListSelectComponent,\n batchSize: number,\n loadSelectedItems = false\n): Promise {\n const { load, index, totalCount, items, isInitialLoad } = {\n load: loadSelectedItems ? this.args.loadSelectedItems : this.args.loadItems,\n index: loadSelectedItems ? this.selectedItemsIndex : this.itemsIndex,\n totalCount: loadSelectedItems ? this.totalSelectedItemsCount : this.totalItemsCount,\n items: loadSelectedItems ? this.selectedItems : this.items,\n isInitialLoad: loadSelectedItems ? this.isInitialLoadSelected : this.isInitialLoad\n };\n\n this.isInitialLoad = loadSelectedItems ? this.isInitialLoad : false;\n this.isInitialLoadSelected = loadSelectedItems ? false : this.isInitialLoadSelected;\n\n const loadData =\n // Load function is defined\n !!load &&\n // We are requesting data for the first time, or the index has not reached the end\n (isInitialLoad || index < totalCount) &&\n // Don't request more if we've loaded everything\n !this.allLoaded &&\n // Don't request more selected items if we've already unselected everything\n !(loadSelectedItems && this.unselectAllPressed);\n\n if (loadData) {\n // Only use query params for loading new items\n const queryResult = await load(batchSize, index, !loadSelectedItems ? this.params : undefined),\n newItems = queryResult.items.filter((item1) => !items.some((item2) => item2.id === item1.id));\n\n if (loadSelectedItems) {\n // Set the new selected items index\n this.selectedItemsIndex = queryResult.index;\n } else {\n // Set the new index\n this.itemsIndex = queryResult.index;\n\n // If unselect all has been pressed, items should be unselected by default\n if (this.unselectAllPressed) {\n selectItemsAndSubItems(newItems, false);\n }\n\n // Select all new items which are already selected items\n selectItems(findDuplicateItems(newItems, this.selectedItems), true);\n\n // Unselect all new items which are not selected items\n selectItems(findDuplicateItems(this.selectedItems, newItems), false);\n\n if (isInitialLoad && this.args.performanceMonitor) {\n if (newItems.length > 0 && newItems[0]) {\n // Mark to end the performance monitor after the last item is rendered\n set(newItems[0], 'endPerformanceMonitorAfterRender', true);\n } else {\n // There are no items to render, end the timer immediately\n this.args.performanceMonitor.end();\n }\n }\n }\n\n if (queryResult.allLoaded) {\n this.allLoaded = true;\n }\n\n items.pushObjects(newItems);\n\n if (this.resetCount) {\n this.totalItemsCount = loadSelectedItems ? this.totalItemsCount : queryResult.totalCount;\n this.totalSelectedItemsCount = loadSelectedItems ? queryResult.totalCount : this.totalSelectedItemsCount;\n }\n\n this.allLoaded = queryResult.allLoaded ?? this.allLoaded;\n }\n}\n\nexport default class AccessControlScrollingListSelectComponent extends Component {\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare notificationManager: ServiceRegistry['notification-manager'];\n\n items: ScrollingListSelectItemDynamicArray = A();\n selectedItems: ScrollingListSelectItemDynamicArray = A();\n\n /** The total number of selectable items to be loaded */\n @tracked totalItemsCount = 0;\n\n /** The total number of currently selected items (these may not all be loaded) */\n @tracked totalSelectedItemsCount = 0;\n\n /** Are we currently saving? Changes should be disabled while save is in progress. */\n @tracked isSaving = false;\n\n /** Has \"Unselect All\" been pressed? This means that no more selected items need to be loaded. */\n @tracked unselectAllPressed = false;\n\n /** Is this the initial load of selectable items? */\n @tracked isInitialLoad = true;\n\n /** Is this the initial load of selected items? */\n @tracked isInitialLoadSelected = true;\n\n /** The parameters used to query for items. */\n @tracked params: ScrollingListSelectQueryParams = { search: '' };\n\n /** Index of the last loaded selected item */\n @tracked selectedItemsIndex = 0;\n\n /** Index of the last loaded selectable item */\n @tracked itemsIndex = 0;\n\n /** Should the total items count be reset when loading a batch? */\n @tracked resetCount = true;\n\n // Have all items been loaded?\n @tracked allLoaded = false;\n\n loadInitialData = task({ restartable: true }, async () => {\n this.args.setActionButtons({ confirmAction: this.saveItems });\n\n // Set default params for querying items\n this.params = {\n search: '',\n scopeIds: this.args.filterProperties.locationFilterProperties?.defaultSelectedScopes\n };\n\n const { batchSize } = this.args;\n await Promise.all([this.loadBatchFn(batchSize), this.loadBatchSelectedFn(batchSize)]);\n this.resetCount = false;\n });\n\n /** Toggles whether the save button should be enabled */\n @action toggleSaveEnabled(enabled: boolean): void {\n this.isSaving = !enabled;\n this.args.setActionButtons({ confirmButtonDisabled: !enabled });\n }\n\n @action async toggleSelectAll(selectAll: boolean): Promise {\n // Disable save while items are loading\n this.toggleSaveEnabled(false);\n\n if (!selectAll) {\n this.unselectAllPressed = true;\n }\n\n // Load everything that we need to select (or de-select)\n await this.loadAllItems.perform(!selectAll);\n\n // Set all items to selected or unselected\n const affectedItems = selectItemsAndSubItems(\n this.items.filter((item) => !selectAll || !item.isFullySelected),\n selectAll\n );\n\n if (selectAll) {\n addItems(affectedItems, this.selectedItems);\n this.totalSelectedItemsCount = this.selectedItems.length;\n } else {\n this.selectedItems.removeObjects(this.selectedItems.filter((item) => !item.disabled));\n this.totalSelectedItemsCount = 0;\n }\n\n this.toggleSaveEnabled(true);\n }\n\n @action toggleSelect(item: ScrollingListSelectItem): void {\n const itemAndSubitems = flattenItem(item);\n itemAndSubitems.forEach((item) => {\n const shouldBeInSelectedList = item.isSelected || item.isPartiallySelected,\n existingItemInSelectedList = findItem(item.id, this.selectedItems);\n\n if (shouldBeInSelectedList && !existingItemInSelectedList) {\n const parentItem = item.parent ? findItem(item.parent?.id, this.selectedItems) : undefined;\n\n if (parentItem) {\n // Insert the item after the parent item in its sorted position\n insertAfterParentSorted(item, parentItem, this.selectedItems);\n } else {\n // Insert at the end\n this.selectedItems.pushObject(item);\n }\n\n this.totalSelectedItemsCount = this.totalSelectedItemsCount + 1;\n }\n\n if (!shouldBeInSelectedList && existingItemInSelectedList) {\n // Remove the item from the list\n this.selectedItems.removeObject(existingItemInSelectedList);\n this.totalSelectedItemsCount = this.totalSelectedItemsCount - 1;\n }\n });\n }\n\n @action unselectItem(item: ScrollingListSelectItem): void {\n const { selectedItems } = this,\n pairedItem = findItem(item.id, this.items, true),\n itemsToRemove = A([item]),\n parentId = item.parent?.id;\n\n // If there is a corresponding item loaded in the left list,\n // un-select it (and any of it's sub-items)\n if (pairedItem) {\n selectItemsAndSubItems([pairedItem], false);\n }\n\n // Remove all selected subitems of the item\n itemsToRemove.pushObjects(getAllSelectedSubitems(item, selectedItems));\n\n const parentItem = parentId ? findItem(parentId, selectedItems) : undefined;\n if (parentItem && getAllSelectedSubitems(parentItem, selectedItems).length === 1) {\n // If we are removing the last sub-item of the parent, remove the parent as well\n const pairedParentItem = findItem(parentItem.id, this.items);\n if (pairedParentItem) {\n selectItemsAndSubItems([pairedParentItem], false);\n }\n\n itemsToRemove.pushObject(parentItem);\n }\n\n this.selectedItems.removeObjects(itemsToRemove);\n this.totalSelectedItemsCount = this.totalSelectedItemsCount - itemsToRemove.length;\n }\n\n @action async saveItems(): Promise {\n this.toggleSaveEnabled(false);\n try {\n await this.loadAllItems.perform(true);\n await this.args.saveItems(this.selectedItems);\n } catch {\n this.toggleSaveEnabled(true);\n return Promise.reject();\n }\n this.toggleSaveEnabled(true);\n }\n\n @action applyFilters(filters: ScrollingListSelectFilters): void {\n const { search, locationSelectionResult, userTypes } = filters,\n { filterProperties, performanceMonitor } = this.args;\n\n if (performanceMonitor && filterProperties.locationFilterProperties?.metricName) {\n // Start filter metric\n performanceMonitor.start(filterProperties.locationFilterProperties.metricName);\n }\n\n // If no locations are selected, return to the current selection\n let scopeIds = locationSelectionResult?.selectedIds ?? this.params.scopeIds;\n\n const params = {\n searchString: search,\n scopeIds: scopeIds,\n userType: userTypes,\n includeChildScope: true\n };\n\n if (\n locationSelectionResult?.selectingAll ||\n !validateFilterLength(params, this.notificationManager, this.intl)\n ) {\n scopeIds = undefined;\n }\n\n this.params = {\n search,\n scopeIds,\n userTypes\n };\n\n // Reset items\n set(this, 'items', A([]));\n this.itemsIndex = 0;\n this.isInitialLoad = true;\n this.allLoaded = false;\n this.loadBatchFn(this.args.batchSize);\n }\n\n loadAllItems = task({ restartable: true }, async (loadOnlySelectedItems?: boolean) => {\n await Promise.all([\n this.loadBatchSelectedFn(this.totalSelectedItemsCount - this.selectedItemsIndex),\n loadOnlySelectedItems ? Promise.resolve() : this.loadBatchFn(this.totalItemsCount - this.itemsIndex)\n ]);\n });\n\n get loadBatchFn(): (batchSize: number) => Promise {\n return (batchSize: number) => loadBatch.call(this, batchSize, false);\n }\n\n get loadBatchSelectedFn(): (batchSize: number) => Promise {\n return (batchSize: number) => loadBatch.call(this, batchSize, true);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::ScrollingListSelect': typeof AccessControlScrollingListSelectComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n \\n {{#if @allowAddAccessPlan}}\\n \\n {{/if}}\\n \\n\\n {{#each @descriptionTexts as |description|}}\\n {{#if description.navLinkId}}\\n \\n {{description.text}}\\n \\n {{else}}\\n

\\n \\n

\\n {{/if}}\\n {{/each}}\\n\\n
\\n {{#each @accessPlans as |item|}}\\n \\n {{/each}}\\n
\\n \\n\\n <:error as |PageViewError|>\\n \\n \\n
\\n\",{ moduleName: \"customer-site/components/access-control/system-mode-configuration-base/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 { ModifyPlanName } from 'customer-site/enums/AccessPlanPropertyEdit';\nimport { General } from 'customer-site/enums/AccessPlanType';\nimport {\n EmberAccessControlAccessPlanNew,\n EmberEnterpriseAccessControlAccessPlanNew\n} from 'customer-site/enums/CustomerPageUrl';\n\nimport type { PageViewSignature } from '@adc/ui-components/components/page-view';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type { getAccessPlans } from 'customer-site/classes/access-control/access-plans/filter-results-controller';\nimport type { getPlanDetailTotals } from 'customer-site/models/access-control/access-control-access-plan';\nimport type { SafeString } from 'handlebars';\nimport './_style.scss';\n\nexport interface SystemModeConfigurationBaseSignature {\n Element: PageViewSignature['Element'];\n Args: {\n accessPlans: ReturnType;\n planDetailTotals: ReturnType;\n accessPlanOperatingMode: number;\n descriptionHeaderText: string;\n descriptionTexts: {\n text: SafeString | string;\n cssClass: string;\n navLinkId?: number;\n }[];\n canViewTimeTables: boolean;\n showEditScheduleOption: boolean;\n allowAddAccessPlan: boolean;\n };\n}\n\n/**\n * @classdesc\n * Lockdown home page \"In Lockdown\" alert card\n */\nexport default class SystemModeConfigurationBaseComponent extends Component {\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n /**\n * Transitions the app to the view for creating a new Lockdown Access Plan.\n */\n @action\n addAccessPlanWithOperatingMode(): void {\n this.navigation.transitionToRouteId(\n this.identityManager.isEnterprise\n ? EmberEnterpriseAccessControlAccessPlanNew\n : EmberAccessControlAccessPlanNew,\n {\n queryParams: {\n operatingMode: this.args.accessPlanOperatingMode,\n planType: General,\n property: ModifyPlanName\n }\n }\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::SystemModeConfigurationBase': typeof SystemModeConfigurationBaseComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n \\n {{#if this.shouldShowAllTimes}}\\n \\n {{/if}}\\n \\n \\n\\n \\n\\n \\n
\\n

{{tc this \\'editTimeBlock\\'}}

\\n \\n \\n
\\n\\n
\\n {{#if this.shouldShowAllTimes}}\\n
\\n \\n
\\n {{/if}}\\n
\\n \\n \\n \\n
\\n
\\n \\n \\n \\n
\\n\\n {{!-- We are only showing the cancel/save buttons on mobile because user\\n testing showed that users preferred the popover without buttons on desktop --}}\\n {{#if (media \\'isMobile\\')}}\\n \\n {{/if}}\\n
\\n \\n\\n \\n

{{t \\'generic.copy\\'}}

\\n

{{tc this \\'copyDescription\\'}}

\\n\\n \\n\\n \\n \\n
\\n\",{ moduleName: \"customer-site/components/access-control/timetables/item/edit-timetable-schedule/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { tracked } from '@glimmer/tracking';\nimport {\n MINUTES_IN_HOUR,\n MINUTES_IN_DAY,\n MINUTES_IN_WEEK,\n DAYS_IN_WEEK,\n MINUTES_IN_HALF_HOUR\n} from '@adc/ember-utils/constants/time';\nimport { A } from '@ember/array';\n// Do not copy this deprecated usage. If you see this, please fix it\n// eslint-disable-next-line ember/no-classic-components\nimport Component from '@ember/component';\nimport { computed, action, setProperties, set } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { next } from '@ember/runloop';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\nimport {\n getPlanSchedule,\n mergeSchedules,\n ALL_TIMES_PROPERTIES\n} from '@adc/ui-components/components/views/base-schedule';\nimport { isScheduleAllTimes } from '@adc/ui-components/components/week-view';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\nimport { zonedTimeToUtc } from 'date-fns-tz';\nimport setDay from 'date-fns/setDay';\n\nimport './_style.scss';\n\n/**\n * The maximum number of time blocks that we allow in a schedule.\n *\n * @type {number}\n *\n * @private\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nconst MAX_TIME_BLOCKS = 12;\n\n/**\n * Check if the time block spans all times in the week by checking if the start and end times are equal.\n * If they are equal, set the end time to be MINUTES_IN_WEEK after the start time.\n *\n * @instance\n * @private\n *\n * @param {Boolean} [redraw=true] - Should we redraw the schedule?\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction checkIfScheduleIsAllTimes(redraw = true) {\n const selectedTimeBlock = this.selectedTimeBlock,\n { startMinutesLocal, endMinutesLocal } = selectedTimeBlock;\n\n // By default, set selectedTimeBlockIsAllDay to false.\n this.selectedTimeBlockIsAllDay = false;\n\n if (endMinutesLocal === startMinutesLocal || endMinutesLocal - startMinutesLocal >= MINUTES_IN_WEEK) {\n this.selectedTimeBlockIsAllDay = true;\n redraw = true;\n }\n\n if (redraw) {\n redrawPopover.call(this);\n }\n}\n\n/**\n * Push the current state of the schedule into the history states array.\n *\n * @private\n * @instance\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction pushHistoryState() {\n const { historyStates, combinedSchedules } = this,\n newState = JSON.stringify(convertScheduleBlocksForModel(combinedSchedules));\n\n // Make sure that we aren't duplicating the last history state before adding it to the list.\n if (historyStates.lastObject !== newState) {\n historyStates.pushObject(newState);\n }\n}\n\n/**\n * Convert an array of ScheduleBlockTimesType to an array of TimetableScheduleDayType so they can be saved on the model\n *\n * @param {NativeArray} scheduleBlocks\n *\n * @returns {NativeArray}\n *\n * @static\n * @private\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction convertScheduleBlocksForModel(scheduleBlocks) {\n return A(\n scheduleBlocks.map((block) => {\n const { day, startMinutesLocal, endMinutesLocal } = block,\n daySpan = Math.floor(endMinutesLocal / MINUTES_IN_DAY) - day;\n\n return {\n day,\n startMinutesLocal: startMinutesLocal % MINUTES_IN_DAY,\n endMinutesLocal: ((endMinutesLocal % MINUTES_IN_WEEK) % MINUTES_IN_DAY) + daySpan * MINUTES_IN_DAY\n };\n })\n );\n}\n\n/**\n * Give a list of used days, return a list of available days\n *\n * @param usedDayNums {Array} - Array of days that are unavailable to pick.\n * @param isEndDay {boolean} - Is this the end day or the start day?\n *\n * @returns {Array<{value: number, name: String, disabled: boolean}>}\n *\n * @instance\n * @private\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction getAvailableDays(usedDayNums, isEndDay = false) {\n const { selectedTimeBlock } = this;\n\n // If there is no selected time block, just return an empty array.\n if (!selectedTimeBlock) {\n return [];\n }\n\n const now = new Date(),\n selectedStartDay = selectedTimeBlock.day,\n // If this is for the end day dropdown, rotate the options so the current day is at the top.\n dayOffset = isEndDay ? selectedStartDay : 1,\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 fnGetWeekday = (dayNum) => this.intl.formatDate(setDay(now, dayNum), { weekday: 'long' }),\n fnGetItem = (value, name, disabled) => DropdownSelectItem.create({ value, name, disabled }),\n days = Array.from({ length: DAYS_IN_WEEK }, (_, i) => {\n const dayNum = (i + dayOffset) % DAYS_IN_WEEK;\n return fnGetItem(dayNum, fnGetWeekday(dayNum), usedDayNums.includes(dayNum));\n });\n\n // If this is the end day, add a 'next week' option.\n if (isEndDay) {\n days.push(\n fnGetItem(\n selectedStartDay + DAYS_IN_WEEK,\n this.intl.tc(this, 'nextWeek', {\n weekday: fnGetWeekday(selectedStartDay)\n }),\n false\n )\n );\n }\n\n return days;\n}\n\n/**\n * Hide the popover then show it again after render so it is moved to the right place\n *\n * @private\n * @instance\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction redrawPopover() {\n this.showTimeBlockPopover = false;\n // Do not copy this deprecated usage. If you see this, please convert to ember-lifeline runTask.\n // eslint-disable-next-line ember/no-runloop\n next(() => (this.showTimeBlockPopover = true));\n}\n\n/**\n * Select a time block so the user is presented with the time block popover.\n *\n * @param timeBlockId\n *\n * @private\n * @instance\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction selectTimeBlock(timeBlockId) {\n const { combinedSchedules } = this,\n selectedTimeBlock = combinedSchedules.findBy('startMinutesLocal', timeBlockId),\n { startMinutesLocal, endMinutesLocal } = selectedTimeBlock;\n const mergedSchedules = mergeSchedules(combinedSchedules);\n let currentTimeBlock = mergedSchedules.find(\n (tb) => tb.startMinutesLocal <= timeBlockId && tb.endMinutesLocal >= timeBlockId\n );\n\n // If we have not found currentTimeBlock, it may be because a time block wraps around\n // (endMinutesLocal > MINUTES_IN_WEEK). Try to find the time block again but with an adjusted timeblockId.\n if (!currentTimeBlock) {\n const wrappedTimeBlockId = MINUTES_IN_WEEK + timeBlockId;\n currentTimeBlock = mergedSchedules.find(\n (tb) => tb.startMinutesLocal <= wrappedTimeBlockId && tb.endMinutesLocal >= wrappedTimeBlockId\n );\n }\n\n setProperties(this, {\n selectedTimeBlock: currentTimeBlock,\n selectedTimeBlockId: currentTimeBlock.startMinutesLocal,\n // selectedTimeBlockIsAllDay is true if the startMinutes and endMinutes are both midnight on any day\n selectedTimeBlockIsAllDay:\n this.shouldShowAllTimes &&\n [startMinutesLocal, endMinutesLocal].every((minutes) => minutes % MINUTES_IN_DAY === 0),\n showTimeBlockPopover: true,\n // Combine all of the schedule elements again to merge any overlapping time blocks\n 'scheduleBlocks.firstObject.combinedSchedules': mergedSchedules\n });\n}\n\n/**\n * Set the history restore index\n *\n * @private\n * @instance\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction setHistoryRestoreIndex() {\n this.historyRestoreIndex = this.historyStates.length;\n}\n\n/**\n * Check if there is room left in the schedule to add the specified number of time blocks.\n *\n * @param {Number} numBlocksToAdd - The number of blocks we are trying to add to the schedule\n *\n * @private\n * @instance\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction checkIfScheduleOverloaded(numBlocksToAdd) {\n if (this.combinedSchedules.length + numBlocksToAdd > MAX_TIME_BLOCKS) {\n this.notificationManager.addError(this.intl.tc(this, 'timetableFull', { maxNum: MAX_TIME_BLOCKS }));\n return true;\n }\n\n return false;\n}\n\n/**\n * Convert the string form 24 hour time to day minutes (0 - 1440 minutes)\n *\n * @param {String} timeValue - String value of the 24-hour time (HH:MM)\n *\n * @private\n * @returns {Number}\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction timeValueToDayMinutes(timeValue) {\n const timeParts = timeValue.split(':'),\n hours = parseInt(timeParts[0], 10),\n minutes = parseInt(timeParts[1], 10);\n\n return hours * MINUTES_IN_HOUR + minutes;\n}\n\n/**\n * Convert the day minutes (0 - 1440) to a Date.\n *\n * @param {Number} dayMinutes - Number of minutes in day elapsed.\n *\n * @private\n * @returns {Date}\n *\n * @memberof components.access-control.timetables.item.EditTimetableSchedule\n */\nfunction dayMinutesToDate(dayMinutes) {\n const hours = Math.floor(dayMinutes / MINUTES_IN_HOUR),\n minutesInDisplay = dayMinutes % MINUTES_IN_HOUR;\n\n return new Date(0, 0, 0, hours, minutesInDisplay);\n}\n\n/**\n * Displays the weekly schedule for a timetable\n *\n * @class EditTimetableSchedule\n * @extends Component\n *\n * @param {NativeArray} scheduleDictionary\n * @param {Function} updateSchedule\n\n * @memberof components.access-control.timetables.item\n */\n@intlPath({ path: 'access-control.timetables.item.edit-timetable-schedule' })\nexport default class EditTimetableSchedule extends Component {\n tagName = '';\n\n @service intl;\n @service notificationManager;\n\n /**\n * History point to restore to if the user cancels editing a time block.\n *\n * @type {number}\n */\n @tracked historyRestoreIndex = 0;\n\n /**\n * The currently selected time block\n *\n * @type {ScheduleBlockTimesType|undefined}\n */\n @tracked selectedTimeBlock;\n\n /**\n * Whether or not the currently select time block spans the entire day (12AM to 12AM the next day)\n *\n * @type {boolean}\n */\n @tracked selectedTimeBlockIsAllDay = false;\n /**\n * Should we show the 'copy time' popover?\n *\n * @type {boolean}\n */\n @tracked showCopyTimeBlockPopover = false;\n\n /**\n * Should we show the time block popover?\n *\n * @type {boolean}\n */\n @tracked showTimeBlockPopover = false;\n\n /**\n * Selected days copied\n */\n @tracked copyTimeBlockSelectedDays = [];\n\n /**\n * Array of previous states of the schedule grid so the user can undo their changes.\n *\n * @type {Array>}\n */\n @tracked historyStates = [];\n\n /**\n * Alias for the combined schedules\n *\n * @type {NativeArray}\n */\n @alias('scheduleBlocks.0.combinedSchedules')\n combinedSchedules;\n\n /**\n * Available days to copy a time block to.\n *\n * @type {BinaryListItem[]}\n */\n @tracked copyTimeBlockOptions;\n\n /**\n * Whether we should show the \"All Times\" button and the \"All day\" toggle.\n */\n shouldShowAllTimes = true;\n\n /**\n * Is the current schedule All Times?\n *\n * @type {boolean}\n */\n @computed('combinedSchedules', 'scheduleElements', 'shouldShowAllTimes')\n get scheduleIsAllTimes() {\n return this.shouldShowAllTimes && isScheduleAllTimes(this.combinedSchedules);\n }\n\n /**\n * The numeric representation of the end day for the currently select time block.\n *\n * @type {number}\n */\n @computed('selectedTimeBlock.{startMinutesLocal,endMinutesLocal,day}')\n get selectedTimeBlockEndDay() {\n const selectedTimeBlock = this.selectedTimeBlock;\n\n if (!selectedTimeBlock) {\n return -1;\n }\n\n const { endMinutesLocal, day } = selectedTimeBlock,\n dayNum = Math.floor(endMinutesLocal / MINUTES_IN_DAY);\n\n // If the end day is one week after the start time, return that number so we display the 'next week' option in the dropdown menu correctly.\n return dayNum === day + DAYS_IN_WEEK ? dayNum : dayNum % DAYS_IN_WEEK;\n }\n\n /**\n * The start time, in 24-hour time (HH:MM), of the currently selected time span.\n *\n * @type {Date}\n */\n @computed('intl.timeZone', 'selectedTimeBlock.startMinutesLocal')\n get selectedTimeBlockStartTime() {\n const { selectedTimeBlock, intl } = this;\n if (!selectedTimeBlock) {\n return new Date();\n }\n\n return zonedTimeToUtc(dayMinutesToDate(selectedTimeBlock.startMinutesLocal % MINUTES_IN_DAY), intl.timeZone);\n }\n\n /**\n * The end time, in 24-hour time (HH:MM), of the currently selected time span.\n *\n * @type {Date}\n */\n @computed('intl.timeZone', 'selectedTimeBlock.endMinutesLocal')\n get selectedTimeBlockEndTime() {\n const { selectedTimeBlock, intl } = this;\n if (!selectedTimeBlock) {\n return new Date();\n }\n\n return zonedTimeToUtc(dayMinutesToDate(selectedTimeBlock.endMinutesLocal % MINUTES_IN_DAY), intl.timeZone);\n }\n\n /**\n * Array of plan schedules.\n *\n * @function\n * @returns {NativeArray}\n */\n @computed('scheduleDictionary')\n get scheduleBlocks() {\n return [\n getPlanSchedule({\n timetables: [\n {\n scheduleDictionary: this.scheduleDictionary\n }\n ]\n })\n ];\n }\n\n /**\n * Schedule to be rendered into the grid\n *\n * @type {NativeArray}\n */\n @computed('combinedSchedules.@each.{startMinutesLocal,endMinutesLocal,day}')\n get scheduleElements() {\n return this.combinedSchedules.map((timeBlock) => {\n const { startMinutesLocal, endMinutesLocal } = timeBlock;\n\n return {\n id: startMinutesLocal,\n startMinutesLocal,\n endMinutesLocal\n };\n });\n }\n\n /**\n * Days of the week that don't have a schedule block in them yet.\n *\n * @type {Array}\n */\n @computed('combinedSchedules.@each.day')\n get unavailableDays() {\n const combinedSchedules = this.combinedSchedules;\n\n return combinedSchedules\n .reduce((days, { day, endMinutesLocal }) => {\n const dayNum = parseInt(day, 10),\n fullDaysSpanned =\n Math.floor(Math.abs((endMinutesLocal - (dayNum + 1) * MINUTES_IN_DAY) / MINUTES_IN_DAY)) + 1;\n\n for (let i = dayNum; i < dayNum + fullDaysSpanned; i++) {\n days.push(i % DAYS_IN_WEEK);\n }\n\n return days;\n }, [])\n .uniq();\n }\n\n /**\n * List of currently available days for a time block to start on.\n *\n * @type {Array<{value: number, name: String, disabled: boolean}>}\n */\n @computed('selectedTimeBlock', 'unavailableDays')\n get availableStartDays() {\n return getAvailableDays.call(this, []);\n }\n\n /**\n * List of currently available days for a time block to end on.\n *\n * @type {Array<{value: number, name: String, disabled: boolean}>}\n */\n @computed('selectedTimeBlock', 'unavailableDays')\n get availableEndDays() {\n return getAvailableDays.call(this, [], true);\n }\n\n /**\n * When the selected start time changes, update the startMinutesLocal of the selected time block\n *\n * @param {Event} evt\n */\n @action\n selectedStartTimeChange(evt) {\n const dayMinutes = timeValueToDayMinutes(evt.target.value),\n selectedTimeBlock = this.selectedTimeBlock,\n { day, endMinutesLocal } = selectedTimeBlock,\n newStartMinutesLocal = dayMinutes + MINUTES_IN_DAY * day;\n\n const timeChanged = selectedTimeBlock.startMinutesLocal !== newStartMinutesLocal;\n\n if (timeChanged) {\n pushHistoryState.call(this);\n }\n\n set(selectedTimeBlock, 'startMinutesLocal', newStartMinutesLocal);\n\n // If the new start time comes after the end time, add a week to the end time\n if (endMinutesLocal < newStartMinutesLocal) {\n set(selectedTimeBlock, 'endMinutesLocal', endMinutesLocal + MINUTES_IN_WEEK);\n }\n\n checkIfScheduleIsAllTimes.call(this, timeChanged);\n }\n\n /**\n * When the selected end time changes, update the endMinutesLocal of the selected time block\n *\n * @param {Event} evt\n */\n @action\n selectedEndTimeChange(evt) {\n const dayMinutes = timeValueToDayMinutes(evt.target.value),\n { selectedTimeBlock, selectedTimeBlockEndDay } = this,\n startMinutes = selectedTimeBlock.startMinutesLocal;\n\n let newEndMinutes = dayMinutes + MINUTES_IN_DAY * selectedTimeBlockEndDay;\n\n if (newEndMinutes < startMinutes) {\n newEndMinutes += MINUTES_IN_DAY * DAYS_IN_WEEK;\n }\n\n const timeChanged = selectedTimeBlock.endMinutesLocal !== newEndMinutes;\n\n if (timeChanged) {\n pushHistoryState.call(this);\n }\n\n set(selectedTimeBlock, 'endMinutesLocal', newEndMinutes);\n\n checkIfScheduleIsAllTimes.call(this, timeChanged);\n }\n\n /**\n * Create a new time block on the specified day at the specified time. Then trigger the timeBlockClicked action.\n *\n * @param {number} dayNum - Day number of the week that was clicked.\n * @param {number} startTime - The start time of the new block in minutes after midnight.\n */\n @action\n createTimeBlock(dayNum, startTime) {\n // If the selected time is less than 0, set it to 0.\n if (startTime < 0) {\n startTime = 0;\n }\n\n const { combinedSchedules } = this,\n // Default number of hours a new time span should be.\n defaultTimeSpanLength = 8;\n\n // Check if the schedule can handle the additional time blocks.\n if (checkIfScheduleOverloaded.call(this, 1)) {\n return;\n }\n\n // If the user clicked close to midnight the day will round up to the next day, increment the day number\n if (startTime === MINUTES_IN_DAY) {\n dayNum = ++dayNum % DAYS_IN_WEEK;\n startTime = 0;\n }\n\n setHistoryRestoreIndex.call(this);\n pushHistoryState.call(this);\n\n const startMinutesLocal = startTime + MINUTES_IN_DAY * dayNum,\n endMinutesLocal = startTime + defaultTimeSpanLength * MINUTES_IN_HOUR + MINUTES_IN_DAY * dayNum;\n\n // Insert a new time span on the clicked day\n combinedSchedules.pushObject({\n day: dayNum,\n startMinutesLocal,\n endMinutesLocal\n });\n\n selectTimeBlock.call(this, startMinutesLocal);\n }\n\n /**\n * Propagate the click action up to the parent.\n *\n * @param {Number} timeBlockId - Id of the time block that was clicked.\n */\n @action\n timeBlockClicked(timeBlockId) {\n setHistoryRestoreIndex.call(this);\n selectTimeBlock.call(this, timeBlockId);\n }\n\n /**\n * When the selected start day dropdown menu value changes\n *\n * @param {number} dayNum - Numeric representation of the day of the week to set as the new start day\n */\n @action\n selectedStartDayChange(dayNum) {\n dayNum = parseInt(dayNum, 10);\n\n const selectedTimeBlock = this.selectedTimeBlock,\n { startMinutesLocal, endMinutesLocal } = selectedTimeBlock,\n newStartMinutes = (startMinutesLocal % MINUTES_IN_DAY) + dayNum * MINUTES_IN_DAY;\n\n pushHistoryState.call(this);\n\n if (endMinutesLocal < newStartMinutes) {\n set(selectedTimeBlock, 'endMinutesLocal', endMinutesLocal + MINUTES_IN_DAY * DAYS_IN_WEEK);\n }\n\n setProperties(selectedTimeBlock, {\n day: dayNum,\n startMinutesLocal: newStartMinutes\n });\n\n checkIfScheduleIsAllTimes.call(this);\n }\n\n /**\n * When the end day changes, update the endMinutesLocal of the selected time block\n *\n * @param {number} dayNum\n */\n @action\n selectedEndDayChange(dayNum) {\n dayNum = parseInt(dayNum, 10);\n\n const timeBlock = this.selectedTimeBlock,\n { day, endMinutesLocal, startMinutesLocal } = timeBlock;\n\n let newEndMinutes = (endMinutesLocal % MINUTES_IN_DAY) + MINUTES_IN_DAY * dayNum;\n\n // If the end day changes and suddenly the end time is before the start time we have to adjust the end time.\n if (newEndMinutes <= startMinutesLocal) {\n // If the day of the week didn't change (ie, was a week later, but is now the same day) we set the end time to the end of the day.\n if (day === dayNum % DAYS_IN_WEEK) {\n newEndMinutes = (day + 1) * MINUTES_IN_DAY - MINUTES_IN_HALF_HOUR;\n\n // It's possible that the start time is already 11:30 PM. In that case we add 30 minutes (minimum time span size).\n if (startMinutesLocal === newEndMinutes) {\n newEndMinutes += MINUTES_IN_HALF_HOUR;\n }\n }\n // Otherwise we just make the end time a week later.\n else {\n newEndMinutes += MINUTES_IN_WEEK;\n }\n }\n\n // If the user just set the end day to the same day of the week next week, then adjust the end time to prevent an 'all times' time block.\n if (dayNum >= DAYS_IN_WEEK && dayNum - DAYS_IN_WEEK === day) {\n newEndMinutes = MINUTES_IN_DAY * dayNum;\n }\n\n pushHistoryState.call(this);\n\n set(timeBlock, 'endMinutesLocal', newEndMinutes);\n\n checkIfScheduleIsAllTimes.call(this);\n }\n\n /**\n * When the 'All Day' checkbox value changes, update the time block time span\n *\n * @param {Event} event\n */\n @action\n selectedBlockAllDayChange(event) {\n const {\n target: { checked: isChecked }\n } = event;\n this.selectedTimeBlockIsAllDay = isChecked;\n\n // If the checkbox is checked, update the start and end times of the time block and redraw the popover\n if (isChecked) {\n const { selectedTimeBlock } = this,\n day = Number(selectedTimeBlock.day),\n startMinutesLocal = day * MINUTES_IN_DAY,\n endMinutesLocal =\n (Math.ceil((selectedTimeBlock.endMinutesLocal - startMinutesLocal) / MINUTES_IN_DAY) + day) *\n MINUTES_IN_DAY;\n\n pushHistoryState.call(this);\n\n setProperties(selectedTimeBlock, {\n startMinutesLocal,\n endMinutesLocal\n });\n\n checkIfScheduleIsAllTimes.call(this);\n }\n }\n\n /**\n * Delete the selected time block and hide the popover\n */\n @action\n deleteTimeBlock() {\n this.showTimeBlockPopover = false;\n pushHistoryState.call(this);\n\n const schedule = this.combinedSchedules;\n\n schedule.removeObject(this.selectedTimeBlock);\n\n // Update the schedule now that we've deleted the selected time block\n this.updateSchedule(convertScheduleBlocksForModel(schedule));\n }\n\n /**\n * Copy time block to other days.\n */\n @action\n openCopyTimeBlockModal() {\n this.copyTimeBlockOptions = this.availableStartDays.map(\n ({ value, name, disabled }) =>\n new BinaryListItem({\n label: name,\n disabled: disabled || value === this.selectedTimeBlock.day,\n props: {\n value: parseInt(value, 10)\n }\n })\n );\n\n // Hide the edit popover and show the copy popover.\n this.showTimeBlockPopover = false;\n this.showCopyTimeBlockPopover = true;\n\n // Push the current state so we can revert back to this point if the user cancels.\n pushHistoryState.call(this);\n\n this.copyTimeBlockSelectedDays = [];\n }\n\n /**\n * Save the changes made from copying a time block.\n */\n @action\n copyTimeBlock() {\n const schedule = JSON.parse(this.historyStates.lastObject),\n daysToAlter = this.copyTimeBlockOptions\n .filter(({ state, disabled }) => state && !disabled)\n .map(({ props }) => props.value);\n\n this.copyTimeBlockSelectedDays = daysToAlter;\n\n let { startMinutesLocal, endMinutesLocal, day } = this.selectedTimeBlock;\n\n // Subtract the minutes used to move the time block to the day it resides in.\n startMinutesLocal -= day * MINUTES_IN_DAY;\n endMinutesLocal -= day * MINUTES_IN_DAY;\n\n // Check if the schedule can handle the additional time blocks.\n if (checkIfScheduleOverloaded.call(this, daysToAlter.length)) {\n return;\n }\n\n // Add the time blocks to the schedule object.\n daysToAlter.forEach((day) => {\n schedule.push({\n day: day,\n startMinutesLocal: startMinutesLocal,\n endMinutesLocal: endMinutesLocal\n });\n });\n\n setProperties(this, {\n scheduleDictionary: schedule,\n selectedTimeBlock: undefined,\n showCopyTimeBlockPopover: false\n });\n\n // Use closure action.\n this.updateSchedule(convertScheduleBlocksForModel(this.combinedSchedules));\n }\n\n /**\n * Cancel the time block edit and revert back to the history restore point.\n */\n @action\n cancelTimeBlockEdit() {\n const { historyStates, historyRestoreIndex } = this,\n propertiesToSet = {\n selectedTimeBlock: undefined,\n showTimeBlockPopover: false\n };\n\n // If there have been changes to the history since we recorded the restore index, revert back to that history point.\n if (historyStates.length > historyRestoreIndex) {\n propertiesToSet['historyStates'] = historyStates.slice(0, historyRestoreIndex);\n propertiesToSet['scheduleDictionary'] = JSON.parse(historyStates[historyRestoreIndex]);\n }\n\n setProperties(this, propertiesToSet);\n }\n\n /**\n * Cancel the copy time block popover by closing it.\n */\n @action\n cancelCopyTimeBlock() {\n setProperties(this, {\n showCopyTimeBlockPopover: false,\n showTimeBlockPopover: true\n });\n }\n\n /**\n * If the user clicks away from the edit time block popover, update the schedule.\n */\n @action\n onEditTimeBlockBackdropClick() {\n // Use closure action.\n this.updateSchedule(convertScheduleBlocksForModel(this.combinedSchedules));\n\n this.showTimeBlockPopover = false;\n }\n\n /**\n * Undo the most recent modification by getting the last historyState from the stack of history states.\n */\n @action\n undoLastModification() {\n const scheduleDictionary = JSON.parse(this.historyStates.popObject());\n setProperties(this, {\n scheduleDictionary: scheduleDictionary,\n selectedTimeBlock: undefined\n });\n\n this.updateSchedule(scheduleDictionary);\n }\n\n /**\n * Set the current schedule to be All Times (24/7).\n */\n @action\n setScheduleToAllTimes() {\n pushHistoryState.call(this);\n set(this, 'scheduleDictionary', [ALL_TIMES_PROPERTIES]);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:toolbar>\\n \\n \\n \\n \\n \\n\\n <:default as |PageViewContainer api|>\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n \\n \\n\\n
\\n
    \\n
  • {{data.csvResources.firstName}}
  • \\n
  • {{data.csvResources.lastName}}
  • \\n
  • {{data.csvResources.pinCode}} - {{tc this \\'optional\\'}} {{#if data.permissions.cannotSupportSubstringUserCodes}}{{tc this \\'pinCodeSubstringDesc\\'}}{{/if}}
  • \\n
  • {{data.csvResources.cardSerial1}} - {{tc this \\'optional\\'}}
  • \\n
  • {{data.csvResources.cardSerial2}} - {{tc this \\'optional\\'}}
  • \\n
  • {{data.csvResources.emailAddress}} - {{tc this \\'optional\\'}}
  • \\n
  • {{data.csvResources.userGroup}} - {{tc this \\'optional\\'}}
  • \\n
  • {{tc this \\'dateFormat\\' value=data.csvResources.startDate}} - {{tc this \\'optional\\'}}
  • \\n
  • {{tc this \\'timeFormat\\' value=data.csvResources.startTime}} - {{tc this \\'timeDesc\\'}}
  • \\n
  • {{tc this \\'dateFormat\\' value=data.csvResources.endDate}} - {{tc this \\'optional\\'}}
  • \\n
  • {{tc this \\'timeFormat\\' value=data.csvResources.endTime}} - {{tc this \\'timeDesc\\'}}
  • \\n {{#if data.permissions.addMobileCredential}}\\n
  • {{tc this \\'mobileCredentialTitle\\' value=data.csvResources.mobileCredential yesText=data.csvResources.yes noText=data.csvResources.no}} - {{tc this \\'mobileCredentialDescription\\' noText=data.csvResources.no}}
  • \\n {{/if}}\\n
  • {{tc this \\'action\\'\\n actionText=data.csvResources.action\\n createText=data.csvResources.create\\n editText=data.csvResources.edit\\n deleteText=data.csvResources.delete}} - {{tc this \\'actionDescription\\' createText=data.csvResources.create}}\\n
  • \\n
\\n
\\n

{{tc this \\'example\\'}}

\\n \\n \\n {{#each this.tableHeaders as |h|}}\\n \\n {{/each}}\\n \\n \\n {{#each this.exampleTableRows as |row|}}\\n \\n {{#each row as |col|}}\\n \\n {{/each}}\\n \\n {{/each}}\\n \\n
{{h}}
{{col}}
\\n
\\n
\\n\\n \\n\\n
\\n {{#if (and data.permissions.canModifyUserAccess (not data.permissions.isLinkedToActiveDirectory))}}\\n \\n\\n \\n {{else}}\\n \\n {{/if}}\\n\\n {{#if this.parseResults}}\\n {{#if this.parseAlerts}}\\n \\n \\n
    \\n {{#each this.parseAlerts.rows as |row|}}\\n
  • \\n \\n {{tc this \\'line\\' x=row.item1}}\\n {{row.item2}}\\n
  • \\n {{/each}}\\n
\\n {{else}}\\n
\\n \\n {{tc this \\'noErrorsOrWarnings\\'}}\\n
\\n {{/if}}\\n\\n {{#if this.resultHasNoErrors}}\\n
\\n \\n {{this.parseResults.estimatedImportTime}}\\n
\\n\\n \\n \\n\\n {{#if this.importSummary}}\\n
    \\n {{#each this.importSummary as |stat|}}\\n
  • {{stat}}
  • \\n {{/each}}\\n
\\n {{/if}}\\n {{/if}}\\n {{/if}}\\n
\\n\\n {{#if data.permissions.hasInternalBeta}}\\n \\n {{/if}}\\n\\n \\n \\n\\n <:error as |PageViewError|>\\n \\n \\n
\\n \\n\",{ moduleName: \"customer-site/components/access-control/users/bulk-create/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 { service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type AccessControlPermissionsCollection from 'customer-site/models/access-control/access-control-permissions-collection';\n\ninterface CSVResources {\n firstName: string;\n lastName: string;\n emailAddress: string;\n pinCode: string;\n cardSerial1: string;\n cardSerial2: string;\n userGroup: string;\n startDate: string;\n startTime: string;\n endDate: string;\n endTime: string;\n mobileCredential: string;\n action: string;\n create: string;\n edit: string;\n delete: string;\n yes: string;\n no: string;\n}\n\ninterface ParseResults {\n userCreateCount: number;\n userModifyCount: number;\n userDeleteCount: number;\n userSkipCount: number;\n estimatedImportTime: string;\n errors: { item1: string; item2: string }[];\n warnings: { item1: string; item2: string }[];\n}\n\ninterface ParseAlert {\n title: string;\n description: string;\n icon: string;\n rows: ParseResults['errors'] | ParseResults['warnings'];\n}\n\nexport interface AccessControlUsersBulkCreateSignature {\n Args: {\n csvResources: Promise;\n permissions: Promise;\n };\n}\n\n@intlPath({ path: 'access-control/users/bulk-create' })\nexport default class AccessControlUsersBulkCreate extends Component {\n @service declare modals: ServiceRegistry['modals'];\n @service declare intl: ServiceRegistry['adc-intl'];\n @service declare ajax: ServiceRegistry['ajax'];\n @service declare notificationManager: ServiceRegistry['notification-manager'];\n\n permissions?: AccessControlPermissionsCollection;\n csvResources?: CSVResources;\n\n /**\n * Results of parsing the uploaded CSV file.\n */\n @tracked parseResults?: ParseResults;\n\n /**\n * Indicates the user has chosen to bypass the duplicate email check (only available for DEV or TEST).\n */\n bypassDuplicateEmailCheck = false;\n\n /**\n * Indicates we received and parsed a valid CSV file.\n */\n get isReadyForImport(): boolean {\n const { parseResults } = this;\n if (!parseResults) {\n return false;\n }\n\n return (\n (!parseResults.errors || !parseResults.errors.length) &&\n !!(parseResults.userCreateCount || parseResults.userModifyCount || parseResults.userDeleteCount)\n );\n }\n\n /**\n * Warnings and errors encountered while parsing the CSV file.\n */\n get parseAlerts(): ParseAlert | undefined {\n const { errors = [], warnings = [] } = this.parseResults ?? {},\n { intl } = this,\n fnGetAlerts = (title: string, description: string, icon: string, rows: ParseAlert['rows']): ParseAlert => ({\n title: intl.tc(this, title),\n description: intl.tc(this, description),\n icon,\n rows\n });\n\n if (errors.length) {\n console.log('errors', errors);\n return fnGetAlerts('errors', 'errorsDescription', 'issue', errors);\n }\n\n if (warnings.length) {\n console.log('warnings', warnings);\n return fnGetAlerts('warnings', 'warningsDescription', 'info', warnings);\n }\n\n return undefined;\n }\n\n /**\n * Headers for the example CSV table.\n */\n get tableHeaders(): string[] {\n const { csvResources } = this;\n return csvResources\n ? [\n csvResources.firstName,\n csvResources.lastName,\n csvResources.emailAddress,\n csvResources.pinCode,\n csvResources.cardSerial1,\n csvResources.cardSerial2,\n csvResources.userGroup,\n csvResources.startDate,\n csvResources.startTime,\n csvResources.endDate,\n csvResources.endTime,\n csvResources.action\n ]\n : [];\n }\n\n /**\n * Rows of data for the example CSV table.\n */\n @computed('csvResources')\n get exampleTableRows(): string[][] {\n const { intl, csvResources } = this;\n if (!csvResources) {\n return [[]];\n }\n\n return [\n ['James', 'Smith', 'jsmith@security.com', '1234', '74986', '', '', '', '', '', '', csvResources.create],\n [\n 'Juan',\n 'Pérez',\n 'jpérez@security.com',\n '6543',\n '74988',\n '98653',\n intl.t('generic.manager'),\n intl.formatDateTz('9/3/2023', {\n month: 'numeric',\n year: 'numeric',\n day: 'numeric'\n }),\n '14:23',\n '',\n '',\n csvResources.edit\n ],\n ['Jóna', 'Jónsdóttir', '', '3568', '', '', '', '', '', '', '', csvResources.create],\n [\n 'Taro',\n 'Yamada',\n '',\n '',\n '74683',\n '',\n intl.t('generic.contractor'),\n '',\n '',\n intl.formatDateTz('12/21/1999', {\n month: 'numeric',\n year: 'numeric',\n day: 'numeric'\n }),\n '0:00',\n csvResources.delete\n ]\n ];\n }\n\n /**\n * Indicates we parsed the CSV file with no errors.\n */\n get resultHasNoErrors(): boolean {\n const results = this.parseResults;\n return !results || results.errors.length === 0;\n }\n\n /**\n * Proposed user import summary.\n */\n get importSummary(): string[] {\n const { parseResults, intl } = this;\n if (!parseResults) {\n return [];\n }\n\n return (['userCreateCount', 'userModifyCount', 'userDeleteCount', 'userSkipCount'] as const)\n .map((key) => {\n const v = parseResults[key];\n return v > 0\n ? intl.tc(this, key, {\n numUsers: v\n })\n : '';\n })\n .filter((v) => !!v);\n }\n\n /**\n * Updates the required data with resolved versions.\n */\n @action dataLoaded(resolvedModel: {\n csvResources: CSVResources;\n permissions: AccessControlPermissionsCollection;\n }): void {\n Object.assign(this, resolvedModel);\n }\n\n /**\n * Download the template for bulk user management.\n */\n @action downloadTemplate(): void {\n window.open(`${this.permissions!.exportUsersListUrl}?onlyTemplate=1`, '_blank');\n }\n\n /**\n * Download the list of all users on the system in CSV format.\n */\n @action downloadUsers(): void {\n const { intl } = this;\n this.modals.showConfirmationDialog(intl.tc(this, 'downloadUsers'), intl.t('utils.users.downloadUsersWarning'), {\n text: intl.t('generic.download'),\n action: () => {\n window.open(this.permissions!.exportUsersListUrl, '_blank');\n }\n });\n }\n\n /**\n * Resets local parse results when a new upload file is selected.\n */\n @action fileChanged(): void {\n this.parseResults = undefined;\n }\n\n /**\n * Updates local parse results from the server.\n */\n @action fileUploaded({ value }: { value: ParseResults }): void {\n this.parseResults = value;\n }\n\n /**\n * Called if the upload fails at the server.\n */\n @action uploadFailed(): void {\n this.notificationManager.addError(this.intl.tc(this, 'unableToParseError'));\n this.fileChanged();\n }\n\n /**\n * Initiates the import procedure.\n */\n @action async importUsers(): Promise {\n try {\n const result = await this.ajax.apiRequestForValue<{ success: string }>(\n 'accessControl/bulkUserImport/startImport',\n undefined,\n // @ts-expect-error Not sure we should be sending random data like this as the XHR body, TS doesn't like it.\n this.bypassDuplicateEmailCheck,\n 'POST'\n );\n\n this.notificationManager.addSuccess(result.success);\n } catch (ex) {\n this.notificationManager.addError(ex.errors[0].detail);\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::BulkCreate': typeof AccessControlUsersBulkCreate;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/components/access-control/users/edit-not-supported/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './style.scss';\n\nexport interface AccessControlUsersEditNotSupportedSignature {\n Args: {\n /** The text to display in the inline-alert. */\n text: string;\n };\n}\n\nconst AccessControlUsersEditNotSupported = templateOnlyComponent();\nexport default AccessControlUsersEditNotSupported;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::EditNotSupported': typeof AccessControlUsersEditNotSupported;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n
\\n \\n {{#if @isSecurityPanelPresentOnSystem}}\\n \\n \\n \\n {{/if}}\\n \\n\\n \\n
\\n\\n
\\n\\n\",{ moduleName: \"customer-site/components/access-control/users/edit/access-plans/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type ParentRoute from 'customer-site/access-control/users/edit/route';\nimport type AccessControlAccessPlanModel from 'customer-site/models/access-control/access-control-access-plan';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\nexport interface AccessControlUserEditAccessPlansSignature {\n Args: {\n model: ModelFrom;\n dataLoaded: ({\n user,\n accessPlans\n }: {\n user: AccessControlUser;\n accessPlans: AccessControlAccessPlanModel[];\n }) => void;\n cancelAction: () => void;\n saveUserPlans: (user: AccessControlUser) => Promise;\n addAccessPlanMenuItems: Promise<{ name: string; icon: string; action: VoidFunction }[]>;\n isSecurityPanelPresentOnSystem: boolean;\n selectedAccessPlans?: AccessControlAccessPlanModel[];\n setAccessPlans: (s: AccessControlAccessPlanModel[]) => void;\n deleteAccessPlan: (accessPlan: AccessControlAccessPlanModel) => void;\n user?: AccessControlUser;\n };\n}\n\nconst AccessControlUserEditAccessPlans = templateOnlyComponent();\nexport default AccessControlUserEditAccessPlans;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Edit::AccessPlans': typeof AccessControlUserEditAccessPlans;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck: Please convert to PageView::Edit and do not use target=this in confirmAction. }}\\n\\n \\n
\\n
\\n \\n
\\n
\\n
\\n\",{ moduleName: \"customer-site/components/access-control/users/edit/expiring-credentials/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type ParentRoute from 'customer-site/access-control/users/edit/route';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type { ModelFrom } from 'customer-site/utils/type-utils';\n\nexport interface AccessControlUserEditExpiringCredentialsSignature {\n Args: {\n model: ModelFrom;\n resolvedModel?: ModelFrom;\n saveUser: (user: AccessControlUser, userCode?: string, deviceId?: string) => Promise;\n user?: AccessControlUser;\n updateExpiringCredentialsDates: (startDate: Date, endDate: Date) => void;\n };\n}\n\nconst AccessControlUserEditExpiringCredentials =\n templateOnlyComponent();\nexport default AccessControlUserEditExpiringCredentials;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Edit::ExpiringCredentials': typeof AccessControlUserEditExpiringCredentials;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n

\\n \\n {{tc this \\'insecureDualAccess\\'}}\\n

\\n \\n

\\n {{tc this \\'insecureDualAccessDesc\\'}}\\n

\\n
\\n\",{ moduleName: \"customer-site/components/access-control/users/item/two-person-conflict/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 * @classdesc\n * Component that displays a warning when users are missing credentials for access plans.\n */\n@intlPath({ path: 'access-control/users/item/two-person-conflict' })\nexport default class TwoPersonConflict extends Component {}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
\\n

\\n \\n {{t \\'access-control.users.index.conflictingCredentials\\'}}\\n

\\n\\n

\\n {{t \\'access-control.users.index.conflictingCredentialsDesc\\'}}\\n {{#if @isLinkedToActiveDirectory}}\\n {{t \\'access-control.users.index.activeDirectoryConflictingCredentialsDesc\\'}}\\n {{/if}}\\n

\\n\\n \\n \\n \\n \\n \\n \\n \\n\\n \\n {{#each @conflicts as |conflict index|}}\\n \\n {{#each (array (await conflict.firstUser) (await conflict.secondUser)) as |user userIndex|}}\\n \\n {{/each}}\\n \\n {{/each}}\\n \\n
{{t \\'access-control.users.index.user1\\'}}{{t \\'access-control.users.index.user2\\'}}
\\n {{#if (and @isEnterprise (not user.isEditSupported))}}\\n {{!-- @glint-expect-error user.systemGroup and user.system are both async, so we need to use get to access properties (after we await). --}}\\n {{user.displayName}} ({{if user.isEnterprise user.systemGroup.description user.system.description}})\\n {{else}}\\n {{user.displayName}}\\n {{#if user.activeDirectoryFlag}}\\n ({{t \\'generic.access-control.activeDirectoryUser\\'}})\\n {{/if}}\\n {{/if}}\\n
\\n
\\n\",{ moduleName: \"customer-site/components/access-control/users/item/conflicting-credentials/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type AccessControlCredentialConflict from 'customer-site/models/access-control/credentials/access-control-credential-conflict';\nimport './_style.scss';\n\nexport interface ConflictingCredentialsSignature {\n Args: {\n isEnterprise: boolean;\n isLinkedToActiveDirectory: boolean;\n conflicts?: AccessControlCredentialConflict[];\n editUser: (user: AccessControlUser) => void;\n };\n}\n\nconst ConflictingCredentials = templateOnlyComponent();\nexport default ConflictingCredentials;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Item::ConflictingCredentials': typeof ConflictingCredentials;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#unless (media \\'isMobile\\')}}\\n {{#if this.user.accessPlans}}\\n \\n {{/if}}\\n {{/unless}}\\n\\n {{#if this.user.isMissingCredentialForAccessPlan}}\\n
\\n \\n
\\n {{/if}}\\n\\n\",{ moduleName: \"customer-site/components/access-control/users/list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport { action, computed, get } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { getAccessControlPermissions } from 'customer-site/classes/access-control/access-plans/base-index-route';\nimport { intlPath } from '@adc/i18n/path';\nimport {\n EmberAccessControlUserEdit,\n EmberEnterpriseAccessControlUserEdit,\n UserAddEdit\n} from '../../../../enums/CustomerPageUrl';\nimport BaseUserItem from '../../../users/list/base-user-item/index';\n\nimport './_style.scss';\n\n/**\n * @classdesc Displays a single User in the Access Control Users view.\n *\n * @class components.access-control.users.list.AccessControlListItem\n * @extends components.users.list.BaseUserItemComponent\n */\n@intlPath({ path: 'access-control.users.list' })\nexport default class AccessControlListItem extends BaseUserItem {\n @service contextManager;\n @service intl;\n\n /** @override */\n tagName = '';\n\n /**\n * Determines if clicking on a user sends them to the user edit page or not\n *\n * @type {boolean}\n */\n editOnItemClick = true;\n\n /**\n * Indicates whether we should display the 'extra info' field.\n *\n * @function\n * @returns {boolean}\n */\n @computed('user.{isPrimary,isDuress}')\n get showExtraInfo() {\n const { user } = this;\n return user && !user.isPrimary && !user.isDuress;\n }\n\n /**\n * Text description of how many access plans this user belongs to\n *\n * @function\n * @returns {string}\n */\n @computed('user.accessPlans.length')\n get accessPlanSummary() {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/no-get, ember/classic-decorator-no-classic-methods\n return this.intl.tc(this, 'accessPlanCount', { count: this.get('user.accessPlans.length') || 0 });\n }\n\n /**\n * Returns a list of credential types to be displayed under the user's name.\n *\n * @function\n * @returns {string}\n */\n @computed(\n 'media.isMobile',\n 'user.{system.content,accessCards,isDuress,pinCodes,isEnterprise}',\n 'user.systemGroup.{id,}',\n 'contextManager.isEnterprise',\n 'contextManager.identityModel.{isPointCentralAccessControl,selectedSystemGroup.id}',\n 'permissions.viewMobileCredential'\n )\n get credentialTypes() {\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/no-get, ember/classic-decorator-no-classic-methods\n if (!this.user || this.get('user.isDuress') || this.get('media.isMobile')) {\n return '';\n }\n\n const enterpriseTranslation = this.intl.t('generic.enterprise');\n\n if (this.contextManager.identityModel.isPointCentralAccessControl) {\n // For AC/PC, display subgroup and parent user description as \"enterprise\". This is only done on the single system level\n if (!this.user.system.content && !this.contextManager.isEnterprise) {\n return enterpriseTranslation;\n }\n } else {\n // If the user belongs to a sub/parent group that is on a different scope (assume to be higher), display \"enterprise\" as user secondary description\n if (\n this.user.isEnterprise &&\n get(this.contextManager.identityModel.selectedSystemGroup, 'id') !== get(this.user.systemGroup, 'id')\n ) {\n return enterpriseTranslation;\n }\n }\n\n // Does the user have access cards that are not mobile credentials?\n const hasNonMcAccessCards = this.user.accessCards.rejectBy('isMobileCredential').length;\n\n return (\n [\n hasNonMcAccessCards ? ['accessCards.length', 'badge'] : [],\n ['pinCodes.length', 'pinCode'],\n this.permissions.get('viewMobileCredential') ? ['mobileCredentials.length', 'mobileCredential'] : []\n ]\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n .map(([name, key]) => (this.get(`user.${name}`) ? this.intl.tc(this, key) : undefined))\n .compact()\n .join(', ') || this.intl.tc(this, 'noCredentials')\n );\n }\n\n /**\n * Redirects to the edit page for the specific user.\n *\n * @param {models.access-control.AccessControlUser} user\n */\n @action\n editUser(user) {\n if (user.isDuress) {\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(UserAddEdit, { search: `?contactId=${user.id}` });\n return;\n }\n\n const routeEnum = this.isEnterprise ? EmberEnterpriseAccessControlUserEdit : EmberAccessControlUserEdit;\n this.contextManager.transitionToNativeRoute(routeEnum, user.id);\n }\n\n /**\n * If we are listening for clicks on the whole item, sends an editUser action.\n *\n * @param {models.users.BaseUser} user\n */\n @action\n itemClicked() {\n if (this.editOnItemClick) {\n this.editUser(this.user);\n }\n }\n\n /**\n * After a user is deleted.\n */\n @action\n afterDelete() {\n const identityManager = this.identityManager,\n store = identityManager.get('store');\n\n // Reload the users permissions because information about the duress users may have changed.\n getAccessControlPermissions(store, identityManager);\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:toolbar as |api|>\\n \\n <:items-count>\\n {{t \\'access-control.users.index.usersCount\\' numUsers=@usersCount}}\\n \\n\\n <:default>\\n {{!-- @glint-expect-error @model.permissions is async, we need to await before we get values from it. --}}\\n {{#if (await @model.permissions.canModifyUserAccess)}}\\n \\n {{/if}}\\n\\n {{#unless this.isTouchDevice}}\\n {{!-- @glint-expect-error @model.permissions is async, we need to await before we get values from it. --}}\\n {{#unless (and @isEnterprise (await @model.permissions.isPointCentralAccessControl))}}\\n \\n \\n \\n {{/unless}}\\n {{/unless}}\\n \\n \\n \\n\\n <:default as |PageViewContainer|>\\n {{#unless this.doNotLoadCredentials}}\\n \\n {{/unless}}\\n\\n {{!-- @glint-expect-error The types for accessPoints in classes/access-control/users/filter-route use never[], which I think is probably wrong, please fix. --}}\\n \\n\\n {{!-- @glint-expect-error @model.permissions is async, we need to await before we get values from it. --}}\\n {{#if (and (await @model.permissions.additionalAccessSettingsEnabled) this.showTwoPersonConflict)}}\\n \\n {{!-- @glint-expect-error Please convert this component to TypeScript. --}}\\n \\n \\n {{/if}}\\n\\n {{#unless this.doNotLoadCredentials}}\\n {{#if @model.conflicts.length}}\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n
\\n \\n
\\n \\n
\\n {{/if}}\\n {{/unless}}\\n\\n {{!-- @glint-expect-error @model.permissions is async, we need to await before we get values from it. --}}\\n {{#if (await @model.permissions.viewMobileCredential)}}\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n {{!-- @glint-expect-error The types for mobileCredentialUtilization in classes/access-control/users/base-index-route use object, which I think is probably wrong, please fix. --}}\\n \\n \\n \\n {{/if}}\\n\\n \\n <:loading as |PageViewLoading|>\\n \\n \\n\\n <:default as |data|>\\n {{#if @users.length}}\\n {{!-- @glint-expect-error The class property should be a component property, not an html property. Please fix this. --}}\\n \\n
  • \\n {{!-- @glint-expect-error Please convert this component to TypeScript. --}}\\n \\n
  • \\n \\n {{/if}}\\n\\n \\n\\n \\n \\n
    \\n \\n\\n\",{ moduleName: \"customer-site/components/access-control/users/index-route/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, get, action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { General } from 'customer-site/enums/ContactUserType';\nimport {\n EmberAccessControlUserEdit,\n EmberAccessControlUserBulkCreate,\n EmberAccessControlUserGroups,\n EmberEnterpriseAccessControlUserGroups,\n EmberEnterpriseAccessControlUserEdit,\n EmberEnterpriseAccessControlUserEditUserInformation,\n EmberEnterpriseAccessControlUserBulkCreate,\n UserAddEdit,\n EmberAccessControlUserEditUserInformation\n} from 'customer-site/enums/CustomerPageUrl';\nimport { getDuressActionItem } from 'customer-site/users/index/controller';\nimport DropdownActionItem from '@adc/ui-components/utils/dropdown-action-item';\n\nimport './_style.scss';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type BaseRoute from 'customer-site/classes/access-control/users/base-index-route';\nimport type ContactsFilterManager from 'customer-site/classes/access-control/users/helpers/filter-manager';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type CustomerSiteIntlService from 'customer-site/services/intl';\nimport type { ModelFrom, ResolvedModelFrom } from 'customer-site/utils/type-utils';\n\nexport interface AccessControlUsersIndexRouteSignature {\n Args: {\n model: ModelFrom;\n users: AccessControlUser[];\n lastReached: VoidFunction;\n inFlight?: boolean;\n usersCount?: number;\n filtersManager: ContactsFilterManager;\n isEnterprise?: boolean;\n canLoginMergeUser?: boolean;\n };\n}\n\nexport default class AccessControlUsersIndexRouteComponent extends Component {\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare intl: CustomerSiteIntlService;\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n @tracked resolvedModel?: Pick<\n ResolvedModelFrom,\n 'conflicts' | 'mobileCredentialUtilization' | 'permissions'\n >;\n\n /**\n * Returns whether the user is on a touch device.\n */\n @reads('contextManager.isTouchDevice')\n declare isTouchDevice: boolean;\n\n @computed('args.model.qp.option')\n get doNotLoadCredentials(): boolean {\n const parsed = parseInt(this.args.model.qp.option);\n return isNaN(parsed) ? false : (parsed & 2) === 2;\n }\n\n /**\n * Tells the route view how many containers we intend on rendering. Used for accurate metric kpi threshold metric tracking.\n */\n @computed('isTouchDevice', 'doNotLoadCredentials', 'args.model.{conflicts.length,permissions.viewMobileCredential}')\n get numOfContainersToRender() {\n let containerCount = 1;\n\n if (!this.doNotLoadCredentials && this.args.model.conflicts.length) {\n containerCount++;\n }\n\n if (get(this.args.model.permissions, 'viewMobileCredential')) {\n containerCount++;\n }\n\n return containerCount;\n }\n\n @computed('identityManager.{troubleConditions.issues.[],isEnterprise}', 'args.users.[]')\n get showTwoPersonConflict() {\n const { identityManager } = this,\n dualAccessTroubles = !!identityManager.troubleConditions.issues?.some(\n (tc) => tc.troubleConditionType == 201\n );\n\n if (identityManager.isEnterprise) {\n return dualAccessTroubles && this.args.users.some((u) => u.accessCards.length > 1);\n }\n\n return dualAccessTroubles;\n }\n\n /**\n * Available Actions.\n */\n @computed('resolvedModel.permissions.{canViewUserAccess,canModifyUserAccess,duressUserIds.[]}', 'args.isEnterprise')\n get toolsDropdownButtons(): Promise {\n const { resolvedModel } = this;\n if (!resolvedModel) {\n return Promise.resolve([]);\n }\n\n return (async () => {\n const links = [],\n permissions = resolvedModel.permissions,\n { contextManager, intl, navigation } = this,\n exportPanelSlotNumbersUrl = permissions.exportPanelSlotNumbersUrl;\n\n const duressItem = getDuressActionItem(\n this.intl,\n permissions,\n false,\n () => {\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 return contextManager.transitionToRouteId(UserAddEdit, {\n search: '?duressCode=1&fromEmberUsers=1'\n });\n },\n (duressUserId) => {\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 return contextManager.transitionToRouteId(UserAddEdit, {\n search: `?contactId=${duressUserId}&fromEmberUsers=1`\n });\n }\n );\n\n // Duress User Add/Edit.\n if (duressItem) {\n links.push(duressItem);\n }\n\n // Export Panel Slot Numbers.\n if (exportPanelSlotNumbersUrl) {\n links.push(\n DropdownActionItem.create({\n name: intl.t('users.index.exportPanelSlotNumbers'),\n action: () => window.open(exportPanelSlotNumbersUrl, '_blank')\n })\n );\n }\n\n // Bulk Create users\n if (!permissions.isPointCentralAccessControl && permissions.canViewUserAccess) {\n links.push(\n DropdownActionItem.create({\n name: intl.t('access-control.users.index.bulkUserCreation'),\n action: () => {\n navigation.transitionToRouteId(\n this.args.isEnterprise\n ? EmberEnterpriseAccessControlUserBulkCreate\n : EmberAccessControlUserBulkCreate\n );\n }\n })\n );\n }\n\n // User Groups Management\n if (permissions.canViewUserAccess && !permissions.isPointCentralAccessControl) {\n links.push(\n DropdownActionItem.create({\n name: intl.t('access-control.users.index.customUserGroups'),\n action: () => {\n navigation.transitionToRouteId(\n this.args.isEnterprise\n ? EmberEnterpriseAccessControlUserGroups\n : EmberAccessControlUserGroups\n );\n }\n })\n );\n }\n\n return links;\n })();\n }\n\n /**\n * Navigate to the edit page for the specified user.\n */\n @action editUser(user: AccessControlUser): void {\n const { id } = user;\n\n if (user.isDuress) {\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(UserAddEdit, {\n search: `?contactId=${id}`\n });\n return;\n }\n\n this.navigation.transitionToRouteId(\n this.args.isEnterprise ? EmberEnterpriseAccessControlUserEdit : EmberAccessControlUserEdit,\n id\n );\n }\n\n /**\n * Transitions the app to the view for adding new access control user.\n */\n @action addNewUser(): void {\n const routeEnum = this.args.isEnterprise\n ? EmberEnterpriseAccessControlUserEditUserInformation\n : EmberAccessControlUserEditUserInformation;\n this.contextManager.transitionToNativeRoute(routeEnum, 'new', { userType: General });\n }\n\n /**\n * After a user is deleted.\n */\n @action async afterUserDeleted(): Promise {\n // Reload the users permissions because information about the duress users may have changed.\n this.resolvedModel?.permissions.reload();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::IndexRoute': typeof AccessControlUsersIndexRouteComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n {{#if (await this.shouldDisplay)}}\\n \\n {{/if}}\\n
    \\n\",{ moduleName: \"customer-site/components/access-control/users/item/armed-panels-warning/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type Store from '@ember-data/store';\nimport type AccessControlAccessPoint from 'customer-site/models/access-control/access-control-access-point';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type NavigationService from 'customer-site/services/navigation';\nimport './_style.scss';\n\ninterface ArmedPanelsWarningComponentSignature {\n Element: HTMLDivElement;\n Args: {\n accessPoints?: ADCAsyncStoreFindAll | ADCRecordArray;\n };\n}\n\n/**\n * @classdesc\n * Component that displays a warning when panel access cannot be changed due to arming.\n */\n@intlPath({ path: 'access-control/users/item/armed-panels-warning' })\nexport default class ArmedPanelsWarning extends Component {\n @service declare intl: ADCIntlService;\n @service declare ajax: AjaxService;\n @service declare store: Store;\n @service declare navigation: NavigationService;\n\n /**\n * Gets access points to check for arming.\n *\n */\n @computed('args.accessPoints')\n get accessPoints(): ADCAsyncStoreFindAll | ADCRecordArray {\n return this.args.accessPoints ?? this.store.findAll('access-control/access-control-access-point');\n }\n\n /**\n * Filters all the access points on the context down to just the ones that are armed unchangeable panels.\n *\n */\n @computed('accessPoints')\n get armedUnchangeablePanels(): Promise {\n return (async () => {\n const accessPoints = await this.accessPoints;\n\n return accessPoints.filter((ap) => ap.isArmedUnchangeablePanel);\n })();\n }\n\n /**\n * Determines if banner should be displayed or not.\n *\n */\n @computed('armedUnchangeablePanels')\n get shouldDisplay(): Promise {\n return (async () => {\n return !isEmpty(await this.armedUnchangeablePanels);\n })();\n }\n\n /**\n * Aggregates the armed panels by system, concatenates them, and casts them to a user-friendly string.\n *\n */\n @computed('armedUnchangeablePanels')\n get armedPanelsList(): Promise {\n return (async () => {\n const armedUnchangeablePanels = await this.armedUnchangeablePanels;\n const panelsBySystem: Record = await armedUnchangeablePanels.reduce(\n async (accPromise, panel) => {\n const acc = await accPromise,\n system = await panel.system,\n systemName = system.description,\n panelName = panel.name;\n\n if (!acc[systemName]) {\n acc[systemName] = [];\n }\n\n acc[systemName].push(panelName);\n return acc;\n },\n Promise.resolve({} as Record)\n );\n\n const armedPanelsList: string[] = [];\n\n for (const system in panelsBySystem) {\n armedPanelsList.push(`{${system}: ${panelsBySystem[system].join(', ')}}`);\n }\n\n return armedPanelsList.join(', ');\n })();\n }\n\n /**\n * Returns message displayed depending on whether the banner is on the users page or not.\n *\n */\n @computed('armedPanelsList')\n get message(): Promise {\n return (async () => {\n const deviceList = await this.armedPanelsList;\n return this.intl.tc(this, 'armedPanelsWarning', { deviceList });\n })();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Item::ArmedPanelsWarning': typeof ArmedPanelsWarning;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n \\n {{#if this.showCredentialExpireOptions}}\\n
    \\n {{#if (and @hideAdditionalWarnings this.showStartDate)}}\\n
    \\n \\n {{tc this \\'temporaryAccessPlanStartTimeWarningMessage\\'}}\\n
    \\n {{/if}}\\n\\n \\n\\n {{#if this.showStartDate}}\\n
    \\n \\n\\n \\n\\n \\n
    \\n {{/if}}\\n {{#if this.showEndDate}}\\n
    \\n \\n\\n \\n\\n \\n
    \\n {{/if}}\\n {{#unless @hideTimeZoneInfo}}\\n
    \\n \\n {{this.timeZoneDescription}}\\n
    \\n {{/unless}}\\n {{!-- do not display alert when only an end date is selected or if hideAdditionalWarnings flag is set--}}\\n {{#unless (or @hideAdditionalWarnings (and this.hasCredentialEndDate (not this.hasCredentialStartDate)))}}\\n \\n {{/unless}}\\n
    \\n {{/if}}\\n
    \",{ moduleName: \"customer-site/components/access-control/users/item/expiring-credentials/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 { alias, or } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownSelectItem from '@adc/ui-components/utils/dropdown-select-item';\nimport { zonedTimeToUtc } from 'date-fns-tz';\nimport addDays from 'date-fns/addDays';\nimport getDate from 'date-fns/getDate';\nimport getHours from 'date-fns/getHours';\nimport getMinutes from 'date-fns/getMinutes';\nimport getMonth from 'date-fns/getMonth';\nimport getSeconds from 'date-fns/getSeconds';\nimport getYear from 'date-fns/getYear';\nimport maxDate from 'date-fns/max';\nimport minDate from 'date-fns/min';\nimport setDate from 'date-fns/setDate';\nimport setHours from 'date-fns/setHours';\nimport setMinutes from 'date-fns/setMinutes';\nimport setMonth from 'date-fns/setMonth';\nimport setSeconds from 'date-fns/setSeconds';\nimport setYear from 'date-fns/setYear';\nimport startOfDay from 'date-fns/startOfDay';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ModalService from '@adc/ui-components/services/modals';\nimport type AjaxService from 'customer-site/services/ajax';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport './_style.scss';\n\n/**\n * Bitwise flag values for selected interval type.\n *\n * @type {number}\n */\nexport const INTERVAL_START = 1,\n INTERVAL_END = 2;\n\n/**\n * Adjust the start and end times and send them up to the parent.\n */\nfunction adjustStartAndEndIntervals(\n this: ExpiringCredentialsComponent,\n timeIntervalType: number,\n start = this.credentialStartDate,\n end = this.credentialEndDate\n): void {\n const startValue = (timeIntervalType & INTERVAL_START) > 0 ? start : undefined;\n let endValue = (timeIntervalType & INTERVAL_END) > 0 ? end : undefined;\n\n // If there's a start date and an end date, we need to make sure the end date comes after the start date.\n if (startValue && endValue) {\n endValue = maxDate([startValue, endValue]);\n }\n\n this.args.updateDates(startValue, endValue, this.currentTimeZone);\n}\n\n/**\n * Gets the next day of a given date.\n */\nfunction getNextDay(timezone: string, date: Date = new Date()): Date {\n return zonedTimeToUtc(startOfDay(addDays(date, 1)), timezone);\n}\n\ninterface ExpiringCredentialsSignature {\n Args: {\n updateDates: (startDate?: Date, endDate?: Date, selectedTimezone?: string) => void;\n hasStartDate: boolean;\n hasEndDate: boolean;\n optionText: string;\n hideTimeZoneInfo: boolean;\n ignoreStartAndEndTimeRestrictions: boolean;\n startDate?: Date;\n endDate?: Date;\n selectedTimeZone?: string;\n hideAdditionalWarnings?: boolean;\n };\n}\n\n/**\n * @classdesc\n * Displays options to allow an end user to set start/end dates for credentials.\n */\n@intlPath({ path: 'access-control/users/item/expiring-credentials' })\nexport default class ExpiringCredentialsComponent extends Component {\n @service declare modals: ModalService;\n @service declare intl: ADCIntlService;\n @service declare contextManager: ContextManager;\n @service declare ajax: AjaxService;\n\n constructor(owner: unknown, args: ExpiringCredentialsSignature['Args']) {\n super(owner, args);\n\n this.getTimezone.perform();\n }\n\n /**\n * Does the user have a start date for credentials?\n */\n @alias('args.hasStartDate')\n declare hasCredentialStartDate: boolean;\n\n /**\n * Does the user have a end date for credentials?\n */\n @alias('args.hasEndDate')\n declare hasCredentialEndDate: boolean;\n\n /**\n * Do we show the options for selecting credential time intervals?\n */\n @or('hasCredentialStartDate', 'hasCredentialEndDate')\n declare showCredentialExpireOptions: boolean;\n\n /**\n * Return the current selected timezone\n */\n @computed('args.selectedTimeZone', 'intl.timeZone')\n get currentTimeZone(): string {\n const { selectedTimeZone } = this.args;\n\n return selectedTimeZone ? selectedTimeZone : this.intl.timeZone;\n }\n\n /**\n * This will be the full description of the current time zone\n */\n @tracked\n timeZoneDescription = '';\n\n /**\n * A bitwise flag indicating the currently selected time interval type drop down item.\n */\n @computed('hasCredentialStartDate', 'hasCredentialEndDate')\n get selectedTimeIntervalTypeValue(): number {\n const { hasCredentialStartDate } = this;\n\n if (hasCredentialStartDate && this.hasCredentialEndDate) {\n return INTERVAL_START + INTERVAL_END;\n }\n\n return hasCredentialStartDate ? INTERVAL_START : INTERVAL_END;\n }\n\n /**\n * Should we show the start date button?\n */\n @computed('selectedTimeIntervalTypeValue')\n get showStartDate(): boolean {\n return (this.selectedTimeIntervalTypeValue & INTERVAL_START) > 0;\n }\n\n /**\n * Should we show the end date button?\n */\n @computed('selectedTimeIntervalTypeValue')\n get showEndDate(): boolean {\n return (this.selectedTimeIntervalTypeValue & INTERVAL_END) > 0;\n }\n\n /**\n * Get the credential start date.\n */\n @computed('args.startDate', 'currentTimeZone')\n get credentialStartDate(): Date {\n return this.args.startDate ?? new Date(Date.now());\n }\n\n @computed('credentialStartDate')\n get minimumStartDate(): Date {\n const now = new Date(),\n { credentialStartDate = now } = this;\n\n return minDate([credentialStartDate, now]);\n }\n\n /**\n * Get the credential end date.\n */\n @computed('args.endDate', 'currentTimeZone')\n get credentialEndDate(): Date {\n return this.args.endDate ?? getNextDay(this.currentTimeZone);\n }\n\n @computed('credentialStartDate')\n get minimumEndDate() {\n const now = new Date(),\n { credentialStartDate = now } = this;\n\n return maxDate([credentialStartDate, now]);\n }\n\n /**\n * Items to put in dropdown options for credential time interval\n */\n @computed()\n get timeIntervalDropDownItems(): DropdownSelectItem[] {\n return [\n ['startAndEndDate', INTERVAL_START + INTERVAL_END],\n ['startDateOnly', INTERVAL_START],\n ['endDateOnly', INTERVAL_END]\n ].map(([key, value]) =>\n DropdownSelectItem.create({\n value: String(value),\n name: this.intl.t(`access-control.users.edit.${key}`)\n })\n );\n }\n\n /**\n * Action fired when the time interval type dropdown is changed.\n *\n * @param val - new value of the selected credential time interval type.\n */\n @action\n timeIntervalTypeChanged(val: string): void {\n adjustStartAndEndIntervals.call(this, parseInt(val, 10));\n }\n\n /**\n * Action fired when the 'credentials never expire' checkbox is changed.\n *\n * @param evt\n */\n @action\n hideCredentialExpireOptionsChanged(evt: Event & { target: HTMLInputElement }): void {\n const { updateDates } = this.args;\n\n if (evt.target.checked) {\n updateDates();\n return;\n }\n\n const { currentTimeZone } = this;\n updateDates(new Date(), getNextDay(currentTimeZone), this.currentTimeZone);\n }\n\n @action updateDateValue(type: string, date: Date): void {\n let { credentialStartDate, credentialEndDate } = this;\n const { ignoreStartAndEndTimeRestrictions } = this.args,\n fnConvert = (t: Date, min: Date) =>\n ignoreStartAndEndTimeRestrictions ? updateDate(t) : maxDate([min, updateDate(t)]),\n updateDate = (t: Date) => setYear(setMonth(setDate(t, getDate(date)), getMonth(date)), getYear(date));\n\n if (type === 'Start') {\n credentialStartDate = fnConvert(credentialStartDate, this.minimumStartDate);\n } else {\n credentialEndDate = fnConvert(credentialEndDate, this.minimumEndDate);\n }\n\n adjustStartAndEndIntervals.call(\n this,\n this.selectedTimeIntervalTypeValue,\n credentialStartDate,\n credentialEndDate\n );\n }\n\n @action updateTimeValue(type: string, time: Date): void {\n let { credentialStartDate, credentialEndDate } = this;\n const { ignoreStartAndEndTimeRestrictions } = this.args,\n fnConvert = (t: Date, min: Date) =>\n ignoreStartAndEndTimeRestrictions ? updateTime(t) : maxDate([min, updateTime(t)]),\n updateTime = (t: Date) =>\n setHours(setMinutes(setSeconds(t, getSeconds(time)), getMinutes(time)), getHours(time));\n\n if (type === 'Start') {\n credentialStartDate = fnConvert(credentialStartDate, this.minimumStartDate);\n } else {\n credentialEndDate = fnConvert(credentialEndDate, this.minimumEndDate);\n }\n\n adjustStartAndEndIntervals.call(\n this,\n this.selectedTimeIntervalTypeValue,\n credentialStartDate,\n credentialEndDate\n );\n }\n\n getTimezone = task({ drop: true }, async () => {\n const timezone = await this.ajax.apiRequest<{ value: { desc: string } }>(\n `api/timezones/getTimeZone/${encodeURIComponent(this.currentTimeZone)}`\n );\n this.timeZoneDescription = timezone.value?.desc ?? '';\n });\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Item::ExpiringCredentials': typeof ExpiringCredentialsComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n

    {{tc this \\'mobileCredentials\\'}}

    \\n\\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n {{this.systemName}}\\n
    \\n {{#if (is-enterprise)}}\\n
    \\n {{tc this \\'unitsCount\\' count=@utilizationData.units}}\\n
    \\n {{/if}}\\n
    \\n\\n
    \\n
    \\n
    \\n {{#if @utilizationData.singleSystem}}\\n
    \\n {{/if}}\\n {{#if @utilizationData.enterprise}}\\n
    \\n {{/if}}\\n {{#if @utilizationData.parentGroup}}\\n
    \\n {{/if}}\\n
    \\n
    \\n \\n

    \\n {{@utilizationData.singleSystem}}\\n {{#if (and (not (media \\'isMobile\\')) (is-enterprise))}}\\n {{tc this \\'singleSystemUsers\\'}}\\n {{else}}\\n {{t \\'generic.users\\'}}\\n {{/if}}\\n

    \\n \\n

    \\n {{@utilizationData.enterprise}}\\n {{#if (media \\'isMobile\\')}}\\n {{tc this \\'otherUsers\\'}}\\n {{else}}\\n {{if this.isParentGroupContext (tc this \\'subGroupUsers\\') (tc this \\'enterpriseUsers\\')}}\\n {{/if}}\\n

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

    \\n {{@utilizationData.parentGroup}}\\n {{#if (media \\'isMobile\\')}}\\n {{tc this \\'otherUsers\\'}}\\n {{else}}\\n {{tc this \\'parentGroupUsers\\' parentGroupName=this.systemName}}\\n {{/if}}\\n

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

    \\n {{@utilizationData.free}} {{tc this \\'free\\'}}\\n

    \\n
    \\n
    \\n
    \\n\\n
    \\n {{tc this \\'usersCount\\' count=@utilizationData.total}}\\n
    \\n
    \\n
    \",{ moduleName: \"customer-site/components/access-control/users/item/mobile-credential-utilization/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, get } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type { SafeString } from 'handlebars';\nimport './_style.scss';\n\ninterface MobileCredentialUtilizationArgs {\n utilizationData: Record;\n}\n\n@intlPath({ path: 'access-control/users/item/mobile-credential-utilization' })\nexport default class MobileCredentialUtilization extends Component {\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n\n @reads('contextManager.identityModel.isEnterprise')\n declare isEnterprise: boolean;\n\n @computed(\n 'isEnterprise',\n 'contextManager.identityModel.{selectedSystemGroup.description,selectedSystem.description}'\n )\n get systemName(): string {\n const { identityModel } = this.contextManager;\n // DO NOT COPY THIS, PLEASE IMPLEMENT THE SUGGESTION AND TEST.\n // @ts-expect-error Both selectedSystemGroup and selectedSystem are async, so we should await them before we query their properties.\n return get(this.isEnterprise ? identityModel.selectedSystemGroup : identityModel.selectedSystem, 'description');\n }\n\n @reads('contextManager.identityModel.viewingParentGroup')\n declare isParentGroupContext: boolean;\n\n private getWidthStyle(v: number): SafeString {\n return htmlSafe(`width: ${Math.min((v / this.args.utilizationData.total) * 100, 100)}%;`);\n }\n\n @computed('args.utilizationData.{singleSystem,total}')\n get singleSystemBarWidth(): SafeString {\n return this.getWidthStyle(this.args.utilizationData.singleSystem);\n }\n\n @computed('args.utilizationData.{enterprise,total}')\n get enterpriseSystemBarWidth(): SafeString {\n return this.getWidthStyle(this.args.utilizationData.enterprise);\n }\n\n @computed('args.utilizationData.{parentGroup,total}')\n get parentGroupSystemBarWidth(): SafeString {\n return this.getWidthStyle(this.args.utilizationData.parentGroup);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Item::MobileCredentialUtilization': typeof MobileCredentialUtilization;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n {{#if (await this.shouldDisplay)}}\\n \\n {{/if}}\\n
    \\n\",{ moduleName: \"customer-site/components/access-control/users/item/users-missing-credentials/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 { EmberAccessControlUsers, EmberEnterpriseAccessControlUsers } from 'customer-site/enums/CustomerPageUrl';\nimport { getMissingCredentialsInfo } from 'customer-site/models/access-control/access-control-access-plan';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type CustomerSiteIntlService from 'customer-site/services/intl';\nimport './_style.scss';\n\ninterface UsersMissingCredentialsSignature {\n Element: HTMLDivElement;\n Args: {\n missingCredentialsInfo?: ReturnType;\n isOnUsersPage?: boolean;\n };\n}\n\n/**\n * Component that displays a warning when users are missing credentials for access plans.\n */\n@intlPath({ path: 'access-control/users/item/users-missing-credentials' })\nexport default class UsersMissingCredentialsComponent extends Component {\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare intl: CustomerSiteIntlService;\n @service declare ajax: ServiceRegistry['ajax'];\n @service declare store: ServiceRegistry['store'];\n\n @tracked missingCredentialsInfo: ReturnType;\n\n constructor(owner: unknown, args: UsersMissingCredentialsSignature['Args']) {\n super(owner, args);\n\n // Enable passing in this value when needed, like for testing.\n this.missingCredentialsInfo = this.args.missingCredentialsInfo ?? getMissingCredentialsInfo.call(this);\n }\n\n /**\n * Returns message displayed depending on whether the banner is on the users page or not.\n */\n @computed('args.isOnUsersPage')\n get message(): string {\n return this.intl.tc(\n this,\n this.args.isOnUsersPage ? 'missingCredentialsUsersPage' : 'accessPlanMissingCredentials'\n );\n }\n\n /**\n * Determines if banner should be displayed or not.\n */\n @computed(\n 'missingCredentialsInfo.{hasUsersMissingCredentials,hasAccessPlansMissingCredentials}',\n 'args.isOnUsersPage'\n )\n get shouldDisplay(): Promise {\n return (async () => {\n const { hasUsersMissingCredentials, hasAccessPlansMissingCredentials } = await this.missingCredentialsInfo;\n\n // If the plans on the scope are missing credentials but not for the scope's users, only display on the plan/access point page.\n if (hasAccessPlansMissingCredentials === 'True' && !this.args.isOnUsersPage) {\n return true;\n }\n\n // If the plans on the scope are fine but there are scope users missing credentials for plans on a different scope,\n // show the banner only on the users page.\n return hasUsersMissingCredentials === 'True' && this.args.isOnUsersPage;\n })();\n }\n\n /**\n * Action for transitioning to users page.\n */\n @action async goToUsersPage(): Promise {\n const { hasUsersMissingCredentials, hasAccessPlansMissingCredentials, childUnitId } = await this\n .missingCredentialsInfo,\n { contextManager, identityManager, store } = this;\n\n // If we don't have missing credentials on this scope but have them on a child scope for this scope's access plans,\n // redirect to the child scopes's user's page.\n if (hasUsersMissingCredentials === 'False' && hasAccessPlansMissingCredentials === 'True' && childUnitId) {\n // Get location item from unit id.\n const location = await store.findRecord('enterprise/locations/location', parseInt(childUnitId));\n await identityManager.switchContext(location);\n contextManager.transitionToNativeRoute(EmberAccessControlUsers);\n return;\n }\n\n this.contextManager.transitionToNativeRoute(\n identityManager.isEnterprise ? EmberEnterpriseAccessControlUsers : EmberAccessControlUsers\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::Item::UsersMissingCredentials': typeof UsersMissingCredentialsComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\\n \\n\\n
    \\n
    \\n
    \\n {{@user.displayName}}\\n
    \\n\\n {{!-- If we populated the duplicate user count, then we display that over displaying the location of the user. --}}\\n {{#if @duplicateUserCount}}\\n {{tc this \\'duplicateUsersDetected\\' numOfDuplicateUsers=@duplicateUserCount}}\\n {{else}}\\n {{!-- If this is the selected user, then we will display a star next to it\\'s location name to signify it. --}}\\n
    \\n \\n
    \\n {{/if}}\\n
    \\n\\n {{yield}}\\n
    \\n\\n\",{ moduleName: \"customer-site/components/access-control/users/promote-user/promote-user-item/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type { UserAvatarComponentSignature } from 'customer-site/components/users/item/user-avatar';\n\ninterface AccessControlUsersPromoteUserItemSignature {\n Args: {\n classes: string;\n duplicateUserCount?: string;\n user: UserAvatarComponentSignature['Args']['user'];\n selectedUser?: boolean;\n };\n Blocks: {\n default: [];\n };\n}\n\n@intlPath({ path: 'access-control/users/promote-user/promote-user-item' })\nexport default class AccessControlUsersPromoteUserItem extends Component {}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::PromoteUser::PromoteUserItem': typeof AccessControlUsersPromoteUserItem;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n {{!-- Since the selected user is not apart of the duplicate user list we have to create an individual component for it. --}}\\n \\n
    \\n\\n

    {{t \\'components.access-control.users.promote-user.promote-user-page.duplicateUsersMessage\\'}}

    \\n\\n
    \\n {{!-- For each duplicate user, we want to create a list entry. --}}\\n {{#each @duplicateUsers as |duplicateUser|}}\\n \\n {{/each}}\\n
    \",{ moduleName: \"customer-site/components/access-control/users/promote-user/user-list/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport './_style.scss';\n\nexport interface AccessControlUsersPromoteUserUserListSignature {\n Args: {\n user: AccessControlUser;\n duplicateUsers?: AccessControlUser[];\n };\n}\n\nconst AccessControlUsersPromoteUserUserList = templateOnlyComponent();\nexport default AccessControlUsersPromoteUserUserList;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::PromoteUser::UserList': typeof AccessControlUsersPromoteUserUserList;\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 \\n
    \\n {{!-- Description of what will occur when the user selects to promote. --}}\\n
    \\n {{tc this \\'followingChanges\\'}}\\n
      \\n {{#if this.anyDuplicateUsers}}\\n
    • {{tc this \\'editableOnScopeWithDuplicates\\' name=data.user.displayName groupName=this.promotionScopeName}}
    • \\n
    • {{tc this \\'maintainDeviceAccessWithDuplicates\\'}}
    • \\n
    • {{tc this \\'stayInAccessPlansWithDuplicates\\'}}
    • \\n {{#if data.user.isEnterprise}}\\n
    • {{tc this \\'userHistoryFromGroupWithDuplicates\\' groupName=data.user.scopeName}}
    • \\n {{else}}\\n
    • {{tc this \\'userHistoryFromSystemWithDuplicates\\' systemName=data.user.scopeName}}
    • \\n {{/if}}\\n
    • {{tc this \\'userWillNotReceiveNotificationsWithDuplicates\\'}}
    • \\n {{else}}\\n
    • {{tc this \\'editableOnScope\\' name=data.user.displayName groupName=this.promotionScopeName}}
    • \\n
    • {{tc this \\'maintainDeviceAccess\\' name=data.user.displayName}}
    • \\n
    • {{tc this \\'stayInAccessPlans\\' name=data.user.displayName}}
    • \\n {{#if data.user.isEnterprise}}\\n
    • {{tc this \\'userHistoryFromGroup\\' groupName=data.user.scopeName}}
    • \\n {{else}}\\n
    • {{tc this \\'userHistoryFromSystem\\' systemName=data.user.scopeName}}
    • \\n {{/if}}\\n
    • {{tc this \\'userWillNotReceiveNotifications\\' name=data.user.displayName}}
    • \\n {{/if}}\\n
    \\n
    \\n\\n \\n\\n {{!-- Display the user list of users that will potentially be merged together and promoted --}}\\n {{!-- Only display the user list if there are duplicate users. --}}\\n {{#if this.anyDuplicateUsers}}\\n {{!-- @glint-expect-error data.duplicateUsers could be undefined, please fix. --}}\\n \\n {{/if}}\\n\\n \\n \\n\\n <:error as |PageViewError|>\\n \\n \\n\\n <:no-results as |PageViewNoResults|>\\n \\n \\n \\n
    \\n \\n
    \",{ moduleName: \"customer-site/components/access-control/users/promote-user/promote-user-page/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { PromoteSingleUser } from 'customer-site/enums/TrackedEvent';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ContextManager from '@adc/app-infrastructure/services/context-manager';\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 Store from '@ember-data/store';\nimport type { BasePromoteUserRouteModel } from 'customer-site/classes/access-control/users/promote-user/base-promote-user-route';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type AvailableSystemItem from 'customer-site/models/systems/available-system-item';\nimport type Stats from 'customer-site/services/stats';\nimport './_style.scss';\n\ninterface AccessControlPromoteUserPageSignature {\n Args: {\n model: BasePromoteUserRouteModel;\n };\n}\n\n@intlPath({ path: 'access-control/users/promote-user/promote-user-page' })\nexport default class AccessControlPromoteUserPage extends Component {\n @service declare contextManager: ContextManager;\n @service declare store: Store;\n @service declare modals: ModalService;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationManager;\n @service declare stats: Stats;\n\n resolvedModel?: {\n user: Awaited;\n duplicateUsers: Awaited;\n };\n\n /**\n * The model containing the user selected for promotion.\n */\n @alias('resolvedModel.user')\n declare user: AccessControlUser;\n\n /**\n * The model containing the list of duplicate users.\n */\n @alias('resolvedModel.duplicateUsers')\n declare duplicateUsers: AccessControlUser[];\n\n /**\n * This boolean signifies whether we have duplicate users or not.\n */\n @computed('duplicateUsers.length')\n get anyDuplicateUsers(): boolean {\n return this.duplicateUsers && this.duplicateUsers.length > 0;\n }\n\n /**\n * The property will be the display name of the scope that they users would be promoted to.\n */\n get promotionScopeName(): string {\n const systems = this.store.peekAll('systems/available-system-item'),\n systemGroup = systems.find((item: AvailableSystemItem) => item.get('subItems').findBy('isSelected'));\n\n return systemGroup?.name;\n }\n\n @action\n showPromoteUserConfirmationDialog(): void {\n // We have different wording for users with duplicates and users without duplicates.\n // To determine this we use anyDuplicateUsers.\n const anyDuplicateUsers = this.anyDuplicateUsers,\n titleResource = anyDuplicateUsers ? 'mergeAndPromoteUser' : 'promoteUser',\n confirmationTextResource = anyDuplicateUsers\n ? 'mergeAndPromoteConfirmationMessage'\n : 'promoteConfirmationMessage';\n\n // Using those resouces create the confirmation dialog.\n const title = this.intl.t(`generic.${titleResource}`),\n confirmationText =\n this.intl.tc(this, confirmationTextResource, { name: this.user.displayName }) +\n this.intl.tc(this, 'editableOnScopeConfirmationMessage', { groupName: this.promotionScopeName }) +\n this.intl.tc(this, 'clickContinue');\n\n this.modals.showConfirmationDialog(title, confirmationText, {\n text: this.intl.t('generic.continue'),\n action: async () => {\n await this.promoteUser();\n }\n });\n }\n\n @action\n async promoteUser(): Promise {\n const { user, duplicateUsers, notificationManager, promotionScopeName } = this;\n\n // Send Wavefront metric for tracking promote button click\n this.stats.logEvent(PromoteSingleUser);\n\n // Attempt to promote the user.\n try {\n await user.promoteUser(duplicateUsers.map((u) => Number(u.id)));\n } catch (error) {\n // We need to mark this text html safe because it contains html but we clean it on the backend\n notificationManager.addError(htmlSafe(error.errors[0].detail));\n return;\n }\n\n // If the user is successfully promoted, show a message and return to the previous route.\n notificationManager.addSuccess(\n this.intl.tc(this, 'userSuccessfullyPromoted', { name: user.displayName, groupName: promotionScopeName })\n );\n this.user.reload();\n\n this.returnToPreviousRoute();\n }\n\n @action\n returnToPreviousRoute(): void {\n // This is used for the cancel button on the promote user page.\n // It will transition to the previous route.\n this.contextManager.transitionToPreviousRoute();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::PromoteUser::PromoteUserPage': typeof AccessControlPromoteUserPage;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck: Do use target this for confirm action. }}\\n\\n \\n
    \\n
    \\n \\n {{@userGroupInitial}}\\n \\n
    \\n
    \\n
    \\n
    \\n \\n \\n \\n
    \\n
    \\n
    \\n\\n
    \",{ moduleName: \"customer-site/components/access-control/users/user-groups/edit/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type AccessControlUserGroup from 'customer-site/models/access-control/access-control-access-group';\nimport './_style.scss';\n\nexport interface AccessControlUsersUserGroupsEditSignature {\n Args: {\n model: Promise<{ userGroup: AccessControlUserGroup }>;\n resolvedModel: { userGroup: AccessControlUserGroup };\n saveUserGroup: (userGroup: AccessControlUserGroup, delayedHandler: Promise) => Promise;\n userGroup: AccessControlUserGroup;\n userGroupInitial: string;\n };\n}\n\nconst AccessControlUsersUserGroupsEdit = templateOnlyComponent();\nexport default AccessControlUsersUserGroupsEdit;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::UserGroups::Edit': typeof AccessControlUsersUserGroupsEdit;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n
    {{this.userGroupInitial}}
    \\n
    \\n
    \\n
    \\n {{@userGroup.name}}\\n
    \\n {{#if @userGroup.isGlobal}}\\n
    \\n \\n
    \\n {{else if this.isHigherLevelGroup}}\\n
    \\n \\n
    \\n {{/if}}\\n
    \\n\\n
    \\n {{t \\'components.access-control.user-groups.list.user-group-item.userCount\\' numUsers=@userGroup.numberOfUsers}}\\n
    \\n
    \\n
    \\n\",{ moduleName: \"customer-site/components/access-control/user-groups/list/user-group-item/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\n// Do not copy this deprecated usage. If you see this, please fix it\n// eslint-disable-next-line ember/no-classic-components\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport {\n EmberEnterpriseAccessControlUserGroupsEdit,\n EmberAccessControlUserGroupsEdit,\n EmberAccessControlUserEditNotSupported,\n EmberEnterpriseAccessControlUserEditNotSupported\n} from 'customer-site/enums/CustomerPageUrl';\nimport { DeleteActionItem, EditActionItem } from '@adc/ui-components/utils/action-item';\n\nimport './_style.scss';\n\n/**\n * Deletes the specified user group.\n *\n * @param {models.access-control.AccessControlAccessGroup} userGroup\n * @param {ADCIntlService} intl\n *\n * @private\n * @instance\n * @memberof components.access-control.user-groups.list.UserGroupItem\n */\nasync function deleteUserGroup(userGroup, intl) {\n const userGroupName = userGroup.name,\n fnGetTranslationValue = (translationKey, tokens) =>\n intl.t(`components.access-control.user-groups.list.user-group-item.${translationKey}`, tokens);\n\n this.modals.showConfirmationDialog(\n fnGetTranslationValue('deleteUserGroupTitle'),\n fnGetTranslationValue('confirmDelete', { userGroupName }),\n {\n text: intl.t('generic.delete'),\n css: 'btn-color-danger',\n action: async () => {\n try {\n await userGroup.destroyRecord();\n this.notificationManager.addSuccess(fnGetTranslationValue('userGroupDeleted', { userGroupName }));\n } catch (e) {\n userGroup.rollback();\n return Promise.reject();\n }\n }\n }\n );\n}\n\n/**\n * User Group Item\n */\nexport default class UserGroupItem extends Component {\n @service intl;\n @service notificationManager;\n @service modals;\n @service contextManager;\n\n tagName = '';\n\n /**\n * User group\n *\n * @type {models.access-control.AccessControlAccessGroup}\n */\n userGroup = null;\n\n @computed('userGroup.name')\n get userGroupInitial() {\n const { name = '' } = this.userGroup ?? {};\n return name.charAt(0);\n }\n\n @computed('isEnterprise', 'isParentGroupContext', 'userGroup.{isEnterprise,isParentGroup}')\n get isHigherLevelGroup() {\n const { userGroup } = this;\n\n if (userGroup === undefined) {\n return false;\n }\n\n return (\n (userGroup.isEnterprise && !this.isEnterprise && !this.isParentGroupContext) ||\n (userGroup.isParentGroup && !this.isParentGroupContext)\n );\n }\n\n /**\n * Returns the collection of action items for this user.\n *\n * @returns {Array}\n */\n @action\n getActionItems() {\n const { userGroup, isHigherLevelGroup } = this;\n if (!userGroup) {\n return [];\n }\n\n return [\n EditActionItem.create({\n action: () => this.editUserGroup(),\n disabled: userGroup.isGlobal\n }),\n DeleteActionItem.create({\n action: () => deleteUserGroup.call(this, userGroup, this.intl),\n disabled: userGroup.isGlobal || isHigherLevelGroup\n })\n ];\n }\n\n @action\n editUserGroup() {\n const { userGroup, isHigherLevelGroup, contextManager } = this;\n\n if (!userGroup.isGlobal) {\n if (isHigherLevelGroup) {\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 contextManager.transitionToRouteId(\n this.isEnterprise\n ? EmberEnterpriseAccessControlUserEditNotSupported\n : EmberAccessControlUserEditNotSupported\n );\n } else if (this.isEnterprise || this.isParentGroupContext) {\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 contextManager.transitionToRouteId(\n EmberEnterpriseAccessControlUserGroupsEdit,\n undefined,\n undefined,\n userGroup.id\n );\n } else {\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 contextManager.transitionToRouteId(\n EmberAccessControlUserGroupsEdit,\n undefined,\n undefined,\n userGroup.id\n );\n }\n }\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck:\\n Please convert RouteView to PageView\\n Please convert ListView to VerticalCollection\\n Please convert AccessControl::UserGroups::List::UserGroupItem to TS\\n}}\\n\\n \\n {{#unless (media \\'isMobile\\')}}\\n {{#if @showUserGroupsCount}}\\n
    \\n {{t \\'access-control.users.user-groups.index.userGroupCount\\' numUserGroups=@userGroupsCount}}\\n
    \\n {{/if}}\\n {{/unless}}\\n \\n
    \\n\\n \\n {{container.loading}}\\n \\n {{@getUserGroupInfoText}}\\n\\n \\n \\n \\n \\n {{container.error}}\\n\\n \\n\\n\",{ moduleName: \"customer-site/components/access-control/users/user-groups/index-page/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type AccessControlAccessGroup from 'customer-site/models/access-control/access-control-access-group';\nimport './_style.scss';\n\nexport interface AccessControlUsersUserGroupsIndexPageSignature {\n Args: {\n model: { accessGroups: ADCAsyncStoreFindAll };\n search: string;\n filterAccessGroups: (searchString: string) => void;\n showUserGroupsCount: boolean;\n userGroupsCount?: number;\n addUserGroup: () => void;\n getUserGroupInfoText: string;\n loadMoreUserGroupsAction: (index?: number) => void;\n userGroupCountChanged: (newUserGroupCount: number) => void;\n resetUserGroups: boolean;\n isEnterprise: boolean;\n isParentGroupContext: boolean;\n };\n}\n\nconst AccessControlUsersUserGroupsIndexPage = templateOnlyComponent();\nexport default AccessControlUsersUserGroupsIndexPage;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'AccessControl::Users::UserGroups::IndexPage': typeof AccessControlUsersUserGroupsIndexPage;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n\",{ moduleName: \"customer-site/components/users/edit-user-group/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 { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type AccessGroup from 'customer-site/models/access-control/access-control-access-group';\nimport type AccessControlUser from 'customer-site/models/access-control/access-control-user';\nimport type { ResolvedObject } from 'customer-site/utils/type-utils';\n\ninterface UsersEditUserGroupArgs {\n model: {\n user: Promise;\n accessGroups: ADCAsyncStoreQuery;\n };\n saveUser: (user: AccessControlUser) => Promise;\n}\n\ntype UserGroupItem = BinaryListItem & {\n props: {\n id: string;\n };\n};\n\nexport default class UsersEditUserGroup extends Component {\n @service declare intl: ADCIntlService;\n\n @tracked user?: AccessControlUser;\n @tracked accessGroups?: AccessGroup[];\n\n get availableAccessGroupOptions(): BinaryListItem[] {\n const { user } = this;\n if (!user) {\n return [];\n }\n\n const selectedAccessGroup = user.accessGroupId === 0 ? -1 : user.accessGroupId;\n return [\n ['-1', this.intl.t('access-control.users.edit.index.noUserGroup')],\n ...(this.accessGroups ?? []).map(({ id, name }) => [id, name])\n ].map(\n ([id, label]) =>\n new BinaryListItem({\n label,\n state: parseInt(id, 10) === selectedAccessGroup,\n props: { id }\n })\n );\n }\n\n /**\n * Sets the user's localeID to the newly selected language.\n */\n @action changeAccessGroup(user: AccessControlUser, items: UserGroupItem[]): void {\n const item = items.findBy('state');\n if (item) {\n user.accessGroupId = parseInt(item.props?.id, 10);\n }\n }\n\n @action dataLoaded({ user, accessGroups }: ResolvedObject): void {\n Object.assign(this, {\n user,\n accessGroups\n });\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Users::EditUserGroup': typeof UsersEditUserGroup;\n }\n}\n"],"names":["AccessControlAccessPlansEditController","EmberController","constructor","arguments","_defineProperty","ModifyPlanName","AccessControlAccessPlansEditRoute","BaseAccessGroupEditRoute","EmberAccessControlAccessPlanEdit","NewAccessPlanRoute","EmberAccessControlAccessPlanNew","rollbackModelOnTransition","accessPlan","this","currentModel","isNew","destroy","AccessControlAccessPointsEditController","_dec","computed","_class","_initializerDefineProperty","_descriptor","_descriptor2","_descriptor3","_descriptor4","saveAccessPoint","accessPoint","multipleCreds","selectedAccessPlans","any","plan","users","user","accessCards","length","twoPersonAccessEnabled","modals","intl","showConfirmationDialog","t","text","tc","action","async","handleAccessPointSave","contextManager","transitionToPreviousRoute","set","point","save","notificationManager","addSuccess","cancelEdit","updateDeviceModel","isTwoPerson","isDisabled","event","target","checked","openConfirmationModal","readerAntiPassbackEnabled","setAccessPlans","activeAccessPlans","dataLoaded","_ref","get","slice","antiPassbackUnits","ANTI_PASSBACK_UNIT_VALUES","map","value","_ref2","_ref3","weeks","Math","floor","days","hours","minutes","noDelayText","minutesText","hoursText","daysText","weeksText","name","DropdownSelectItem","create","_applyDecoratedDescriptor","prototype","service","configurable","enumerable","writable","initializer","Object","getOwnPropertyDescriptor","AccessControlAccessPointsEditRoute","AdcBaseRoute","EmberAccessControlAccessPointEdit","model","id_access_point","store","findRecord","device","then","ap","deviceType","AccessCardReader","isElevatorReader","undefined","timetables","findAll","planDetailTotals","getPlanDetailTotals","ajax","permissions","getAccessControlPermissions","identityManager","SystemModeConfigurationController","DefaultOperatingMode","descriptionTexts","LockdownConfigurationEditController","LockdownConfigurationEditRoute","EmberAccessControlLockdownConfigurationEdit","Controller","LockdownOperatingMode","automationDefaultRoute","getRouteItem","EmberRules","baseResourcePath","lockdownAccessPlanStepTwoText","navLinkId","isEnterprise","htmlSafe","concat","EnterpriseNotificationsCenter","link","router","urlFor","url","NotificationsCenter","cssClass","LockdownConfigurationRoute","EmberAccessControlLockdownConfiguration","includeChildAndParentScope","lockdownAccessPlans","getAccessPlans","UserBulkCreateRoute","EmberAccessControlUserBulkCreate","_","transition","modelFor","to","parent","csvResources","apiRequestForValue","AccessControlUsersEditNotSupportedRoute","EmberAccessControlUserEditNotSupported","addPersonalAccessPlan","path","pinCodes","addError","userNeedsToBeSaved","needsToSavePinCodes","pin","_this$selectedAccessP","saveUserModel","navigateToCreatePersonalAccessPlan","call","_this$user","destination","identityModel","EmberEnterpriseAccessControlAccessPlanNew","transitionToNativeRoute","property","ViewAccessPlan","planType","Personal","userId","id","AccessControlUsersEditAccessPlansController","_dec2","_dec3","BaseController","_descriptor5","EmberAccessControlUserEdit","isSecurityPanelPresentOnSystem","accessPoints","findBy","addAccessPlanMenuItems","_await$this$user$acce","_this$user2","accessPlans","isAny","icon","dualAccessOnPlans","dualAccessByPlan","Promise","all","results","some","result","setProperties","originalAccessPlans","saveUserPlans","numCredentials","mobileCredentials","saveUser","deleteAccessPlan","removeObject","userAccessPlans","cancelAction","_this$originalAccessP","AccessControlUsersEditAccessPlansRoute","EmberAccessControlUserEditAccessPlans","params","baseModel","super","controller","hasDirtyAttributes","rollbackAttributes","ExpiringCredentialsController","alias","updateExpiringCredentialsDates","startDate","endDate","hasStartDate","hasEndDate","AccessControlEditExpiringUserCredentials","EmberAccessControlUserEditExpiringCredentials","AccessControlUserOverviewController","BaseUsersEditIndexController","userInformation","EmberAccessControlUserEditUserInformation","languagePreference","EmberAccessControlUserEditLanguage","userGroup","EmberAccessControlUserEditUserGroup","expiringCredentials","addNewUserAttribute","EmberAccessControlEditUserAttributes","editUserAttribute","EmberAccessControlEditUserAttributesEdit","userAddContactAddressRoute","EmberAccessControlUserEditAddContact","userEditContactInformationRoute","EmberAccessControlUserEditContactInformation","userLinkLoginRoute","EmberAccessControlUsersLinkLogin","username","EmberAccessControlUsersUsername","usernameRedirect","EmberAccessControlUsers","toggleConfirmedTransitionFlag","confirmedTransition","AccessControlUserEditIndexRoute","setupController","queryParamsDidChange","changedParams","_manageLoginPermissio","manageLoginPermissionsRoute","navigation","ManageLoginPermissions","encodeURIComponent","willTransition","isDestroyed","isInactive","fnGetText","key","shouldShowConfirmDialog","abort","title","description","retry","clearVisitedRoutesStack","refresh","includes","ResidentialEditAccessControlUserRoute","BaseUserEditRoute","id_user","_objectSpread","query","EditContactUserGroupRoute","_await$this$currentMo","AccessControlUserInformationController","AccessControlEditUserInfoRoute","EditUserInfoBaseRoute","UserGroupEditController","_descriptor6","userGroupInitial","charAt","saveUserGroup","delayedHandler","catch","RSVPReject","reject","transitionTo","UserGroupEditRoute","BaseUserGroupEditRoute","EmberAccessControlUserGroupsEdit","getUserGroupModel","groupId","BATCH_SIZE","getUserGroupsQuery","startIndex","searchString","batchSize","UserGroupsController","notEmpty","reads","getUserGroupInfoText","route","loadMoreUserGroupsAction","index","initialData","wasInitialDataConsumed","getProperties","promise","userGroupCountChanged","newUserGroupCount","filterAccessGroups","send","addUserGroup","transitionToRouteId","EmberEnterpriseAccessControlUserGroupsNew","EmberAccessControlUserGroupsNew","UserGroupsRoute","EmberAccessControlUserGroups","accessGroups","UserGroupNewController","UserGroupNewRoute","createRecord","newUserGroup","destroyRecord","createTemplateFactory","scope","didInsert_","tc_","simpleBinaryList_","media_","scheduleView_","t_","AccessControlAccessPlansEditTimetableAdvancedComponent","intlPath","_dec4","_class2","Component","_buildTask","context","generator","defaultTimetables","A","args","toArray","selectedTimetables","setActionButtons","confirmAction","updateTimetables","confirmButtonDisabled","accessPlanCanBeModified","restartable","itemsOptions","timetable","BinaryListItem","label","state","props","scheduleObjects","Number","colorName","canBeModified","hasUnmodifiableAccessPoints","setObjects","itemsOptionsChanged","items","itemMap","filter","item","tracked","setComponentTemplate","TEMPLATE","isEnterprise_","AccessControlAccessPlansEditTimetableOperatingModesComponent","_dec5","visitedIds","useMultiplePartitionsUI","enterpriseKey","isAllAccess","system","sys","push","reload","compact","hasMultiplePartitions","getSelectedSystem","panelKey","updateOperatingModes","operatingModeRadioItems","operatingModes","find","selection","disarmedOnlySelected","RestrictedAccessOperatingMode","disarmedOnly","disarmedOnlyText","armedDisarmedText","disabled","EmberSettingsAccessControlRestrictedAccess","accessControlAccessPlansEditTimetableAdvanced_","accessControlUsersItemExpiringCredentials_","isPresent_","accessControlTimetablesItemEditTimetableSchedule_","accessControlAccessPlansEditTimetableOperatingModes_","createDefaultTimetable","scheduleDictionary","ALL_TIMES_PROPERTIES","AccessControlAccessPlansEditTimetableComponent","_yield$accessPlan$tim","_this$timetable","cancel","updateSchedule","schedule","_this$timetable2","updateAccessPlanStartAndEnd","selectedTimezone","assign","startEndTimeZoneString","showTemporaryAccess","allScopesSupportTemporaryAccessPlan","isPersonalAccessPlan","accessControlAccessPlansItemCardHeader_","dropdownActions_","buttonIcon_","svgSymbol_","AccessControlAccessPlansEditHeaderComponent","showSaveDisabledWarning","editState","ModifyTimetables","hasPartitionsPreventingChange","ModifyUsers","disableModification","warningTextKey","root","showEditButton","uiIconAndColorPicker_","tc_0","fn","formGroup_","validationError_","textInput_","on","AccessControlAccessPlansEditNameComponent","colorOptions","iconOptions","iconName","validateName","trim","planNameErrorMessage","keyPressHandler","ENTER_CODE","confirmButtonEl","document","querySelector","focus","focusOnSaveButtonOnEnter","AccessControlAccessPlanEditPerformanceMonitorComponent","start","markRenderStart","end","markRenderEnd","metricName","startTime","Date","now","logTimeToRender","endTime","timeToRender","apiRequest","simpleBinary_","COMMON_USER_TYPES","Guest","toString","AccessControlAccessPlansEditCommonUserTypesComponent","commonPlanUserTypes","allCommonPlanUserTypes","applyAccessPlanToGuests","saveGuestUserAccess","_descriptor7","_descriptor8","updateUserTypes","wasSelected","userType","_this$identityManager","pointCentralIdentity","isGuestCommonAreaImprovementFeatureToggleEnabled","accessControlAccessPlansEditUserTypesCommon_","accessControlScrollingListSelect_","UserTypeCheckboxItem","ScrollingListSelectItem","_len","Array","_key","createUserTypeFilterItems","SELECTED","createUserTypeCheckbox","isSelected","UNSELECTED","AccessControlAccessPlansEditUserTypesComponent","saveUserTypes","userTypes","loadUserTypesFn","hasMany","ids","totalCount","loadSelectedUserTypesFn","accessControlAccessPlansEditPerformanceMonitor_","UserItem","LOCATION_PROPERTIES","includeGroups","filterType","AvailableSystemItemsFilteringEnum","APUMUsers","AccessControlAccessPlansEditUsersComponent","_identityManager$iden","selectedUserIds","filterProperties","locationFilterProperties","defaultSelectedScopes","getSelectedSystemGroupId","userTypeFilters","isPointCentralAccessControl","viewingParentGroup","twoPersonAccessOnPlan","options","showSystem","showSystemGroup","hasMLEGAccessControl","showCredentialCount","initializeDone","saveUsers","saveAction","saveUsersWithDualAccessModal","loadUsers","_planDetailTotals$use","_queryResult$meta$all","_queryResult$meta","search","scopeIds","queryResult","accessPlanType","accessPlanOperatingMode","operatingMode","includeChildScope","includeEnterpriseUsers","userItems","isNormalUser","createUserItem","userTotal","allLoaded","meta","loadAccessPlanUsers","_this$selectedUserIds","activeDirectoryFlag","canChangeUserCode","displayName","isHigherLevelUserOnLowerLevel","mapADUsersToAccessPlans","canPromoteUser","confirmProperties","cancelProperties","AccessPoints","AccessPointCheckboxItem","AccessControlAccessPlansEditAccessPointsComponent","_descriptor9","elevatorsCache","enqueue","saveAccessPoints","usePluralText","u","saveAccessPointsWithDualAccessModal","loadAccessPoints","_accessPoints$meta$to","_accessPoints$meta","nonFloorAccessPoints","isElevatorFloor","loadElevators","perform","createCheckboxItem","loadAccessPlanAccessPoints","_accessPoints$filter","floorItems","floorsFromAccessPoint","order","selectedAccessPointIds","pushObjects","_this$selectedAccessP2","orderIndex","createSubItems","showSystemName","floors","hasSubItems","secondaryDescription","systemDescription","isEBSPanel","isCheckboxTree","isCollapsible","isCollapsed","subItems","subitems","_this$elevatorsCache","_await$elevatorModel$","_await$elevatorModel$2","elevatorModel","elevator","elevatorReader","initializeOptions","usePlural","pageViewEdit_","promiseHashTracked_","hash","and_","accessControlAccessPlansEditBaseHeader_","accessControlAccessPlansItemAccessPlanDetails_","accessControlAccessPlansEditName_","accessControlAccessPlansEditTimetable_","accessControlAccessPlansEditUsers_","accessControlAccessPlansEditAccessPoints_","accessControlAccessPlansEditUserTypes_","RESOURCE_ROOT","ICONS","RESOURCE_KEYS","COLOR_MAP","AccessControlAccessPlansEditBaseComponent","equal","ModifyAccessPoints","_dec6","ModifyUserTypes","_dec7","_dec8","_dec9","_dec10","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","_descriptor15","_descriptor16","_descriptor17","accessPlanCanBeEdited","_this$resolvedModel","resolvedModel","planStatusClass","_this$resolvedModel2","getPlanStatusAndIcon","statusClass","toolsDropdownItems","option","showEditOption","DropdownActionItem","updateEditState","currentEditState","_model$accessPlan","restrictedAccessSetting","createAccessPlan","showTemporaryAccessPlansUI","showRestrictedAccessUI","enabled","_this$actionButtonArg","_this$actionButtonArg2","actionButtonArgs","doNotGoBackAfterAction","confirmText","_this$resolvedModel3","isViewingAccessPlan","returnToViewOnCancel","_accessPlan$timetable","planHasTimetable","_this$resolvedModel4","_this$resolvedModel5","_this$resolvedModel6","canModifyAccessPoints","planName","firstName","AllDeviceAccess","random","keys","holidays","NotSet","AccessPlanPendingChangesCollection","templateOnlyComponent","asyncLoader_","accessControlAccessPlansItemAccessPlanPendingChangesCollection_","buttonAsync_","not_","isFulfilled_","t_0","AccessPlanPendingChangesComponent","getPendingChangesOfProperties","_this$pendingChanges$","_this$pendingChanges","pendingChanges","n","pc","getAccessPointsInfo","getActionOptions","selectedValue","translationKey","v","pendingAccessPlanChangeRows","pendingAccessPlanChanges","userName","isActiveDirectoryUser","accessPointsAdded","accessPointsRemoved","acceptChanges","actionOptions","pendingPinCodeChangeRows","pendingPinCodeChanges","accessPointsUpdated","showAllAccessUserWarning","_this$pendingChanges2","wasAllAccessUser","changeAction","pendingChange","_ref4","_this$pendingChanges3","change","_ref5","confirmChanges","buttonAnimation","pendingChangeCollection","resolve","finally","pendingChangesUpdated","buttonSimple_","AccessPlanLimitIssuesComponent","accessPlanLimitIssues","limitIssues","dismiss","showLimitIssues","editUserAccessPlans","contactId","routeEnum","EmberEnterpriseAccessControlUserEditAccessPlans","String","pageView_","accessControlFilterBar_","await_","accessControlUsersItemUsersMissingCredentials_","accessControlUsersItemArmedPanelsWarning_","accessControlAccessPlansItemAccessPlanPendingChanges_","accessControlAccessPlansItemAccessPlanLimitIssues_","accessControlAccessPlansListAccessPlanListView_","accessControlAccessPlansListAccessPlanScrollingList_","routeViewViewContainerNoResultsContent_","eq_","AccessControlAccessPlansIndexComponent","_resolvedModel$access","_resolvedModel$access2","_resolvedModel$access3","totalAccessPlansCount","isListView","inFlight","uiHorizontalList_","uiColoredIcon_","AccessPlanIconList","sort","AccessControlAccessPointsCollapsibleList","toggleExpanded","isExpanded","_this$args$isExpanded","routeView_","fieldsetHeader_","uiBadgeLabel_","dropdownSelectSingleSelect_","toString_","accessControlAccessPlansItemPlanList_","actionButtons_","AccessControlAccessPointsEdit","resolveModel_","actionSheetsEnterpriseLocationsLocationSelection_","chip_","verticalCollection_","accessControlAccessPointsIndexRouteListItem_","usersLoadingSpinner_","or_","DEVICE_SECTION_TITLES","Partition","ZwaveLock","DEVICE_ALL_ITEMS_TEXT","AccessControlAccessPointsIndexRoute","tab","loadItems","tabs","locations","loadAllItems","useTabUI","idx","_queryResult$length","_queryResult$meta$tot","_queryResult$length2","loadAccessPointsOfType","totalCountOfType","type","allItemsText","numItems","getLoadItemsFn","visibleTabs","_resolvedModel$qp","newSearch","newLocations","qp","useAccessPointsPaginationEnhancements","isInitialLoad","updateTabs","_this$params","closeLocationSelectionActionSheet","_this$args$filtersMan","isLocationSelectionActionSheetOpen","isPresent","selectedIds","filtersManager","submitFilterValues","displayAddlAccessIcon","additionalAccessSettingsEnabled","General","accessControlAccessPlansItemAccessPlanIconList_","spinnerSvg_","coalesce_","AccessPointListItem","editAccessPoint","EmberEnterpriseAccessControlAccessPointEdit","searchToolbar_","didUpdate_","not_0","filtersFilterPanel_","AccessControlFilterBarButton","AccessControlFilterBar","filterBy","focusSearchBar","runTask","_document$getElementB","haveSearched","getElementById","searchFilter","getFilterByName","applySearchFilter","apply","resetFilters","_this$args$filtersMan2","resetFilterValues","page","toggleFilter","filterVisible","buttons","updateViewMode","showActionButtons","actions","EmberEnterpriseAccessControlHolidaysEdit","manageHolidays","canModifyUserAccess","addNewAccessPlan","accessControlLockdownEnabled","systemModeConfigurationTransition","media","isMobile","isPrimary","onlyOverflow","routeId","EmberAccessControlHolidaysEdit","EmberEnterpriseAccessControlLockdownConfiguration","fieldsetDescription_","responsiveTable_","smartDate_","AccessControlHolidayPage","allAccessPlans","_this$resolvedModel$a","pausedOnHolidays","selectedAccessPlanIds","mapBy","currentHolidays","_this$resolvedModel$h","rejectBy","sortBy","hasUnsavedChanges","_this$resolvedModel$h2","saveButtonEnabled","addNewHoliday","date","canBeDeleted","updateSelectedAccessPlans","saveHoliday","holidaySaveErrorMessage","invalidHolidayCheck","checkInvalidHolidays","newHolidays","holiday","deleteRecord","invoke","allHolidays","dates","returnVal","forEach","isSameDay","deleteHoliday","holidayName","css","dropdownSelectMultiSelect_","FilterToolbarComponent","searchValueChange","applyFilters","locationSelectionResult","userTypeFilterChange","selectedItems","SelectedItemsListComponent","checkboxTree_","ScrollingListSelectNestedCheckboxItemComponent","toggleSelectFn","_items$length","toggleSelect","coalesce_0","math_","ScrollingListSelectItemLabel","accessCardsCount","_this$args$item$model","_this$args$item$model2","mobileCredentialsCount","_this$args$item$model3","_this$args$item$model4","numCredentialsWarning","_item$model","_item$model2","_system$description","systemGroup","accessControlScrollingListSelectListItemLabel_","ScrollingListSelectCheckboxItemComponent","toggleItem","selectItems","SelectedItemsToolbarComponent","showOnlyWarningIcon","unselectItem","accessControlScrollingListSelectFilterToolbar_","accessControlScrollingListSelectItemsList_","accessControlScrollingListSelectListItemNestedCheckbox_","accessControlScrollingListSelectListItemCheckbox_","accessControlScrollingListSelectSelectedItemsToolbar_","accessControlScrollingListSelectSelectedItemsList_","loadBatch","loadSelectedItems","load","selectedItemsIndex","itemsIndex","totalSelectedItemsCount","totalItemsCount","isInitialLoadSelected","unselectAllPressed","_queryResult$allLoade","newItems","item1","item2","selectItemsAndSubItems","findDuplicateItems","performanceMonitor","resetCount","AccessControlScrollingListSelectComponent","_this$args$filterProp","saveItems","loadBatchFn","loadBatchSelectedFn","loadOnlySelectedItems","toggleSaveEnabled","isSaving","toggleSelectAll","selectAll","affectedItems","isFullySelected","addItems","removeObjects","flattenItem","shouldBeInSelectedList","isPartiallySelected","existingItemInSelectedList","findItem","_item$parent","parentItem","insertAfterParentSorted","pushObject","_item$parent2","pairedItem","itemsToRemove","parentId","getAllSelectedSubitems","pairedParentItem","_unused","filters","_filterProperties$loc","_locationSelectionRes","selectingAll","validateFilterLength","navigateToRouteId_","accessControlAccessPlansRowAccessPlan_","SystemModeConfigurationBaseComponent","addAccessPlanWithOperatingMode","queryParams","guidFor_","weekView_","popoverMenu_","smartTime_","noop_","checkIfScheduleIsAllTimes","redraw","selectedTimeBlock","startMinutesLocal","endMinutesLocal","selectedTimeBlockIsAllDay","MINUTES_IN_WEEK","redrawPopover","pushHistoryState","historyStates","combinedSchedules","newState","JSON","stringify","convertScheduleBlocksForModel","lastObject","scheduleBlocks","block","day","daySpan","MINUTES_IN_DAY","getAvailableDays","usedDayNums","isEndDay","selectedStartDay","dayOffset","fnGetWeekday","dayNum","formatDate","setDay","weekday","fnGetItem","from","DAYS_IN_WEEK","i","showTimeBlockPopover","next","selectTimeBlock","timeBlockId","mergedSchedules","mergeSchedules","currentTimeBlock","tb","wrappedTimeBlockId","selectedTimeBlockId","shouldShowAllTimes","every","setHistoryRestoreIndex","historyRestoreIndex","checkIfScheduleOverloaded","numBlocksToAdd","maxNum","timeValueToDayMinutes","timeValue","timeParts","split","parseInt","MINUTES_IN_HOUR","dayMinutesToDate","dayMinutes","minutesInDisplay","EditTimetableSchedule","_dec11","scheduleIsAllTimes","isScheduleAllTimes","selectedTimeBlockEndDay","selectedTimeBlockStartTime","zonedTimeToUtc","timeZone","selectedTimeBlockEndTime","getPlanSchedule","scheduleElements","timeBlock","unavailableDays","reduce","fullDaysSpanned","abs","uniq","availableStartDays","availableEndDays","selectedStartTimeChange","evt","newStartMinutesLocal","timeChanged","selectedEndTimeChange","startMinutes","newEndMinutes","createTimeBlock","timeBlockClicked","selectedStartDayChange","newStartMinutes","selectedEndDayChange","MINUTES_IN_HALF_HOUR","selectedBlockAllDayChange","isChecked","ceil","deleteTimeBlock","openCopyTimeBlockModal","copyTimeBlockOptions","showCopyTimeBlockPopover","copyTimeBlockSelectedDays","copyTimeBlock","parse","daysToAlter","cancelTimeBlockEdit","propertiesToSet","cancelCopyTimeBlock","onEditTimeBlockBackdropClick","undoLastModification","popObject","setScheduleToAllTimes","fileUpload_","handleBinaryChange_","AccessControlUsersBulkCreate","isReadyForImport","parseResults","errors","userCreateCount","userModifyCount","userDeleteCount","parseAlerts","_this$parseResults","warnings","fnGetAlerts","rows","console","log","tableHeaders","lastName","emailAddress","pinCode","cardSerial1","cardSerial2","exampleTableRows","formatDateTz","month","year","edit","delete","resultHasNoErrors","importSummary","numUsers","downloadTemplate","window","open","exportUsersListUrl","downloadUsers","fileChanged","fileUploaded","uploadFailed","importUsers","bypassDuplicateEmailCheck","success","ex","detail","inlineAlert_","AccessControlUsersEditNotSupported","routeViewEditView_","AccessControlUserEditAccessPlans","AccessControlUserEditExpiringCredentials","TwoPersonConflict","array","ConflictingCredentials","usersListBaseUserItem_","AccessControlListItem","BaseUserItem","showExtraInfo","isDuress","accessPlanSummary","count","credentialTypes","enterpriseTranslation","content","selectedSystemGroup","join","editUser","UserAddEdit","EmberEnterpriseAccessControlUserEdit","itemClicked","editOnItemClick","afterDelete","buttonNative_","accessControlUsersItemTwoPersonConflict_","accessControlUsersItemConflictingCredentials_","accessControlUsersItemMobileCredentialUtilization_","accessControlUsersList_","AccessControlUsersIndexRouteComponent","doNotLoadCredentials","parsed","isNaN","numOfContainersToRender","containerCount","conflicts","showTwoPersonConflict","_identityManager$trou","dualAccessTroubles","troubleConditions","issues","troubleConditionType","toolsDropdownButtons","links","exportPanelSlotNumbersUrl","duressItem","getDuressActionItem","duressUserId","canViewUserAccess","EmberEnterpriseAccessControlUserBulkCreate","EmberEnterpriseAccessControlUserGroups","addNewUser","EmberEnterpriseAccessControlUserEditUserInformation","afterUserDeleted","adcBanner_","navigateToRouteName_","ArmedPanelsWarning","_this$args$accessPoin","armedUnchangeablePanels","isArmedUnchangeablePanel","shouldDisplay","isEmpty","armedPanelsList","panelsBySystem","accPromise","panel","acc","systemName","panelName","message","deviceList","INTERVAL_START","INTERVAL_END","adjustStartAndEndIntervals","timeIntervalType","credentialStartDate","credentialEndDate","startValue","endValue","maxDate","updateDates","currentTimeZone","getNextDay","timezone","startOfDay","addDays","ExpiringCredentialsComponent","or","_dec12","_dec13","owner","_timezone$value$desc","_timezone$value","timeZoneDescription","desc","drop","getTimezone","selectedTimeZone","selectedTimeIntervalTypeValue","hasCredentialStartDate","hasCredentialEndDate","showStartDate","showEndDate","_this$args$startDate","minimumStartDate","minDate","_this$args$endDate","minimumEndDate","timeIntervalDropDownItems","timeIntervalTypeChanged","val","hideCredentialExpireOptionsChanged","updateDateValue","ignoreStartAndEndTimeRestrictions","fnConvert","min","updateDate","setYear","setMonth","setDate","getDate","getMonth","getYear","updateTimeValue","time","updateTime","setHours","setMinutes","setSeconds","getSeconds","getMinutes","getHours","MobileCredentialUtilization","selectedSystem","getWidthStyle","utilizationData","total","singleSystemBarWidth","singleSystem","enterpriseSystemBarWidth","enterprise","parentGroupSystemBarWidth","parentGroup","UsersMissingCredentialsComponent","_this$args$missingCre","missingCredentialsInfo","getMissingCredentialsInfo","isOnUsersPage","hasUsersMissingCredentials","hasAccessPlansMissingCredentials","goToUsersPage","childUnitId","location","switchContext","EmberEnterpriseAccessControlUsers","listRowItem_","usersItemUserAvatar_","AccessControlUsersPromoteUserItem","accessControlUsersPromoteUserPromoteUserItem_","AccessControlUsersPromoteUserUserList","accessControlUsersPromoteUserUserList_","AccessControlPromoteUserPage","anyDuplicateUsers","duplicateUsers","promotionScopeName","peekAll","showPromoteUserConfirmationDialog","titleResource","confirmationTextResource","confirmationText","groupName","promoteUser","stats","logEvent","PromoteSingleUser","error","returnToPreviousRoute","AccessControlUsersUserGroupsEdit","deleteUserGroup","userGroupName","fnGetTranslationValue","tokens","e","rollback","UserGroupItem","_this$userGroup","isHigherLevelGroup","isParentGroupContext","isParentGroup","getActionItems","EditActionItem","editUserGroup","isGlobal","DeleteActionItem","EmberEnterpriseAccessControlUserEditNotSupported","EmberEnterpriseAccessControlUserGroupsEdit","listView_","accessControlUserGroupsListUserGroupItem_","AccessControlUsersUserGroupsIndexPage","simpleBinaryButtonList_","UsersEditUserGroup","availableAccessGroupOptions","_this$accessGroups","selectedAccessGroup","accessGroupId","changeAccessGroup","_item$props"],"sourceRoot":""}