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UAAA,eAAAT,EAAAS,WAAAT,IAlJoBhB,EAAAA,EAAAA,sBAAAC,EAAAgrB,E","sources":["./components/activity/no-activity/index.hbs","./components/activity/no-activity/index.ts","./components/activity/activity-location/index.hbs","./components/activity/activity-location/index.ts","./components/activity/activity-group/index.hbs","./components/activity/activity-group/index.ts","./components/activity/activity-day/index.hbs","./components/activity/activity-day/index.ts","./components/activity/activity-item/index.hbs","./components/activity/activity-item/index.ts","./components/activity/clip-preview/index.hbs","./components/activity/clip-preview/index.ts","./components/activity/extended-activity-history-form/index.hbs","./components/activity/extended-activity-history-form/index.js","./components/activity/filter-option/index.hbs","./components/activity/filter-option/index.ts","./components/activity/filter-subsection/index.hbs","./components/activity/filter-subsection/index.ts","./components/activity/filter-category/index.hbs","./components/activity/filter-category/index.ts","./components/activity/show-other-clips-toggle/index.hbs","./components/activity/show-other-clips-toggle/index.ts","./components/activity/quick-filters/config-panel/index.hbs","./components/activity/quick-filters/config-panel/index.ts","./components/activity/quick-filters/config-panel-action-sheet/index.hbs","./components/activity/quick-filters/config-panel-action-sheet/index.ts","./components/activity/quick-filters/index.hbs","./components/activity/quick-filters/index.ts","./components/filters/activity-date-time-range-filter/index.hbs","./components/filters/activity-date-time-range-filter/index.ts","./components/activity/filter-selector/index.hbs","./components/activity/filter-selector/index.ts","./components/activity/filter-bar/index.hbs","./components/activity/filter-bar/index.ts","./components/activity/image-detail/index.hbs","./components/activity/image-detail/index.ts","./components/activity/image-media.hbs","./components/activity/image-media.ts","./components/activity/media-detail/index.hbs","./components/activity/media-detail/index.ts","./components/activity/no-results/index.hbs","./components/activity/no-results/index.ts","./components/activity/results-count/index.hbs","./components/activity/results-count/index.ts","./components/video/event-viewer/index.hbs","./components/video/event-viewer/index.ts","./components/activity/video-detail/index.hbs","./components/activity/video-detail/index.ts","./components/activity/video-media.hbs","./components/activity/video-media.ts","./components/ui/inline-edit/index.hbs","./components/ui/inline-edit/index.ts"],"sourcesContent":["import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
  • \\n
    \\n \\n
    \\n
    \\n

    {{t \\'components.activity.no-activity.noActivity\\'}}

    \\n
    \\n
  • \\n\\n\",{ moduleName: \"customer-site/components/activity/no-activity/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\n\ninterface ActivityNoActivitySignature {}\n\nconst ActivityNoActivity = templateOnlyComponent();\nexport default ActivityNoActivity;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::NoActivity': typeof ActivityNoActivity;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n
    {{await @location.description}}
    \\n\\n \\n
    \\n\\n\",{ moduleName: \"customer-site/components/activity/activity-location/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\nimport type ActivityLocation from 'customer-site/classes/activity/event-history/helpers/activity-location';\n\ninterface ActivityActivityLocationSignature {\n Args: {\n location: ActivityLocation;\n };\n}\n\nconst ActivityActivityLocation = templateOnlyComponent();\nexport default ActivityActivityLocation;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ActivityLocation': typeof ActivityActivityLocation;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n
    \\n \\n

    {{@group.count}}

    \\n
    \\n\\n {{yield}}\\n\\n

    {{@group.displayDate}}

    \\n\\n
    \\n {{#each @group.items as |item idx|}}\\n {{#if idx}}\\n \\n {{/if}}\\n \\n {{/each}}\\n
    \\n\\n \\n
    \\n\\n {{#if this.mediaIsVisible}}\\n
    \\n {{#each (await @group.media) as |mediaItem|}}\\n \\n {{/each}}\\n
    \\n {{/if}}\\n\\n \\n {{#if @group.isExpanded}}\\n {{#each @group.collectionItems as |item|}}\\n
  • \\n \\n
  • \\n {{/each}}\\n {{/if}}\\n \\n\\n\\n\",{ moduleName: \"customer-site/components/activity/activity-group/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\n\nimport './_style.scss';\nimport type ActivityGroupItem from 'customer-site/classes/activity/event-history/helpers/activity-group';\n\nexport interface ActivityGroupSignature {\n Element: HTMLElement;\n Args: {\n group: ActivityGroupItem;\n };\n Blocks: {\n default: [];\n };\n}\n\n/**\n * @classdesc\n * The UI for a set of grouped activity events.\n */\nexport default class ActivityGroup extends Component {\n /**\n * Indicates media is available and should be visible in the UI.\n */\n @computed('args.group.{hasMedia,isExpanded}')\n get mediaIsVisible(): boolean {\n const { hasMedia, isExpanded } = this.args.group;\n return hasMedia && !isExpanded;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ActivityGroup': typeof ActivityGroup;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck: activityItems being able to return three different things is freaking out glint. }}\\n
    \\n
    \\n

    \\n \\n {{if @day.isToday (t \\'generic.today\\') (format-date-tz @day.date weekday=\\\"long\\\" month=\\\"short\\\" day=\\\"numeric\\\" year=\\\"numeric\\\")}}\\n \\n \\n {{#if this.canViewHighlightsButton}}\\n {{#if (is-fulfilled @day.highlightsResourcePath)}}\\n \\n {{t \\'generic.highlights\\'}}\\n \\n
    \\n {{t\\n
    \\n {{/if}}\\n {{/if}}\\n

    \\n\\n {{#if this.areHighlightsVisible}}\\n
    \\n {{#if (is-fulfilled this.highlightsPlaylist)}}\\n \\n {{else}}\\n \\n {{/if}}\\n
    \\n\\n {{/if}}\\n
    \\n\\n \\n {{#each this.activityItems as |item idx|}}\\n {{#if (and item.hasActivityGap (not @hasNonDateFilterApplied) (not (eq idx 0)))}}\\n \\n {{/if}}\\n\\n \\n {{#if this.isEnterprise}}\\n \\n\\n {{else if this.showEventGroups}}\\n {{#if item.hasMultipleEvents}}\\n \\n\\n {{else}}\\n \\n\\n {{/if}}\\n {{else}}\\n \\n\\n {{/if}}\\n \\n {{else}}\\n \\n {{/each}}\\n \\n
    \\n\",{ moduleName: \"customer-site/components/activity/activity-day/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action, set } from '@ember/object';\nimport { and, alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { MaxHighlightDays } from 'customer-site/components/activity/highlights-carousel/index';\nimport { intlPath } from '@adc/i18n/path';\nimport subDays from 'date-fns/subDays';\n\nimport './_style.scss';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type ActivityDayModel from 'customer-site/models/activity/activity-day';\nimport type Playlist from 'customer-site/models/activity/daily-summary/playlist';\n\nexport interface ActivityDaySignature {\n Element: HTMLElement;\n Args: {\n /** The activity day model. */\n day: ActivityDayModel;\n /** Indicates the user is filtering on a non-date field. */\n hasNonDateFilterApplied?: boolean;\n /** Indicates the events should be aggregated by time. */\n showEventGroups?: boolean;\n /** Should we show highlights as according to the filters manager? */\n showHighlights?: boolean;\n };\n}\n\n/**\n * @classdesc\n * UI for a single days worth of activity event history.\n */\n@intlPath({ path: 'activity/activity-day' })\nexport default class ActivityDay extends Component {\n @service declare contextManager: ServiceRegistry['context-manager'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare store: ServiceRegistry['store'];\n\n /**\n * Whether to display highlights (if any) below the day header.\n */\n @tracked showHighlights = false;\n\n // region Computed properties\n\n /**\n * Indicates the events should be grouped by time.\n */\n get showEventGroups(): boolean {\n return this.args.showEventGroups ?? true;\n }\n\n /**\n * Indicates these are enterprise events.\n */\n @alias('identityManager.isEnterprise')\n declare isEnterprise: boolean;\n\n /**\n * Indicates if the user has Highlights\n */\n @alias('identityManager.identityModel.canViewHighlights')\n declare canViewHighlights: boolean;\n\n /**\n * The computed CSS class for the root element.\n */\n @computed('args.day.isExpanded', 'isEnterprise')\n get elementCss(): string {\n return [\n 'activity-day',\n this.args.day.isExpanded ? undefined : 'collapsed',\n this.isEnterprise ? 'is-enterprise' : undefined\n ]\n .filter((c) => !!c)\n .join(' ');\n }\n\n /**\n * The event collections/items to show for this day.\n */\n @computed('args.{day.events.[],showEventGroups}', 'isEnterprise', 'showEventGroups')\n get activityItems(): ActivityDayModel['groups'] | ActivityDayModel['items'] | ActivityDayModel['locations'] {\n const { day } = this.args;\n\n if (this.isEnterprise) {\n return day.locations;\n }\n\n return this.showEventGroups ? day.groups : day.items;\n }\n\n /**\n * Daily Summary Playlist for day's highlight events\n */\n @computed('args.day.id')\n get highlightsPlaylist(): ADCAsyncStoreFindRecord {\n return this.store.findRecord('activity/daily-summary/playlist', this.args.day.id);\n }\n\n /**\n * Limit days back that highlights can be viewed\n */\n @computed('activityItems.length', 'args.day.date')\n get validHighlightsDay(): boolean {\n const maxDate = subDays(new Date(), MaxHighlightDays);\n return maxDate <= this.args.day.date && !!this.activityItems.length && this.activityItems.length !== 0;\n }\n\n /**\n * Indicates the highlights button should be rendered\n */\n @computed('canViewHighlights', 'validHighlightsDay', 'args.showHighlights')\n get canViewHighlightsButton(): boolean {\n return (this.args.showHighlights ?? true) && this.canViewHighlights && this.validHighlightsDay;\n }\n\n /**\n * Indicates the highlights should be rendered.\n */\n @and('args.day.isExpanded', 'canViewHighlights', 'showHighlights')\n declare areHighlightsVisible: boolean;\n\n // endregion\n\n /**\n * Toggles event visibility, also hiding highlights if events are collapsing.\n */\n @action\n toggleDay(isVisible: boolean): void {\n set(this.args.day, 'isExpanded', isVisible);\n this.showHighlights = isVisible && this.showHighlights;\n }\n\n /**\n * toggles highlight visibility, also displaying events if highlights are being shown.\n */\n @action\n toggleHighlights(isVisible: boolean): void {\n this.showHighlights = isVisible;\n set(this.args.day, 'isExpanded', isVisible || this.args.day.isExpanded);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ActivityDay': typeof ActivityDay;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n
    \\n {{#if @showIndicator}}\\n
    \\n \\n
    \\n {{/if}}\\n {{#if this.showCmdIndicator}}\\n
    \\n \\n
    \\n {{/if}}\\n\\n
    \\n

    \\n {{#if this.showTime}}\\n {{@item.displayDate}}\\n {{/if}}\\n

    \\n\\n \\n

    {{@item.device}}

    \\n\\n

    {{@item.description}}

    \\n\\n {{#if @item.showCommandState}}\\n
    \\n {{@item.commandStatusString}}\\n
    \\n {{/if}}\\n
    \\n\\n {{#if @item.model.openEyeRecorderUrl}}\\n \\n {{/if}}\\n\\n {{#if this.isPlaybackRelated}}\\n \\n \\n \\n {{/if}}\\n\\n {{#if @item.actionItems}}\\n \\n \\n \\n {{/if}}\\n
    \\n\\n {{#if @item.hasMedia}}\\n
    \\n {{#each (await @item.media) as |mediaItem|}}\\n \\n {{/each}}\\n
    \\n {{/if}}\\n
    \\n\",{ moduleName: \"customer-site/components/activity/activity-item/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 { or } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { getErrorText } from 'customer-site/utils/ember';\nimport { Cancelled, Failed, Pending } from 'customer-site/enums/CommandState';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownActionItem from '@adc/ui-components/utils/dropdown-action-item';\nimport { EmberVideoSvrTimeline, EmberEnterpriseVideoSvrTimeline, EmberSDCard } from '../../../enums/CustomerPageUrl';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { Registry as ServiceRegistry } from '@ember/service';\nimport type ActivityItem from 'customer-site/classes/activity/event-history/helpers/activity-item';\n\ninterface ActivityItemSignature {\n Element: HTMLDivElement;\n Args: {\n item: ActivityItem;\n showTime?: boolean;\n showIndicator?: boolean;\n isGroupItem?: boolean;\n };\n}\n\n/**\n * @classdesc\n * Details about a single activity history item.\n */\n@intlPath({ path: 'activity/activity-item' })\nexport default class ActivityItemComponent extends Component {\n @service declare ajax: ServiceRegistry['ajax'];\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare intl: ADCIntlService;\n @service declare store: ServiceRegistry['store'];\n @service declare notificationManager: ServiceRegistry['notification-manager'];\n @service declare identityManager: ServiceRegistry['identity-manager'];\n\n /**\n * List of associated devices dropdown menu items to be displayed.\n */\n @tracked actionItems: DropdownActionItem[] = [];\n\n // region Computed Properties\n\n /**\n * Indicates whether to show the item time.\n */\n get showTime(): boolean {\n return this.args.showTime ?? true;\n }\n /**\n * Should we display the activity indicator for command state?\n */\n @computed('args.{item.showCommandState,isGroupItem}')\n get showCmdIndicator(): boolean {\n return this.args.item.showCommandState && !this.args.isGroupItem;\n }\n\n /**\n * Get the icon to use for each command state\n */\n @computed('args.item.model.commandState')\n get cmdStatusIcon(): string {\n const { model } = this.args.item;\n if (model) {\n const { commandState } = model;\n if (commandState === Pending) {\n return 'warning';\n }\n\n if (commandState === Failed) {\n return 'issue';\n }\n\n if (commandState === Cancelled) {\n return 'circle-check';\n }\n }\n\n return '';\n }\n\n /**\n * Retrieve the item's icon while accounting for commands and groups\n */\n @computed('cmdStatusIcon', 'args.isGroupItem', 'args.item.{icon,showCommandState}')\n get itemIcon(): Promise {\n return (async () => {\n if (this.args.item.showCommandState && this.args.isGroupItem) {\n return this.cmdStatusIcon;\n }\n\n return await this.args.item.icon;\n })();\n }\n\n /**\n * Is the event related to playback (SVR or SD card)?\n */\n @or('args.item.model.{isSvrRelated,isSdCardRelated}')\n declare isPlaybackRelated: boolean;\n\n // endregion\n\n // region Actions\n\n /**\n * Creates dropdown menu of associated devices that navigate to the SVR Timeline or Onboard 24/7 Timeline page.\n * If there are no associated devices, navigates to the SVR Timeline or Onboard 24/7 Timeline page to the time that the item occurred.\n */\n @action handlePlaybackButton(): boolean | Promise {\n const { model } = this.args.item ?? {};\n if (!model) {\n this.openPlaybackPage(null, false);\n return false;\n }\n\n return (async () => {\n const eventDate = model.eventDate.toISOString(),\n resolvedPromises = (await Promise.all(\n [`getAssociatedCamerasIds?tmpEventDateLocal=${eventDate}`, 'getPrimaryCameraId'].map((n) =>\n this.ajax.apiRequest(\n `api/settings/manageDevices/associatedDevices/${model.globalDeviceId}/${n}`\n )\n )\n ).catch((error) => {\n this.notificationManager.addError(\n getErrorText(error) || this.intl.tc(this, 'associatedDevicesError')\n );\n })) as any[],\n [associatedDeviceGlobalIds, primaryDeviceResponse] = resolvedPromises,\n primaryDeviceGlobalId = primaryDeviceResponse.value;\n\n if (isEmpty(associatedDeviceGlobalIds) || isEmpty(primaryDeviceGlobalId)) {\n this.openPlaybackPage(null, model.isSvrRelated);\n return false;\n }\n\n const allCameras = await this.store.findAll('video/devices/camera'),\n primaryCamera = allCameras.findBy('id', primaryDeviceGlobalId)!,\n associatedCameras = [primaryCamera, ...allCameras.without(primaryCamera)].filter(({ id }) =>\n associatedDeviceGlobalIds.includes(id)\n ),\n associatedSvrCameraIds = associatedCameras.filterBy('hasSvrSchedule').mapBy('id'),\n associatedSdCameraIds = associatedCameras.filterBy('hasSdRecordingSchedule').mapBy('id');\n\n // Is there only one associated camera?\n if (associatedCameras.length === 1) {\n const [{ hasSvrSchedule }] = associatedCameras;\n\n // Navigate without opening menu.\n this.openPlaybackPage(hasSvrSchedule ? associatedSvrCameraIds : associatedSdCameraIds, hasSvrSchedule);\n return false;\n }\n\n // Create action items for each associated camera and show popup menu.\n this.actionItems = associatedCameras.map(({ hasSvrSchedule, description }) =>\n DropdownActionItem.create({\n icon: 'feature-video',\n action: () =>\n this.openPlaybackPage(\n hasSvrSchedule ? associatedSvrCameraIds : associatedSdCameraIds,\n hasSvrSchedule\n ),\n name: description\n })\n );\n\n return true;\n })();\n }\n\n /**\n * Navigates to the SVR Timeline or Onboard 24/7 Timeline page to the time that the item occurred and displays all SVR or SD related cameras.\n */\n async openPlaybackPage(associatedGlobalDeviceIds: string[] | null, isSvrRelated: boolean) {\n const { identityManager, navigation } = this,\n { item } = this.args,\n fnOpenPlaybackPage = (playbackPage: number) => {\n if (navigation.getRouteItem(playbackPage)) {\n navigation.transitionToRouteId(playbackPage, {\n queryParams: {\n startTime: item.eventDate.toISOString(),\n cameraId: JSON.stringify(associatedGlobalDeviceIds),\n cameraGroupId: null\n }\n });\n }\n };\n\n if (!identityManager.isEnterprise) {\n return fnOpenPlaybackPage(isSvrRelated ? EmberVideoSvrTimeline : EmberSDCard);\n }\n\n if (isSvrRelated) {\n return fnOpenPlaybackPage(EmberEnterpriseVideoSvrTimeline);\n }\n\n // Switch the context from enterprise before navigating to the page.\n const location = await item.model?.location;\n if (location) {\n await identityManager.switchContext(location);\n }\n\n fnOpenPlaybackPage(EmberSDCard);\n }\n\n /**\n * Navigates to the appropriate OpenEye url in a new tab.\n */\n @action async redirectToOpenEye(url: string): Promise {\n const encodedUrl = encodeURIComponent(url);\n const ssoUrl = await this.ajax.apiRequestForValue(\n `api/activity/historyEvents/sso/ows?postSignInRedirectUrl=${encodedUrl}`\n );\n // if the ssourl is null or empty string then just use the url\n window.open(ssoUrl || url);\n }\n\n // endregion\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ActivityItem': typeof ActivityItemComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{! @glint-nocheck: The Ui::Images components need to be converted to TS, and the mediaItem.model property is too broad. }}\\n\\n {{#if this.eventHasVideo}}\\n \\n {{#if this.showPlayIcon}}\\n
    \\n \\n
    \\n {{/if}}\\n \\n {{else}}\\n \\n {{#if this.isThirdPartyAnalyticWithClip}}\\n
    \\n \\n
    \\n
    \\n

    {{this.clipDurationTimestamp}}

    \\n
    \\n {{/if}}\\n \\n {{/if}}\\n\\n\",{ moduleName: \"customer-site/components/activity/clip-preview/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { isEnterOrSpaceCode } from '@adc/ember-utils/utils/a11y';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { EmberEventVideo } from 'customer-site/enums/CustomerPageUrl';\nimport { StoryInProgress } from 'customer-site/enums/EventType';\nimport { ThirdPartyAnalyticEvent } from 'customer-site/enums/EventType';\nimport Ov2Event from 'customer-site/models/video/ov2-event';\nimport ThirdPartyAnalyticsEvent from 'customer-site/models/video/third-party-analytics-event';\nimport { millisecondsToDurationString } from 'customer-site/utils/datetime';\nimport { isPackageDetectionEvent, isVideoEvent } from 'customer-site/utils/video/general';\n\nimport './_style.scss';\nimport type { ActivityEventMedia } from 'customer-site/classes/activity/event-history/helpers/activity-group';\nimport type NavigationService from 'customer-site/services/navigation';\n\ninterface ClipPreviewSignature {\n Args: {\n mediaItem: ActivityEventMedia;\n };\n}\n\n/**\n * @classdesc\n * Shows a preview clip for video or image sensor uploads, with loading status and a static play button.\n */\nexport default class ClipPreview extends Component {\n @service declare navigation: NavigationService;\n\n /**\n * Indicates whether we should show the play icon when hovering over the thumbnail.\n */\n @computed('args.mediaItem')\n get showPlayIcon(): boolean {\n const { eventType, model } = this.args.mediaItem;\n if (isPackageDetectionEvent(eventType)) {\n // Ov2Events (used for PackageDeliveryAlert and PackageRetrievalAlert) have a flag for whether it's linked to a clip in their id.\n const idArr = model.id.split('-');\n if (idArr.length > 3) {\n return Number(idArr[3]) === 0;\n }\n }\n\n // Do not show the play icon for snapshots as they are not linked to a clip.\n if (eventType === StoryInProgress) {\n return false;\n }\n\n return true;\n }\n\n /**\n * Indicates the media is a video event or is associated with a video event (ie. package detection).\n */\n @computed('args.mediaItem.eventType')\n get eventHasVideo(): boolean {\n const { eventType } = this.args.mediaItem;\n return isVideoEvent(eventType) || isPackageDetectionEvent(eventType);\n }\n\n /**\n * Returns if this is a third party analytic event that has a related clip.\n */\n get isThirdPartyAnalyticWithClip(): boolean {\n const { eventType, model } = this.args.mediaItem;\n if (model instanceof ThirdPartyAnalyticsEvent) {\n const { clip } = model;\n return eventType === ThirdPartyAnalyticEvent && clip != null;\n }\n\n return false;\n }\n\n /**\n * Gets the clip duration in MM:SS format and returns it as a string.\n */\n get clipDurationTimestamp(): string {\n const { model } = this.args.mediaItem;\n if (model instanceof ThirdPartyAnalyticsEvent) {\n const { clipDurationMs } = model.clip;\n if (clipDurationMs != undefined) {\n return millisecondsToDurationString(clipDurationMs);\n }\n }\n\n return '';\n }\n\n /**\n * Opens the details route on click.\n */\n @action mediaClicked(): void {\n const { mediaItem } = this.args,\n { eventType, index, model } = mediaItem;\n let { route } = mediaItem;\n\n // For package events, prevent a redirect if the associated video event does not exist.\n if (\n isPackageDetectionEvent(eventType) &&\n (!this.showPlayIcon || (model instanceof Ov2Event && model.isEventDeleted))\n ) {\n return;\n }\n\n // For third party analytic events, depending on the media type attached, we need to change the route.\n if (eventType === ThirdPartyAnalyticEvent && model instanceof ThirdPartyAnalyticsEvent && model.clip != null) {\n route = EmberEventVideo;\n }\n\n this.navigation.transitionToRouteId(\n route,\n mediaItem.eventId,\n isEmpty(index)\n ? undefined\n : {\n queryParams: {\n frame: index\n }\n }\n );\n }\n\n /**\n * Opens the details route when enter or space key are pressed.\n */\n @action mediaKeyPressed(evt: KeyboardEvent): void {\n if (isEnterOrSpaceCode(evt.code)) {\n this.mediaClicked();\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ClipPreview': typeof ClipPreview;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n
    \\n
    \\n

    {{tc this \\'formDescription\\'}}

    \\n

    {{tc this \\'queryLimitWarning\\'}}

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

    \\n {{this.recipientMessage}}\\n

    \\n\\n
    \\n {{#if this.successMessage.isRunning}}\\n \\n {{/if}}\\n\\n \\n
    \\n
    \\n
    \\n\\n
    \\n
    \\n

    {{tc this \\'previousRequests\\'}}

    \\n\\n {{#if (is-pending this.requests)}}\\n \\n {{else}}\\n {{#each (await this.requests) as |request|}}\\n
    \\n
    \\n \\n \\n \\n

    {{request.model.status}}

    \\n
    \\n \\n
    \\n\\n
    \\n {{#each request.filters as |filter|}}\\n
    \\n
    {{filter.title}}
    \\n
    {{filter.text}}
    \\n
    \\n {{/each}}\\n
    \\n
    \\n {{else}}\\n

    {{t \\'generic.none\\'}}

    \\n {{/each}}\\n\\n \\n\\n {{/if}}\\n
    \\n
    \\n\\n\",{ moduleName: \"customer-site/components/activity/extended-activity-history-form/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 { guidFor } from '@ember/object/internals';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { isEmpty } from '@ember/utils';\nimport { timeout, restartableTask } from 'ember-concurrency';\nimport { getErrorText } from '../../../utils/ember';\nimport {\n clearValidationErrors,\n processValidationErrorsFromResponse\n} from '@adc/ajax/utils/validation-error-processing';\nimport { intlPath } from '@adc/i18n/path';\nimport {\n EmberAccessControlUsers,\n EmberEnterpriseAccessControlUsers,\n EmberEnterpriseUsers,\n EmberUsers,\n EnterpriseUsers,\n Users\n} from '../../../enums/CustomerPageUrl';\nimport { Processing, Completed, PartialFailed, Failed } from '../../../enums/ExtendedActivityHistoryRequestStatus';\nimport ContainerObject from '../../../utils/container-object';\n\nimport './_style.scss';\n\n/**\n * Wrapper for request models.\n *\n * @class components.activity.ExtendedActivityHistoryForm.RequestItem\n * @inner\n */\nclass RequestItem extends ContainerObject {\n @service intl;\n @service contextManager;\n\n @tracked model;\n\n /**\n * @param {Object} host The host object (controller, route, component, etc) that is instantiating this instance.\n * @param {models.activity.ExtendedActivityHistory.Request} model\n * @param {boolean} showPreferredTimezone\n */\n constructor(host, model, showPreferredTimezone) {\n super(host);\n\n this.model = model;\n this.showPreferredTimezone = showPreferredTimezone;\n }\n\n /**\n * GUID for this request item.\n *\n * @type {string}\n */\n get id() {\n return guidFor(this);\n }\n\n /**\n * The details of selected filters for this request.\n *\n * @type {Array<{title: String, text: String}>}\n */\n get filters() {\n if (!this.isOpen) {\n return [];\n }\n\n const { model, intl, contextManager } = this,\n { isEnterprise } = contextManager,\n fnGetText = (key) => intl.t(`generic.${key}`),\n fnGetList = (items, field = 'description') =>\n isEmpty(items) ? fnGetText('all') : items.mapBy(field).join(', '),\n fnGetFilter = (title, text) => ({ title, text });\n\n return [\n fnGetFilter(\n fnGetText('dateRange'),\n [model.startDate, model.endDate]\n .map((d) =>\n intl.formatDateTz(d, {\n format: 'shortDateTimeFormat'\n })\n )\n .join(' - ')\n ),\n\n fnGetFilter(fnGetText('users'), fnGetList(model.userFilters)),\n fnGetFilter(fnGetText('eventTypes'), fnGetList(model.eventTypeFilters)),\n fnGetFilter(fnGetText('deviceTypes'), fnGetList(model.deviceTypeFilters)),\n isEnterprise ? undefined : fnGetFilter(fnGetText('deviceNames'), fnGetList(model.deviceNameFilters)),\n isEnterprise ? fnGetFilter(fnGetText('locations'), fnGetList(model.locationFilters)) : undefined,\n contextManager.identityModel.isPointCentral\n ? fnGetFilter(fnGetText('userTypes'), fnGetList(model.userTypeFilters))\n : undefined,\n\n fnGetFilter(fnGetText('recipients'), fnGetList(model.recipients, 'address'))\n ].compact();\n }\n\n /**\n * The formatted request date.\n *\n * @returns {String}\n */\n get displayDate() {\n const { intl, contextManager } = this,\n { timeZone } = intl,\n timestamp = intl.formatDateTz(this.model.requestedDate, {\n format: 'shortDateTimeFormat',\n timeZone: contextManager.showPreferredTimezone ? 'UTC' : timeZone\n });\n\n return contextManager.showPreferredTimezone\n ? intl.t('classes.activity.event-history.utcTime', { timestamp })\n : timestamp;\n }\n\n /**\n * Whether filter details are displayed.\n *\n * @type {boolean}\n */\n @tracked isOpen = false;\n\n /**\n * The CSS class for the request's status text.\n *\n * @returns {string}\n */\n @computed('model.statusEnum')\n get statusCss() {\n const color =\n {\n [Processing]: 'orange',\n [Completed]: 'green',\n [PartialFailed]: 'red',\n [Failed]: 'red'\n }[this.model.statusEnum] || '';\n\n return color ? `colored-text-${color}` : '';\n }\n}\n\n/**\n * Creates the data payload for a new request model.\n *\n * @param {Object} filterValues The current filter values.\n * @param {DS.Store} store The ember data store.\n * @param {String} status The model status.\n *\n * @returns {Object}\n *\n * @private\n * @memberof components.activity.ExtendedActivityHistoryForm\n */\nfunction createRequestModelData(filterValues, store, status) {\n const fnGetRelationship = (modelName, ids = []) =>\n store.peekAll(modelName).filter((record) => ids.includes(record.id));\n\n return [\n ['user', 'user', filterValues.users],\n ['userType', 'user-type', filterValues.userTypes],\n ['eventType', 'event', filterValues.evtTypes],\n ['deviceType', 'device-type', filterValues.deviceTypes],\n ['deviceName', 'device-id', filterValues.globalDeviceIds],\n ['location', 'location', filterValues.locations]\n ].reduce(\n (data, [name, type, ids]) => ({\n ...data,\n [`${name}Filters`]: fnGetRelationship(`activity/history-${type}-filter`, ids)\n }),\n {\n requestedDate: new Date(),\n startDate: filterValues.startDate,\n endDate: filterValues.endDate || new Date(),\n recipients: fnGetRelationship(\n 'users/email-address',\n filterValues.recipients.map((r) => r.toString())\n ),\n status\n }\n );\n}\n\n/**\n * @classdesc\n * Form to request an extended activity report.\n *\n * @class components.activity.ExtendedActivityHistoryForm\n *\n * @param {Object} queryParams The query parameters to be used on the page.\n * @param {Array} requests The collection of activity request models.\n * @param {classes.activity.event-history.helpers.ActivityFilterManager} filtersManager\n */\n@intlPath({ path: 'activity/extended-activity-history-form' })\nexport default class ExtendedActivityHistoryForm extends Component {\n @service store;\n @service intl;\n @service contextManager;\n @service notificationManager;\n @service router;\n\n // region Component state.\n\n /**\n * Indicates there are possible recipients for report requests.\n *\n * @type {Promise}\n */\n @computed('args.filtersManager.filters')\n get hasRecipientsOptions() {\n return (async () => {\n const recipientOptions = await this.args.filtersManager.getFilterByName('recipients').items;\n return !isEmpty(recipientOptions);\n })();\n }\n\n /**\n * Indicates the current resolved filter values are valid and a request can be submitted.\n *\n * @type {boolean}\n */\n @computed(\n 'successMessage.isRunning',\n 'args.{filtersManager.cachedFilterValues.recipients.[],queryParams.recipients.[]}'\n )\n get isRequestValid() {\n const { filtersManager, queryParams } = this.args;\n return (\n !this.successMessage.isRunning &&\n !isEmpty(filtersManager.cachedFilterValues.recipients ?? queryParams.recipients)\n );\n }\n\n /**\n * The request items to show.\n *\n * @returns {Promise>}\n */\n @computed('args.requests.[]', 'contextManager.showPreferredTimezone')\n get requests() {\n return (async () => {\n const requests = await this.args.requests,\n showPreferredTimezone = await this.contextManager.showPreferredTimezone;\n\n return requests\n .sortBy('requestedDate')\n .reverse()\n .map((model) => new RequestItem(this, model, showPreferredTimezone));\n })();\n }\n\n /**\n * The text to display at the bottom of the recipient section.\n *\n * @returns {string}\n */\n @computed('contextManager.isEnterprise', 'hasRecipientsOptions')\n get recipientMessage() {\n // Get the most appropriate users page enum.\n // We have to check enterprise, access control, ember, and legacy.\n const { contextManager } = this,\n routes = contextManager.isEnterprise\n ? [EmberEnterpriseAccessControlUsers, EmberEnterpriseUsers, EnterpriseUsers]\n : [EmberAccessControlUsers, EmberUsers, Users],\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 routeId = routes.find((id) => contextManager.getRouteItem(id)),\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 routeItem = contextManager.getRouteItem(routeId);\n\n // Realistically, anyone who can see EAH should be able to see at least some version of the users page.\n // However, this isn't true in the component's integration test, so we still have to handle that case.\n if (!routeItem) {\n return htmlSafe('');\n }\n\n // Legacy and ember links need to be formatted differently.\n const routeUrl =\n routeId === EnterpriseUsers || routeId === Users ? routeItem.url : this.router.urlFor(routeItem.url),\n resourceName = this.hasRecipientsOptions ? 'newRecipientMessage' : 'noRecipientsMessage';\n\n return htmlSafe(this.intl.tc(this, resourceName, { link: routeUrl }));\n }\n\n // endregion\n\n // region Tasks\n\n /**\n * The success message should be shown while this task is active.\n *\n * @returns {Generator, void, ?>}\n */\n @restartableTask *successMessage() {\n yield timeout(15000);\n }\n\n /**\n * Creates and submits an extended activity history request, and updates the query parameters for the last request filter values.\n *\n * @returns {Generator, void, ?>}\n */\n @restartableTask *createRequest() {\n clearValidationErrors.call(this);\n\n const {\n store,\n args: { queryParams, filtersManager }\n } = this,\n request = store.createRecord(\n 'activity/extended-activity-history/request',\n createRequestModelData(\n {\n ...queryParams,\n ...filtersManager.cachedFilterValues\n },\n store,\n this.intl.t('generic.processing')\n )\n );\n\n try {\n yield request.save();\n\n // Update filter query parameters.\n filtersManager.submitCachedFilterValues();\n\n // Trigger success message task.\n this.successMessage.perform();\n } catch (error) {\n // Unload newly create record.\n yield request.unloadRecord();\n\n processValidationErrorsFromResponse.call(this, error);\n\n const errorText = getErrorText(error);\n if (errorText) {\n this.notificationManager.addError(errorText);\n throw errorText;\n }\n\n throw error;\n }\n }\n\n // endregion\n\n // region Actions\n\n /**\n * Submits the request to the server and updates query parameters.\n *\n * @returns {Promise}\n */\n @action\n async submitRequest() {\n return this.createRequest.perform();\n }\n\n /**\n * Transitions the user back to the previous page when clicking the cancel button.\n */\n @action\n goBack() {\n this.contextManager.transitionToPreviousRoute();\n }\n\n /**\n * Opens (or closes) the request filter details.\n *\n * @param item\n */\n @action toggleRequestDetails(item) {\n item.isOpen = !item.isOpen;\n }\n\n /**\n * Update the page size and go to new page showing the first requests from previous pageSize.\n *\n * @param {number} pageSize The new page size value.\n */\n @action changePageSize(pageSize) {\n const { queryParams, filtersManager } = this.args,\n newPage = Math.floor((queryParams.page - 1) * (queryParams.pageSize / pageSize)) + 1;\n\n // Update filter query parameters.\n filtersManager.submitFilterValues({\n pageSize,\n page: newPage\n });\n }\n\n /**\n * Update the selected page.\n *\n * @param {number} page The new page value.\n */\n @action changePage(page) {\n this.args.filtersManager.submitFilterValues({\n page\n });\n }\n\n // endregion\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if @filter.icon.hasIcon}}\\n \\n{{else}}\\n \\n{{/if}}\",{ moduleName: \"customer-site/components/activity/filter-option/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed } from '@ember/object';\n\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type ActivityFilterOption from 'customer-site/models/activity/activity-filter-option';\n\nexport interface ActivityFilterOptionSignature {\n Args: {\n categoryId: string;\n subsectionName: string;\n filter: ActivityFilterOption;\n filtersManager: ActivityFilterManager;\n };\n}\n\n/**\n * @classdesc\n * An option for filtering activity.\n */\nexport default class ActivityFilterOptionComponent extends Component {\n @computed('args.{filtersManager.numQueryParamsFilters,categoryId,subsectionName,filter.id}')\n get isSelected(): boolean {\n return this.args.filtersManager.filterApplied(\n this.args.categoryId,\n this.args.subsectionName,\n this.args.filter.id\n );\n }\n\n @action\n applyCategorizedFilterOption(): void {\n this.args.filtersManager.applyCategorizedFilterOption(\n this.args.categoryId,\n this.args.subsectionName,\n this.args.filter.id\n );\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::FilterOption': typeof ActivityFilterOptionComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n
    \\n

    {{t (concat \\'classes.activity.event-history.\\' @subsection.name)}}

    \\n \\n
    \\n
    \\n {{#each @subsection.filterOptions as |filter|}}\\n \\n {{/each}}\\n
    \\n
    \",{ moduleName: \"customer-site/components/activity/filter-subsection/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\n\nimport './_style.scss';\nimport { action, computed } from '@ember/object';\n\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type ActivityFilterOption from 'customer-site/models/activity/activity-filter-option';\nimport type ActivityFilterSubsectionModel from 'customer-site/models/activity/activity-filter-subsection';\n\ninterface ActivityFilterSubsectionSignature {\n Args: {\n categoryId: string;\n subsection: ActivityFilterSubsectionModel;\n filtersManager: ActivityFilterManager;\n };\n}\n\nexport default class ActivityFilterSubsection extends Component {\n /**\n * If at least 1 filter is not applied, show the All button.\n */\n @computed('args.{filtersManager.numQueryParamsFilters,subsection}')\n get showSelectAllSubsectionFiltersButton(): boolean {\n const { filterOptions } = this.args.subsection;\n return !filterOptions.every((filter) => this.isSelected(filter));\n }\n\n /**\n * Is the filter selected/applied?\n */\n @action\n isSelected(filter: ActivityFilterOption): boolean {\n return this.args.filtersManager.filterApplied(this.args.categoryId, this.args.subsection.name, filter.id);\n }\n\n /**\n * Applies the filter\n */\n @action\n applyCategorizedFilterOption(filter: ActivityFilterOption): void {\n this.args.filtersManager.applyCategorizedFilterOption(\n this.args.categoryId,\n this.args.subsection.name,\n filter.id\n );\n }\n\n /**\n * Selects all filters of a given subsection\n */\n @action\n selectAllSubsectionFilters(): void {\n this.args.subsection.filterOptions.forEach((filter) => {\n if (!this.isSelected(filter)) {\n this.applyCategorizedFilterOption(filter);\n }\n });\n }\n\n /**\n * Clears all the filters of a given subsection\n */\n @action\n clearAllSubsectionFilters(): void {\n this.args.filtersManager.removeSubsectionFromQueryParams(this.args.categoryId, this.args.subsection.name);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::FilterSubsection': typeof ActivityFilterSubsection;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n\\n\\n
    \\n {{#each @category.activityFilterSubsections as |subsection|}}\\n \\n {{/each}}\\n
    \",{ moduleName: \"customer-site/components/activity/filter-category/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';\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type ActivityFilterCategory from 'customer-site/models/activity/activity-filter-category';\n\nexport interface ActivityFilterCategorySignature {\n Args: {\n category: ActivityFilterCategory;\n filtersManager: ActivityFilterManager;\n };\n}\n\n/**\n * @classdesc\n * A category dropdown for filtering the activity timeline.\n */\nexport default class ActivityFilterCategoryDisplay extends Component {\n @tracked\n categoryVisible = false;\n\n @action\n toggleCategory(): void {\n this.categoryVisible = !this.categoryVisible;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::FilterCategory': typeof ActivityFilterCategoryDisplay;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if this.canViewShowOtherClips}}\\n \\n \\n

    {{tc this \\'showOtherClipsDescription\\'}}

    \\n
    \\n{{/if}}\\n\",{ moduleName: \"customer-site/components/activity/show-other-clips-toggle/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport './_style.scss';\n\ninterface ShowOtherClipsToggleSignature {\n Args: {\n filtersManager: ActivityFilterManager;\n };\n}\n\n@intlPath({ path: 'activity.show-other-clips-toggle' })\nexport default class ShowOtherClipsToggle extends Component {\n @service declare intl: ADCIntlService;\n\n /**\n * Is the Show Other Clips toggle on?\n */\n @computed('args.filtersManager.queryParams.showOtherClips')\n get isShowOtherClipsToggled(): boolean {\n return this.args.filtersManager.queryParams.showOtherClips;\n }\n\n /**\n * This applies the ShowOtherClips event filter\n */\n @action\n toggleShowOtherClips(): void {\n this.args.filtersManager.applyShowOtherClips(!this.isShowOtherClipsToggled);\n }\n\n @computed('args.filtersManager.canViewShowOtherClips')\n get canViewShowOtherClips(): boolean {\n return this.args.filtersManager.canViewShowOtherClips;\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ShowOtherClipsToggle': typeof ShowOtherClipsToggle;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n

    {{tc this (if this.isEditing \\'editQuickFilter\\' \\'createQuickFilter\\')}}

    \\n
    \\n

    {{tc this \\'quickFilterName\\'}}

    \\n \\n
    \\n {{#if this.canViewActivityFiltersV2}}\\n
    \\n \\n \\n \\n {{#each this.categorizedFiltersToShow as |category|}}\\n \\n {{/each}}\\n \\n
    \\n {{else}}\\n
    \\n {{#each this.filtersToShow as |filter|}}\\n \\n {{#if (eq filter.filteringFieldName \\'daysBack\\')}}\\n \\n {{else}}\\n \\n {{/if}}\\n \\n {{/each}}\\n
    \\n {{/if}}\\n
    \\n {{#if this.isEditing}}\\n \\n {{/if}}\\n\\n
    \\n \\n \\n
    \\n\\n
    \\n
    \",{ moduleName: \"customer-site/components/activity/quick-filters/config-panel/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action, getProperties, setProperties } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { notEmpty } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { areFilterParamsVaildLength } from 'customer-site/classes/helpers/filter-manager';\nimport { DropdownFilter } from 'customer-site/classes/helpers/filters/filters';\nimport QuickFilter from 'customer-site/models/activity/quick-filter';\nimport { intlPath } from '@adc/i18n/path';\nimport DropdownSelectItem, { SELECTED, UNSELECTED } from '@adc/ui-components/utils/dropdown-select-item';\n\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type { BaseFilter } from 'customer-site/classes/helpers/filters/filters';\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type Store from '@ember-data/store';\nimport type ActivityFilterCategory from 'customer-site/models/activity/activity-filter-category';\nimport type { CategoryFilter } from 'customer-site/models/activity/quick-filter';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\n\ninterface ConfigPanelSignature {\n Element: HTMLDivElement;\n Args: {\n filtersManager: ActivityFilterManager;\n filterToEdit?: QuickFilter;\n closeAction: () => void;\n rightPanel?: boolean;\n };\n}\n\ninterface QuickFilterConfig {\n deviceTypes?: string[];\n evtTypes?: string[];\n showOtherClips?: boolean;\n globalDeviceIds?: string[];\n daysBack?: number;\n users?: string[];\n userTypes?: string[];\n locations?: string[];\n categories?: CategoryFilter[];\n}\n\n/**\n * The options for how many days far back we can save a new filter for\n */\nconst daysBackOptions = [1, 2, 7, 14, 30, 60];\n\n/**\n * Configuration panel to define new quick filters on a more granular level\n * @classdesc\n */\n@intlPath({ path: 'activity.quick-filters.config-panel' })\nexport default class ConfigPanel extends Component {\n @service declare contextManager: ContextManager;\n @service declare identityManager: IdentityManager;\n @service declare store: Store;\n @service declare notificationManager: NotificationManager;\n @service declare intl: ADCIntlService;\n\n constructor(owner: unknown, args: ConfigPanelSignature['Args']) {\n super(owner, args);\n\n this.newFilterDesc = this.args.filterToEdit?.description ?? '';\n\n if (!this.isEditing) {\n this.cacheFilterValues();\n }\n }\n\n /**\n * We need to cache the days back selection for Activity Filter Enhancements\n */\n cachedDaysBack = '0';\n\n /**\n * The name of the new quick filter\n */\n @tracked newFilterDesc: string;\n\n /**\n * The cached filter values to save on user input\n */\n @tracked cachedFilterValues: QuickFilterConfig = {};\n\n /**\n * Build the relative date filter\n */\n private getRelativeDateFilter(): DropdownFilter {\n const relativeDateItems: Array = [];\n daysBackOptions.forEach((dayCount) => {\n relativeDateItems.push(\n DropdownSelectItem.create({\n name: this.intl.tc(this, 'daysBack', { dayCount }),\n value: String(dayCount),\n state:\n (this.isEditing ? this.args.filterToEdit?.daysBack : this.cachedFilterValues.daysBack) ===\n dayCount\n ? SELECTED\n : UNSELECTED\n })\n );\n });\n return new DropdownFilter(this.intl.tc(this, 'timePeriod'), 'daysBack', relativeDateItems, {});\n }\n\n /**\n * Validate the description input and display an error message if invalid\n */\n private validateDesc(): boolean {\n const isDuplicateName = !!this.store\n .peekAll('activity/quick-filter')\n .find(\n (filter) =>\n filter.description.toLowerCase() === this.newFilterDesc.toLowerCase() &&\n filter.id !== this.args.filterToEdit?.id\n );\n\n if (!this.newFilterDesc || !this.newFilterDesc.trim() || this.newFilterDesc.length > 35 || isDuplicateName) {\n this.notificationManager.addError(this.intl.tc(this, 'invalidFilterName'));\n return false;\n }\n\n return true;\n }\n\n /**\n * Validate the total length of the filters and display an error message if invalid\n */\n private validateQuickFilterLength(filter: QuickFilter | undefined): boolean {\n const recordToThrow: Record = {};\n QuickFilter.eachAttribute((name) => (recordToThrow[name] = filter?.get(name)));\n\n if (!areFilterParamsVaildLength(recordToThrow)) {\n this.notificationManager.addError(this.intl.tc(this, 'invalidFilterLength'));\n return false;\n }\n\n return true;\n }\n\n /**\n * Base if we are editing off of existence of a passed filter\n */\n @notEmpty('args.filterToEdit')\n declare isEditing: boolean;\n\n /**\n * Get relative date filter and existing activity page dropdown filters\n */\n @computed('args.{filtersManager.filters,filterToEdit}', 'isEditing')\n get filtersToShow(): BaseFilter[] {\n const filtersToAdd: BaseFilter[] = [];\n this.args.filtersManager.filters\n .filterBy('isDropdown' as keyof BaseFilter) // Please fix this casting\n .forEach((filter: DropdownFilter) => {\n const matchingFilter = this.args.filterToEdit?.[filter.filteringFieldName as keyof QuickFilter];\n const newItems = (async () => {\n const items = await filter.items;\n return (items || []).map(({ name, value, state }) =>\n DropdownSelectItem.create({\n name,\n value,\n state: this.isEditing\n ? (matchingFilter as string[]).includes(value)\n ? SELECTED\n : UNSELECTED\n : state\n })\n );\n })();\n\n filtersToAdd.push(\n new DropdownFilter(filter.title, filter.filteringFieldName, newItems, {\n placeholder: filter.placeholder,\n maxItemCount: filter.maxItemCount\n })\n );\n });\n\n return [this.getRelativeDateFilter(), ...filtersToAdd];\n }\n\n @alias('args.filtersManager.canViewActivityFiltersV2')\n declare canViewActivityFiltersV2: boolean;\n\n @alias('args.filtersManager.categories')\n declare categorizedFiltersToShow: Array;\n\n get daysBack(): DropdownFilter {\n return this.getRelativeDateFilter();\n }\n\n /**\n * Cache the selected filter to the appropriate key to be saved on user input\n */\n @action\n cacheFilterSelections(\n key: Exclude,\n filters: DropdownSelectItem[]\n ): void {\n if (key === 'showOtherClips') {\n this.cachedFilterValues[key] = this.args.filtersManager.queryParams.showOtherClips;\n } else {\n this.cachedFilterValues[key] = [];\n filters.filterBy('state', SELECTED).forEach((filter) => {\n this.cachedFilterValues[key]?.push(String(filter.value));\n });\n }\n }\n\n /**\n * Save the relative date filter value\n */\n @action\n cacheDaysBackSelection(value: string): void {\n this.cachedFilterValues.daysBack = Number(value);\n }\n\n /**\n * Apply the days back selection to be saved\n */\n @action\n cacheDaysBackSelectionWithCategories(value: string): void {\n this.cachedDaysBack = value;\n }\n\n /**\n * Update the filter desc if we switch from editing one filter directly to another\n */\n @action\n updateDesc(): void {\n this.newFilterDesc = this.args.filterToEdit?.description ?? '';\n }\n\n /**\n * Save cached values for a new or existing quick filter\n */\n @action\n saveQuickFilter(): void {\n if (!this.validateDesc()) {\n return;\n }\n\n if (this.canViewActivityFiltersV2) {\n this.cacheFilterValues();\n this.cachedFilterValues.daysBack = parseInt(this.cachedDaysBack);\n }\n\n if (this.isEditing) {\n setProperties(this.args.filterToEdit, {\n description: this.newFilterDesc,\n ...this.cachedFilterValues\n });\n\n if (!this.validateQuickFilterLength(this.args.filterToEdit)) return;\n\n this.args.filterToEdit?.save().then(() => {\n this.notificationManager.addSuccess(this.intl.tc(this, 'addEditSuccess'));\n this.args.closeAction();\n });\n } else {\n const newQuickFilter = this.store.createRecord('activity/quick-filter', {\n description: this.newFilterDesc,\n ...this.cachedFilterValues\n });\n\n if (!this.validateQuickFilterLength(newQuickFilter)) return;\n\n newQuickFilter\n .save()\n .then(() => {\n this.notificationManager.addSuccess(this.intl.tc(this, 'addSuccess'));\n this.args.closeAction();\n this.newFilterDesc = '';\n })\n .catch(() => {\n this.notificationManager.addError(this.intl.tc(this, 'addError'));\n newQuickFilter.deleteRecord();\n });\n }\n }\n\n @action\n cacheFilterValues(): void {\n this.cachedFilterValues = {\n ...getProperties(\n this.args.filtersManager.queryParams,\n 'deviceTypes',\n 'evtTypes',\n 'showOtherClips',\n 'users',\n 'userTypes',\n 'globalDeviceIds',\n 'locations',\n 'categories'\n ),\n daysBack: 0\n };\n }\n\n /**\n * Delete the filter we are editing\n */\n @action\n async deleteQuickFilter(): Promise {\n await this.args.filterToEdit?.destroyRecord();\n\n this.notificationManager.addSuccess(this.intl.tc(this, 'addDeleteSuccess'));\n\n this.args.closeAction();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::QuickFilters::ConfigPanel': typeof ConfigPanel;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:subheader>\\n {{#if this.showQuickFilterList}}\\n

    {{t \\'components.activity.quick-filters.quickFilterTitle\\'}}

    \\n
    \\n {{#if this.isReordering}}\\n \\n {{else}}\\n \\n {{/if}}\\n \\n
    \\n {{/if}}\\n \\n <:default>\\n {{#if this.showQuickFilterList}}\\n
    \\n \\n \\n {{#each this.sortedQuickFiltersWithoutDefaults as |filter|}}\\n
    \\n {{#if this.isReordering}}\\n \\n {{/if}}\\n

    {{filter.description}}

    \\n {{#if filter.isCustom}}\\n \\n {{/if}}\\n
    \\n {{/each}}\\n
    \\n
    \\n
    \\n {{/if}}\\n {{#if this.showManagementUI}}\\n \\n {{/if}}\\n \\n\\n\",{ moduleName: \"customer-site/components/activity/quick-filters/config-panel-action-sheet/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action, set } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\n\nimport type { DragulaOptions } from 'dragula';\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { ActionSheetSignature } from '@adc/ui-components/components/action-sheet';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type Store from '@ember-data/store';\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type QuickFilter from 'customer-site/models/activity/quick-filter';\n\n/**\n * Passed properties for Quick Filters component\n */\ninterface ConfigPanelActionSheetSignature {\n Args: Pick & {\n filtersManager: ActivityFilterManager;\n applyFilter: (filter: QuickFilter | undefined) => void;\n };\n}\n\n/**\n * Component for handling quick filters navigation, application, and setting custom filters\n * @classdesc\n */\n\n@intlPath({ path: 'activity.quick-filters.config-panel-action-sheet' })\nexport default class ConfigPanelActionSheet extends Component {\n @service declare store: Store;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationManager;\n\n constructor(owner: unknown, args: ConfigPanelActionSheetSignature['Args']) {\n super(owner, args);\n\n this.populateQuickFilters.perform();\n }\n\n /**\n * Array of quick filters to be rendered\n */\n @tracked\n quickFilters: QuickFilter[] = [];\n\n /**\n * The property to sort quick filters by\n */\n quickFiltersSorting = ['sortOrder'];\n\n /**\n * The sorted list of quick filters\n **/\n @sort('quickFilters', 'quickFiltersSorting')\n declare sortedQuickFilters: QuickFilter[];\n\n /**\n * Should we display the list of quick filters\n */\n @tracked\n showQuickFilterList = true;\n\n /**\n * Should we show the edit / create quick filter UI?\n */\n @tracked\n showManagementUI = false;\n\n /**\n * Is the user editing a quick filter?\n */\n @tracked\n isEditing = false;\n\n /**\n * Quick Filter we want to edit\n */\n @tracked\n quickFilterToEdit?: QuickFilter;\n\n /**\n * Is the user currently reordering quick filters?\n **/\n @tracked\n isReordering = false;\n\n get sortedQuickFiltersWithoutDefaults() {\n return this.sortedQuickFilters.filter((qf) => !qf.id.includes('default'));\n }\n\n /**\n * Fetch saved quick filters\n */\n populateQuickFilters = task({ drop: true }, async () => {\n this.quickFilters = await this.store\n .findAll('activity/quick-filter')\n .then((arrayProxy) => arrayProxy.toArray());\n });\n\n /**\n * Unapply any filters, close the management ui, and display the list of quick filters\n */\n @action\n resetUI(): void {\n // Clear the applied filter\n this.args.applyFilter(undefined);\n\n this.showQuickFilterList = true;\n this.showManagementUI = this.isEditing = this.isReordering = false;\n }\n\n /**\n * Close the edit / create quick filter UI\n */\n @action\n closeQuickFilterManagementUI(): void {\n // Reload the quick filters list\n this.populateQuickFilters.perform();\n\n this.resetUI();\n }\n\n /**\n * Open the management UI for creating a new quick filter\n */\n @action\n createFilter(): void {\n this.showQuickFilterList = this.isEditing = this.isReordering = false;\n this.showManagementUI = true;\n }\n\n /**\n * Open the management UI to edit the passed quick filter.\n * @param filter\n */\n @action\n editFilter(filter?: QuickFilter): void {\n if (filter?.id) {\n this.args.applyFilter(filter);\n this.quickFilterToEdit = filter;\n }\n\n this.showQuickFilterList = this.isReordering = false;\n this.showManagementUI = this.isEditing = true;\n }\n\n /**\n * Enable / disable reordering mode for quick filter list\n */\n @action\n toggleReorder(): void {\n if (this.isReordering) {\n const container = document.querySelector('.scenes-wrap .scenes-host'),\n nodes: { [key: string]: Element } = {};\n\n if (container) {\n // Create a mapping of scene item nodes (by model ID).\n Array.from(container.children).forEach((childEl) => {\n nodes[childEl.querySelector('p')?.getAttribute('data-scene-id') as string] = childEl;\n });\n\n // Iterate scene models and append to container.\n this.sortedQuickFilters.forEach((quickFilter) => container.appendChild(nodes[quickFilter.id]));\n }\n }\n\n this.isReordering = !this.isReordering;\n }\n\n /**\n * Scenes drag config.\n */\n get dragCardsConfig(): { options: DragulaOptions } {\n return {\n options: {\n copy: false,\n direction: 'vertical',\n revertOnSpill: false,\n removeOnSpill: false,\n mirrorContainer: document.querySelector('.scenes-wrap') ?? undefined,\n\n // Only allow drag if currently in reorder mode AND click was within the drag handle.\n moves: (_el?: Element, _container?: Element, handle?: Element) =>\n !!(this.isReordering && handle?.classList.contains('svg-reorder'))\n }\n };\n }\n\n /**\n * Saves the current scenes order.\n */\n @action saveReorder(_buttonAnimation: Promise, evt: MouseEvent): Promise {\n const { notificationManager, quickFilters } = this;\n\n // Iterate scene rows and update sort order.\n Array.from(\n (evt.target as HTMLElement)\n .closest('.filter-config-action-sheet')\n ?.querySelectorAll('.scenes-wrap .filter-row p') ?? []\n ).forEach((el: HTMLElement, idx: number) => {\n if (!el.dataset.quickFilterId?.includes('default')) {\n set(quickFilters.findBy('id', el.dataset.quickFilterId) as QuickFilter, 'sortOrder', idx + 1);\n }\n });\n\n // Save dirty models.\n return Promise.all(quickFilters.filterBy('hasDirtyAttributes').invoke('save'))\n .then(() => notificationManager.addSuccess(this.intl.tc(this, 'orderSaved')))\n .catch((err) => notificationManager.addError(err))\n .finally(() => (this.isReordering = false));\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::QuickFilters::ConfigPanelActionSheet': typeof ConfigPanelActionSheet;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{#if @activityFilterEnhancements}}\\n
    \\n
    \\n \\n {{#each this.sortedQuickFilters as |filter|}}\\n \\n {{/each}}\\n
    \\n
    \\n{{else}}\\n
    \\n

    {{tc this \\'quickFilterTitle\\'}}

    \\n {{#each this.quickFilters as |filter|}}\\n
    \\n \\n {{#if filter.isCustom}}\\n \\n {{/if}}\\n
    \\n {{/each}}\\n
    \\n{{/if}}\\n\\n\",{ moduleName: \"customer-site/components/activity/quick-filters/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport ArrayProxy from '@ember/array/proxy';\nimport { action } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { intlPath } from '@adc/i18n/path';\nimport subDays from 'date-fns/subDays';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type Store from '@ember-data/store';\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type QuickFilter from 'customer-site/models/activity/quick-filter';\n\n/**\n * Passed properties for Quick Filters component\n */\ninterface QuickFiltersSignature {\n Args: {\n filtersManager: ActivityFilterManager;\n editAction?: (filter?: QuickFilter) => void;\n activityFilterEnhancements?: boolean;\n };\n}\n\n/**\n * Component for handling quick filters navigation, application, and setting custom filters\n * @classdesc\n */\n@intlPath({ path: 'activity.quick-filters' })\nexport default class QuickFilters extends Component {\n @service declare store: Store;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationManager;\n\n constructor(owner: unknown, args: QuickFiltersSignature['Args']) {\n super(owner, args);\n\n this.populateQuickFilters.perform();\n }\n\n /**\n * Array of quick filters to be rendered\n */\n @tracked\n quickFilters: ArrayProxy = new ArrayProxy();\n\n quickFiltersSorting = ['sortOrder'];\n\n /** The sorted list of quick filters */\n @sort('quickFilters', 'quickFiltersSorting')\n declare sortedQuickFilters: QuickFilter[];\n\n /**\n * Currently selected filter's Id\n */\n @tracked\n selectedFilterId?: string;\n\n /**\n * Is the Quick Filter config action sheet currently open?\n */\n @tracked\n showQuickFilterConfigActionSheet = false;\n\n /**\n * Fetch saved quick filters\n */\n populateQuickFilters = task({ drop: true }, async () => {\n const filters = await this.store.findAll('activity/quick-filter');\n this.quickFilters = filters;\n });\n\n /**\n * Apply a given filter\n * If the current selected filter or undefined are passed: clear the selected filter\n */\n @action\n applyFilter(filter: QuickFilter | undefined): void {\n const { filtersManager } = this.args;\n\n // If filter is undefined or equal to current selected filter\n if (!filter || this.selectedFilterId === filter.id) {\n const newValues: Record = {};\n this.selectedFilterId = '';\n\n filtersManager.applyCleanFilters(newValues);\n } else {\n const {\n deviceTypes,\n evtTypes,\n showOtherClips,\n users,\n userTypes,\n globalDeviceIds,\n daysBack,\n locations,\n categories\n } = filter,\n newValues: Record = {\n deviceTypes,\n evtTypes,\n showOtherClips,\n users,\n userTypes,\n globalDeviceIds,\n locations,\n categories\n };\n\n if (daysBack && daysBack > 0) {\n newValues.startDate = subDays(new Date(), daysBack);\n newValues.endDate = new Date();\n }\n\n filtersManager.applyCleanFilters(newValues);\n this.selectedFilterId = filter.id;\n }\n }\n\n /**\n * Perform edit action on a given filter\n */\n @action\n editFilter(filter: QuickFilter | undefined): void {\n if (!this.args.filtersManager.canEditActivityQuickFilters) {\n this.notificationManager.addWarning(this.intl.t('generic.quickFiltersNoPermission'));\n return;\n }\n\n this.args.editAction?.(filter);\n }\n\n /**\n * Clear the selectedFilterId if the appliedFilters is set to zero\n */\n @action\n appliedFilterChange(): void {\n if (!this.args.filtersManager.hasAppliedFilters) {\n this.selectedFilterId = '';\n }\n }\n\n /**\n * Clear the selectedFilterId if the numQueryParamsFilters is set to zero\n */\n @action\n appliedQueryParamsFilterChange(): void {\n if (!this.args.filtersManager.hasQueryParamsFilters) {\n this.selectedFilterId = '';\n }\n }\n\n /**\n * Handle key presses\n */\n @action\n keyInput(actionFn: (arg0: QuickFilter) => void, filter: QuickFilter, event: KeyboardEvent): void {\n if (event.code === 'Enter') {\n actionFn(filter);\n }\n }\n\n /**\n * Open the quick filter config modal\n */\n @action\n openQuickFilterConfigActionSheet(): void {\n if (!this.args.filtersManager.canEditActivityQuickFilters) {\n this.notificationManager.addWarning(this.intl.t('generic.quickFiltersNoPermission'));\n return;\n }\n\n this.applyFilter(undefined);\n\n this.showQuickFilterConfigActionSheet = true;\n }\n\n /**\n * Close the quick filter config action sheet\n */\n @action\n closeQuickFilterConfigActionSheet(): void {\n this.showQuickFilterConfigActionSheet = false;\n }\n\n @action\n scrollHorizontal(event: WheelEvent): void {\n event.preventDefault();\n\n if (event.target instanceof HTMLElement) {\n const scrollableDiv = event.target.closest('.quick-filters')?.querySelector('.filters-v2');\n\n if (scrollableDiv) {\n scrollableDiv.scrollLeft += event.deltaY;\n }\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::QuickFilters': typeof QuickFilters;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n \\n \\n\\n {{#if this.showSmartDateRange}}\\n \\n {{/if}}\\n \\n\",{ moduleName: \"customer-site/components/filters/activity-date-time-range-filter/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { computed, action } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { BinaryListItem } from '@adc/ui-components/components/simple-binary/list';\n\nimport './_style.scss';\nimport type { SmartDateRangeSignature } from '@adc/ui-components/components/smart-date-range';\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type ADCIntlService from 'customer-site/services/intl';\n\ntype SmartDateRangeArgs = SmartDateRangeSignature['Args'];\n\nexport interface ActivityDateTimeRangeSignature {\n Element: HTMLDivElement;\n Args: Pick & {\n filtersManager: ActivityFilterManager;\n 'value-change': SmartDateRangeArgs['onchange'];\n };\n}\n\nconst DATE_RECENT = 'recent',\n DATE_SPECIFIED = 'specified';\n\ntype DateRangeProps = {\n id: string;\n};\n\n@intlPath({ path: 'filters/activity-date-time-range-filter' })\nexport default class ActivityDateTimeRange extends Component {\n @service declare intl: ADCIntlService;\n /**\n * Indicates the date range picker popup is open.\n */\n @tracked isOpen = false;\n\n /**\n * Show or hide the date range picker\n */\n @tracked showSmartDateRange = false;\n\n /**\n * Get the list of sensor devices\n */\n @computed()\n get items(): BinaryListItem[] {\n const recentActivity = new BinaryListItem({\n label: this.intl.tc(this, 'recentActivity'),\n state: true,\n props: {\n id: DATE_RECENT\n }\n });\n\n const specifiedDateRange = new BinaryListItem({\n label: this.intl.tc(this, 'specifiedDateRange'),\n state: false,\n props: {\n id: DATE_SPECIFIED\n }\n });\n\n return [recentActivity, specifiedDateRange];\n }\n\n @action\n updateList(items: ActivityDateTimeRange['items']): void {\n const selectedItem =\n items.find((item) => item.state)?.props.id === DATE_SPECIFIED ? DATE_SPECIFIED : DATE_RECENT;\n\n if (selectedItem == DATE_SPECIFIED) {\n this.showSmartDateRange = true;\n } else {\n this.showSmartDateRange = false;\n this.args.filtersManager.applyFilter({ queryParams: { startDate: this.args.minDate, endDate: null } });\n }\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Filters::ActivityDateTimeRangeFilter': typeof ActivityDateTimeRange;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"{{!-- @glint-nocheck The filters type is too broad, so it doesn\\'t know about these other properties. --}}\\n
    \\n {{#each @filtersManager.filters as |filter|}}\\n {{#if filter.isDateRangeSelector}}\\n \\n {{/if}}\\n {{/each}}\\n \\n {{#each @filtersManager.categories as |category|}}\\n \\n {{/each}}\\n \\n
    \",{ moduleName: \"customer-site/components/activity/filter-selector/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\nimport type FilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type { ActivityDateTimeRangeSignature } from 'customer-site/components/filters/activity-date-time-range-filter';\n\ninterface ActivityFilterSelectorSignature {\n Element: ActivityDateTimeRangeSignature['Element'];\n Args: {\n filtersManager: FilterManager;\n };\n}\n\nconst ActivityFilterSelector = templateOnlyComponent();\nexport default ActivityFilterSelector;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::FilterSelector': typeof ActivityFilterSelector;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n \\n\\n {{#if this.canViewActivityFiltersV2}}\\n \\n {{/if}}\\n {{!-- @glint-expect-error This property doesn\\'t exist, please verify and remove this code. --}}\\n {{#if this.resultCountText}}\\n
    \\n {{!-- @glint-expect-error This property doesn\\'t exist, please verify and remove this code. --}}\\n {{this.resultCountText}}\\n
    \\n {{/if}}\\n\\n {{#if this.canViewActivityFiltersV2}}\\n \\n {{else}}\\n
    \\n {{#if @filtersManager.hasAppliedFilters}}\\n

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

    \\n\\n \\n \\n {{t \\'generic.clearFilters\\'}}\\n \\n {{/if}}\\n
    \\n {{/if}}\\n\\n
    \\n {{yield}}\\n\\n {{#unless this.canViewActivityFiltersV2}}\\n \\n {{/unless}}\\n {{#unless (or this.canViewActivityFiltersV2 this.isMobile)}}\\n \\n {{/unless}}\\n
    \\n \\n\\n {{#if (and this.showQuickFilterBar this.canViewActivityFiltersV2)}}\\n \\n {{/if}}\\n\\n
    \\n {{#if this.isQuickFilterConfig}}\\n \\n {{else}}\\n {{#if this.canViewActivityFiltersV2}}\\n
    \\n

    {{t \\'generic.filter\\'}}

    \\n \\n
    \\n \\n \\n {{else}}\\n \\n {{/if}}\\n {{#unless (or this.isMobile this.canViewActivityFiltersV2)}}\\n \\n {{/unless}}\\n {{/if}}\\n
    \\n
    \\n{{#unless this.isMobile}}\\n
    \\n {{#if (await this.contextManager.showPreferredTimezone)}}\\n

    {{t \\'generic.setPreferredTimezone\\'}}

    \\n {{!-- @glint-expect-error This component needs to be converted to TS. --}}\\n \\n {{/if}}\\n\\n {{#unless this.canViewActivityFiltersV2}}\\n \\n {{/unless}}\\n
    \\n{{/unless}}\",{ moduleName: \"customer-site/components/activity/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 { alias } from '@ember/object/computed';\nimport { or } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type Websocket from '@adc/app-infrastructure/services/websocket';\nimport type NotificationManager from '@adc/ui-components/services/notification-manager';\nimport type ActivityFilterManager from 'customer-site/classes/activity/event-history/helpers/filter-manager';\nimport type BaseFilter from 'customer-site/classes/helpers/filters/base-filter';\nimport type QuickFilter from 'customer-site/models/activity/quick-filter';\nimport type ContextManager from 'customer-site/services/context-manager';\nimport type IdentityManager from 'customer-site/services/identity-manager';\nimport type ADCIntlService from 'customer-site/services/intl';\n\ninterface ActivityFilterBarSignature {\n Args: {\n filtersManager: ActivityFilterManager;\n };\n Blocks: {\n default: [];\n };\n}\n\n/**\n * @classdesc\n * The activity center filter bar.\n */\n@intlPath({ path: 'activity.filter-bar' })\nexport default class ActivityFilterBarComponent extends Component {\n @service declare contextManager: ContextManager;\n @service declare identityManager: IdentityManager;\n @service declare websocket: Websocket;\n @service declare media: ADCResponsiveMediaService;\n @service declare intl: ADCIntlService;\n @service declare notificationManager: NotificationManager;\n\n /**\n * Indicates the filter panel is visible.\n */\n @tracked\n filtersVisible = false;\n\n /**\n * Should the right side menu be displayed?\n */\n @tracked\n showRightNav = false;\n\n /**\n * Should the quick filter horizontal list be displayed\n */\n @tracked\n showQuickFilterBar = false;\n\n /**\n * Is the Quick Filter config panel currently open?\n */\n @tracked\n isQuickFilterConfig = false;\n\n /**\n * Quick Filter we want to edit\n */\n @tracked\n quickFilterToEdit?: QuickFilter;\n\n @alias('args.filtersManager.canViewActivityFiltersV2')\n declare canViewActivityFiltersV2: boolean;\n\n /**\n * The search filter.\n */\n @computed('args.filtersManager.filters')\n get searchFilter(): BaseFilter {\n return this.args.filtersManager.getFilterByName('searchString');\n }\n\n /**\n * Is the navigation header tab displayed on this page?\n */\n @computed('contextManager.currentRouteData.routeItem.parent.relationship.subRoutes')\n get pageHasSubRoutes(): boolean {\n return (\n (this.contextManager.currentRouteData?.routeItem?.parent?.relationship.subRoutes?.filterBy(\n 'isHiddenFromNavigation',\n false\n ).length ?? 0) > 1\n );\n }\n\n /**\n * Is the viewing device mobile?\n */\n @or('media.isMobile', 'media.isTabletPortrait')\n declare isMobile: boolean;\n\n /**\n * Toggles filter visibility.\n */\n @action\n toggleFilters(): void {\n this.isQuickFilterConfig = false;\n this.filtersVisible = !this.filtersVisible;\n }\n\n /**\n * Resets all filters.\n */\n @action\n resetFilters(): void {\n this.args.filtersManager.resetFilterValues({ page: 1 });\n }\n\n /**\n * Resets all queryParams filters.\n */\n @action\n resetQueryParamsFilters(): void {\n this.args.filtersManager.resetQueryParamsFilterValues({\n page: 1,\n showOtherClips: this.args.filtersManager.queryParams.showOtherClips\n });\n }\n\n /**\n * Updates the isActivityFilterApplied to enable/disable real time activity updates\n */\n @action\n filterApplied(): void {\n this.contextManager.isActivityFilterApplied = !isEmpty(this.args.filtersManager.appliedFilters);\n }\n\n /**\n * Toggle the quick filters menu\n */\n @action\n toggleQuickFilters(): void {\n if (this.canViewActivityFiltersV2) {\n this.showQuickFilterBar = !this.showQuickFilterBar;\n return;\n }\n\n this.showRightNav = !this.showRightNav;\n }\n\n /**\n * Open the quick filter config panel\n */\n @action\n openQuickFilterConfig(filter?: QuickFilter): void {\n if (!this.args.filtersManager.canEditActivityQuickFilters) {\n this.notificationManager.addWarning(this.intl.t('generic.quickFiltersNoPermission'));\n return;\n }\n\n if (filter?.id) {\n this.quickFilterToEdit = filter;\n }\n\n this.showRightNav = false;\n this.filtersVisible = this.isQuickFilterConfig = true;\n }\n\n /**\n * Close the quick filter editing panel\n */\n @action\n closeQuickFilterConfig(): void {\n this.isQuickFilterConfig = this.filtersVisible = false;\n this.quickFilterToEdit = undefined;\n }\n\n @computed('args.filtersManager.hasQueryParamsFilters', 'filtersVisible')\n get buttonIcon(): string {\n if (this.filtersVisible && this.args.filtersManager.hasQueryParamsFilters) {\n return 'close';\n } else if (this.args.filtersManager.hasQueryParamsFilters) {\n return 'filter-active';\n }\n return 'filter';\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::FilterBar': typeof ActivityFilterBarComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n \\n \\n \\n\\n
    \\n \\n\\n
    \\n \\n\\n {{#if @permissions.canDelete}}\\n \\n {{/if}}\\n
    \\n
    \\n\\n
    \\n {{#each @item.model.media as |image idx|}}\\n \\n {{/each}}\\n
    \\n
    \\n
    \\n
    \\n\",{ moduleName: \"customer-site/components/activity/image-detail/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, action, set } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\nimport { downloadFile } from '@adc/ui-components/utils/download-file';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type ActivityItem from 'customer-site/classes/activity/event-history/helpers/activity-item';\nimport type RecordModel from 'customer-site/models/activity/record';\nimport type ImageSensorImage from 'customer-site/models/image-sensor/image-sensor-image';\nimport type UploadClipPermissions from 'customer-site/models/image-sensor/upload-clip-permission';\n\nexport interface ActivityImageDetailComponentSignature {\n Element: HTMLDivElement;\n Args: {\n item: ActivityItem;\n permissions: UploadClipPermissions | Awaited> | null;\n frame?: number;\n selectFrame: (index: number) => void;\n deleteImage: (image: RecordModel) => void;\n };\n}\n\n/**\n * @classdesc\n * Component for displaying/interacting with uploaded image sensor captures.\n */\n@intlPath({ path: 'activity/image-detail' })\nexport default class ActivityImageDetailComponent extends Component {\n @service declare intl: ADCIntlService;\n\n /**\n * The 0-based index of the selected frame.\n */\n @computed('args.frame')\n get frame(): number {\n return this.args.frame ?? 0;\n }\n\n /**\n * The selected image sensor image model.\n */\n @computed('args.item.model.media', 'frame')\n get activeFrame(): Promise {\n return (async () => {\n const media = await this.args.item.model?.media;\n return media?.objectAt(this.frame) as ImageSensorImage;\n })();\n }\n\n /**\n * Selects a new frame.\n */\n @action changeFrame(frame: number): void {\n this.args.selectFrame(frame);\n }\n\n /**\n * Downloads the image for the passed frame.\n */\n @action downloadFrame(frame: ImageSensorImage): void {\n const { description, timestamp, id, imageSrc } = frame,\n filename = [\n description,\n this.intl.formatDateTz(timestamp, {\n format: 'shortDateTimeFormat'\n }),\n id.split('-').pop()\n ].join(' ');\n\n downloadFile(imageSrc, `${filename}.jpg`);\n }\n\n /**\n * Called to rename the image sensor clip.\n */\n @action rename(text: string): Promise {\n return (async () => {\n // Get all media and isolate edited media.\n const media = await this.args.item.model?.media;\n if (media) {\n const activeFrame = media.objectAt(this.frame) as ImageSensorImage;\n\n // Update description.\n set(activeFrame, 'description', text);\n\n try {\n await activeFrame.save();\n } catch (err) {\n activeFrame.rollbackAttributes();\n throw err;\n }\n\n // Reload other frames so they get updated description.\n await Promise.all(media.without(activeFrame).invoke('reload'));\n }\n })();\n }\n\n /**\n * Calls the `deleteImage` closure function.\n */\n @action delete(model: ImageSensorImage): void {\n this.args.deleteImage(model);\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ImageDetail': typeof ActivityImageDetailComponent;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |data|>\\n \\n \\n\\n\",{ moduleName: \"customer-site/components/activity/image-media.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './image-media.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type { ActivityImageDetailComponentSignature } from 'customer-site/components/activity/image-detail/index';\nimport type UploadClipPermissions from 'customer-site/models/image-sensor/upload-clip-permission';\n\ntype ActivityImageDetailComponentArgs = ActivityImageDetailComponentSignature['Args'];\n\nexport interface ActivityImageMediaSignature {\n Args: Pick & {\n model: {\n item: Promise;\n permissions: UploadClipPermissions | ADCAsyncStoreFindRecord | null;\n };\n };\n}\n\nconst ActivityImageMedia = templateOnlyComponent();\nexport default ActivityImageMedia;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ImageMedia': typeof ActivityImageMedia;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n \\n\\n
    \\n {{yield}}\\n
    \\n
    \\n\",{ moduleName: \"customer-site/components/activity/media-detail/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { alias } from '@ember/object/computed';\n\nimport './_style.scss';\nimport type ActivityItem from 'customer-site/classes/activity/event-history/helpers/activity-item';\n\ninterface MediaDetailComponentSignature {\n Element: HTMLDivElement;\n Args: {\n item: ActivityItem;\n };\n Blocks: {\n default: [];\n };\n}\n\nexport default class MediaDetail extends Component {\n @alias('args.item')\n declare item: ActivityItem;\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::MediaDetail': typeof MediaDetail;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n\",{ moduleName: \"customer-site/components/activity/no-results/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport './_style.scss';\nimport type { FiltersNoResultsSignature } from 'customer-site/components/filters/no-results';\n\ninterface ActivityNoResultsSignature {\n Element: FiltersNoResultsSignature['Element'];\n Args: Pick;\n}\n\nconst ActivityNoResults = templateOnlyComponent();\nexport default ActivityNoResults;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::NoResults': typeof ActivityNoResults;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"

    \\n {{#if this.hasResultCountWarning}}\\n \\n {{/if}}\\n {{this.resultCountText}}\\n

    \",{ moduleName: \"customer-site/components/activity/results-count/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { isPresent } from '@ember/utils';\nimport {\n EmberEnterpriseExtendedActivityHistory,\n EmberExtendedActivityHistory\n} from 'customer-site/enums/CustomerPageUrl';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type { Registry as ServiceRegistry } from '@ember/service';\n\nexport interface ResultsCountSignature {\n Args: {\n /** The number of results returned. */\n count: number;\n };\n}\n\n/**\n * @classdesc\n * A component for showing the results count, or a warning message if there are too many results.\n */\n@intlPath({ path: 'activity/results-count' })\nexport default class ResultsCount extends Component {\n @service declare intl: ADCIntlService;\n @service declare identityManager: ServiceRegistry['identity-manager'];\n @service declare navigation: ServiceRegistry['navigation'];\n @service declare router: ServiceRegistry['router'];\n\n // region Computed properties\n\n /**\n * Whether or not there is a warning related to event count.\n */\n @equal('args.count', 1000)\n declare hasResultCountWarning: boolean;\n\n /**\n * Text displaying the number of events returned.\n */\n @computed('args.count', 'hasResultCountWarning', 'identityManager.isEnterprise')\n get resultCountText(): ReturnType {\n const { intl } = this;\n\n // Display a warning if the max number of events was hit.\n if (this.hasResultCountWarning) {\n // Check if the user has access to the relevant extended activity history report page.\n const extendedActivityRoute = this.navigation.getRouteItem(\n this.identityManager.isEnterprise\n ? EmberEnterpriseExtendedActivityHistory\n : EmberExtendedActivityHistory\n );\n\n // Return a string saying there were too many results.\n return htmlSafe(\n extendedActivityRoute\n ? intl.tc(this, 'tooManyResultsWithLink', { link: this.router.urlFor(extendedActivityRoute.url) })\n : intl.tc(this, 'tooManyResults')\n );\n }\n\n // Otherwise, return a result count.\n const resultCount = this.args.count;\n return htmlSafe(isPresent(resultCount) ? intl.t('generic.resultsFound', { resultCount }) : '');\n }\n\n // endregion\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::ResultsCount': typeof ResultsCount;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#if (is-fulfilled this.videoSource)}}\\n \\n {{/if}}\\n\\n\",{ moduleName: \"customer-site/components/video/event-viewer/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { computed, action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { inject as service } from '@ember/service';\nimport { intlPath } from '@adc/i18n/path';\n\nimport './_style.scss';\nimport type EnvSettingsService from '@adc/app-infrastructure/services/env-settings';\nimport type AdcIntlService from '@adc/i18n/services/adc-intl';\nimport type VideoEventModel from 'customer-site/models/video/video-event';\n\ninterface EventViewerComponentSignature {\n Element: HTMLVideoElement;\n Args: {\n model: VideoEventModel;\n };\n}\n\n/**\n * @classdesc\n * A component for playing video event media.\n */\n@intlPath({ path: 'video/event-viewer' })\nexport default class EventViewer extends Component {\n @service declare intl: AdcIntlService;\n @service declare envSettings: EnvSettingsService;\n\n /**\n * The video source.\n */\n @computed('args.model')\n get videoSource(): ReturnType {\n return this.args.model.getPlaybackUrl();\n }\n\n /**\n * The videoEvent model.\n */\n @alias('args.model')\n declare videoEvent: VideoEventModel;\n\n /**\n * The video events camera model.\n */\n @alias('videoEvent.camera')\n declare camera: VideoEventModel['camera'];\n\n /**\n * The camera device model used to capture the video event.\n */\n @alias('videoEvent.camera.deviceModel')\n declare deviceModel: Awaited['deviceModel'];\n\n /**\n * Generates translated text that says which device captured the video at which time.\n */\n @computed('deviceModel', 'videoEvent.{id,timestamp}')\n get altText(): string | undefined {\n const { timestamp } = this.videoEvent;\n\n if (!this.deviceModel || !timestamp) {\n console.log(\n 'Not enough details to generate the video alt attribute text: videoEvent Id=' + this.videoEvent.id\n );\n return undefined;\n }\n\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/require-tz-functions\n weekDay = intl.formatDate(timestamp, { weekday: 'long' }),\n date =\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 intl.formatDate(timestamp, { month: 'long' }) +\n ' ' +\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line @adc/ember/require-tz-functions\n intl.formatDate(timestamp, { day: 'numeric' }) +\n ' ' +\n // Do not copy this deprecated usage. If you see this, please fix it\n // eslint-disable-next-line @adc/ember/require-tz-functions\n intl.formatDate(timestamp, { year: 'numeric' }),\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 time = intl.formatDate(timestamp, {\n hour: 'numeric',\n minute: 'numeric',\n hour12: true\n });\n\n return intl.tc(this, 'videoDetailsText', {\n cameraModel: this.deviceModel,\n weekDay,\n date,\n time\n });\n }\n\n /**\n * Called the first time the video tag is ready to play so we can configure the video start time.\n */\n @action startVideo(evt: Event & { target: HTMLVideoElement }): void {\n if (this.envSettings.isTestEnvironment()) {\n return;\n }\n\n const { target: video } = evt,\n { timestampToStartClip } = this.args.model;\n\n if (timestampToStartClip) {\n video.currentTime = timestampToStartClip;\n }\n\n video.play();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Video::EventViewer': typeof EventViewer;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"
    \\n \\n \\n\\n
    \\n \\n\\n
    \\n \\n\\n {{#if this.mediaEditor.donateAction}}\\n \\n {{/if}}\\n
    \\n
    \\n
    \\n
    \\n\",{ moduleName: \"customer-site/components/activity/video-detail/index.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './index.hbs'; */\nimport Component from '@glimmer/component';\nimport { action, computed } from '@ember/object';\nimport { inject as service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { intlPath } from '@adc/i18n/path';\nimport { MediaEditor } from '../../../classes/video/clips/helpers/clip-management';\nimport {\n VideoSavedVideoSettings,\n EmberEnterpriseEventHistory,\n EmberEventHistory\n} from '../../../enums/CustomerPageUrl';\n\nimport './_style.scss';\nimport type ADCIntlService from '@adc/i18n/services/adc-intl';\nimport type DownloadFormatModel from '@adc/login-setup-addon/models/video/download-format';\nimport type ActivityItem from 'customer-site/classes/activity/event-history/helpers/activity-item';\nimport type { MediaAction, ActionGroup } from 'customer-site/classes/video/clips/helpers/clip-management';\nimport type SavedClipPermissions from 'customer-site/models/video/permissions/saved-clip-permission';\nimport type VideoEventModel from 'customer-site/models/video/video-event';\nimport type ContextManager from 'customer-site/services/context-manager';\n\nexport interface VideoDetailsComponentSignature {\n Args: {\n item: ActivityItem;\n permissions: SavedClipPermissions;\n video: VideoEventModel;\n formats: DownloadFormatModel;\n };\n}\n\n/**\n * @classdesc\n * Component for displaying/interacting with video history event models.\n */\n@intlPath({ path: 'activity/video-detail' })\nexport default class VideoDetails extends Component {\n @service declare contextManager: ContextManager;\n @service declare intl: ADCIntlService;\n\n // region Component state\n\n /**\n * A video media editor for the current media.\n */\n @computed('args.{video,permissions,formats}')\n get mediaEditor(): MediaEditor {\n const { video, permissions, formats } = this.args;\n return new MediaEditor(this, [video], { permissions, formats }, () => {\n const { contextManager } = this;\n contextManager.transitionToPreviousRoute(\n contextManager.isEnterprise ? EmberEnterpriseEventHistory : EmberEventHistory\n );\n });\n }\n\n /**\n * The permitted media actions, excepting the rename action because we show it elsewhere in the UI.\n */\n @computed('mediaEditor.permittedActions')\n get toolbarActions(): (MediaAction | ActionGroup)[] {\n const { mediaEditor } = this;\n return mediaEditor.permittedActions.reject((action) => action === mediaEditor.renameAction);\n }\n\n // endregion\n\n /**\n * Transitions to the saved video settings route with this camera selected.\n */\n @action openVideoSettings(): void {\n // TODO: This ignore is an existing deprecation that must be refactored, do not copy this usage\n // eslint-disable-next-line @adc/ember/no-context-manager-transition\n this.contextManager.transitionToRouteId(VideoSavedVideoSettings, {\n search: `?deviceId=${this.args.video.belongsTo('camera').id().split('-')[1]}`\n });\n }\n\n /**\n * Called to rename the media.\n */\n @action rename(text: string): Promise | undefined {\n return this.mediaEditor.renameAction?.rename(text);\n }\n\n /**\n * Deletes the current media.\n */\n @action delete(): void {\n (async () => {\n try {\n await this.mediaEditor.deleteAction?.delete();\n\n // Is there no remaining media?\n if (isEmpty(this.args.item.model?.hasMany('media').ids())) {\n const { contextManager } = this;\n contextManager.replaceRouteWithNativeRoute(\n contextManager.isEnterprise ? EmberEnterpriseEventHistory : EmberEventHistory\n );\n }\n } catch (ex) {\n // Error notification handled in action.\n }\n })();\n }\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::VideoDetail': typeof VideoDetails;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n <:default as |data|>\\n \\n \\n\\n\",{ moduleName: \"customer-site/components/activity/video-media.hbs\" })","/* import __COLOCATED_TEMPLATE__ from './video-media.hbs'; */\nimport templateOnlyComponent from '@ember/component/template-only';\n\nimport type DownloadFormatModel from '@adc/login-setup-addon/models/video/download-format';\nimport type { VideoDetailsComponentSignature } from 'customer-site/components/activity/video-detail/index';\nimport type SavedClipPermissions from 'customer-site/models/video/permissions/saved-clip-permission';\n\ntype VideoDetailsComponentArgs = VideoDetailsComponentSignature['Args'];\n\nexport interface ActivityVideoMediaSignature {\n Args: {\n model: {\n item: Promise;\n permissions: SavedClipPermissions | ADCAsyncStoreFindRecord;\n video: Promise;\n formats: ADCAsyncStoreFindAll;\n };\n };\n}\n\nconst ActivityVideoMedia = templateOnlyComponent();\nexport default ActivityVideoMedia;\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Activity::VideoMedia': typeof ActivityVideoMedia;\n }\n}\n","import { precompileTemplate } from \"@ember/template-compilation\";\nexport default precompileTemplate(\"\\n {{#if this.isEditing}}\\n \\n\\n
    \\n \\n \\n
    \\n {{else}}\\n

    {{this.editValue}}

    \\n\\n {{#if this.canEdit}}\\n \\n {{/if}}\\n {{/if}}\\n\\n\\n\",{ moduleName: \"customer-site/components/ui/inline-edit/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 { later } from '@ember/runloop';\nimport { isPresent } from '@ember/utils';\n\nimport './_style.scss';\n\ninterface InlineEditSignature {\n Element: HTMLInputElement;\n Args: {\n text: string;\n textEdited: (text: string) => Promise | undefined;\n canEdit?: boolean;\n required?: boolean;\n };\n}\n\n/**\n * @classdesc\n * A component for editing text in place.\n */\nexport default class InlineEdit extends Component {\n // region Component state\n\n /**\n * Indicates the text is currently being edited.\n */\n @tracked isEditing = false;\n\n /**\n * The edited text value.\n */\n @tracked editValue = '';\n\n /**\n * Focus trap options.\n */\n focusTrapOptions = {\n returnFocusOnDeactivate: true,\n clickOutsideDeactivates: true\n };\n\n /**\n * The measured width of the text node.\n * @ignore\n */\n textWidth = 0;\n\n /**\n * Indicates whether we are before an edit. If false, focus should be on the edit button.\n */\n beforeEdit = true;\n\n // endregion\n\n // region Computed properties\n\n /**\n * Indicates the user can edit the text.\n */\n get canEdit(): boolean {\n return this.args.canEdit ?? true;\n }\n\n /**\n * Indicates the user can save the current edited state.\n */\n @computed('args.required', 'editValue')\n get isValid(): boolean {\n return !this.args.required || isPresent(this.editValue);\n }\n\n // endregion\n\n // region Actions\n\n /**\n * Synchronize the editing text with the passed text value.\n */\n @action\n syncText(_el: HTMLElement, [text = '']: string[]): void {\n this.editValue = text;\n }\n\n /**\n * Caches the size of the passed paragraph element so we can size the text input appropriately.\n */\n @action\n cacheTextSize(p: HTMLParagraphElement): void {\n this.textWidth = p.clientWidth + 2;\n }\n\n /**\n * Updates size, focus and selection to text input element.\n */\n @action\n updateTextInputSize(input: HTMLInputElement): void {\n input.style.width = `${this.textWidth}px`;\n\n // Schedule focus later so that if edit mode was initiated by enter keypress the keyup doesn't occur\n // on the text input, which would save and exit text editing.\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 later(() => {\n input.focus();\n input.select();\n }, 150);\n }\n\n /**\n * Called to initiate text editing.\n */\n @action\n edit(): void {\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 later(() => (this.isEditing = true), 150);\n }\n\n /**\n * Stops focus and calls cancel method\n */\n @action\n stopEdit(): void {\n this.beforeEdit = false;\n this.cancel();\n }\n\n /**\n * Used to leave trapfocus when escape is pressed on the two buttons.\n */\n @action\n checkEscape(e: KeyboardEvent): void {\n if (e.key == 'Escape') {\n this.stopEdit();\n }\n }\n\n /**\n * Called to cancel \"edit\" mode.\n */\n @action\n cancel(): void {\n this.isEditing = false;\n this.editValue = this.args.text;\n }\n\n /**\n * Called to exit \"edit\" mode and save text changes.\n */\n @action\n async save(): Promise {\n // Has the text NOT changed?\n if (this.editValue === this.args.text) {\n // Cancel.\n return this.stopEdit();\n }\n\n this.beforeEdit = false;\n this.isEditing = false;\n\n return this.args.textEdited(this.editValue);\n }\n\n /**\n * Focus button when exiting edit mode\n */\n @action\n focusButton(element: HTMLElement): void {\n if (!this.beforeEdit) {\n element?.focus();\n }\n }\n\n // endregion\n}\n\ndeclare module '@glint/environment-ember-loose/registry' {\n export default interface Registry {\n 'Ui::InlineEdit': typeof InlineEdit;\n }\n}\n"],"names":["createTemplateFactory","scope","svgSymbol_","t_","ActivityNoActivity","templateOnlyComponent","setComponentTemplate","TEMPLATE","await_","activityActivityItem_","not_","ActivityActivityLocation","on","fn","concat","coalesce_","expandButton_","guidFor_","activityClipPreview_","ActivityGroup","_dec","computed","_class","Component","mediaIsVisible","hasMedia","isExpanded","this","args","group","_applyDecoratedDescriptor","prototype","Object","getOwnPropertyDescriptor","formatDateTz_","isFulfilled_","tc_","t_0","activityHighlightsSummaryPlayer_","spinnerSvg_","and_","eq_","activityNoActivity_","activityActivityLocation_","activityActivityGroup_","ActivityDay","intlPath","path","_dec2","alias","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","and","_class2","constructor","arguments","_initializerDefineProperty","_descriptor","_descriptor2","_descriptor3","_descriptor4","_descriptor5","_descriptor6","_descriptor7","showEventGroups","_this$args$showEventG","elementCss","day","undefined","isEnterprise","filter","c","join","activityItems","locations","groups","items","highlightsPlaylist","store","findRecord","id","validHighlightsDay","subDays","Date","MaxHighlightDays","date","length","canViewHighlightsButton","_this$args$showHighli","showHighlights","canViewHighlights","toggleDay","isVisible","set","toggleHighlights","service","configurable","enumerable","writable","initializer","tracked","action","buttonIcon_","dropdownActions_","ActivityItemComponent","or","_descriptor8","showTime","_this$args$showTime","showCmdIndicator","item","showCommandState","isGroupItem","cmdStatusIcon","model","commandState","Pending","Failed","Cancelled","itemIcon","icon","handlePlaybackButton","_this$args$item","eventDate","toISOString","resolvedPromises","Promise","all","map","n","ajax","apiRequest","globalDeviceId","catch","error","notificationManager","addError","getErrorText","intl","tc","associatedDeviceGlobalIds","primaryDeviceResponse","primaryDeviceGlobalId","value","isEmpty","openPlaybackPage","isSvrRelated","allCameras","findAll","primaryCamera","findBy","associatedCameras","without","_ref","includes","associatedSvrCameraIds","filterBy","mapBy","associatedSdCameraIds","hasSvrSchedule","actionItems","_ref2","description","DropdownActionItem","create","name","associatedGlobalDeviceIds","_item$model","identityManager","navigation","fnOpenPlaybackPage","playbackPage","getRouteItem","transitionToRouteId","queryParams","startTime","cameraId","JSON","stringify","cameraGroupId","EmberVideoSvrTimeline","EmberSDCard","EmberEnterpriseVideoSvrTimeline","location","switchContext","redirectToOpenEye","url","encodedUrl","encodeURIComponent","ssoUrl","apiRequestForValue","window","open","uiImagesOvImage_","uiImagesStatelessImage_","ClipPreview","showPlayIcon","eventType","mediaItem","isPackageDetectionEvent","idArr","split","Number","StoryInProgress","eventHasVideo","isVideoEvent","isThirdPartyAnalyticWithClip","ThirdPartyAnalyticsEvent","clip","ThirdPartyAnalyticEvent","clipDurationTimestamp","clipDurationMs","millisecondsToDurationString","mediaClicked","index","route","Ov2Event","isEventDeleted","EmberEventVideo","eventId","frame","mediaKeyPressed","evt","isEnterOrSpaceCode","code","activityFilterPanel_","inlineAlert_","tc_0","actionButtons_","isPending_","paginationBar_","RequestItem","ContainerObject","host","showPreferredTimezone","super","guidFor","filters","isOpen","contextManager","fnGetText","key","t","fnGetList","field","fnGetFilter","title","text","startDate","endDate","d","formatDateTz","format","userFilters","eventTypeFilters","deviceTypeFilters","deviceNameFilters","locationFilters","identityModel","isPointCentral","userTypeFilters","recipients","compact","displayDate","timeZone","timestamp","requestedDate","statusCss","color","Processing","Completed","PartialFailed","statusEnum","ExtendedActivityHistoryForm","_class3","_descriptor9","hasRecipientsOptions","recipientOptions","filtersManager","getFilterByName","isRequestValid","_filtersManager$cache","successMessage","isRunning","cachedFilterValues","requests","sortBy","reverse","recipientMessage","routeId","EmberEnterpriseAccessControlUsers","EmberEnterpriseUsers","EnterpriseUsers","EmberAccessControlUsers","EmberUsers","Users","find","routeItem","htmlSafe","routeUrl","router","urlFor","resourceName","link","timeout","createRequest","clearValidationErrors","call","request","createRecord","filterValues","status","fnGetRelationship","modelName","ids","peekAll","record","users","userTypes","evtTypes","deviceTypes","globalDeviceIds","reduce","data","type","_objectSpread","r","toString","createRequestModelData","save","submitCachedFilterValues","perform","unloadRecord","processValidationErrorsFromResponse","errorText","submitRequest","goBack","transitionToPreviousRoute","toggleRequestDetails","changePageSize","pageSize","newPage","Math","floor","page","submitFilterValues","changePage","restartableTask","buttonSimple_","ActivityFilterOptionComponent","isSelected","filterApplied","categoryId","subsectionName","applyCategorizedFilterOption","activityFilterOption_","ActivityFilterSubsection","showSelectAllSubsectionFiltersButton","filterOptions","subsection","every","selectAllSubsectionFilters","forEach","clearAllSubsectionFilters","removeSubsectionFromQueryParams","activityFilterSubsection_","ActivityFilterCategoryDisplay","toggleCategory","categoryVisible","insetGroup_","simpleBinary_","ShowOtherClipsToggle","isShowOtherClipsToggled","showOtherClips","toggleShowOtherClips","applyShowOtherClips","canViewShowOtherClips","didUpdate_","textInput_","formGroup_","dropdownSelectSingleSelect_","activityFilterCategory_","activityShowOtherClipsToggle_","dropdownSelectMultiSelect_","daysBackOptions","ConfigPanel","notEmpty","owner","_this$args$filterToEd","_this$args$filterToEd2","_defineProperty","_descriptor10","newFilterDesc","filterToEdit","isEditing","cacheFilterValues","getRelativeDateFilter","relativeDateItems","dayCount","_this$args$filterToEd3","push","DropdownSelectItem","String","state","daysBack","SELECTED","UNSELECTED","DropdownFilter","validateDesc","isDuplicateName","_this$args$filterToEd4","toLowerCase","trim","validateQuickFilterLength","recordToThrow","QuickFilter","eachAttribute","get","areFilterParamsVaildLength","filtersToShow","filtersToAdd","_this$args$filterToEd5","matchingFilter","filteringFieldName","newItems","placeholder","maxItemCount","cacheFilterSelections","_this$cachedFilterVal","cacheDaysBackSelection","cacheDaysBackSelectionWithCategories","cachedDaysBack","updateDesc","_this$args$filterToEd6","_this$args$filterToEd7","saveQuickFilter","canViewActivityFiltersV2","parseInt","_this$args$filterToEd8","setProperties","then","addSuccess","closeAction","newQuickFilter","deleteRecord","getProperties","deleteQuickFilter","_this$args$filterToEd9","destroyRecord","actionSheet_","didInsert_","buttonAsync_","emberDragula_","emberDragulaContainer_","activityQuickFiltersConfigPanel_","ConfigPanelActionSheet","sort","_buildTask","context","generator","quickFilters","arrayProxy","toArray","drop","populateQuickFilters","sortedQuickFiltersWithoutDefaults","sortedQuickFilters","qf","resetUI","applyFilter","showQuickFilterList","showManagementUI","isReordering","closeQuickFilterManagementUI","createFilter","editFilter","quickFilterToEdit","toggleReorder","container","document","querySelector","nodes","Array","from","children","childEl","_childEl$querySelecto","getAttribute","quickFilter","appendChild","dragCardsConfig","_document$querySelect","options","copy","direction","revertOnSpill","removeOnSpill","mirrorContainer","moves","_el","_container","handle","classList","contains","saveReorder","_buttonAnimation","_closest$querySelecto","_closest","target","closest","querySelectorAll","el","idx","_el$dataset$quickFilt","dataset","quickFilterId","invoke","err","finally","activityQuickFiltersConfigPanelActionSheet_","QuickFilters","selectedFilterId","categories","newValues","applyCleanFilters","_this$args$editAction","_this$args","canEditActivityQuickFilters","editAction","addWarning","appliedFilterChange","hasAppliedFilters","appliedQueryParamsFilterChange","hasQueryParamsFilters","keyInput","actionFn","event","openQuickFilterConfigActionSheet","showQuickFilterConfigActionSheet","closeQuickFilterConfigActionSheet","scrollHorizontal","preventDefault","HTMLElement","_event$target$closest","scrollableDiv","scrollLeft","deltaY","ArrayProxy","simpleBinaryList_","smartDateRange_","guidFor_0","DATE_RECENT","DATE_SPECIFIED","ActivityDateTimeRange","BinaryListItem","label","props","updateList","_items$find","showSmartDateRange","minDate","filtersActivityDateTimeRangeFilter_","ActivityFilterSelector","searchToolbar_","media_","or_","activityQuickFilters_","activityFilterSelector_","timezonesTimezoneSelector_","ActivityFilterBarComponent","_descriptor11","_descriptor12","_descriptor13","searchFilter","pageHasSubRoutes","_this$contextManager$","_this$contextManager$2","currentRouteData","parent","relationship","subRoutes","toggleFilters","isQuickFilterConfig","filtersVisible","resetFilters","resetFilterValues","resetQueryParamsFilters","resetQueryParamsFilterValues","isActivityFilterApplied","appliedFilters","toggleQuickFilters","showQuickFilterBar","showRightNav","openQuickFilterConfig","closeQuickFilterConfig","buttonIcon","activityMediaDetail_","asyncLoader_","uiInlineEdit_","ActivityImageDetailComponent","_this$args$frame","activeFrame","async","media","_this$args$item$model","objectAt","changeFrame","selectFrame","downloadFrame","imageSrc","filename","pop","downloadFile","rename","_this$args$item$model2","rollbackAttributes","delete","deleteImage","pageViewDetails_","promiseHashTracked_","activityImageDetail_","ActivityImageMedia","MediaDetail","filtersNoResults_","ActivityNoResults","ResultsCount","equal","resultCountText","hasResultCountWarning","extendedActivityRoute","EmberEnterpriseExtendedActivityHistory","EmberExtendedActivityHistory","resultCount","count","isPresent","safeHtml_","EventViewer","videoSource","getPlaybackUrl","altText","videoEvent","deviceModel","console","log","weekDay","formatDate","weekday","month","year","time","hour","minute","hour12","cameraModel","startVideo","envSettings","isTestEnvironment","video","timestampToStartClip","currentTime","play","videoEventViewer_","videoClipsActionToolbar_","VideoDetails","mediaEditor","permissions","formats","MediaEditor","EmberEnterpriseEventHistory","EmberEventHistory","toolbarActions","permittedActions","reject","renameAction","openVideoSettings","VideoSavedVideoSettings","search","belongsTo","_this$mediaEditor$ren","_this$mediaEditor$del","deleteAction","hasMany","replaceRouteWithNativeRoute","ex","activityVideoDetail_","ActivityVideoMedia","onClickOutside_","focusTrap_","Input","didResize_","InlineEdit","returnFocusOnDeactivate","clickOutsideDeactivates","canEdit","_this$args$canEdit","isValid","required","editValue","syncText","cacheTextSize","p","textWidth","clientWidth","updateTextInputSize","input","style","width","later","focus","select","edit","stopEdit","beforeEdit","cancel","checkEscape","e","textEdited","focusButton","element"],"sourceRoot":""}