@acorex-platform/module-communication-management-client 1.0.1 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/fesm2022/{acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-j4HNwZEj.mjs → acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-Byqo1BAL.mjs} +381 -226
  2. package/fesm2022/acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-Byqo1BAL.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-send.command-BwdbP0wm.mjs → acorex-platform-module-communication-management-client-communication-email-send.command-DjOOsW25.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-send.command-BwdbP0wm.mjs.map → acorex-platform-module-communication-management-client-communication-email-send.command-DjOOsW25.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-show-dialog.command-D63L_w8I.mjs → acorex-platform-module-communication-management-client-communication-email-show-dialog.command-CNgMVOFx.mjs} +1 -1
  6. package/fesm2022/{acorex-platform-module-communication-management-client-communication-email-show-dialog.command-D63L_w8I.mjs.map → acorex-platform-module-communication-management-client-communication-email-show-dialog.command-CNgMVOFx.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-DGnr-vVQ.mjs → acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-Bk5Zx0GW.mjs} +13 -3
  8. package/fesm2022/acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-Bk5Zx0GW.mjs.map +1 -0
  9. package/fesm2022/{acorex-platform-module-communication-management-client-communication-send.command-DtGeXWNS.mjs → acorex-platform-module-communication-management-client-communication-send.command-D7TIw1-P.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-communication-management-client-communication-send.command-DtGeXWNS.mjs.map → acorex-platform-module-communication-management-client-communication-send.command-D7TIw1-P.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-communication-management-client-communication-show-sent-message.command-D9KRxkdp.mjs → acorex-platform-module-communication-management-client-communication-show-sent-message.command-BhsqhXKA.mjs} +1 -1
  12. package/fesm2022/{acorex-platform-module-communication-management-client-communication-show-sent-message.command-D9KRxkdp.mjs.map → acorex-platform-module-communication-management-client-communication-show-sent-message.command-BhsqhXKA.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-communication-management-client-communication-test-smtp.command-nZH0GlLw.mjs → acorex-platform-module-communication-management-client-communication-test-smtp.command-BN0gkpAr.mjs} +2 -2
  14. package/fesm2022/{acorex-platform-module-communication-management-client-communication-test-smtp.command-nZH0GlLw.mjs.map → acorex-platform-module-communication-management-client-communication-test-smtp.command-BN0gkpAr.mjs.map} +1 -1
  15. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs +4 -2
  16. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication-delivery.mjs.map +1 -1
  17. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication.mjs +4 -0
  18. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-communication.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs +1 -1
  20. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entities-entity-change-notify-policy.mjs.map +1 -1
  21. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DAS2LKJ2.mjs} +4 -4
  22. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DTHjzWFn.mjs.map → acorex-platform-module-communication-management-client-contracts-entity-catalog-acorex-platform-module-communication-management-client-contracts-entity-catalog-DAS2LKJ2.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-CNgzUWFa.mjs} +7 -5
  24. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-CNgzUWFa.mjs.map +1 -0
  25. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DM-x4id2.mjs} +7 -3
  26. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-DM-x4id2.mjs.map +1 -0
  27. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-Ls-F3qVM.mjs} +3 -3
  28. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-Ls-F3qVM.mjs.map +1 -0
  29. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-JESc4HlO.mjs → acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-DBsqvhwD.mjs} +1 -1
  30. package/fesm2022/{acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-JESc4HlO.mjs.map → acorex-platform-module-communication-management-client-contracts-entity-catalog-status.keys-DBsqvhwD.mjs.map} +1 -1
  31. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog.mjs +1 -1
  32. package/fesm2022/acorex-platform-module-communication-management-client-contracts.mjs +49 -2
  33. package/fesm2022/acorex-platform-module-communication-management-client-contracts.mjs.map +1 -1
  34. package/fesm2022/acorex-platform-module-communication-management-client.mjs +1 -1
  35. package/i18n/en-AU/communication-management.json +3 -1
  36. package/i18n/en-US/communication-management.json +3 -1
  37. package/i18n/fa-IR/communication-management.json +3 -1
  38. package/package.json +3 -3
  39. package/types/acorex-platform-module-communication-management-client-contracts.d.ts +43 -4
  40. package/types/acorex-platform-module-communication-management-client.d.ts +33 -5
  41. package/fesm2022/acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-j4HNwZEj.mjs.map +0 -1
  42. package/fesm2022/acorex-platform-module-communication-management-client-communication-in-app-inbox-page.component-DGnr-vVQ.mjs.map +0 -1
  43. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication-delivery.entity-DN0_CPBO.mjs.map +0 -1
  44. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-communication.entity-BAa4oCXu.mjs.map +0 -1
  45. package/fesm2022/acorex-platform-module-communication-management-client-contracts-entity-catalog-entity-change-notify-policy.entity-DmM894ok.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-communication-management-client-acorex-platform-module-communication-management-client-Byqo1BAL.mjs","sources":["../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-conversation.util.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-icon.util.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox.util.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-local-filter.util.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-local.constants.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-outbox.constants.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-realtime.service.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox.port.ts","../../../../libs/modules/communication-management/client/src/lib/data-access/in-app-inbox-data-source.service.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox.connector.service.ts","../../../../libs/modules/communication-management/client/src/lib/badge.provider.ts","../../../../libs/modules/communication-management/client/src/lib/features/communication-delivery-status.provider.ts","../../../../libs/modules/communication-management/client/src/lib/features/communication-status.provider.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-inbox.providers.ts","../../../../libs/modules/communication-management/client/src/lib/communication-management-client.port.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-inbox-page-query.util.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-inbox.port.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-realtime.providers.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-inbox-sync-status.service.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-inbox-fallback.providers.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/communication-in-app-notification.service.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox.types.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox.tokens.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-sync-status.token.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/components/in-app-inbox-item.component.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/components/in-app-inbox-item.component.html","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/in-app-inbox-action.service.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/components/in-app-inbox-panel.component.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/components/in-app-inbox-panel.component.html","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/components/in-app-inbox-slot.component.ts","../../../../libs/modules/communication-management/client/src/lib/features/in-app/inbox/components/in-app-inbox-slot.component.html","../../../../libs/modules/communication-management/client/src/lib/features/settings/communication-user-notifications-settings.provider.ts","../../../../libs/modules/communication-management/client/src/lib/menu.provider.ts","../../../../libs/modules/communication-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/communication-management/client/src/lib/search-command.provider.ts","../../../../libs/modules/communication-management/client/src/lib/settings.provider.ts","../../../../libs/modules/communication-management/client/src/lib/features/templates/communication-text-template-channel-definition.provider.ts","../../../../libs/modules/communication-management/client/src/lib/features/dashboard/widgets/my-in-app-inbox/communication-in-app-inbox-widget.component.ts","../../../../libs/modules/communication-management/client/src/lib/features/dashboard/widgets/my-in-app-inbox/communication-in-app-inbox-widget.component.html","../../../../libs/modules/communication-management/client/src/lib/features/dashboard/communication-dashboard-widget.dimensions.ts","../../../../libs/modules/communication-management/client/src/lib/features/dashboard/widgets/my-in-app-inbox/communication-in-app-inbox-widget.config.ts","../../../../libs/modules/communication-management/client/src/lib/widget-definition.provider.ts","../../../../libs/modules/communication-management/client/src/lib/communication-management.module.ts","../../../../libs/modules/communication-management/client/src/lib/features/dashboard/dashboard-seed-widget-builders.util.ts","../../../../libs/modules/communication-management/client/src/lib/features/settings/communication-delivery-channels-settings.util.ts","../../../../libs/modules/communication-management/client/src/acorex-platform-module-communication-management-client.ts"],"sourcesContent":["//#region ---- Conversation in-app inbox mapping ----\n\nimport type { AXPUserReference } from '@acorex-platform/framework-shared/core';\n\nimport type { AXPInAppInboxItem } from './in-app-inbox.types';\n\nexport const IN_APP_CONVERSATION_CHAT_DEFINITION_KEY = 'conversation-chat-message';\n\nexport const IN_APP_CONVERSATION_OPEN_CHAT_COMMAND = 'Conversation:OpenChat';\n\nexport interface ParsedConversationInAppCorrelation {\n conversationId: string;\n messageId: string;\n senderUserId?: string;\n}\n\nexport function parseConversationInAppCorrelationId(\n correlationId: string | null | undefined,\n): ParsedConversationInAppCorrelation | undefined {\n const scoped = correlationId?.trim();\n if (!scoped?.startsWith('conversation:')) {\n return undefined;\n }\n\n const segments = scoped.split(':');\n if (segments.length < 3) {\n return undefined;\n }\n\n const conversationId = segments[1]?.trim();\n const messageId = segments[2]?.trim();\n if (!conversationId || !messageId) {\n return undefined;\n }\n\n const senderUserId = segments[3]?.trim() || undefined;\n return { conversationId, messageId, senderUserId };\n}\n\n/** One inbox row per conversation — used to collapse legacy duplicate chat notifications. */\nexport function resolveConversationInAppDedupeKey(\n correlationId: string | null | undefined,\n): string | undefined {\n const parsed = parseConversationInAppCorrelationId(correlationId);\n return parsed?.conversationId ? `conversation:${parsed.conversationId}` : undefined;\n}\n\n/** Parses `conversation:{conversationId}:` dismiss prefixes from chat open/sync. */\nexport function parseConversationIdFromDismissPrefix(prefix: string): string | undefined {\n const normalized = prefix.trim();\n if (!normalized.startsWith('conversation:') || !normalized.endsWith(':')) {\n return undefined;\n }\n const conversationId = normalized.slice('conversation:'.length, -1).trim();\n return conversationId || undefined;\n}\n\n/** Whether a local inbox row belongs to the conversation being dismissed. */\nexport function matchesConversationInAppDismiss(\n item: Pick<AXPInAppInboxItem, 'definitionKey' | 'correlationId' | 'actions'>,\n conversationId: string,\n): boolean {\n const scopedConversationId = conversationId.trim();\n if (!scopedConversationId || item.definitionKey !== IN_APP_CONVERSATION_CHAT_DEFINITION_KEY) {\n return false;\n }\n\n const correlation = item.correlationId?.trim();\n if (correlation?.startsWith(`conversation:${scopedConversationId}:`)) {\n return true;\n }\n\n const parsed = parseConversationInAppCorrelationId(correlation);\n if (parsed?.conversationId === scopedConversationId) {\n return true;\n }\n\n const options = item.actions?.[0]?.command?.options;\n if (options && typeof options === 'object') {\n const actionConversationId = options['conversationId'];\n if (typeof actionConversationId === 'string' && actionConversationId.trim() === scopedConversationId) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction readSenderUserIdFromActions(\n actions: AXPInAppInboxItem['actions'],\n): string | undefined {\n const options = actions?.[0]?.command?.options;\n if (!options || typeof options !== 'object') {\n return undefined;\n }\n\n const senderUserId = options['senderUserId'];\n return typeof senderUserId === 'string' && senderUserId.trim() ? senderUserId.trim() : undefined;\n}\n\nfunction resolveConversationSenderName(\n title: string | undefined,\n body: string | undefined,\n): string | undefined {\n const bodyText = body?.trim();\n if (bodyText?.includes(':')) {\n const prefix = bodyText.slice(0, bodyText.indexOf(':')).trim();\n if (prefix) {\n return prefix;\n }\n }\n\n const titleText = title?.trim();\n return titleText || undefined;\n}\n\nexport function resolveConversationInAppInboxSender(input: {\n definitionKey?: string;\n title?: string;\n body?: string;\n correlationId?: string | null;\n actions?: AXPInAppInboxItem['actions'];\n}): AXPUserReference | undefined {\n if (input.definitionKey !== IN_APP_CONVERSATION_CHAT_DEFINITION_KEY) {\n return undefined;\n }\n\n const parsed = parseConversationInAppCorrelationId(input.correlationId);\n const senderUserId = parsed?.senderUserId ?? readSenderUserIdFromActions(input.actions);\n const senderName = resolveConversationSenderName(input.title, input.body);\n\n if (!senderUserId || !senderName || senderUserId === 'system') {\n return undefined;\n }\n\n return { id: senderUserId, fullName: senderName };\n}\n\nexport function resolveConversationInAppInboxActions(input: {\n definitionKey?: string;\n correlationId?: string | null;\n actions?: AXPInAppInboxItem['actions'];\n}): AXPInAppInboxItem['actions'] | undefined {\n if (input.definitionKey !== IN_APP_CONVERSATION_CHAT_DEFINITION_KEY) {\n return input.actions;\n }\n\n if (input.actions?.some((action) => action.command?.name?.trim())) {\n return input.actions;\n }\n\n const parsed = parseConversationInAppCorrelationId(input.correlationId);\n if (!parsed?.conversationId) {\n return input.actions;\n }\n\n return [\n {\n title: '@conversation:in-app.actions.open-chat',\n command: {\n name: IN_APP_CONVERSATION_OPEN_CHAT_COMMAND,\n options: {\n conversationId: parsed.conversationId,\n ...(parsed.senderUserId ? { senderUserId: parsed.senderUserId } : {}),\n },\n },\n },\n ];\n}\n\n//#endregion\n","//#region ---- In-app inbox leading icon ----\n\nimport type { AXPUserReference } from '@acorex-platform/framework-shared/core';\n\nimport type { AXPInAppInboxItem, AXPInAppInboxPriority } from './in-app-inbox.types';\n\nconst REPORT_GENERATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport { REPORT_GENERATION_DEFINITION_KEY as IN_APP_REPORT_GENERATION_DEFINITION_KEY };\n\nexport function isInAppInboxRealUserSender(sender?: AXPUserReference): boolean {\n const senderId = sender?.id?.trim();\n const senderName = sender?.fullName?.trim();\n return Boolean(senderId && senderId !== 'system' && senderName && senderName !== senderId);\n}\n\nexport function resolveInAppInboxIconClass(\n item: Pick<AXPInAppInboxItem, 'iconClass' | 'definitionKey' | 'priority' | 'sender'>,\n): string | undefined {\n if (item.iconClass?.trim()) {\n return item.iconClass.trim();\n }\n\n if (isInAppInboxRealUserSender(item.sender)) {\n return undefined;\n }\n\n if (item.definitionKey === REPORT_GENERATION_DEFINITION_KEY) {\n return 'fa-light fa-file-chart-pie';\n }\n\n return resolveInAppInboxPriorityIconClass(item.priority);\n}\n\nfunction resolveInAppInboxPriorityIconClass(priority: AXPInAppInboxPriority | undefined): string {\n switch (priority) {\n case 'Danger':\n return 'fa-light fa-circle-exclamation';\n case 'Warning':\n return 'fa-light fa-triangle-exclamation';\n default:\n return 'fa-light fa-bell';\n }\n}\n\n//#endregion\n","//#region ---- Shared in-app inbox helpers ----\n\nimport type { AXPInAppInboxItem, AXPInAppInboxPriority } from './in-app-inbox.types';\nimport { resolveConversationInAppDedupeKey } from './in-app-inbox-conversation.util';\nimport { resolveInAppInboxIconClass } from './in-app-inbox-icon.util';\n\nexport function isInAppInboxUnread(readAt: Date | null | undefined): boolean {\n return readAt == null;\n}\n\nexport function isInAppInboxUnseen(seenAt: Date | null | undefined): boolean {\n return seenAt == null;\n}\n\nexport function getInAppInboxPriorityClass(priority: AXPInAppInboxPriority | undefined): string {\n return priority ?? 'Notice';\n}\n\nexport function sortInAppInboxItems<T extends AXPInAppInboxItem>(items: T[]): T[] {\n return dedupeInAppInboxItems([...items]).sort((left, right) => {\n const pinDelta = Number(Boolean(right.isPinned)) - Number(Boolean(left.isPinned));\n if (pinDelta !== 0) {\n return pinDelta;\n }\n return right.createdAt.getTime() - left.createdAt.getTime();\n });\n}\n\n/** Collapse duplicate chat-message rows that share the same correlation id. */\nexport function dedupeInAppInboxItems<T extends AXPInAppInboxItem>(items: T[]): T[] {\n const byCorrelation = new Map<string, T>();\n\n for (const item of items) {\n const dedupeKey =\n item.definitionKey === 'conversation-chat-message'\n ? resolveConversationInAppDedupeKey(item.correlationId)\n : undefined;\n if (!dedupeKey) {\n continue;\n }\n\n const existing = byCorrelation.get(dedupeKey);\n if (!existing || item.createdAt.getTime() >= existing.createdAt.getTime()) {\n byCorrelation.set(dedupeKey, item);\n }\n }\n\n if (byCorrelation.size === 0) {\n return items;\n }\n\n const consumed = new Set<string>();\n const result: T[] = [];\n\n for (const item of items) {\n const dedupeKey =\n item.definitionKey === 'conversation-chat-message'\n ? resolveConversationInAppDedupeKey(item.correlationId)\n : undefined;\n if (!dedupeKey) {\n result.push(item);\n continue;\n }\n\n if (consumed.has(dedupeKey)) {\n continue;\n }\n consumed.add(dedupeKey);\n result.push(byCorrelation.get(dedupeKey) ?? item);\n }\n\n return result;\n}\n\nexport function normalizeInAppInboxItem<T extends Partial<AXPInAppInboxItem>>(item: T): AXPInAppInboxItem {\n return {\n id: String(item.id),\n title: item.title ?? '',\n body: item.body ?? '',\n createdAt: item.createdAt ? new Date(item.createdAt) : new Date(),\n seenAt: item.seenAt ? new Date(item.seenAt) : item.seenAt ?? null,\n readAt: item.readAt ? new Date(item.readAt) : item.readAt ?? null,\n sender: item.sender,\n iconClass: item.iconClass ?? resolveInAppInboxIconClass(item as AXPInAppInboxItem),\n iconColor: item.iconColor,\n showAvatar: item.showAvatar,\n priority: item.priority ?? 'Notice',\n isPinned: item.isPinned ?? false,\n category: item.category,\n definitionKey: item.definitionKey,\n correlationId: item.correlationId,\n recipientUserId: item.recipientUserId,\n archivedAt: item.archivedAt ? new Date(item.archivedAt) : item.archivedAt ?? null,\n actions: Array.isArray(item.actions) ? item.actions : undefined,\n attachments: Array.isArray(item.attachments) ? item.attachments : undefined,\n };\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXP_QUERY_QUICK_SEARCH_FIELD, type AXPFilterQuery } from '@acorex-platform/framework-shared/core';\nimport type { AXPInAppInboxItem } from './in-app-inbox.types';\nimport { isInAppInboxUnread, sortInAppInboxItems } from './in-app-inbox.util';\n\n//#endregion\n\n//#region ----- Local inbox filters -----\n\nexport function isArchiveCategoryFilter(filters: AXPFilterQuery[] | undefined): boolean {\n return filters?.some((filter) => filter.field === 'category' && filter.value === 'Archive') ?? false;\n}\n\n/**\n * Filters and sorts active inbox items in memory (search, unread, priority).\n * Archive is never applied here — callers must use the API for archived rows.\n */\nexport function filterInAppInboxItemsLocally(\n items: AXPInAppInboxItem[],\n filters: AXPFilterQuery[] | undefined,\n): AXPInAppInboxItem[] {\n const active = items.filter((item) => item.archivedAt == null);\n if (!filters?.length) {\n return sortInAppInboxItems(active);\n }\n\n const searchFilter = filters.find(\n (filter) => filter.field === 'all' || filter.field === AXP_QUERY_QUICK_SEARCH_FIELD,\n );\n const searchText =\n searchFilter?.value != null ? String(searchFilter.value).trim().toLowerCase() : '';\n\n const readFilter = filters.find((filter) => filter.field === 'readStatus');\n const unreadOnly = readFilter?.value === 'unread';\n\n const priorityFilter = filters.find((filter) => filter.field === 'priority');\n const priority = priorityFilter?.value ? String(priorityFilter.value) : '';\n\n const definitionFilter = filters.find((filter) => filter.field === 'type');\n const definitionKey = definitionFilter?.value ? String(definitionFilter.value) : '';\n\n const filtered = active.filter((item) => {\n if (unreadOnly && !isInAppInboxUnread(item.readAt)) {\n return false;\n }\n if (priority && item.priority !== priority) {\n return false;\n }\n if (definitionKey && item.definitionKey !== definitionKey) {\n return false;\n }\n if (searchText) {\n const haystack = `${item.title} ${item.body} ${item.sender?.fullName ?? ''}`.toLowerCase();\n if (!haystack.includes(searchText)) {\n return false;\n }\n }\n return true;\n });\n\n return sortInAppInboxItems(filtered);\n}\n\n//#endregion\n","//#region ----- Constants -----\n\n/** Local-entity engine key for the active in-app inbox hot subset. */\nexport const AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY = 'CommunicationManagement.InAppInbox';\n\n/** Max active deliveries kept in the local hot subset. */\nexport const AXP_IN_APP_INBOX_LOCAL_MAX_ITEMS = 100;\n\n/** Legacy IndexedDB name from the inbox-only store (deleted on migrate). */\nexport const AXP_IN_APP_INBOX_LEGACY_DB_NAME = 'ACoreXInAppInbox';\n\n//#endregion\n","//#region ----- Inbox outbox actions -----\n\nexport const AXP_IN_APP_INBOX_OUTBOX_ACTIONS = {\n markSeen: 'markSeen',\n markRead: 'markRead',\n markAllRead: 'markAllRead',\n togglePin: 'togglePin',\n archive: 'archive',\n delete: 'delete',\n} as const;\n\nexport type AXPInAppInboxOutboxAction =\n (typeof AXP_IN_APP_INBOX_OUTBOX_ACTIONS)[keyof typeof AXP_IN_APP_INBOX_OUTBOX_ACTIONS];\n\n//#endregion\n","import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport type { AXPInAppInboxChangeEvent } from './in-app-inbox.types';\n\n//#region ---- In-app inbox realtime events ----\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPInAppInboxRealtimeService {\n private readonly changedSubject = new Subject<AXPInAppInboxChangeEvent>();\n\n readonly changed$ = this.changedSubject.asObservable();\n\n notifyChanged(event: AXPInAppInboxChangeEvent): void {\n this.changedSubject.next(event);\n }\n}\n\n//#endregion\n","//#region ---- In-app inbox data port ----\n\nimport { InjectionToken } from '@angular/core';\nimport type {\n AXPInAppInboxCapabilities,\n AXPInAppInboxListResult,\n AXPInAppInboxLoadQuery,\n} from './in-app-inbox.types';\n\n/**\n * Module-backed inbox data source. Communication-management registers the primary\n * implementation.\n */\nexport interface AXPInAppInboxPort {\n readonly capabilities: AXPInAppInboxCapabilities;\n loadInbox(query?: AXPInAppInboxLoadQuery): Promise<AXPInAppInboxListResult>;\n /** Fetch specific deliveries by id (used for realtime delta sync). */\n loadByIds?(ids: string[]): Promise<AXPInAppInboxListResult>;\n /** Authorized aggregate over all active deliveries, independent of the hot window. */\n loadUnreadCount?(): Promise<number>;\n markSeen(ids: string[]): Promise<void>;\n markRead(ids: string[]): Promise<void>;\n markAllRead(): Promise<void>;\n togglePin?(id: string): Promise<void>;\n setPinned?(id: string, isPinned: boolean): Promise<void>;\n archive?(ids: string[]): Promise<void>;\n deleteDeliveries?(ids: string[]): Promise<void>;\n}\n\nexport const AXP_IN_APP_INBOX_PORT = new InjectionToken<AXPInAppInboxPort>('AXP_IN_APP_INBOX_PORT');\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport {\n AXPDataExecutionRuntime,\n AXPDataMutationService,\n AXPEntityExecutionAdapter,\n AXPLocalEntityEngine,\n AXPLocalEntityOutboxService,\n AXPLocalEntityRealtimeBridge,\n type AXPLocalEntityOutboxOp,\n} from '@acorex-platform/framework-client/common';\nimport { AXPCommandService, AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport type { AXPFilterQuery, AXPPagedListResult } from '@acorex-platform/framework-shared/core';\nimport { runtimeCommandSuccessValue } from '@acorex-platform/framework-shared/core';\nimport { computed, DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, distinctUntilChanged, filter, merge } from 'rxjs';\nimport { matchesConversationInAppDismiss, parseConversationIdFromDismissPrefix } from '../features/in-app/inbox/in-app-inbox-conversation.util';\nimport { filterInAppInboxItemsLocally, isArchiveCategoryFilter } from '../features/in-app/inbox/in-app-inbox-local-filter.util';\nimport { AXP_IN_APP_INBOX_LEGACY_DB_NAME, AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY, AXP_IN_APP_INBOX_LOCAL_MAX_ITEMS } from '../features/in-app/inbox/in-app-inbox-local.constants';\nimport { AXP_IN_APP_INBOX_OUTBOX_ACTIONS } from '../features/in-app/inbox/in-app-inbox-outbox.constants';\nimport { AXPInAppInboxRealtimeService } from '../features/in-app/inbox/in-app-inbox-realtime.service';\nimport { AXP_IN_APP_INBOX_PORT, type AXPInAppInboxPort } from '../features/in-app/inbox/in-app-inbox.port';\nimport type { AXPInAppInboxItem } from '../features/in-app/inbox/in-app-inbox.types';\nimport { isInAppInboxUnread, isInAppInboxUnseen, normalizeInAppInboxItem, sortInAppInboxItems } from '../features/in-app/inbox/in-app-inbox.util';\n\n//#endregion\n\n//#region ----- Types -----\n\ntype AXPInAppInboxListResult = Awaited<ReturnType<AXPInAppInboxPort['loadInbox']>>;\n\ntype TrackedPageQuery = {\n skip: number;\n take: number;\n filters: AXPFilterQuery[];\n mode: 'local' | 'archive';\n};\n\n//#endregion\n\n//#region ----- Shared in-app inbox connector -----\n\n/**\n * Single source of truth for active in-app inbox UI.\n * Active items live in the shared local-entity engine (max 100) and sync via realtime / reconnect.\n * Offline writes enqueue on the local-entity outbox and flush over HTTP on reconnect.\n * Archived views always load from the API.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPInAppInboxConnectorService {\n private readonly mutations = inject(AXPDataMutationService);\n private readonly commands = inject(AXPCommandService);\n private readonly queries = inject(AXPQueryService, { optional: true });\n private readonly executionRuntime = inject(AXPDataExecutionRuntime, { optional: true });\n private readonly port = inject(AXP_IN_APP_INBOX_PORT);\n private readonly realtime = inject(AXPInAppInboxRealtimeService);\n private readonly engine = inject(AXPLocalEntityEngine);\n private readonly dataPolicies = inject(AXPEntityExecutionAdapter);\n private readonly policyCapabilitiesReady = import('@acorex-platform/module-communication-management-client/contracts').then(({ AXP_IN_APP_INBOX_DATA_CAPABILITIES }) => this.dataPolicies.register(AXP_IN_APP_INBOX_DATA_CAPABILITIES));\n private readonly localBridge = inject(AXPLocalEntityRealtimeBridge);\n private readonly outbox = inject(AXPLocalEntityOutboxService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly destroyRef = inject(DestroyRef);\n\n private readonly entityKey = AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY;\n private readonly localItems = this.engine.itemsSignal(this.entityKey);\n\n private readonly isLoading = signal(false);\n private readonly bootstrapActive = signal(false);\n private bootstrapGeneration = 0;\n private readonly pageLoading = signal(false);\n private readonly error = signal<string | null>(null);\n private readonly archivePageItems = signal<AXPInAppInboxItem[]>([]);\n private readonly archiveTotalCount = signal(0);\n private readonly pageQuery = signal<TrackedPageQuery | null>(null);\n private pendingRealtimeRefresh = false;\n private bootstrapPromise: Promise<void> | null = null;\n private syncInFlight: Promise<AXPInAppInboxListResult> | null = null;\n private boundUserKey: string | null = null;\n private legacyDbCleanupDone = false;\n private readonly unreadQueryKey = 'CommunicationManagement:Inbox:UnreadCount';\n private readonly unreadSummary = signal<{ count: number; hotUnread: number } | null>(null);\n\n readonly capabilities = this.port.capabilities;\n readonly loading = computed(() => this.isLoading() || this.bootstrapActive());\n readonly pageLoadingState = computed(() => this.pageLoading());\n readonly errorMessage = computed(() => this.error());\n readonly blockedLegacyOperations = computed(() => this.outbox.legacyPendingFor(this.entityKey).length);\n readonly pendingChanges = computed(() => this.outbox.pendingFor(this.entityKey).length > 0);\n hasRetryableChanges(): boolean { return this.outbox.pendingFor(this.entityKey).some(op => op.status === 'pending' || op.status === 'failed'); }\n readonly inboxList = computed(() => this.readLocalItems());\n readonly total = computed(() => {\n if (this.pageQuery()?.mode === 'archive') {\n return this.archiveTotalCount();\n }\n return this.readLocalItems().length;\n });\n readonly pagedInboxList = computed(() => {\n const query = this.pageQuery();\n if (!query) {\n return [];\n }\n if (query.mode === 'archive') {\n return this.archivePageItems();\n }\n const filtered = filterInAppInboxItemsLocally(this.readLocalItems(), query.filters);\n return filtered.slice(query.skip, query.skip + query.take);\n });\n readonly pagedTotal = computed(() => {\n const query = this.pageQuery();\n if (!query) {\n return 0;\n }\n if (query.mode === 'archive') {\n return this.archiveTotalCount();\n }\n return filterInAppInboxItemsLocally(this.readLocalItems(), query.filters).length;\n });\n readonly unreadCount = computed(() => {\n const hot = this.readLocalItems().filter((item) => isInAppInboxUnread(item.readAt)).length;\n const summary = this.unreadSummary();\n return summary ? Math.max(0, summary.count + hot - summary.hotUnread) : hot;\n });\n\n constructor() {\n if (this.port.loadUnreadCount && this.queries && !this.queries.exists(this.unreadQueryKey)) {\n this.queries.register(this.unreadQueryKey, async () => ({ fetch: async () => ({ success: true, kind: 'object', data: { count: await this.port.loadUnreadCount!(), capturedAt: Date.now() } }) }));\n }\n for (const action of ['markSeen', 'markRead', 'markAllRead', 'togglePin', 'archive', 'delete']) {\n const key = `CommunicationManagement:ReplayInbox:${action}`;\n if (!this.commands.exists(key))\n this.commands.register(key, async () => ({\n execute: async (input: unknown) => {\n const op = input as AXPLocalEntityOutboxOp & { idempotencyKey: string };\n if (op.entityKey !== this.entityKey || op.action !== action || !op.id || op.idempotencyKey !== op.id || op.userKey !== this.engine.resolveUserKey()) throw new Error('Invalid Inbox replay context.');\n await this.flushOutboxOp(op);\n return runtimeCommandSuccessValue(true);\n },\n }));\n }\n this.dataPolicies.changed$.pipe(debounceTime(0), takeUntilDestroyed(this.destroyRef)).subscribe((entityName) => {\n if (entityName && entityName !== this.entityKey) return;\n this.bootstrapPromise = null;\n this.unreadSummary.set(null);\n this.syncInFlight = null;\n this.archivePageItems.set([]);\n this.archiveTotalCount.set(0);\n if (this.canLoadInbox()) void this.ensureReady();\n });\n\n this.localBridge.register(this.entityKey, {\n acceptNewIds: true,\n fetchByIds: this.port.loadByIds ? (ids) => this.fetchActiveByIds(ids) : undefined,\n fetchHot: () => this.fetchActiveHot(),\n reconcile: () => {\n // Reauthorization clears the module binding as well as engine memory.\n // Re-enter bootstrap so a successful sync cannot be discarded against\n // a null boundUserKey, and retained deliveries hydrate before transport.\n this.bootstrapPromise = this.bootstrap(true);\n return this.bootstrapPromise;\n },\n afterApply: async () => {\n await this.refreshUnreadSummary(true);\n await this.reapplyPendingOutboxOps();\n },\n });\n\n this.outbox.register(this.entityKey, {\n supportedOperations: ['markSeen', 'markRead', 'markAllRead', ...(this.port.setPinned ? ['togglePin'] : []), ...(this.port.archive ? ['archive'] : []), ...(this.port.deleteDeliveries ? ['delete'] : [])],\n flush: (op) => this.flushOutboxOp(op),\n revert: (op) => this.revertOutboxOp(op),\n });\n\n this.sessionService.isReadyForAppScopedApi$.pipe(distinctUntilChanged(), takeUntilDestroyed(this.destroyRef)).subscribe((isReady) => {\n if (isReady) {\n void this.ensureReady();\n return;\n }\n void this.clearInboxState();\n });\n\n const immediateRealtime$ = this.realtime.changed$.pipe(filter((event) => event.type === 'deleted' || event.type === 'archived'));\n const debouncedRealtime$ = this.realtime.changed$.pipe(\n filter((event) => event.type !== 'deleted' && event.type !== 'archived'),\n debounceTime(100),\n );\n merge(immediateRealtime$, debouncedRealtime$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event) => {\n void this.handleRealtimeEvent(event);\n });\n }\n\n /** Hydrate from IndexedDB then sync active inbox from the server (idempotent). */\n ensureReady(): Promise<void> {\n if (!this.canLoadInbox()) {\n return Promise.resolve();\n }\n if (this.boundUserKey && this.boundUserKey !== this.engine.resolveUserKey()) this.bootstrapPromise = null;\n // Initialization is idempotent even for network-only/unavailable policies.\n // List observers (including the chat bridge) call this after every update;\n // revalidating here would turn each response into another request.\n if (!this.bootstrapPromise) {\n this.bootstrapPromise = this.bootstrap();\n }\n return this.bootstrapPromise;\n }\n\n /** Explicit retry preserves operation ids, original payloads and current-user isolation. */\n async retryPendingWrites(): Promise<void> {\n const userKey = this.engine.resolveUserKey();\n const operations = this.outbox.pendingFor(this.entityKey).filter((op) => op.status === 'pending' || op.status === 'failed');\n for (const operation of operations) {\n if (userKey !== this.engine.resolveUserKey()) break;\n await this.outbox.retry(operation.id);\n }\n }\n\n async refresh(): Promise<AXPInAppInboxListResult> {\n if (!this.canLoadInbox()) {\n return { items: [], total: 0 };\n }\n await this.ensureReady();\n return this.syncActiveFromServer();\n }\n\n /** Reconnect and fallback enter the same policy-aware, coalesced synchronization path. */\n async reconcile(_reason: 'reconnect' | 'fallback'): Promise<void> { await this.refresh(); }\n\n\n\n private async refreshUnreadSummary(invalidate = false): Promise<void> {\n if (!this.port.loadUnreadCount || !this.queries) return;\n const context = JSON.stringify(this.dataPolicies.context()),\n userKey = this.engine.resolveUserKey();\n try {\n if (invalidate) await this.executionRuntime?.invalidateQuery(this.unreadQueryKey);\n const result = await this.queries.fetch<void, { count: number; capturedAt: number }>(this.unreadQueryKey, undefined, { snapshot: false, dataExecution: { scenarioKey: 'notifications.active' } });\n if (context !== JSON.stringify(this.dataPolicies.context()) || userKey !== this.engine.resolveUserKey()) return;\n if (result?.success && result.kind === 'object' && Number.isFinite(result.data?.count)) {\n const items = this.readLocalItems();\n // Hydrated rows may already contain optimistic writes made after the saved aggregate.\n const pendingUnread = new Set(\n this.outbox\n .pendingFor(this.entityKey)\n .filter((op) => Date.parse(op.queuedAt) > result.data.capturedAt)\n .flatMap((op) => (Array.isArray(op.payload?.['unreadIds']) ? (op.payload['unreadIds'] as string[]) : []))\n .filter((id) => !items.some((item) => item.id === id && isInAppInboxUnread(item.readAt))),\n );\n this.unreadSummary.set({ count: Math.max(0, result.data.count), hotUnread: items.filter((item) => isInAppInboxUnread(item.readAt)).length + pendingUnread.size });\n }\n } catch {\n /* Keep the last authorized count and local optimistic delta while offline. */\n }\n }\n\n async loadPage(filtersOrSkip: AXPFilterQuery[] | number, skipOrTake?: number, takeArg?: number): Promise<AXPPagedListResult<AXPInAppInboxItem>> {\n const filters = Array.isArray(filtersOrSkip) ? filtersOrSkip : [];\n const skip = Array.isArray(filtersOrSkip) ? (skipOrTake ?? 0) : filtersOrSkip;\n const take = Array.isArray(filtersOrSkip) ? (takeArg ?? 10) : (skipOrTake ?? 10);\n const mode: TrackedPageQuery['mode'] = isArchiveCategoryFilter(filters) ? 'archive' : 'local';\n\n this.pageQuery.set({ skip, take, filters, mode });\n\n if (mode === 'archive') {\n if (!this.canLoadInbox()) {\n this.archivePageItems.set([]);\n this.archiveTotalCount.set(0);\n return { items: [], total: 0 };\n }\n return this.loadArchivePage(filters, skip, take);\n }\n\n if (this.canLoadInbox()) {\n const initialized = this.bootstrapPromise !== null;\n await this.ensureReady();\n const policy = this.engine.getPolicy(this.entityKey)?.resolved;\n if (initialized && (!policy?.enabled || policy.read.strategy === 'network-only' || !this.engine.canServeListLocally(this.entityKey, { skip: 0, take: policy.storage.maxItems, sort: [{ field: policy.storage.sortField, dir: 'desc' }] }))) {\n await this.syncActiveFromServer();\n }\n }\n\n this.pageLoading.set(false);\n return { items: this.pagedInboxList(), total: this.pagedTotal() };\n }\n\n async markUnseenAsSeen(): Promise<void> {\n if (!this.port.capabilities.seenTracking || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n const unseenIds = this.readLocalItems()\n .filter((item) => isInAppInboxUnseen(item.seenAt))\n .map((item) => item.id);\n\n if (unseenIds.length === 0) {\n return;\n }\n\n const now = new Date().toISOString();\n await this.engine.patchMany(this.entityKey, unseenIds, (item) => (item['seenAt'] ? item : { ...item, seenAt: now }));\n\n await this.commitOrEnqueue({\n action: AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markSeen,\n recordIds: unseenIds,\n payload: { seenAt: now },\n commit: () => this.port.markSeen(unseenIds),\n revert: async () => {\n await this.syncActiveFromServer();\n },\n failureMessage: 'Failed to mark inbox as seen',\n });\n }\n\n async markAsRead(ids: string[]): Promise<void> {\n if (ids.length === 0 || !this.port.capabilities.readTracking || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n const context = JSON.stringify(this.dataPolicies.context());\n await this.mutations.runExclusive(this.entityKey, 'read-state', async () => {\n await this.engine.refreshFromStorage(this.entityKey);\n if (!this.canLoadInbox() || context !== JSON.stringify(this.dataPolicies.context())) return;\n const before = new Map(this.readLocalItems().map(item => [item.id, item]));\n // Unknown explicit IDs remain server-authorized writes; known read rows are no-ops.\n const unreadIds = [...new Set(ids)].filter(id => !before.has(id) || isInAppInboxUnread(before.get(id)!.readAt));\n if (!unreadIds.length) return;\n const now = new Date().toISOString();\n await this.engine.patchMany(this.entityKey, unreadIds, item => ({ ...item, seenAt: item['seenAt'] ?? now, readAt: item['readAt'] ?? now }));\n if (context !== JSON.stringify(this.dataPolicies.context())) return;\n await this.commitOrEnqueue({\n action: AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markRead,\n recordIds: unreadIds,\n payload: { readAt: now, seenAt: now, unreadIds },\n commit: () => this.port.markRead(unreadIds),\n revert: async () => {\n await this.engine.patchMany(this.entityKey, unreadIds, item => {\n const previous = before.get(String(item['id']));\n return previous && previous.correlationId === item['correlationId'] ? { ...item, readAt: previous.readAt?.toISOString() ?? null, seenAt: previous.seenAt?.toISOString() ?? null } : item;\n });\n await this.localBridge.apply({ entityKey: this.entityKey, type: 'upsert', ids: unreadIds });\n },\n failureMessage: 'Failed to mark inbox as read',\n });\n });\n }\n\n async markAllAsRead(): Promise<void> {\n if (!this.port.capabilities.readTracking || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n const unreadIds = this.readLocalItems()\n .filter((item) => isInAppInboxUnread(item.readAt))\n .map((item) => item.id);\n const now = new Date().toISOString();\n await this.engine.patchAll(this.entityKey, (item) => {\n const readAt = item['readAt'];\n if (readAt != null) {\n return item;\n }\n return { ...item, readAt: now, seenAt: item['seenAt'] ?? now };\n });\n\n await this.commitOrEnqueue({\n action: AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markAllRead,\n recordIds: this.readLocalItems().map((item) => item.id),\n payload: { readAt: now, seenAt: now, unreadIds },\n commit: () => this.port.markAllRead(),\n revert: async () => {\n await this.syncActiveFromServer();\n },\n failureMessage: 'Failed to mark all as read',\n });\n }\n\n async togglePin(id: string): Promise<void> {\n if (!this.port.capabilities.pinSupport || !this.port.togglePin || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n const current = this.readLocalItems().find((item) => item.id === id);\n const nextPinned = current ? !current.isPinned : true;\n if (current) {\n await this.engine.patchMany(this.entityKey, [id], (item) => ({\n ...item,\n isPinned: nextPinned,\n }));\n }\n\n await this.commitOrEnqueue({\n action: AXP_IN_APP_INBOX_OUTBOX_ACTIONS.togglePin,\n recordIds: [id],\n payload: { isPinned: nextPinned },\n commit: async () => {\n await this.port.togglePin?.(id);\n await this.localBridge.apply({ entityKey: this.entityKey, type: 'upsert', ids: [id] });\n },\n revert: () => this.localBridge.apply({ entityKey: this.entityKey, type: 'upsert', ids: [id] }),\n failureMessage: 'Failed to toggle pin',\n });\n }\n\n async archive(ids: string[]): Promise<void> {\n if (!this.port.archive || ids.length === 0 || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n const unreadIds = this.readLocalItems()\n .filter((item) => ids.includes(item.id) && isInAppInboxUnread(item.readAt))\n .map((item) => item.id);\n await this.engine.removeMany(this.entityKey, ids);\n\n await this.commitOrEnqueue({\n action: AXP_IN_APP_INBOX_OUTBOX_ACTIONS.archive,\n recordIds: ids,\n payload: { unreadIds },\n commit: async () => {\n if (this.port.archive) {\n await this.port.archive(ids);\n }\n },\n revert: async () => {\n await this.syncActiveFromServer();\n },\n failureMessage: 'Failed to archive inbox items',\n });\n\n const query = this.pageQuery();\n if (query?.mode === 'archive') {\n await this.loadArchivePage(query.filters, query.skip, query.take);\n }\n }\n\n async deleteOne(id: string): Promise<void> {\n if (!this.port.deleteDeliveries || !this.canLoadInbox()) {\n return;\n }\n\n const deleteDeliveries = this.port.deleteDeliveries;\n await this.ensureReady();\n const unreadIds = this.readLocalItems()\n .filter((item) => item.id === id && isInAppInboxUnread(item.readAt))\n .map((item) => item.id);\n await this.engine.removeMany(this.entityKey, [id]);\n\n await this.commitOrEnqueue({\n action: AXP_IN_APP_INBOX_OUTBOX_ACTIONS.delete,\n recordIds: [id],\n payload: { unreadIds },\n commit: async () => {\n if (!deleteDeliveries) {\n return;\n }\n try {\n await deleteDeliveries([id]);\n } catch (err) {\n if (!this.isBenignDeliveryDeleteError(err)) {\n throw err;\n }\n }\n },\n revert: async () => {\n await this.syncActiveFromServer();\n },\n failureMessage: 'Failed to delete inbox item',\n });\n\n this.realtime.notifyChanged({ type: 'deleted', ids: [id] });\n\n const query = this.pageQuery();\n if (query?.mode === 'archive') {\n await this.loadArchivePage(query.filters, query.skip, query.take);\n }\n }\n\n /** Removes in-app deliveries whose communication correlation id matches (best-effort). */\n async dismissByCorrelationId(correlationId: string): Promise<void> {\n const normalized = correlationId.trim();\n if (!normalized || !this.port.deleteDeliveries || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n const ids = this.readLocalItems()\n .filter((item) => item.correlationId?.trim() === normalized)\n .map((item) => item.id);\n\n for (const id of ids) {\n await this.deleteOne(id);\n }\n }\n\n /** Removes in-app deliveries whose correlation id starts with the prefix (e.g. chat thread). */\n async dismissByCorrelationIdPrefix(correlationIdPrefix: string): Promise<void> {\n const normalized = correlationIdPrefix.trim();\n if (!normalized || !this.port.deleteDeliveries || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n const ids = this.resolveDeliveryIdsForCorrelationPrefix(normalized);\n for (const id of ids) {\n await this.deleteOne(id);\n }\n }\n\n /** Marks chat inbox rows as read (seen + read) without deleting them. */\n async markReadByCorrelationIdPrefix(correlationIdPrefix: string): Promise<void> {\n const normalized = correlationIdPrefix.trim();\n if (!normalized || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n const ids = this.resolveDeliveryIdsForCorrelationPrefix(normalized).filter((id) => {\n const item = this.readLocalItems().find((entry) => entry.id === id);\n return item != null && isInAppInboxUnread(item.readAt);\n });\n if (ids.length === 0) {\n return;\n }\n await this.markAsRead(ids);\n }\n\n /**\n * Upserts rows into the local hot inbox without a server round-trip.\n * Used for optimistic chat previews while Communication:Send persists the delivery.\n */\n async upsertLocalItems(items: AXPInAppInboxItem[]): Promise<void> {\n if (!items.length || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n await this.engine.upsertMany(\n this.entityKey,\n items.map((item) => this.toPayload(normalizeInAppInboxItem(item))),\n );\n }\n\n /** Drops local-only rows (e.g. optimistic chat placeholders) without calling the API. */\n async removeLocalIds(ids: string[]): Promise<void> {\n const normalized = [...new Set(ids.map((id) => id?.trim()).filter(Boolean))];\n if (!normalized.length || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n await this.engine.removeMany(this.entityKey, normalized);\n }\n\n /**\n * After Communication:Send, swap the optimistic chat row for the real delivery when\n * the recipient can read it. If the delivery is not visible yet, keep the local preview.\n */\n async replacePendingChatWithDelivery(pendingId: string, deliveryId: string): Promise<void> {\n const pending = pendingId.trim();\n const delivery = deliveryId.trim();\n if (!pending || !delivery || !this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n if (!this.port.loadByIds) {\n return;\n }\n\n const loaded = await this.fetchActiveByIds([delivery]);\n if (loaded.length === 0) {\n return;\n }\n\n await this.engine.upsertMany(this.entityKey, loaded);\n if (pending !== delivery) {\n await this.engine.removeMany(this.entityKey, [pending]);\n }\n }\n\n //#region ----- Bootstrap & sync -----\n\n private async bootstrap(forceSync = false): Promise<void> {\n const generation = ++this.bootstrapGeneration;\n if (!this.canLoadInbox()) {\n this.bootstrapActive.set(false);\n return;\n }\n this.bootstrapActive.set(true);\n\n try {\n await this.policyCapabilitiesReady;\n this.deleteLegacyInboxDb();\n this.boundUserKey = this.engine.resolveUserKey();\n const context = JSON.stringify(this.dataPolicies.context());\n const resolution = await this.dataPolicies.resolve(this.entityKey);\n if (context !== JSON.stringify(this.dataPolicies.context())) return;\n await this.engine.applyResolvedPolicy(this.entityKey, resolution.status === 'ready' ? resolution.policy : null);\n await this.engine.hydrate(this.entityKey);\n await this.refreshUnreadSummary();\n await this.reapplyPendingOutboxOps();\n if (!this.boundUserKey) {\n return;\n }\n const policy = this.engine.getPolicy(this.entityKey)?.resolved;\n if (forceSync || !policy?.enabled || policy.freshness.startup === 'revalidate-working-set' || !this.readLocalItems().length) await this.syncActiveFromServer();\n } catch (err) {\n this.error.set(err instanceof Error ? err.message : 'Failed to bootstrap inbox');\n } finally {\n if (generation === this.bootstrapGeneration) this.bootstrapActive.set(false);\n }\n }\n\n private async syncActiveFromServer(): Promise<AXPInAppInboxListResult> {\n if (!this.canLoadInbox()) {\n return { items: [], total: 0 };\n }\n\n if (this.syncInFlight) {\n return this.syncInFlight;\n }\n\n const task = this.syncActiveFromServerInternal();\n this.syncInFlight = task;\n try {\n return await this.syncInFlight;\n } finally {\n if (this.syncInFlight === task) {\n this.syncInFlight = null;\n // Drain only after releasing the older request. Otherwise the follow-up\n // coalesces back onto that same response and loses the realtime delta.\n if (this.pendingRealtimeRefresh) {\n this.pendingRealtimeRefresh = false;\n void this.syncActiveFromServer();\n }\n }\n }\n }\n\n private async syncActiveFromServerInternal(): Promise<AXPInAppInboxListResult> {\n if (!this.canLoadInbox()) {\n return { items: [], total: 0 };\n }\n\n const context = JSON.stringify(this.dataPolicies.context());\n try {\n this.isLoading.set(true);\n this.error.set(null);\n // Startup/reconnect may have first bootstrapped while the catalog was\n // unavailable. Install the current read plan before persisting live data.\n const resolution = await this.dataPolicies.resolve(this.entityKey);\n if (context !== JSON.stringify(this.dataPolicies.context())) return { items: [], total: 0 };\n await this.engine.applyResolvedPolicy(this.entityKey, resolution.status === 'ready' ? resolution.policy : null);\n const response = await this.fetchActiveHot();\n if (this.boundUserKey !== this.engine.resolveUserKey() || context !== JSON.stringify(this.dataPolicies.context())) return { items: [], total: 0 };\n if (this.pendingRealtimeRefresh) {\n // A newer delivery/read receipt arrived during this request. Publishing\n // its older unread snapshot would make the chat bridge acknowledge again.\n // syncActiveFromServer drains the pending refresh after this one finishes.\n const local = this.readLocalItems();\n return { items: local, total: local.length };\n }\n const items = sortInAppInboxItems(response.items.map((item) => normalizeInAppInboxItem(item as AXPInAppInboxItem)));\n await this.engine.replaceAll(\n this.entityKey,\n items.map((item) => this.toPayload(item)),\n response.total,\n );\n await this.refreshUnreadSummary(true);\n await this.reapplyPendingOutboxOps();\n const local = this.readLocalItems();\n return { items: local, total: local.length };\n } catch (err) {\n if (context !== JSON.stringify(this.dataPolicies.context())) return { items: [], total: 0 };\n this.error.set(err instanceof Error ? err.message : 'Failed to load inbox');\n await this.engine.reconcileReadFailure(this.entityKey, err);\n const local = this.readLocalItems();\n return { items: local, total: local.length };\n } finally {\n this.isLoading.set(false);\n }\n }\n\n private async fetchActiveHot(): Promise<AXPPagedListResult<unknown>> {\n if (!this.canLoadInbox()) {\n return { items: [], total: 0 };\n }\n\n const response = await this.port.loadInbox({\n skip: 0,\n take: this.engine.getPolicy(this.entityKey)?.resolved?.storage.maxItems ?? AXP_IN_APP_INBOX_LOCAL_MAX_ITEMS,\n excludeArchived: true,\n });\n await this.engine.refreshFromStorage(this.entityKey);\n return {\n items: this.preserveAcknowledgedVersions(response.items.map(item => this.toPayload(normalizeInAppInboxItem(item)))),\n total: response.total,\n };\n }\n\n /** Read is monotonic for one chat delivery version; a new correlationId admits new unread content. */\n private preserveAcknowledgedVersions(items: Record<string, unknown>[]): Record<string, unknown>[] {\n const current = new Map(this.engine.items(this.entityKey).map(item => [String(item['id']), item]));\n return items.map(item => {\n const previous = current.get(String(item['id']));\n const version = item['correlationId'];\n return item['definitionKey'] === 'conversation-chat-message' && typeof version === 'string' && version.startsWith('conversation:') && previous?.['correlationId'] === version && previous['readAt'] != null && item['readAt'] == null\n ? { ...item, readAt: previous['readAt'], seenAt: item['seenAt'] ?? previous['seenAt'] } : item;\n });\n }\n\n private async fetchActiveByIds(ids: string[]): Promise<unknown[]> {\n if (!this.canLoadInbox() || !this.port.loadByIds) {\n return [];\n }\n\n try {\n const context = JSON.stringify(this.dataPolicies.context());\n const result = await this.port.loadByIds(ids);\n if (context !== JSON.stringify(this.dataPolicies.context())) return [];\n await this.engine.refreshFromStorage(this.entityKey);\n return this.preserveAcknowledgedVersions(result.items.filter(item => item.archivedAt == null).map(item => this.toPayload(normalizeInAppInboxItem(item))));\n } catch (error) {\n if (this.isBenignDeliveryDeleteError(error)) {\n return [];\n }\n throw error;\n }\n }\n\n //#endregion\n\n //#region ----- Page views -----\n\n private async loadArchivePage(filters: AXPFilterQuery[], skip: number, take: number): Promise<AXPPagedListResult<AXPInAppInboxItem>> {\n if (!this.canLoadInbox()) {\n this.archivePageItems.set([]);\n this.archiveTotalCount.set(0);\n return { items: [], total: 0 };\n }\n\n try {\n this.pageLoading.set(true);\n this.error.set(null);\n const context = JSON.stringify(this.dataPolicies.context());\n const result = await this.port.loadInbox({\n skip,\n take,\n filters,\n excludeArchived: false,\n });\n const items = sortInAppInboxItems(result.items.map((item) => normalizeInAppInboxItem(item)));\n if (context !== JSON.stringify(this.dataPolicies.context())) return { items: [], total: 0 };\n this.archivePageItems.set(items);\n this.archiveTotalCount.set(result.total);\n return { items, total: result.total };\n } catch (err) {\n this.error.set(err instanceof Error ? err.message : 'Failed to load archived inbox');\n this.archivePageItems.set([]);\n this.archiveTotalCount.set(0);\n return { items: [], total: 0 };\n } finally {\n this.pageLoading.set(false);\n }\n }\n\n //#endregion\n\n //#region ----- Realtime -----\n\n private async handleRealtimeEvent(event: { type: string; ids?: string[] }): Promise<void> {\n if (!this.canLoadInbox()) {\n return;\n }\n\n await this.ensureReady();\n\n if (event.type === 'seen' || event.type === 'read') {\n // Local optimistic path already patched; ignore echo noise.\n return;\n }\n\n if ((event.type === 'deleted' || event.type === 'archived') && event.ids?.length) {\n await this.localBridge.apply({\n entityKey: this.entityKey,\n type: 'remove',\n ids: event.ids,\n });\n const query = this.pageQuery();\n if (query?.mode === 'archive') {\n await this.loadArchivePage(query.filters, query.skip, query.take);\n }\n return;\n }\n\n if (this.isLoading()) {\n this.pendingRealtimeRefresh = true;\n return;\n }\n\n if (event.ids?.length) {\n await this.localBridge.apply({\n entityKey: this.entityKey,\n type: 'upsert',\n ids: event.ids,\n });\n return;\n }\n\n await this.localBridge.apply({ entityKey: this.entityKey, type: 'invalidate' });\n }\n\n //#endregion\n\n //#region ----- Outbox -----\n\n private async commitOrEnqueue(options: { action: string; recordIds: string[]; payload?: Record<string, unknown>; commit: () => Promise<void>; revert: () => Promise<void>; failureMessage: string }): Promise<void> {\n await this.mutations.commit({ ...options, entity: this.entityKey, durableSupported: options.action !== 'togglePin' || !!this.port.setPinned,\n onError: error => this.error.set(error instanceof Error ? error.message : options.failureMessage),\n });\n }\n\n private async flushOutboxOp(op: AXPLocalEntityOutboxOp): Promise<void> {\n switch (op.action) {\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markSeen:\n if (op.recordIds.length > 0) {\n await this.port.markSeen(op.recordIds);\n }\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markRead:\n if (op.recordIds.length > 0) {\n await this.port.markRead(op.recordIds);\n }\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markAllRead:\n // Replay only the captured working set, never messages arriving afterward.\n if (op.recordIds.length) await this.port.markRead(op.recordIds);\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.togglePin:\n if (!this.port.setPinned) throw new Error('Pin replay requires a desired-state handler.');\n if (op.recordIds[0]) await this.port.setPinned(op.recordIds[0], Boolean(op.payload?.['isPinned']));\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.archive:\n if (op.recordIds.length > 0 && this.port.archive) {\n await this.port.archive(op.recordIds);\n }\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.delete:\n if (op.recordIds.length > 0 && this.port.deleteDeliveries) {\n try {\n await this.port.deleteDeliveries(op.recordIds);\n } catch (err) {\n if (!this.isBenignDeliveryDeleteError(err)) {\n throw err;\n }\n }\n }\n return;\n default:\n return;\n }\n }\n\n private async revertOutboxOp(op: AXPLocalEntityOutboxOp): Promise<void> {\n if (op.action === AXP_IN_APP_INBOX_OUTBOX_ACTIONS.delete || op.action === AXP_IN_APP_INBOX_OUTBOX_ACTIONS.archive || op.action === AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markAllRead) {\n await this.syncActiveFromServer();\n return;\n }\n if (op.recordIds.length > 0) {\n await this.localBridge.apply({ entityKey: this.entityKey, type: 'upsert', ids: op.recordIds });\n }\n }\n\n private async reapplyPendingOutboxOps(): Promise<void> {\n const ops = this.outbox.pendingFor(this.entityKey);\n for (const op of ops) {\n const scope = JSON.stringify(this.dataPolicies.context());\n const policy = await this.dataPolicies.resolve(this.entityKey, op.action);\n if (scope !== JSON.stringify(this.dataPolicies.context())) return;\n if (policy.status !== 'ready' || !policy.policy.enabled || policy.policy.write.mode !== 'offline-queue' || !policy.policy.write.offlineOperations.includes(op.action)) continue;\n await this.applyOutboxOpLocally(op);\n }\n }\n\n private async applyOutboxOpLocally(op: AXPLocalEntityOutboxOp): Promise<void> {\n const seenAt = typeof op.payload?.['seenAt'] === 'string' ? op.payload['seenAt'] : new Date().toISOString();\n const readAt = typeof op.payload?.['readAt'] === 'string' ? op.payload['readAt'] : new Date().toISOString();\n\n switch (op.action) {\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markSeen:\n await this.engine.patchMany(this.entityKey, op.recordIds, (item) => (item['seenAt'] ? item : { ...item, seenAt }));\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markRead:\n await this.engine.patchMany(this.entityKey, op.recordIds, (item) => ({\n ...item,\n seenAt: item['seenAt'] ?? seenAt,\n readAt: item['readAt'] ?? readAt,\n }));\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.markAllRead:\n await this.engine.patchMany(this.entityKey, op.recordIds, (item) => (item['readAt'] != null ? item : { ...item, readAt, seenAt: item['seenAt'] ?? seenAt }));\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.togglePin:\n await this.engine.patchMany(this.entityKey, op.recordIds, (item) => ({\n ...item,\n isPinned: Boolean(op.payload?.['isPinned']),\n }));\n return;\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.archive:\n case AXP_IN_APP_INBOX_OUTBOX_ACTIONS.delete:\n await this.engine.removeMany(this.entityKey, op.recordIds);\n return;\n default:\n return;\n }\n }\n\n //#endregion\n\n //#region ----- Local helpers -----\n\n private canLoadInbox(): boolean {\n return this.sessionService.isReadyForAppScopedApi;\n }\n\n private async clearInboxState(): Promise<void> {\n this.bootstrapGeneration++;\n this.bootstrapActive.set(false);\n this.unreadSummary.set(null);\n this.bootstrapPromise = null;\n this.syncInFlight = null;\n this.boundUserKey = null;\n this.pendingRealtimeRefresh = false;\n this.pageQuery.set(null);\n this.archivePageItems.set([]);\n this.archiveTotalCount.set(0);\n this.error.set(null);\n this.isLoading.set(false);\n this.pageLoading.set(false);\n // Not-ready also occurs during cold startup and reconnect authentication.\n // Revoke the in-memory view until policy restoration; retain scoped durable\n // rows so a transient readiness transition cannot erase the offline Inbox.\n await this.engine.applyResolvedPolicy(this.entityKey, null);\n }\n\n private readLocalItems(): AXPInAppInboxItem[] {\n // Always track the record signal, including the initial not-ready render.\n // Otherwise Angular memoizes an empty result without any reactive dependency.\n const localItems = this.localItems();\n if (!this.canLoadInbox()) return [];\n const userId = this.sessionService.user?.id?.trim();\n const items = sortInAppInboxItems(\n localItems\n .map((row) => normalizeInAppInboxItem(row as Partial<AXPInAppInboxItem>)),\n );\n if (!userId) {\n return [];\n }\n return items.filter((item) => {\n const recipientUserId = item.recipientUserId?.trim();\n return !recipientUserId || recipientUserId === userId;\n });\n }\n\n private resolveDeliveryIdsForCorrelationPrefix(prefix: string): string[] {\n const conversationId = parseConversationIdFromDismissPrefix(prefix);\n return this.readLocalItems()\n .filter((item) => {\n if (item.correlationId?.trim().startsWith(prefix)) {\n return true;\n }\n return conversationId != null && matchesConversationInAppDismiss(item, conversationId);\n })\n .map((item) => item.id);\n }\n\n private toPayload(item: AXPInAppInboxItem): Record<string, unknown> {\n return {\n id: item.id,\n title: item.title,\n body: item.body,\n createdAt: item.createdAt.toISOString(),\n seenAt: item.seenAt ? item.seenAt.toISOString() : null,\n readAt: item.readAt ? item.readAt.toISOString() : null,\n sender: item.sender,\n iconClass: item.iconClass,\n iconColor: item.iconColor,\n showAvatar: item.showAvatar,\n priority: item.priority ?? 'Notice',\n isPinned: Boolean(item.isPinned),\n category: item.category,\n definitionKey: item.definitionKey,\n correlationId: item.correlationId,\n recipientUserId: item.recipientUserId,\n archivedAt: item.archivedAt ? item.archivedAt.toISOString() : null,\n actions: item.actions,\n attachments: item.attachments,\n };\n }\n\n private deleteLegacyInboxDb(): void {\n if (this.legacyDbCleanupDone || typeof indexedDB === 'undefined') {\n return;\n }\n this.legacyDbCleanupDone = true;\n try {\n indexedDB.deleteDatabase(AXP_IN_APP_INBOX_LEGACY_DB_NAME);\n } catch {\n // Best-effort cleanup of the pre-engine inbox DB.\n }\n }\n\n private isBenignDeliveryDeleteError(error: unknown): boolean {\n const message = collectErrorText(error);\n return /not found|Entity not found/i.test(message);\n }\n\n //#endregion\n}\n\nfunction collectErrorText(error: unknown): string {\n if (error == null) {\n return '';\n }\n if (typeof error === 'string') {\n return error;\n }\n if (error instanceof Error) {\n const extra = (error as { error?: unknown }).error;\n if (extra && typeof extra === 'object') {\n const nested = extra as { message?: unknown; error?: unknown };\n return `${error.message} ${String(nested.message ?? '')} ${String(nested.error ?? '')}`;\n }\n return extra ? `${error.message} ${String(extra)}` : error.message;\n }\n if (typeof error === 'object' && 'message' in error) {\n return String((error as { message?: unknown }).message ?? error);\n }\n return String(error);\n}\n\n//#endregion\n","/** Public compatibility entry point; implementation belongs to the module data adapter. */\nexport * from '../../../data-access/in-app-inbox-data-source.service';\n","import { AXPTaskBadgeProvider } from '@acorex-platform/framework-client/layout/components';\nimport { AXPInAppInboxConnectorService } from './features/in-app/inbox/in-app-inbox.connector.service';\nimport { computed, inject, Injectable } from '@angular/core';\n\n//#region ---- Communication in-app inbox badge ----\n\n@Injectable()\nexport class AXMCommunicationInboxBadgeProvider implements AXPTaskBadgeProvider {\n private readonly inbox = inject(AXPInAppInboxConnectorService);\n\n readonly key = 'badge-communication-inbox';\n readonly count = computed(() => this.inbox.unreadCount());\n}\n\n//#endregion\n","import { AXStyleColorType } from '@acorex/cdk/common';\nimport {\n AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY,\n AXP_COMMUNICATION_DELIVERY_STATUS_PENDING,\n type CommunicationDeliveryStatus,\n} from '@acorex-platform/module-communication-management-client/contracts';\nimport { AXPStatusProvider } from '@acorex-platform/framework-shared/core';\n\nconst I18N = '@communication-management:entities.communication-delivery.states';\n\n//#region ---- Communication delivery status provider ----\n\n/** Engine-managed delivery lifecycle — read-only in the UI. */\nexport class AXMCommunicationDeliveryStatusProvider extends AXPStatusProvider {\n readonly key = AXP_COMMUNICATION_DELIVERY_STATUS_DEFINITION_KEY;\n\n readonly defaultStatus: CommunicationDeliveryStatus = AXP_COMMUNICATION_DELIVERY_STATUS_PENDING;\n\n readonly statuses = [\n { name: 'Pending' as const, title: `${I18N}.pending`, color: 'secondary' as AXStyleColorType, generateView: true, isInitial: true },\n { name: 'Queued' as const, title: `${I18N}.queued`, color: 'info' as AXStyleColorType, generateView: true },\n { name: 'Processing' as const, title: `${I18N}.processing`, color: 'primary' as AXStyleColorType, generateView: true },\n { name: 'Accepted' as const, title: `${I18N}.accepted`, color: 'info' as AXStyleColorType, generateView: true },\n { name: 'Sent' as const, title: `${I18N}.sent`, color: 'warning' as AXStyleColorType, generateView: true },\n { name: 'Delivered' as const, title: `${I18N}.delivered`, color: 'success' as AXStyleColorType, generateView: true, isFinal: true },\n { name: 'Failed' as const, title: `${I18N}.failed`, color: 'danger' as AXStyleColorType, generateView: true, isFinal: true },\n { name: 'RetryScheduled' as const, title: `${I18N}.retry-scheduled`, color: 'warning' as AXStyleColorType, generateView: true },\n { name: 'Cancelled' as const, title: `${I18N}.cancelled`, color: 'secondary' as AXStyleColorType, generateView: true, isFinal: true },\n { name: 'DeadLettered' as const, title: `${I18N}.dead-lettered`, color: 'danger' as AXStyleColorType, generateView: true, isFinal: true },\n ];\n\n readonly transitions = [];\n}\n\n//#endregion\n","import { AXStyleColorType } from '@acorex/cdk/common';\nimport {\n AXP_COMMUNICATION_STATUS_DEFINITION_KEY,\n AXP_COMMUNICATION_STATUS_PENDING,\n type CommunicationAggregateStatus,\n} from '@acorex-platform/module-communication-management-client/contracts';\nimport { AXPStatusProvider } from '@acorex-platform/framework-shared/core';\n\nconst I18N = '@communication-management:entities.communication.states';\n\n//#region ---- Communication status provider ----\n\n/** Engine-managed aggregate communication status — read-only in the UI. */\nexport class AXMCommunicationStatusProvider extends AXPStatusProvider {\n readonly key = AXP_COMMUNICATION_STATUS_DEFINITION_KEY;\n\n readonly defaultStatus: CommunicationAggregateStatus = AXP_COMMUNICATION_STATUS_PENDING;\n\n readonly statuses = [\n { name: 'Pending' as const, title: `${I18N}.pending`, color: 'secondary' as AXStyleColorType, generateView: true, isInitial: true },\n { name: 'Processing' as const, title: `${I18N}.processing`, color: 'primary' as AXStyleColorType, generateView: true },\n { name: 'Completed' as const, title: `${I18N}.completed`, color: 'success' as AXStyleColorType, generateView: true, isFinal: true },\n { name: 'Failed' as const, title: `${I18N}.failed`, color: 'danger' as AXStyleColorType, generateView: true, isFinal: true },\n { name: 'Cancelled' as const, title: `${I18N}.cancelled`, color: 'secondary' as AXStyleColorType, generateView: true, isFinal: true },\n ];\n\n readonly transitions = [];\n}\n\n//#endregion\n","import type { AXPInAppInboxConfig, AXPInAppInboxI18nKeys } from './inbox/in-app-inbox.types';\n\n//#region ---- Communication in-app inbox registration values ----\n\nexport const communicationInAppInboxConfig: AXPInAppInboxConfig = {\n headerIconClass: 'fa-regular fa-bell',\n viewAllRoute: (appName) => [`/${appName}/my/notification`],\n settingsRoute: (appName) => [`/${appName}/settings/user/communication-notifications`],\n};\n\nexport const communicationInAppInboxI18n: AXPInAppInboxI18nKeys = {\n panelTitle: '@communication-management:in-app.panel.title',\n unread: '@communication-management:in-app.tabs.unread',\n all: '@communication-management:in-app.tabs.all',\n markAllAsRead: '@communication-management:in-app.actions.mark-all-read',\n viewAll: '@communication-management:in-app.actions.view-all',\n emptyTitle: '@communication-management:in-app.state.empty.title',\n emptyDescription: '@communication-management:in-app.state.empty.description',\n pageTitle: '@communication-management:in-app.page.title',\n pageDescriptionNone: '@communication-management:in-app.page.description.none',\n pageDescriptionUnread: '@communication-management:in-app.page.description.unread',\n pageDescriptionAllRead: '@communication-management:in-app.page.description.all-read',\n refresh: '@communication-management:in-app.actions.refresh',\n pin: '@general:actions.pin.title',\n unpin: '@general:actions.unpin.title',\n delete: '@communication-management:in-app.actions.delete',\n archive: '@communication-management:in-app.actions.archive',\n markAsRead: '@communication-management:in-app.actions.mark-as-read',\n selectItems: '@communication-management:in-app.actions.select-items',\n clearFilters: '@communication-management:in-app.actions.clear-filters',\n liveUpdatesOffline: '@communication-management:in-app.live-updates-offline',\n pendingSync: '@communication-management:in-app.pending-sync',\n};\n\n//#endregion\n","import type {\n CommunicationDeliveryEngagementRequest,\n CommunicationDeliveryEngagementResult,\n CommunicationDeliveryMutationResult,\n CommunicationSendInput,\n CommunicationSendResult,\n CommunicationSmtpTestInput,\n CommunicationSmtpTestResult,\n} from '@acorex-platform/module-communication-management-client/contracts';\n\nexport abstract class AXPCommunicationManagementClient {\n abstract downloadAttachment(deliveryId: string, fileId: string): Promise<Blob>;\n abstract send(input: CommunicationSendInput): Promise<CommunicationSendResult>;\n abstract markInAppSeen(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryEngagementResult>;\n abstract markInAppRead(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryEngagementResult>;\n abstract markAllInAppRead(): Promise<CommunicationDeliveryEngagementResult>;\n abstract toggleInAppPin(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryMutationResult>;\n abstract archiveInApp(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryMutationResult>;\n abstract deleteInApp(request: CommunicationDeliveryEngagementRequest): Promise<CommunicationDeliveryMutationResult>;\n abstract testSmtp(input: CommunicationSmtpTestInput): Promise<CommunicationSmtpTestResult>;\n}\n","import { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport { AXPFilterQuery, AXPQueryRequest, AXP_QUERY_QUICK_SEARCH_FIELD } from '@acorex-platform/framework-shared/core';\n\nconst UNREAD_DELIVERY_FILTER: AXDataSourceFilterOption = {\n logic: 'or',\n filters: [\n { field: 'readAt', operator: { type: 'isNull' }, value: null },\n { field: 'readAt', operator: { type: 'equal' }, value: false },\n ],\n};\n\nconst INBOX_CATEGORY_FILTER: AXDataSourceFilterOption = {\n field: 'archivedAt',\n operator: { type: 'isNull' },\n value: null,\n};\n\nconst ARCHIVE_CATEGORY_FILTER = {\n field: 'archivedAt',\n operator: { type: 'isNotEmpty' },\n} as unknown as AXDataSourceFilterOption;\n\nexport function buildCommunicationInAppInboxPageQuery(\n filters: AXPFilterQuery[],\n skip: number,\n take: number,\n communicationIds?: string[],\n): AXPQueryRequest {\n const conditions: AXDataSourceFilterOption[] = [\n { field: 'channel', operator: { type: 'equal' }, value: 'in-app' },\n ];\n\n const readFilter = filters.find((f) => f.field === 'readStatus');\n if (readFilter?.value === 'unread') {\n conditions.push(UNREAD_DELIVERY_FILTER);\n }\n\n const categoryFilter = filters.find((f) => f.field === 'category');\n if (categoryFilter?.value === 'Archive') {\n conditions.push(ARCHIVE_CATEGORY_FILTER);\n } else {\n conditions.push(INBOX_CATEGORY_FILTER);\n }\n\n if (communicationIds?.length) {\n conditions.push({\n logic: 'or',\n filters: communicationIds.map((id) => ({\n field: 'communicationId',\n operator: { type: 'equal' as const },\n value: id,\n })),\n });\n } else if (communicationIds?.length === 0) {\n conditions.push({\n field: 'id',\n operator: { type: 'equal' },\n value: '__no_results__',\n });\n }\n\n return {\n skip,\n take,\n sort: [\n { field: 'isPinned', dir: 'desc' },\n { field: 'deliveredAt', dir: 'desc' },\n ],\n filter: { logic: 'and', filters: conditions },\n };\n}\n\nexport function resolveCommunicationInboxCommunicationFilters(\n filters: AXPFilterQuery[],\n): { searchText?: string; definitionKey?: string; priority?: string } {\n const searchFilter = filters.find(\n (f) => f.field === 'all' || f.field === AXP_QUERY_QUICK_SEARCH_FIELD,\n );\n const searchText = searchFilter?.value != null ? String(searchFilter.value).trim() : '';\n\n const typeFilter = filters.find((f) => f.field === 'type');\n const definitionKey = typeFilter?.value ? String(typeFilter.value) : undefined;\n\n const priorityFilter = filters.find((f) => f.field === 'priority');\n const priority = priorityFilter?.value ? String(priorityFilter.value) : undefined;\n\n return {\n searchText: searchText || undefined,\n definitionKey,\n priority,\n };\n}\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPFilterQuery } from '@acorex-platform/framework-shared/core';\nimport {\n RootConfig,\n resolveCommunicationMessage,\n type AXMCommunicationDeliveryModel,\n type AXMCommunicationModel,\n type CommunicationPriority,\n} from '@acorex-platform/module-communication-management-client/contracts';\nimport { inject, Injectable } from '@angular/core';\nimport { AXPCommunicationManagementClient } from '../../communication-management-client.port';\nimport {\n buildCommunicationInAppInboxPageQuery,\n resolveCommunicationInboxCommunicationFilters,\n} from './communication-in-app-inbox-page-query.util';\nimport type {\n AXPInAppInboxItem,\n AXPInAppInboxListResult,\n AXPInAppInboxLoadQuery,\n} from './inbox/in-app-inbox.types';\nimport type { AXPInAppInboxPort } from './inbox/in-app-inbox.port';\nimport {\n resolveConversationInAppInboxActions,\n resolveConversationInAppInboxSender,\n} from './inbox/in-app-inbox-conversation.util';\nimport { resolveInAppInboxIconClass } from './inbox/in-app-inbox-icon.util';\nimport { sortInAppInboxItems } from './inbox/in-app-inbox.util';\n\nconst IN_APP_CHANNEL = 'in-app';\n\n//#region ---- Communication delivery inbox port ----\n\n@Injectable()\nexport class AXMCommunicationInAppInboxPort implements AXPInAppInboxPort {\n readonly capabilities = {\n seenTracking: true,\n readTracking: true,\n pinSupport: true,\n categoryTabs: false,\n } as const;\n\n private readonly entityService = inject(AXPEntityService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly client = inject(AXPCommunicationManagementClient);\n private readonly deliveryData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.communicationDelivery.name)\n .data<string, AXMCommunicationDeliveryModel, AXMCommunicationDeliveryModel>();\n private readonly communicationData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.communication.name)\n .data<string, AXMCommunicationModel, AXMCommunicationModel>();\n\n async loadInbox(query: AXPInAppInboxLoadQuery = {}): Promise<AXPInAppInboxListResult> {\n if (!this.sessionService.isReadyForAppScopedApi) {\n return { items: [], total: 0 };\n }\n\n const userId = this.sessionService.user?.id;\n if (!userId) {\n return { items: [], total: 0 };\n }\n\n const skip = query.skip ?? 0;\n const take = query.take ?? 1000;\n const filters = query.filters ?? [];\n const excludeArchived = query.excludeArchived ?? filters.length === 0;\n\n const communicationIds = await this.resolveCommunicationIds(filters);\n const request = buildCommunicationInAppInboxPageQuery(filters, skip, take, communicationIds);\n const baseFilters = [...(request.filter?.filters ?? [])];\n\n if (userId) {\n baseFilters.push({\n field: 'recipientUserId',\n operator: { type: 'equal' as const },\n value: userId,\n });\n }\n\n if (excludeArchived && !filters.some((filter) => filter.field === 'category' && filter.value === 'Archive')) {\n baseFilters.push({\n field: 'archivedAt',\n operator: { type: 'isNull' },\n value: null,\n });\n }\n\n const result = await this.deliveryData.query({\n ...request,\n filter: { logic: 'and', filters: baseFilters },\n });\n\n const deliveries = result.items as AXMCommunicationDeliveryModel[];\n const items = (await this.mapDeliveriesToInboxItems(deliveries)).filter(\n (item) => item.recipientUserId?.trim() === userId,\n );\n\n return { total: result.total, items };\n }\n\n async loadUnreadCount(): Promise<number> {\n if (!this.sessionService.isReadyForAppScopedApi || !this.sessionService.user?.id) return 0;\n const result = await this.deliveryData.query({ skip: 0, take: 1, fields: ['id'], filter: { logic: 'and', filters: [\n { field: 'channel', operator: { type: 'equal' }, value: IN_APP_CHANNEL },\n { field: 'recipientUserId', operator: { type: 'equal' }, value: this.sessionService.user.id },\n { field: 'archivedAt', operator: { type: 'isNull' }, value: null },\n { field: 'readAt', operator: { type: 'isNull' }, value: null },\n ] } });\n return result.total;\n }\n\n async loadByIds(ids: string[]): Promise<AXPInAppInboxListResult> {\n if (!this.sessionService.isReadyForAppScopedApi) {\n return { items: [], total: 0 };\n }\n\n const deliveryIds = [...new Set(ids.map((id) => id?.trim()).filter(Boolean))];\n if (deliveryIds.length === 0) {\n return { total: 0, items: [] };\n }\n\n const userId = this.sessionService.user?.id?.trim();\n if (!userId) {\n return { total: 0, items: [] };\n }\n\n const filters: Array<Record<string, unknown>> = [\n { field: 'channel', operator: { type: 'equal' as const }, value: IN_APP_CHANNEL },\n {\n logic: 'or' as const,\n filters: deliveryIds.map((id) => ({\n field: 'id',\n operator: { type: 'equal' as const },\n value: id,\n })),\n },\n ];\n\n filters.push({\n field: 'recipientUserId',\n operator: { type: 'equal' as const },\n value: userId,\n });\n\n const result = await this.deliveryData.query({\n skip: 0,\n take: deliveryIds.length,\n filter: { logic: 'and', filters: filters as never },\n });\n\n const deliveries = result.items as AXMCommunicationDeliveryModel[];\n const items = (await this.mapDeliveriesToInboxItems(deliveries)).filter(\n (item) => item.recipientUserId?.trim() === userId,\n );\n return { total: items.length, items };\n }\n\n async markSeen(ids: string[]): Promise<void> {\n const deliveryIds = ids.filter(Boolean);\n if (deliveryIds.length === 0) {\n return;\n }\n\n await this.client.markInAppSeen({ deliveryIds });\n }\n\n async markRead(ids: string[]): Promise<void> {\n const deliveryIds = ids.filter(Boolean);\n if (deliveryIds.length === 0) {\n return;\n }\n\n await this.client.markInAppRead({ deliveryIds });\n }\n\n async markAllRead(): Promise<void> {\n await this.client.markAllInAppRead();\n }\n\n async togglePin(id: string): Promise<void> {\n if (!id.trim()) {\n return;\n }\n\n await this.client.toggleInAppPin({ deliveryIds: [id] });\n }\n async setPinned(id: string, isPinned: boolean): Promise<void> {\n if (id.trim()) await this.client.toggleInAppPin({ deliveryIds: [id], isPinned });\n }\n\n async archive(ids: string[]): Promise<void> {\n const deliveryIds = ids.filter(Boolean);\n if (deliveryIds.length === 0) {\n return;\n }\n\n await this.client.archiveInApp({ deliveryIds });\n }\n\n async deleteDeliveries(ids: string[]): Promise<void> {\n const deliveryIds = ids.filter(Boolean);\n if (deliveryIds.length === 0) {\n return;\n }\n\n await this.client.deleteInApp({ deliveryIds });\n }\n\n private async mapDeliveriesToInboxItems(\n deliveries: AXMCommunicationDeliveryModel[],\n ): Promise<AXPInAppInboxItem[]> {\n const communicationMap = await this.loadCommunicationsById(\n [...new Set(deliveries.map((delivery) => delivery.communicationId).filter(Boolean))],\n );\n\n return sortInAppInboxItems(\n deliveries.map((item) => this.toInboxItem(item, communicationMap.get(item.communicationId))),\n );\n }\n\n private async resolveCommunicationIds(filters: AXPFilterQuery[]): Promise<string[] | undefined> {\n const { searchText, definitionKey, priority } = resolveCommunicationInboxCommunicationFilters(filters);\n if (!searchText && !definitionKey && !priority) {\n return undefined;\n }\n\n const conditions = [];\n if (definitionKey) {\n conditions.push({\n field: 'definitionKey',\n operator: { type: 'equal' as const },\n value: definitionKey,\n });\n }\n if (priority) {\n conditions.push({\n field: 'priority',\n operator: { type: 'equal' as const },\n value: priority,\n });\n }\n if (searchText) {\n conditions.push({\n logic: 'or' as const,\n filters: [\n { field: 'title', operator: { type: 'contains' as const }, value: searchText },\n { field: 'message.subject', operator: { type: 'contains' as const }, value: searchText },\n { field: 'message.body', operator: { type: 'contains' as const }, value: searchText },\n ],\n });\n }\n\n const result = await this.communicationData.query({\n take: 1000,\n skip: 0,\n filter: conditions.length > 0 ? { logic: 'and', filters: conditions } : undefined,\n });\n\n return (result.items as AXMCommunicationModel[]).map((item) => item.id);\n }\n\n private async loadCommunicationsById(ids: string[]): Promise<Map<string, AXMCommunicationModel>> {\n const map = new Map<string, AXMCommunicationModel>();\n if (ids.length === 0) {\n return map;\n }\n\n const result = await this.communicationData.query({\n take: ids.length,\n skip: 0,\n filter: {\n logic: 'or',\n filters: ids.map((id) => ({\n field: 'id',\n operator: { type: 'equal' as const },\n value: id,\n })),\n },\n });\n\n for (const communication of result.items as AXMCommunicationModel[]) {\n map.set(communication.id, communication);\n }\n\n return map;\n }\n\n private toInboxItem(\n delivery: AXMCommunicationDeliveryModel,\n communication?: AXMCommunicationModel,\n ): AXPInAppInboxItem {\n const message = communication\n ? resolveCommunicationMessage(communication as unknown as Record<string, unknown>)\n : { subject: '', body: '' };\n\n const definitionKey = communication?.definitionKey;\n const priority = (communication?.priority as CommunicationPriority | undefined) ?? 'Notice';\n const title = message.subject || communication?.title || '';\n const body = message.body;\n const actions = resolveConversationInAppInboxActions({\n definitionKey,\n correlationId: communication?.correlationId,\n actions: communication?.actions,\n });\n const sender = resolveConversationInAppInboxSender({\n definitionKey,\n title,\n body,\n correlationId: communication?.correlationId,\n actions,\n });\n const iconClass = resolveInAppInboxIconClass({ iconClass: communication?.appearance?.iconClass, definitionKey, priority, sender });\n\n return {\n id: delivery.id,\n title,\n body,\n createdAt: delivery.deliveredAt ? new Date(delivery.deliveredAt) : new Date(),\n seenAt: delivery.seenAt ? new Date(delivery.seenAt) : delivery.seenAt ?? null,\n readAt: delivery.readAt ? new Date(delivery.readAt) : delivery.readAt ?? null,\n sender,\n iconClass,\n iconColor: communication?.appearance?.color,\n priority,\n isPinned: Boolean(delivery.isPinned),\n definitionKey,\n correlationId: communication?.correlationId ?? undefined,\n recipientUserId: delivery.recipientUserId?.trim() || undefined,\n archivedAt: delivery.archivedAt ? new Date(delivery.archivedAt) : delivery.archivedAt ?? null,\n actions,\n attachments: communication?.attachments,\n };\n }\n}\n\n//#endregion\n","import { inject, type Provider } from '@angular/core';\nimport {\n AXPEntityBroadcastService,\n AXP_APP_STARTUP_PRIORITY,\n provideAppStartUpTask,\n} from '@acorex-platform/framework-client/core';\nimport { COMMUNICATION_ENTITY_NAME, COMMUNICATION_DELIVERY_ENTITY_NAME } from '@acorex-platform/module-communication-management-client/contracts';\nimport { AXPInAppInboxRealtimeService } from './inbox/in-app-inbox-realtime.service';\nimport type { AXPInAppInboxChangeEvent } from './inbox/in-app-inbox.types';\nimport {\n AXPRealtimeDispatcherService,\n AXP_REALTIME_TOPIC_INBOX_REFRESH,\n type AXPRealtimeInboxRefreshPayload,\n} from '@acorex-platform/framework-client/realtime';\n\n//#region ---- Inbox realtime topic handler ----\n\nexport function provideCommunicationInAppRealtimeHandlers(): Provider[] {\n return [\n provideAppStartUpTask(() => {\n const dispatcher = inject(AXPRealtimeDispatcherService, { optional: true });\n const inboxRealtime = inject(AXPInAppInboxRealtimeService);\n const entityEvents = inject(AXPEntityBroadcastService);\n return {\n name: 'communication-in-app-realtime-handlers',\n priority: AXP_APP_STARTUP_PRIORITY.realtimeHandlers,\n run: async () => {\n dispatcher?.register({\n topic: AXP_REALTIME_TOPIC_INBOX_REFRESH,\n handle: (envelope) => {\n const payload = (envelope.payload ?? {}) as AXPRealtimeInboxRefreshPayload;\n // This recipient-scoped topic owns inbox reconciliation. Clear the\n // raw entity reads first, but do not start a second generic refresh.\n entityEvents.publishLayoutRefresh(COMMUNICATION_ENTITY_NAME, { invalidateOnly: true });\n entityEvents.publishLayoutRefresh(COMMUNICATION_DELIVERY_ENTITY_NAME, { invalidateOnly: true });\n const ids = [\n ...(payload.deliveryIds ?? []),\n ...(payload.deliveryId ? [payload.deliveryId] : []),\n ].filter(Boolean);\n\n const event: AXPInAppInboxChangeEvent = {\n type: resolveInboxChangeType(payload.op),\n ids: ids.length > 0 ? [...new Set(ids)] : undefined,\n };\n inboxRealtime.notifyChanged(event);\n },\n });\n },\n };\n }),\n ];\n}\n\nfunction resolveInboxChangeType(\n op: AXPRealtimeInboxRefreshPayload['op'],\n): AXPInAppInboxChangeEvent['type'] {\n if (op === 'deleted') {\n return 'deleted';\n }\n if (op === 'archived') {\n return 'archived';\n }\n if (op === 'created' || op === 'updated') {\n return 'refresh';\n }\n return 'refresh';\n}\n\n//#endregion\n","import { Injectable, signal } from '@angular/core';\nimport type { AXPInAppInboxSyncStatus } from './inbox/in-app-inbox-sync-status.token';\n\n//#region ---- In-app inbox sync status ----\n\n@Injectable({ providedIn: 'root' })\nexport class AXMCommunicationInAppInboxSyncStatusService implements AXPInAppInboxSyncStatus {\n readonly liveUpdatesConnected = signal(true);\n}\n\n//#endregion\n","import { DestroyRef, inject, type Provider } from '@angular/core';\nimport { AXP_APP_STARTUP_PRIORITY, provideAppStartUpTask } from '@acorex-platform/framework-client/core';\nimport { AXPDataSynchronizationService } from '@acorex-platform/framework-client/common';\nimport { AXPInAppInboxConnectorService } from './inbox/in-app-inbox.connector.service';\nimport { AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY } from './inbox/in-app-inbox-local.constants';\nimport { AXMCommunicationInAppInboxSyncStatusService } from './communication-in-app-inbox-sync-status.service';\n\n/** Registers the Inbox's refresh intent; infrastructure owns policy and scheduling. */\nexport function provideCommunicationInAppInboxFallbackSync(): Provider[] {\n return [provideAppStartUpTask(() => {\n const data = inject(AXPInAppInboxConnectorService);\n const synchronization = inject(AXPDataSynchronizationService);\n const status = inject(AXMCommunicationInAppInboxSyncStatusService);\n const destroy = inject(DestroyRef);\n return { name: 'communication-in-app-inbox-fallback', priority: AXP_APP_STARTUP_PRIORITY.realtimeSubscriptions,\n run: async () => synchronization.watch({ entity: AXP_IN_APP_INBOX_LOCAL_ENTITY_KEY, refresh: () => data.refresh(), connectionChanged: connected => status.liveUpdatesConnected.set(connected) }, destroy),\n };\n })];\n}\n","import {\n AXP_IN_APP_NOTIFICATION_SERVICE,\n type AXPInAppNotificationCreateRequest,\n type AXPInAppNotificationService,\n} from '@acorex-platform/framework-client/common';\nimport { inject, Injectable } from '@angular/core';\nimport { AXPCommunicationManagementClient } from '../../communication-management-client.port';\nimport { AXPInAppInboxRealtimeService } from './inbox/in-app-inbox-realtime.service';\n\n//#region ---- Communication-backed in-app notification port ----\n\n@Injectable()\nexport class AXMCommunicationInAppNotificationService implements AXPInAppNotificationService {\n private readonly client = inject(AXPCommunicationManagementClient);\n private readonly realtime = inject(AXPInAppInboxRealtimeService);\n\n async create(request: AXPInAppNotificationCreateRequest): Promise<void> {\n const recipientUserId = request.receiver.id?.trim();\n if (!recipientUserId) {\n return;\n }\n\n await this.client.send({\n title: request.title,\n message: {\n subject: request.title,\n body: request.body,\n },\n channel: 'in-app',\n recipientUserId,\n recipientName: request.receiver.fullName,\n correlationId: request.id,\n idempotencyKey: request.id,\n });\n\n this.realtime.notifyChanged({ type: 'refresh' });\n }\n}\n\nexport const communicationInAppNotificationServiceProvider = {\n provide: AXP_IN_APP_NOTIFICATION_SERVICE,\n useClass: AXMCommunicationInAppNotificationService,\n};\n\n//#endregion\n","//#region ---- Shared in-app inbox types ----\n\nimport type { AXPFilterQuery, AXPUserReference } from '@acorex-platform/framework-shared/core';\nimport type { CommunicationAttachment } from '@acorex-platform/module-communication-management-client/contracts';\n\nexport type AXPInAppInboxPriority = 'Notice' | 'Danger' | 'Warning';\n\nexport type AXPInAppInboxTabKey = 'Unread' | 'All' | (string & {});\n\nexport interface AXPInAppInboxCapabilities {\n seenTracking: boolean;\n readTracking: boolean;\n pinSupport: boolean;\n categoryTabs: boolean;\n}\n\nexport interface AXPInAppInboxItem {\n id: string;\n title: string;\n body: string;\n createdAt: Date;\n seenAt?: Date | null;\n readAt?: Date | null;\n sender?: AXPUserReference;\n /** Font Awesome classes for a circular leading icon (used instead of user avatar). */\n iconClass?: string;\n iconColor?: string;\n /** When false, hide the leading avatar/icon for this row. Omitted = show (if the host also allows it). */\n showAvatar?: boolean;\n priority?: AXPInAppInboxPriority;\n isPinned?: boolean;\n category?: string;\n definitionKey?: string;\n correlationId?: string;\n /** Delivery recipient; used to keep the local inbox scoped to the signed-in user. */\n recipientUserId?: string;\n archivedAt?: Date | null;\n actions?: Array<{\n title: string;\n command: {\n name: string;\n options?: Record<string, unknown>;\n };\n }>;\n attachments?: CommunicationAttachment[];\n}\n\nexport interface AXPInAppInboxLoadQuery {\n skip?: number;\n take?: number;\n filters?: AXPFilterQuery[];\n /** When true (default for tray), exclude archived deliveries. */\n excludeArchived?: boolean;\n}\n\nexport interface AXPInAppInboxListResult {\n total: number;\n items: AXPInAppInboxItem[];\n}\n\nexport interface AXPInAppInboxI18nKeys {\n panelTitle: string;\n unread: string;\n all: string;\n markAllAsRead: string;\n viewAll: string;\n emptyTitle: string;\n emptyDescription: string;\n pageTitle: string;\n pageDescriptionNone: string;\n pageDescriptionUnread: string;\n pageDescriptionAllRead: string;\n refresh: string;\n pin: string;\n unpin: string;\n delete: string;\n archive: string;\n markAsRead: string;\n selectItems: string;\n clearFilters: string;\n liveUpdatesOffline: string;\n pendingSync: string;\n}\n\nexport interface AXPInAppInboxConfig {\n headerIconClass: string;\n viewAllRoute: (appName: string) => string[];\n settingsRoute?: (appName: string) => string[];\n}\n\nexport interface AXPInAppInboxChangeEvent {\n type: 'created' | 'seen' | 'read' | 'refresh' | 'deleted' | 'archived' | 'pin';\n item?: AXPInAppInboxItem;\n ids?: string[];\n}\n\n//#endregion\n","//#region ---- In-app inbox configuration tokens ----\n\nimport { InjectionToken } from '@angular/core';\nimport type { AXPInAppInboxConfig, AXPInAppInboxI18nKeys } from './in-app-inbox.types';\n\nexport const AXP_IN_APP_INBOX_CONFIG = new InjectionToken<AXPInAppInboxConfig>('AXP_IN_APP_INBOX_CONFIG');\n\nexport const AXP_IN_APP_INBOX_I18N = new InjectionToken<AXPInAppInboxI18nKeys>('AXP_IN_APP_INBOX_I18N');\n\n//#endregion\n","import { InjectionToken, type Signal } from '@angular/core';\n\n//#region ---- In-app inbox sync status ----\n\nexport interface AXPInAppInboxSyncStatus {\n /** True when Socket.IO live updates are connected. */\n liveUpdatesConnected: Signal<boolean>;\n}\n\nexport const AXP_IN_APP_INBOX_SYNC_STATUS = new InjectionToken<AXPInAppInboxSyncStatus>(\n 'AXP_IN_APP_INBOX_SYNC_STATUS',\n);\n\n//#endregion\n","import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXSafePipe } from '@acorex/core/pipes';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPUserAvatarComponent, AXPUserCardDirective } from '@acorex-platform/framework-client/layout/components';\nimport { ensureRuntimeSurfaceClass } from '@acorex-platform/framework-client/core';\nimport { AXPFileListComponent } from '@acorex-platform/framework-client/layout/entity';\nimport { containsHtmlMarkup, resolveToSurfaceClass, type AXPFileListItem } from '@acorex-platform/framework-shared/core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, output, signal } from '@angular/core';\nimport { AXPCommunicationManagementClient } from '../../../../communication-management-client.port';\nimport type { AXPInAppInboxItem } from '../in-app-inbox.types';\nimport { getInAppInboxPriorityClass, isInAppInboxUnread } from '../in-app-inbox.util';\nimport { isInAppInboxRealUserSender, resolveInAppInboxIconClass } from '../in-app-inbox-icon.util';\n\n//#region ---- Shared in-app inbox row item ----\n\n@Component({\n selector: 'axp-in-app-inbox-item',\n templateUrl: './in-app-inbox-item.component.html',\n styleUrls: ['./in-app-inbox-item.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXDecoratorModule,\n AXPUserAvatarComponent,\n AXPUserCardDirective,\n AXPFileListComponent,\n AXBadgeModule,\n AXFormatModule,\n AXSafePipe,\n AXTranslationModule,\n ],\n})\nexport class AXPInAppInboxItemComponent {\n private readonly communicationClient = inject(AXPCommunicationManagementClient);\n protected readonly downloadFailed = signal(false);\n\n protected readonly attachmentFiles = computed<AXPFileListItem[]>(() => (this.data().attachments ?? []).map(file => ({\n id: file.fileId, name: file.name, size: file.size, meta: { mimeType: file.mimeType },\n status: 'uploaded', source: { kind: 'fileId', value: file.fileId },\n })));\n\n protected readonly downloadAttachment = async (file: AXPFileListItem): Promise<Blob> => {\n this.downloadFailed.set(false);\n try {\n if (!file.id) throw new Error('Attachment file id is required.');\n return await this.communicationClient.downloadAttachment(this.data().id, file.id);\n } catch (error) {\n this.downloadFailed.set(true);\n throw error;\n }\n };\n data = input.required<AXPInAppInboxItem>();\n showAvatar = input(true);\n showDate = input(true);\n showPin = input(false);\n pinLabelKey = input('@general:actions.pin.title');\n unpinLabelKey = input('@general:actions.unpin.title');\n /** When true, unread rows get a subtle background (use on mixed read/unread lists only). */\n highlightUnreadBackground = input(false);\n showDismissUnread = input(true);\n markAsReadLabelKey = input('@communication-management:in-app.actions.mark-as-read');\n\n protected readonly priorityClass = computed(() => getInAppInboxPriorityClass(this.data().priority));\n protected readonly isUnread = computed(() => isInAppInboxUnread(this.data().readAt));\n protected readonly primaryAction = computed(() => this.data().actions?.[0]);\n protected readonly hasDefaultAction = computed(() => !!this.primaryAction()?.command?.name?.trim());\n protected readonly headline = computed(() => {\n const item = this.data();\n if (isInAppInboxRealUserSender(item.sender)) {\n return item.sender!.fullName!.trim();\n }\n return item.title ?? '';\n });\n protected readonly iconSurfaceClass = computed(() => {\n const color = this.data().iconColor;\n return color ? ensureRuntimeSurfaceClass(resolveToSurfaceClass(color) ?? 'secondary-lighter-surface') ?? '' : '';\n });\n protected readonly itemIconClass = computed(() => resolveInAppInboxIconClass(this.data()));\n protected readonly showItemLeading = computed(() => this.showAvatar() && this.data().showAvatar !== false);\n protected readonly showItemIcon = computed(() => this.showItemLeading() && !!this.itemIconClass());\n protected readonly showItemAvatar = computed(() => {\n if (!this.showItemLeading() || this.itemIconClass()) {\n return false;\n }\n return isInAppInboxRealUserSender(this.data().sender);\n });\n protected readonly showDismiss = computed(() => this.isUnread() && this.showDismissUnread());\n protected readonly showMeta = computed(() => this.showDate() || this.showDismiss());\n protected readonly bodyIsHtml = computed(\n () => !this.isI18nKey(this.data().body) && containsHtmlMarkup(this.data().body),\n );\n protected readonly bodyHtml = computed(() => stripInboxHeadingMarkup(this.data().body));\n\n itemPress = output<string>();\n markAsRead = output<string>();\n togglePin = output<string>();\n closePopover = output<void>();\n\n protected isI18nKey(value: string): boolean {\n return value.startsWith('@');\n }\n\n protected onPress(id: string): void {\n if (!this.hasDefaultAction()) {\n return;\n }\n this.itemPress.emit(id);\n this.closePopover.emit();\n }\n\n protected onTogglePin(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.togglePin.emit(this.data().id);\n }\n\n protected onDismissMarkAsRead(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.markAsRead.emit(this.data().id);\n }\n}\n\nfunction stripInboxHeadingMarkup(html: string): string {\n return html\n .replace(/<h[1-6]\\b[^>]*>[\\s\\S]*?<\\/h[1-6]>/gi, '')\n .replace(/(?:<p\\b[^>]*>)?\\s*(?:—|&mdash;|&#8212;)\\s*[^<\\n]+(?:<\\/p>)?\\s*$/i, '')\n .trim();\n}\n\n//#endregion\n","<div\n class=\"axp-in-app-inbox-item\"\n [id]=\"data().id\"\n (click)=\"onPress(data().id)\"\n [class]=\"[\n priorityClass(),\n isUnread() ? 'unread' : 'read',\n isUnread() && highlightUnreadBackground() ? 'unread-highlight' : '',\n bodyIsHtml() ? 'axp-in-app-inbox-item--rich' : '',\n ]\"\n>\n @if (showItemIcon()) {\n <!-- ----- Priority icon when the item has no real sender avatar ----- -->\n <div class=\"axp-in-app-inbox-item__icon\" [class]=\"iconSurfaceClass() || priorityClass()\">\n <i [class]=\"itemIconClass()\" aria-hidden=\"true\"></i>\n </div>\n } @else if (showItemAvatar()) {\n <!-- ----- Sender avatar for conversation-style inbox rows ----- -->\n <div class=\"axp-in-app-inbox-item__avatar\">\n <axp-user-avatar\n [size]=\"48\"\n [userId]=\"data().sender!.id\"\n [axpUserCard]=\"data().sender!.id\"\n ></axp-user-avatar>\n @if (isUnread()) {\n <!-- ----- Unread status dot on the avatar ----- -->\n <div class=\"axp-in-app-inbox-item__unread-badge\"></div>\n }\n </div>\n }\n\n <div class=\"axp-in-app-inbox-item__content\">\n <div class=\"axp-in-app-inbox-item__headline\">\n <div class=\"axp-in-app-inbox-item__title\" [class.--unread]=\"isUnread()\">\n @if (isI18nKey(headline())) {\n <!-- ----- Localized headline ----- -->\n {{ headline() | translate | async }}\n } @else {\n <!-- ----- Plain-text sender name or title ----- -->\n {{ headline() }}\n }\n </div>\n @if (showPin()) {\n @if (data().isPinned) {\n <!-- ----- Pinned state next to the title ----- -->\n <button\n type=\"button\"\n class=\"axp-in-app-inbox-item__pin\"\n [attr.aria-label]=\"unpinLabelKey() | translate | async\"\n (click)=\"onTogglePin($event)\"\n >\n <ax-icon><i class=\"fa-solid fa-thumbtack\"></i></ax-icon>\n </button>\n } @else {\n <!-- ----- Unpinned control shown on hover ----- -->\n <button\n type=\"button\"\n class=\"axp-in-app-inbox-item__pin axp-in-app-inbox-item__pin--muted\"\n [attr.aria-label]=\"pinLabelKey() | translate | async\"\n (click)=\"onTogglePin($event)\"\n >\n <ax-icon><i class=\"fa-regular fa-thumbtack\"></i></ax-icon>\n </button>\n }\n }\n </div>\n\n @if (data().category) {\n <!-- ----- Optional category under the headline ----- -->\n <div class=\"axp-in-app-inbox-item__subline\">\n <span class=\"axp-in-app-inbox-item__category\">{{ data().category }}</span>\n </div>\n }\n\n <div class=\"axp-in-app-inbox-item__body\" [class.axp-in-app-inbox-item__body--html]=\"bodyIsHtml()\">\n @if (isI18nKey(data().body)) {\n <!-- ----- Localized body preview ----- -->\n {{ data().body | translate | async }}\n }\n <!-- ----- Light HTML body (lists, status badges) ----- -->\n @else if (bodyIsHtml()) {\n <div [innerHTML]=\"bodyHtml() | safe: 'html'\"></div>\n }\n <!-- ----- Plain-text body preview ----- -->\n @else {\n {{ data().body }}\n }\n </div>\n @if (data().attachments?.length) {\n <div class=\"axp-in-app-inbox-item__attachments\">\n <axp-file-list\n [files]=\"attachmentFiles()\"\n [readonly]=\"true\"\n [mini]=\"true\"\n [downloadFile]=\"downloadAttachment\"\n />\n @if (downloadFailed()) { <span role=\"alert\">{{ '@communication-management:in-app.errors.download-failed' | translate | async }}</span> }\n </div>\n }\n </div>\n\n @if (showMeta()) {\n <!-- ----- Time at top-end; close replaces it on hover ----- -->\n <div class=\"axp-in-app-inbox-item__meta\" [class.--has-dismiss]=\"showDismiss()\">\n @if (showDate()) {\n <span class=\"axp-in-app-inbox-item__time\">{{ data().createdAt | format: 'timeleft' | async }}</span>\n }\n @if (showDismiss()) {\n <button\n type=\"button\"\n class=\"axp-in-app-inbox-item__dismiss\"\n [attr.aria-label]=\"markAsReadLabelKey() | translate | async\"\n (click)=\"onDismissMarkAsRead($event)\"\n >\n <ax-icon><i class=\"fa-light fa-xmark\" aria-hidden=\"true\"></i></ax-icon>\n </button>\n }\n </div>\n }\n\n @if (showDate() || hasDefaultAction()) {\n <!-- ----- Chevron always vertically centered in the row ----- -->\n <div class=\"axp-in-app-inbox-item__actions\">\n @if (showDate()) {\n <span class=\"axp-in-app-inbox-item__time-sizer\" aria-hidden=\"true\">\n {{ data().createdAt | format: 'timeleft' | async }}\n </span>\n }\n @if (hasDefaultAction()) {\n <div class=\"axp-in-app-inbox-item__chevron\" aria-hidden=\"true\">\n <ax-icon><i class=\"fa-light fa-chevron-right axp-in-app-inbox-item__chevron-icon\"></i></ax-icon>\n </div>\n }\n </div>\n }\n</div>\n","//#region ----- Imports -----\n\nimport { inject, Injectable } from '@angular/core';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { IN_APP_REPORT_GENERATION_DEFINITION_KEY } from './in-app-inbox-icon.util';\nimport { AXPInAppInboxConnectorService } from './in-app-inbox.connector.service';\nimport type { AXPInAppInboxItem } from './in-app-inbox.types';\n\n//#endregion\n\n//#region ----- Inbox action -----\n\n@Injectable({ providedIn: 'root' })\nexport class AXPInAppInboxActionService {\n private readonly connector = inject(AXPInAppInboxConnectorService);\n private readonly commands = inject(AXPCommandService);\n\n async openItem(id: string): Promise<void> {\n const item = this.findItem(id);\n if (this.shouldDeleteOnOpen(item)) {\n await this.connector.deleteOne(id);\n } else {\n await this.connector.markAsRead([id]);\n }\n const action = item?.actions?.[0];\n if (!action?.command?.name) {\n return;\n }\n await this.commands.execute(action.command.name, action.command.options ?? {});\n }\n\n private shouldDeleteOnOpen(item: AXPInAppInboxItem | undefined): boolean {\n return item?.definitionKey === IN_APP_REPORT_GENERATION_DEFINITION_KEY;\n }\n\n private findItem(id: string): AXPInAppInboxItem | undefined {\n return (\n this.connector.inboxList().find((item) => item.id === id) ??\n this.connector.pagedInboxList().find((item) => item.id === id)\n );\n }\n}\n\n//#endregion\n","import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n OnInit,\n output,\n signal,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { AXPInAppInboxActionService } from '../in-app-inbox-action.service';\nimport { AXPInAppInboxConnectorService } from '../in-app-inbox.connector.service';\nimport { AXP_IN_APP_INBOX_CONFIG, AXP_IN_APP_INBOX_I18N } from '../in-app-inbox.tokens';\nimport type { AXPInAppInboxItem, AXPInAppInboxTabKey } from '../in-app-inbox.types';\nimport { isInAppInboxUnread } from '../in-app-inbox.util';\nimport { AXPInAppInboxItemComponent } from './in-app-inbox-item.component';\n\n//#region ---- Shared in-app inbox tray panel ----\n\ninterface InboxTabData {\n key: AXPInAppInboxTabKey;\n labelKey: string;\n count: number;\n}\n\n@Component({\n selector: 'axp-in-app-inbox-panel',\n templateUrl: './in-app-inbox-panel.component.html',\n styleUrls: ['./in-app-inbox-panel.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXButtonModule,\n AXTabsModule,\n AXDecoratorModule,\n AXBadgeModule,\n AXTranslationModule,\n AXPStateMessageComponent,\n AXPInAppInboxItemComponent,\n ],\n})\nexport class AXPInAppInboxPanelComponent implements OnInit {\n unreadCountChange = output<number>();\n closePopover = output<void>();\n\n private readonly connector = inject(AXPInAppInboxConnectorService);\n private readonly inboxActions = inject(AXPInAppInboxActionService);\n private readonly toastService = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n private readonly router = inject(Router);\n private readonly sessionService = inject(AXPSessionService);\n protected readonly i18n = inject(AXP_IN_APP_INBOX_I18N);\n protected readonly config = inject(AXP_IN_APP_INBOX_CONFIG);\n\n protected readonly items = this.connector.inboxList;\n protected readonly isLoading = this.connector.loading;\n protected activeTab = signal<AXPInAppInboxTabKey>('Unread');\n\n protected readonly tabItems = computed(() => this.buildTabItems(this.items()));\n protected readonly showPin = computed(() => this.connector.capabilities.pinSupport);\n\n constructor() {\n effect(() => {\n const unread = this.tabItems().find((tab) => tab.key === 'Unread')?.count ?? 0;\n this.unreadCountChange.emit(unread);\n });\n }\n\n async ngOnInit(): Promise<void> {\n try {\n await this.connector.ensureReady();\n await this.connector.markUnseenAsSeen();\n } catch (error) {\n const content =\n typeof error === 'string'\n ? error\n : await this.translation.translateAsync(\n '@communication-management:in-app.errors.load-failed',\n );\n this.toastService.show({\n content,\n color: 'danger',\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n }\n }\n\n protected changeActiveTab(tab: AXPInAppInboxTabKey): void {\n this.activeTab.set(tab);\n }\n\n protected getItems(tab: AXPInAppInboxTabKey): AXPInAppInboxItem[] {\n const list = this.items();\n if (tab === 'All') {\n return list;\n }\n if (tab === 'Unread') {\n return list.filter((item) => isInAppInboxUnread(item.readAt));\n }\n return list.filter((item) => item.category === tab);\n }\n\n protected async openInboxItem(id: string): Promise<void> {\n await this.inboxActions.openItem(id);\n }\n\n protected async dismissUnread(id: string): Promise<void> {\n await this.connector.markAsRead([id]);\n }\n\n protected async togglePin(id: string): Promise<void> {\n await this.connector.togglePin(id);\n }\n\n protected async markAllAsRead(): Promise<void> {\n await this.connector.markAllAsRead();\n }\n\n protected viewAll(): void {\n this.closePopover.emit();\n const app = this.sessionService.application?.name ?? 'demo';\n void this.router.navigate(this.config.viewAllRoute(app));\n }\n\n protected openSettings(): void {\n if (!this.config.settingsRoute) {\n return;\n }\n this.closePopover.emit();\n const app = this.sessionService.application?.name ?? 'demo';\n void this.router.navigate(this.config.settingsRoute(app));\n }\n\n private buildTabItems(items: AXPInAppInboxItem[]): InboxTabData[] {\n const unreadTotal = items.filter((item) => isInAppInboxUnread(item.readAt)).length;\n return [\n { key: 'Unread', labelKey: this.i18n.unread, count: unreadTotal },\n { key: 'All', labelKey: this.i18n.all, count: unreadTotal },\n ];\n }\n}\n\n//#endregion\n","<div class=\"axp-in-app-inbox-panel__header\">\n <span class=\"axp-in-app-inbox-panel__title\">\n {{ i18n.panelTitle | translate | async }}\n </span>\n @if (config.settingsRoute) {\n <ax-button color=\"default\" look=\"blank\" (onClick)=\"openSettings()\">\n <ax-icon><i class=\"fa-regular fa-gear fa-lg\"></i></ax-icon>\n </ax-button>\n }\n</div>\n<ax-tabs [content]=\"tabContent\" look=\"with-line\" location=\"bottom\">\n @for (tab of tabItems(); track tab.key) {\n <ax-tab-item\n [text]=\"(tab.labelKey | translate | async) ?? ''\"\n [active]=\"activeTab() === tab.key\"\n (activeChange)=\"changeActiveTab(tab.key)\"\n >\n <ax-suffix>\n @if (tab.count && tab.key === 'Unread') {\n <ax-badge [color]=\"activeTab() === tab.key ? 'primary' : 'ghost'\" [text]=\"tab.count.toString()\"></ax-badge>\n }\n </ax-suffix>\n <ax-content>\n <div class=\"axp-in-app-inbox-panel__list\">\n @if (isLoading()) {\n <div class=\"axp-in-app-inbox-panel__loading\">\n @for (_ of [1, 2, 3]; track $index) {\n <div class=\"axp-in-app-inbox-panel__skeleton\">\n <div class=\"axp-in-app-inbox-panel__skeleton-avatar\"></div>\n <div class=\"axp-in-app-inbox-panel__skeleton-lines\">\n <div class=\"axp-in-app-inbox-panel__skeleton-line --wide\"></div>\n <div class=\"axp-in-app-inbox-panel__skeleton-line\"></div>\n </div>\n </div>\n }\n </div>\n } @else if (getItems(tab.key).length === 0) {\n <axp-state-message\n icon=\"fa-regular fa-bell-slash\"\n [title]=\"i18n.emptyTitle\"\n [description]=\"i18n.emptyDescription\"\n />\n } @else {\n @for (item of getItems(tab.key); track item.id) {\n <axp-in-app-inbox-item\n [data]=\"item\"\n [highlightUnreadBackground]=\"tab.key === 'All'\"\n [showPin]=\"showPin()\"\n [pinLabelKey]=\"i18n.pin\"\n [unpinLabelKey]=\"i18n.unpin\"\n [markAsReadLabelKey]=\"i18n.markAsRead\"\n (itemPress)=\"openInboxItem($event)\"\n (markAsRead)=\"dismissUnread($event)\"\n (togglePin)=\"togglePin($event)\"\n (closePopover)=\"closePopover.emit()\"\n />\n }\n }\n </div>\n <div class=\"axp-in-app-inbox-panel__footer\">\n <ax-button\n class=\"ax-sm\"\n [disabled]=\"(tabItems()[0]?.count ?? 0) === 0\"\n look=\"outline\"\n color=\"default\"\n [text]=\"(i18n.markAllAsRead | translate | async) ?? ''\"\n (onClick)=\"markAllAsRead()\"\n />\n <ax-button\n class=\"ax-sm\"\n look=\"outline\"\n color=\"primary\"\n [text]=\"(i18n.viewAll | translate | async) ?? ''\"\n (onClick)=\"viewAll()\"\n />\n </div>\n </ax-content>\n </ax-tab-item>\n }\n</ax-tabs>\n\n<ng-template [axTabContent] #tabContent=\"axTabContent\"></ng-template>\n","import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverComponent, AXPopoverModule } from '@acorex/components/popover';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXPInAppInboxConnectorService } from '../in-app-inbox.connector.service';\nimport { AXPLayoutThemeService } from '@acorex-platform/framework-client/themes/shared';\nimport { AXP_IN_APP_INBOX_CONFIG, AXP_IN_APP_INBOX_I18N } from '../in-app-inbox.tokens';\nimport { AXP_IN_APP_INBOX_SYNC_STATUS } from '../in-app-inbox-sync-status.token';\nimport { AXPInAppInboxPanelComponent } from './in-app-inbox-panel.component';\n\n//#region ---- Shared in-app inbox header slot ----\n\n@Component({\n selector: 'axp-in-app-inbox-slot',\n templateUrl: './in-app-inbox-slot.component.html',\n styleUrls: ['./in-app-inbox-slot.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [\n AsyncPipe,\n AXButtonModule,\n AXDecoratorModule,\n AXBadgeModule,\n AXPopoverModule,\n AXTranslationModule,\n AXPInAppInboxPanelComponent,\n ],\n})\nexport class AXPInAppInboxSlotComponent {\n protected readonly config = inject(AXP_IN_APP_INBOX_CONFIG);\n protected readonly i18n = inject(AXP_IN_APP_INBOX_I18N);\n protected readonly themeStore = inject(AXPLayoutThemeService);\n private readonly connector = inject(AXPInAppInboxConnectorService);\n private readonly syncStatus = inject(AXP_IN_APP_INBOX_SYNC_STATUS, { optional: true });\n\n protected liveUpdatesOffline = computed(\n () => this.syncStatus != null && !this.syncStatus.liveUpdatesConnected(),\n );\n\n protected pendingSync = computed(() => this.connector.pendingChanges());\n\n protected statusTitleKey = computed(() => {\n if (this.pendingSync()) {\n return this.i18n.pendingSync;\n }\n if (this.liveUpdatesOffline()) {\n return this.i18n.liveUpdatesOffline;\n }\n return '';\n });\n\n protected badgeDisplay = computed(() => {\n const total = this.connector.unreadCount();\n if (total <= 0) {\n return '';\n }\n return total > 50 ? '50+' : total.toString();\n });\n\n private popover = viewChild(AXPopoverComponent);\n\n protected closePopover(): void {\n this.popover()?.close();\n }\n}\n\n//#endregion\n","<ax-button\n [iconOnly]=\"true\"\n class=\"relative axp-in-app-inbox-slot__button\"\n [color]=\"themeStore.headerButtonColor()\"\n [look]=\"themeStore.headerButtonLook()\"\n #inboxTrigger\n [title]=\"statusTitleKey() ? ((statusTitleKey() | translate | async) ?? '') : ''\"\n>\n <ax-icon>\n <i [class]=\"config.headerIconClass\"></i>\n </ax-icon>\n</ax-button>\n\n<div\n class=\"axp-in-app-inbox-slot__badge\"\n [class.--xs]=\"badgeDisplay().length > 2\"\n>\n @if (badgeDisplay()) {\n <ax-badge color=\"danger\" [text]=\"badgeDisplay()\"></ax-badge>\n }\n</div>\n<ax-popover\n [target]=\"inboxTrigger\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n [adaptivityEnabled]=\"true\"\n>\n <div class=\"bg-lightest rounded-md w-full\">\n <axp-in-app-inbox-panel (closePopover)=\"closePopover()\" />\n </div>\n</ax-popover>\n","import {\n AXPSettingDefinitionProvider,\n AXPSettingDefinitionProviderContext,\n} from '@acorex-platform/framework-client/common';\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION,\n AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP,\n AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS,\n AXPCommunicationManagementSettingKeys,\n RootConfig,\n} from '@acorex-platform/module-communication-management-client/contracts';\n\nconst I18N = '@communication-management:settings.user-notifications';\n\n//#region ---- User notification preferences settings ----\n\nexport class AXMCommunicationUserNotificationsSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n context\n .addGroup(\n AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP,\n `${I18N}.nav-title`,\n `${I18N}.description`,\n RootConfig.module.icon,\n `${I18N}.title`,\n 88,\n )\n .addSection(\n AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION,\n `${I18N}.delivery-channels.title`,\n `${I18N}.delivery-channels.description`,\n )\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.UserChannelInAppEnabled,\n title: `${I18N}.delivery-channels.in-app.title`,\n scope: 'U',\n overridableAt: [],\n isInherited: true,\n defaultValue:\n AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS[\n AXPCommunicationManagementSettingKeys.UserChannelInAppEnabled\n ],\n widget: { type: AXPWidgetsList.Editors.ToggleSwitch },\n description: `${I18N}.delivery-channels.in-app.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.UserChannelEmailEnabled,\n title: `${I18N}.delivery-channels.email.title`,\n scope: 'U',\n overridableAt: [],\n isInherited: true,\n defaultValue:\n AXP_COMMUNICATION_USER_NOTIFICATION_DEFAULTS[\n AXPCommunicationManagementSettingKeys.UserChannelEmailEnabled\n ],\n widget: { type: AXPWidgetsList.Editors.ToggleSwitch },\n description: `${I18N}.delivery-channels.email.description`,\n })\n .endSection()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\n\nimport {\n AXMCommunicationManagementMenuKeys,\n RootConfig,\n AXPCollaborationPermissionKeys,\n} from '@acorex-platform/module-communication-management-client/contracts';\n\nexport class AXMCommunicationManagementMenuProvider implements AXPMenuProvider {\n private readonly entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module.name;\n\n const monitoringMenu = context.find(AXPCommonMenuKeys.Monitoring);\n if (!monitoringMenu.exists) {\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXPCommonMenuKeys.Monitoring,\n priority: 12,\n text: '@general:menus.monitoring.title',\n icon: 'fa-light fa-chart-line',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n context.find(AXPCommonMenuKeys.Monitoring).addItems([\n {\n name: AXMCommunicationManagementMenuKeys.Communications,\n text: RootConfig.entities.communication.titlePlural,\n path: this.entityService.createPath(module, RootConfig.entities.communication.name),\n icon: RootConfig.entities.communication.icon,\n priority: 1,\n policy: {\n features: [module],\n permissions: [AXPCollaborationPermissionKeys.MaintainCommunications],\n },\n },\n ]);\n\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXMCommunicationManagementMenuKeys.EntityChangeNotifyPolicies,\n text: RootConfig.entities.entityChangeNotifyPolicy.titlePlural,\n path: this.entityService.createPath(module, RootConfig.entities.entityChangeNotifyPolicy.name),\n icon: RootConfig.entities.entityChangeNotifyPolicy.icon,\n priority: 42,\n policy: {\n features: [module],\n permissions: [AXPCollaborationPermissionKeys.MaintainCommunications],\n },\n },\n ]);\n }\n}\n","//#region ----- Imports -----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPCollaborationPermissionKeys\n} from '@acorex-platform/module-communication-management-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ----- Permission Definition Provider -----\n\n/**\n * Registers communication capabilities into the shared Collaboration group.\n */\n@Injectable()\nexport class AXMCommunicationManagementPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPCollaborationPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:collaboration.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.Collaboration.Root, `${G}.collaboration.title`, `${G}.collaboration.description`, { order: 80 });\n\n context\n .addGroup(\n groups.Collaboration.Communications,\n `${G}.collaboration-communications.title`,\n `${G}.collaboration-communications.description`,\n { parent: groups.Collaboration.Root, order: 30 },\n )\n .addPermission(\n keys.MaintainCommunications,\n `${P}.maintain-communications.title`,\n `${P}.maintain-communications.description`,\n )\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXPSearchCommandProvider, AXPSearchResult } from '@acorex-platform/framework-client/common';\n\nexport class AXMCommunicationManagementSearchCommandProvider extends AXPSearchCommandProvider {\n commands: AXPSearchResult[] = [];\n}\n","import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPCommunicationManagementSettingKeys,\n AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS,\n AXMCommunicationManagementCommandKeys,\n RootConfig,\n} from '@acorex-platform/module-communication-management-client/contracts';\nimport {\n AXP_PLATFORM_DEV_TOOLS_COMMUNICATION_DEBUG_REDIRECT_SECTION,\n AXP_PLATFORM_DEV_TOOLS_SETTINGS_GROUP,\n} from '@acorex-platform/module-platform-dev-tools-client/contracts';\n\nconst I18N = '@communication-management:settings.communication';\nconst DEV_TOOLS_I18N = '@platform-dev-tools:settings.communication-debug-redirect';\n\n/** SMTP is server-owned config — never persist to client IndexedDB. */\nconst SMTP_CLIENT_CACHE = {\n cacheable: false as const,\n};\n\nexport class AXMCommunicationManagementSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n context\n .addGroup(\n 'communication',\n `${I18N}.nav-title`,\n `${I18N}.description`,\n RootConfig.module.icon,\n `${I18N}.title`,\n 96,\n )\n .addSection('smtp-settings', `${I18N}.smtp.title`, `${I18N}.smtp.description`)\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailServer,\n title: `${I18N}.smtp.server.title`,\n scope: 'P',\n overridableAt: ['T'],\n // Platform-owned SMTP baseline (same pattern as System Insight / Auth).\n // Tenants may still override via overridableAt; runtime inherits parent when unset.\n isInherited: false,\n ...SMTP_CLIENT_CACHE,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailServer],\n widget: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n description: `${I18N}.smtp.server.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailPort,\n title: `${I18N}.smtp.port.title`,\n scope: 'P',\n overridableAt: ['T'],\n isInherited: false,\n ...SMTP_CLIENT_CACHE,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailPort],\n widget: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 1,\n maxValue: 65535,\n },\n },\n description: `${I18N}.smtp.port.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailUsername,\n title: `${I18N}.smtp.username.title`,\n scope: 'P',\n overridableAt: ['T'],\n isInherited: false,\n ...SMTP_CLIENT_CACHE,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailUsername],\n widget: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n description: `${I18N}.smtp.username.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailPassword,\n title: `${I18N}.smtp.password.title`,\n scope: 'P',\n overridableAt: ['T'],\n isInherited: false,\n // Server DB at-rest encryption; implies cacheable: false.\n isEncrypted: true,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailPassword],\n widget: {\n type: AXPWidgetsList.Editors.PasswordBox,\n },\n description: `${I18N}.smtp.password.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailFromAddress,\n title: `${I18N}.smtp.from-address.title`,\n scope: 'P',\n overridableAt: ['T'],\n isInherited: false,\n ...SMTP_CLIENT_CACHE,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailFromAddress],\n widget: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n description: `${I18N}.smtp.from-address.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailUseSsl,\n title: `${I18N}.smtp.ssl.title`,\n scope: 'P',\n overridableAt: ['T'],\n isInherited: false,\n ...SMTP_CLIENT_CACHE,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailUseSsl],\n widget: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n description: `${I18N}.smtp.ssl.description`,\n })\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.EmailUseTls,\n title: `${I18N}.smtp.tls.title`,\n scope: 'P',\n overridableAt: ['T'],\n isInherited: false,\n ...SMTP_CLIENT_CACHE,\n defaultValue: AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.EmailUseTls],\n widget: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n description: `${I18N}.smtp.tls.description`,\n })\n .addAction({\n title: `${I18N}.smtp.test.action`,\n icon: 'fa-light fa-paper-plane',\n color: 'primary',\n look: 'outline',\n disabledWhenDirty: true,\n requiredSettingKeys: [\n AXPCommunicationManagementSettingKeys.EmailServer,\n AXPCommunicationManagementSettingKeys.EmailPort,\n AXPCommunicationManagementSettingKeys.EmailFromAddress,\n ],\n command: {\n name: AXMCommunicationManagementCommandKeys.TestSmtp,\n },\n })\n .endSection()\n .endGroup();\n\n this.registerDevToolsRedirectSettings(context);\n }\n\n private registerDevToolsRedirectSettings(context: AXPSettingDefinitionProviderContext): void {\n const section = resolveCommunicationDebugRedirectSection(context);\n if (!section) {\n return;\n }\n\n section\n .addSetting({\n key: AXPCommunicationManagementSettingKeys.DebugRedirectEmailAddress,\n title: `${DEV_TOOLS_I18N}.email.title`,\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue:\n AXP_COMMUNICATION_SMTP_SETTING_DEFAULTS[AXPCommunicationManagementSettingKeys.DebugRedirectEmailAddress],\n widget: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n description: `${DEV_TOOLS_I18N}.email.description`,\n })\n .endSection();\n }\n}\n\nfunction resolveCommunicationDebugRedirectSection(context: AXPSettingDefinitionProviderContext) {\n const devTools = context.group(AXP_PLATFORM_DEV_TOOLS_SETTINGS_GROUP);\n if (!devTools) {\n return null;\n }\n\n const hasSection = context\n .getGroup(AXP_PLATFORM_DEV_TOOLS_SETTINGS_GROUP)\n ?.sections.some((section) => section.name === AXP_PLATFORM_DEV_TOOLS_COMMUNICATION_DEBUG_REDIRECT_SECTION);\n\n if (hasSection) {\n return devTools.section(AXP_PLATFORM_DEV_TOOLS_COMMUNICATION_DEBUG_REDIRECT_SECTION);\n }\n\n return devTools.addSection(\n AXP_PLATFORM_DEV_TOOLS_COMMUNICATION_DEBUG_REDIRECT_SECTION,\n `${DEV_TOOLS_I18N}.title`,\n `${DEV_TOOLS_I18N}.description`,\n );\n}\n","import { Injectable } from '@angular/core';\nimport {\n AXPCommunicationManagementSettingKeys,\n RootConfig,\n} from '@acorex-platform/module-communication-management-client/contracts';\nimport { AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER } from '@acorex-platform/module-content-management-client';\nimport type {\n AXMTextTemplateChannelDefinition,\n AXMTextTemplateChannelDefinitionProvider,\n} from '@acorex-platform/module-content-management-client/contracts';\n\nconst I18N = `@${RootConfig.config.i18n}:templates.channels`;\n\n//#region ---- Built-in text template channels ----\n\n@Injectable()\nexport class AXMCommunicationTextTemplateChannelDefinitionProvider\n implements AXMTextTemplateChannelDefinitionProvider\n{\n getChannels(): AXMTextTemplateChannelDefinition[] {\n return [\n {\n name: 'email',\n communicationChannelKey: 'email-smtp',\n title: `${I18N}.email`,\n type: 'rich',\n hasSubject: true,\n requiredSettingKeys: [\n AXPCommunicationManagementSettingKeys.EmailServer,\n AXPCommunicationManagementSettingKeys.EmailPort,\n AXPCommunicationManagementSettingKeys.EmailFromAddress,\n ],\n notConfiguredMessageKey: `${I18N}.not-configured.email`,\n configureSettings: {\n group: 'communication',\n section: 'smtp-settings',\n scope: 'T',\n },\n },\n {\n name: 'in-app',\n communicationChannelKey: 'in-app',\n title: `${I18N}.in-app`,\n type: 'plain',\n hasSubject: true,\n },\n ];\n }\n}\n\n//#endregion\n\nexport const communicationTextTemplateChannelProvider = {\n provide: AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER,\n useClass: AXMCommunicationTextTemplateChannelDefinitionProvider,\n multi: true,\n};\n","//#region ---- Imports ----\n\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport {\n AXPInAppInboxConnectorService,\n AXP_IN_APP_INBOX_I18N,\n isInAppInboxUnread,\n AXPInAppInboxItemComponent,\n} from '../../../in-app/inbox';\nimport { AXPInAppInboxActionService } from '../../../in-app/inbox/in-app-inbox-action.service';\nimport { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n computed,\n inject,\n OnInit,\n} from '@angular/core';\n\n//#endregion\n\n//#region ---- Component ----\n\n@Component({\n templateUrl: './communication-in-app-inbox-widget.component.html',\n styleUrls: ['./communication-in-app-inbox-widget.component.css'],\n standalone: true,\n imports: [\n CommonModule,\n AXTranslationModule,\n AXPInAppInboxItemComponent,\n AXPStateMessageComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPCommunicationInAppInboxWidgetViewComponent extends AXPValueWidgetComponent<unknown> implements OnInit {\n //#region ----- Services & Dependencies -----\n\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly connector = inject(AXPInAppInboxConnectorService);\n private readonly inboxActions = inject(AXPInAppInboxActionService);\n protected readonly i18n = inject(AXP_IN_APP_INBOX_I18N);\n\n //#endregion\n\n //#region ----- Computed Properties -----\n\n protected readonly maxItems = computed(() => this.options()?.['maxItems'] ?? 10);\n protected readonly showAvatar = computed(() => this.options()?.['showAvatar'] ?? true);\n protected readonly showDate = computed(() => this.options()?.['showDate'] ?? true);\n\n protected readonly inboxItems = computed(() => {\n const items = this.connector.inboxList();\n if (!items?.length) {\n return [];\n }\n\n return items.filter((item) => isInAppInboxUnread(item.readAt)).slice(0, this.maxItems());\n });\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n override ngOnInit(): void {\n super.ngOnInit();\n void this.connector.ensureReady().then(() => this.cdr.detectChanges());\n }\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected async onItemPress(id: string): Promise<void> {\n await this.inboxActions.openItem(id);\n this.cdr.detectChanges();\n }\n\n protected async onDismissUnread(id: string): Promise<void> {\n await this.connector.markAsRead([id]);\n this.cdr.detectChanges();\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"inbox-widget size-full flex flex-col min-h-0\">\n <div class=\"inbox-widget__scroll overflow-auto flex-1 min-h-0 flex flex-col\">\n @for (item of inboxItems(); track item.id) {\n <axp-in-app-inbox-item\n class=\"inbox-widget-row\"\n [data]=\"item\"\n [showAvatar]=\"showAvatar()\"\n [showDate]=\"showDate()\"\n [markAsReadLabelKey]=\"i18n.markAsRead\"\n (itemPress)=\"onItemPress($event)\"\n (markAsRead)=\"onDismissUnread($event)\"\n />\n } @empty {\n <axp-state-message\n look=\"widget\"\n icon=\"fa-light fa-inbox\"\n [title]=\"i18n.emptyTitle\"\n [description]=\"i18n.emptyDescription\"\n />\n }\n </div>\n</div>\n","//#region ----- Imports -----\n\nimport { defineDashboardWidgetDimensions } from '@acorex-platform/module-dashboard-management-client';\n\n//#endregion\n\n//#region ----- Communication dashboard presets -----\n\nconst IN_APP_INBOX_SIZES = [\n [4, 4],\n [3, 4],\n [5, 4],\n] as const;\n\n/** Unread in-app inbox dashboard tile. */\nexport const AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS = defineDashboardWidgetDimensions({\n sm: [[1, 6], [1, 5]],\n md: IN_APP_INBOX_SIZES,\n lg: IN_APP_INBOX_SIZES,\n});\n\n//#endregion\n","import { AXPWidgetConfig, AXPWidgetGroupEnum, cloneProperty } from '@acorex-platform/framework-shared/widget-core';\nimport { AXP_WIDGETS_UTILITY_CATEGORY } from '@acorex-platform/module-dashboard-management-client';\nimport { AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS } from '../../communication-dashboard-widget.dimensions';\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXP_APPEARANCE_PROPERTY_GROUP,\n AXP_DATA_PATH_PROPERTY,\n AXP_STYLING_PROPERTY_GROUP,\n} from '@acorex-platform/framework-client/layout/widgets';\nimport { RootConfig } from '@acorex-platform/module-communication-management-client/contracts';\n\n//#region ---- My in-app inbox dashboard widget config ----\n\nexport const AXPMyInAppInboxDashboardWidget: AXPWidgetConfig = {\n name: RootConfig.widgets.myInAppInboxDashboard,\n title: '@communication-management:widgets.my-in-app-inbox-dashboard.widget-title',\n categories: [AXP_WIDGETS_UTILITY_CATEGORY],\n groups: [AXPWidgetGroupEnum.DashboardWidget],\n type: 'dashboard',\n description: '@communication-management:widgets.my-in-app-inbox-dashboard.widget-description',\n icon: 'fa-regular fa-inbox',\n properties: [\n cloneProperty(AXP_DATA_PATH_PROPERTY, { visible: false }),\n {\n name: 'maxItems',\n title: '@communication-management:widgets.my-in-app-inbox-dashboard.max-items',\n description: 'Maximum number of unread inbox items to display',\n group: AXP_STYLING_PROPERTY_GROUP,\n schema: {\n defaultValue: 10,\n dataType: 'number',\n interface: {\n name: 'maxItems',\n path: 'options.maxItems',\n type: AXPWidgetsCatalog.number,\n options: {\n minValue: 1,\n maxValue: 100,\n },\n },\n },\n visible: true,\n },\n {\n name: 'showAvatar',\n title: '@communication-management:widgets.my-in-app-inbox-dashboard.show-avatar',\n description: 'Whether to show avatars in inbox items',\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n schema: {\n defaultValue: true,\n dataType: 'boolean',\n interface: {\n name: 'showAvatar',\n path: 'options.showAvatar',\n type: AXPWidgetsCatalog.toggle,\n },\n },\n visible: true,\n },\n {\n name: 'showDate',\n title: '@communication-management:widgets.my-in-app-inbox-dashboard.show-date',\n description: 'Whether to show date in inbox items',\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n schema: {\n defaultValue: true,\n dataType: 'boolean',\n interface: {\n name: 'showDate',\n path: 'options.showDate',\n type: AXPWidgetsCatalog.toggle,\n },\n },\n visible: true,\n },\n ],\n components: {\n view: {\n component: () =>\n import('./communication-in-app-inbox-widget.component').then(\n (c) => c.AXPCommunicationInAppInboxWidgetViewComponent,\n ),\n },\n },\n meta: {\n dimensions: AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS,\n },\n toString: `value == null || value === '' ? '' : display(value)`,\n};\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetDefinitionProvider } from '@acorex-platform/framework-client/layout/widget-core';\nimport { Injectable } from '@angular/core';\nimport { AXPMyInAppInboxDashboardWidget } from './features/dashboard/widgets/my-in-app-inbox';\n\n//#endregion\n\n//#region ---- Communication Management Widgets Provider ----\n\n@Injectable()\nexport class AXMCommunicationManagementWidgetsProvider implements AXPWidgetDefinitionProvider {\n getWidgets() {\n return [AXPMyInAppInboxDashboardWidget];\n }\n}\n\n//#endregion\n","import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport {\n AXP_MENU_PROVIDER,\n AXP_PROTECTED_ROUTE_GUARDS,\n AXP_SEARCH_PROVIDER,\n AXP_SETTING_DEFINITION_PROVIDER,\n AXP_STATUS_PROVIDERS,\n} from '@acorex-platform/framework-client/common';\nimport { AXPComponentSlotModule } from '@acorex-platform/framework-client/core';\nimport { AXP_TASK_BADGE_PROVIDERS } from '@acorex-platform/framework-client/layout/components';\nimport { AXPRootLayoutComponent } from '@acorex-platform/framework-client/themes/default';\nimport { provideCommandSetups } from '@acorex-platform/framework-client/runtime';\nimport { NgModule } from '@angular/core';\nimport { ROUTES, Routes } from '@angular/router';\nimport { AXMCommunicationManagementCommandKeys } from '@acorex-platform/module-communication-management-client/contracts';\nimport { AXMCommunicationInboxBadgeProvider } from './badge.provider';\nimport { AXMCommunicationDeliveryStatusProvider } from './features/communication-delivery-status.provider';\nimport { AXMCommunicationStatusProvider } from './features/communication-status.provider';\nimport {\n communicationInAppInboxConfig,\n communicationInAppInboxI18n,\n} from './features/in-app/communication-in-app-inbox.providers';\nimport { AXMCommunicationInAppInboxPort } from './features/in-app/communication-in-app-inbox.port';\nimport { provideCommunicationInAppRealtimeHandlers } from './features/in-app/communication-in-app-realtime.providers';\nimport { provideCommunicationInAppInboxFallbackSync } from './features/in-app/communication-in-app-inbox-fallback.providers';\nimport { AXMCommunicationInAppInboxSyncStatusService } from './features/in-app/communication-in-app-inbox-sync-status.service';\nimport { communicationInAppNotificationServiceProvider } from './features/in-app/communication-in-app-notification.service';\nimport {\n AXPInAppInboxSlotComponent,\n AXP_IN_APP_INBOX_CONFIG,\n AXP_IN_APP_INBOX_I18N,\n AXP_IN_APP_INBOX_PORT,\n AXP_IN_APP_INBOX_SYNC_STATUS,\n} from './features/in-app/inbox';\nimport { AXMCommunicationUserNotificationsSettingProvider } from './features/settings/communication-user-notifications-settings.provider';\n\nimport { AXMCommunicationManagementMenuProvider } from './menu.provider';\nimport { AXMCommunicationManagementPermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMCommunicationManagementSearchCommandProvider } from './search-command.provider';\nimport { AXMCommunicationManagementSettingProvider } from './settings.provider';\nimport { AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/layout/widget-core';\nimport { communicationTextTemplateChannelProvider } from './features/templates/communication-text-template-channel-definition.provider';\nimport { AXMCommunicationManagementWidgetsProvider } from './widget-definition.provider';\n\n/** @deprecated Legacy notification-management command keys — shimmed to communication email commands. */\nconst LEGACY_NOTIFICATION_EMAIL_SHOW_DIALOG_COMMAND_KEY = 'NotificationManagement:Email:ShowDialog' as const;\nconst LEGACY_NOTIFICATION_EMAIL_SEND_COMMAND_KEY = 'NotificationManagement:Email:Send' as const;\n\nfunction routesFactory(): Routes {\n return [\n {\n path: ':app/my/notification',\n canActivate: [...AXP_PROTECTED_ROUTE_GUARDS],\n data: { rootLayout: true },\n loadComponent: () => AXPRootLayoutComponent,\n title: 'Notifications',\n children: [\n {\n path: '',\n loadComponent: () =>\n import('./features/in-app/communication-in-app-inbox-page.component').then(\n (m) => m.AXMCommunicationInAppInboxPageComponent,\n ),\n data: { reuse: true },\n },\n ],\n },\n ];\n}\n\n@NgModule({\n imports: [\n AXPComponentSlotModule.forChild({\n 'root-header-end': [\n {\n name: 'communication-inbox',\n component: AXPInAppInboxSlotComponent,\n },\n ],\n }),\n ],\n providers: [\n provideCommandSetups([\n {\n key: AXMCommunicationManagementCommandKeys.Send,\n command: () => import('./commands/communication-send.command').then((m) => m.CommunicationSendCommand),\n },\n {\n key: AXMCommunicationManagementCommandKeys.TestSmtp,\n command: () => import('./commands/communication-test-smtp.command').then((m) => m.CommunicationTestSmtpCommand),\n },\n {\n key: AXMCommunicationManagementCommandKeys.EmailShowDialog,\n command: () =>\n import('./features/email/communication-email-show-dialog.command').then(\n (m) => m.CommunicationManagementEmailShowDialogCommand,\n ),\n },\n {\n key: AXMCommunicationManagementCommandKeys.EmailSend,\n command: () =>\n import('./features/email/communication-email-send.command').then(\n (m) => m.CommunicationManagementEmailSendCommand,\n ),\n },\n {\n key: AXMCommunicationManagementCommandKeys.ShowSentMessage,\n command: () =>\n import('./commands/communication-show-sent-message.command').then(\n (m) => m.CommunicationShowSentMessageCommand,\n ),\n },\n {\n key: LEGACY_NOTIFICATION_EMAIL_SHOW_DIALOG_COMMAND_KEY,\n command: () =>\n import('./features/email/communication-email-show-dialog.command').then(\n (m) => m.CommunicationManagementEmailShowDialogCommand,\n ),\n },\n {\n key: LEGACY_NOTIFICATION_EMAIL_SEND_COMMAND_KEY,\n command: () =>\n import('./features/email/communication-email-send.command').then(\n (m) => m.CommunicationManagementEmailSendCommand,\n ),\n },\n ]),\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMCommunicationManagementPermissionDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMCommunicationManagementMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMCommunicationStatusProvider,\n multi: true,\n },\n {\n provide: AXP_STATUS_PROVIDERS,\n useClass: AXMCommunicationDeliveryStatusProvider,\n multi: true,\n },\n {\n provide: AXP_SEARCH_PROVIDER,\n useClass: AXMCommunicationManagementSearchCommandProvider,\n multi: true,\n },\n {\n provide: AXP_SETTING_DEFINITION_PROVIDER,\n useClass: AXMCommunicationManagementSettingProvider,\n multi: true,\n },\n {\n provide: AXP_SETTING_DEFINITION_PROVIDER,\n useClass: AXMCommunicationUserNotificationsSettingProvider,\n multi: true,\n },\n communicationTextTemplateChannelProvider,\n {\n provide: AXP_WIDGET_DEFINITION_PROVIDER,\n useClass: AXMCommunicationManagementWidgetsProvider,\n multi: true,\n },\n {\n provide: AXP_IN_APP_INBOX_PORT,\n useClass: AXMCommunicationInAppInboxPort,\n },\n {\n provide: AXP_IN_APP_INBOX_CONFIG,\n useValue: communicationInAppInboxConfig,\n },\n {\n provide: AXP_IN_APP_INBOX_I18N,\n useValue: communicationInAppInboxI18n,\n },\n {\n provide: AXP_IN_APP_INBOX_SYNC_STATUS,\n useExisting: AXMCommunicationInAppInboxSyncStatusService,\n },\n communicationInAppNotificationServiceProvider,\n {\n provide: AXP_TASK_BADGE_PROVIDERS,\n useClass: AXMCommunicationInboxBadgeProvider,\n multi: true,\n },\n ...provideCommunicationInAppRealtimeHandlers(),\n ...provideCommunicationInAppInboxFallbackSync(),\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFactory,\n },\n ],\n})\nexport class AXMCommunicationManagementModule {}\n","//#region ----- Imports -----\n\nimport type { AXMCommonDashboardEntityModel } from '@acorex-platform/module-dashboard-management-client/contracts';\nimport { layoutFromDimensions } from '@acorex-platform/module-dashboard-management-client';\n\nimport { AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS } from './communication-dashboard-widget.dimensions';\n\n//#endregion\n\n//#region ----- Types -----\n\ntype DashboardSeedWidget = AXMCommonDashboardEntityModel['widgets'][number];\ntype DashboardSeedGridSize = readonly [width: number, height: number];\n\n//#endregion\n\n//#region ----- Builders -----\n\nexport function buildMyInAppInboxDashboardWidget(\n id: string,\n x: number,\n y: number,\n size: DashboardSeedGridSize = [4, 3],\n): DashboardSeedWidget {\n const { config, meta } = layoutFromDimensions(id, AXP_MY_IN_APP_INBOX_DASHBOARD_DIMENSIONS, { x, y, lg: size });\n\n return {\n config: {\n ...config,\n title: '@communication-management:widgets.my-in-app-inbox-dashboard.widget-title',\n },\n node: {\n type: 'CommunicationManagement:Widget:Dashboard:MyInAppInboxDashboard',\n meta,\n name: `CommunicationManagement:Widget:Dashboard:MyInAppInboxDashboard-${id}`,\n path: `CommunicationManagement:Widget:Dashboard:MyInAppInboxDashboard-${id}`,\n },\n };\n}\n\n//#endregion\n","import type { AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';\nimport {\n AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION,\n AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP,\n} from '@acorex-platform/module-communication-management-client/contracts';\n\n//#region ---- Delivery channels settings section resolver ----\n\nexport function resolveCommunicationDeliveryChannelsSettingsSection(\n context: AXPSettingDefinitionProviderContext,\n) {\n if (!context.hasGroup(AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP)) {\n return null;\n }\n\n const group = context.getGroup(AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP);\n const hasSection = group?.sections.some(\n (section) => section.name === AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION,\n );\n if (!hasSection) {\n return null;\n }\n\n return context.group(AXP_COMMUNICATION_USER_NOTIFICATIONS_SETTINGS_GROUP)?.section(\n AXP_COMMUNICATION_DELIVERY_CHANNELS_SETTINGS_SECTION,\n ) ?? null;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["I18N","IN_APP_REPORT_GENERATION_DEFINITION_KEY","i1","i4","i5","i6","i2","RootConfig","AXMCommunicationManagementCommandKeys"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAMO,MAAM,uCAAuC,GAAG,2BAA2B;AAE3E,MAAM,qCAAqC,GAAG,uBAAuB;AAQtE,SAAU,mCAAmC,CACjD,aAAwC,EAAA;AAExC,IAAA,MAAM,MAAM,GAAG,aAAa,EAAE,IAAI,EAAE;IACpC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe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