@acorex/components 22.1.2 → 22.1.4

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 (18) hide show
  1. package/fesm2022/acorex-components-accordion.mjs +2 -2
  2. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  3. package/fesm2022/acorex-components-audio-wave.mjs +252 -277
  4. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  5. package/fesm2022/{acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs → acorex-components-conversation-acorex-components-conversation-CdAHDQD1.mjs} +447 -133
  6. package/fesm2022/acorex-components-conversation-acorex-components-conversation-CdAHDQD1.mjs.map +1 -0
  7. package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-BKKO_8x6.mjs → acorex-components-conversation-open-composer-picker-for-files-DBWQaSVC.mjs} +2 -2
  8. package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-BKKO_8x6.mjs.map → acorex-components-conversation-open-composer-picker-for-files-DBWQaSVC.mjs.map} +1 -1
  9. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-BNKFb5yO.mjs → acorex-components-conversation-picker-rename-file-dialog.component-swqLQ8g0.mjs} +2 -2
  10. package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-BNKFb5yO.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-swqLQ8g0.mjs.map} +1 -1
  11. package/fesm2022/acorex-components-conversation.mjs +1 -1
  12. package/fesm2022/acorex-components-file-viewer.mjs +84 -4
  13. package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
  14. package/package.json +5 -4
  15. package/types/acorex-components-audio-wave.d.ts +108 -73
  16. package/types/acorex-components-conversation.d.ts +89 -13
  17. package/types/acorex-components-file-viewer.d.ts +22 -3
  18. package/fesm2022/acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { n as notifyPickerValidationErrors } from './acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs';
1
+ import { n as notifyPickerValidationErrors } from './acorex-components-conversation-acorex-components-conversation-CdAHDQD1.mjs';
2
2
 
3
3
  async function openComposerPickerPopup(composerService, action, files) {
4
4
  if (files.length === 0) {
@@ -207,4 +207,4 @@ async function handleConversationFilePaste(event, host, deps) {
207
207
  }
208
208
 
209
209
  export { filesFromClipboardEvent, handleConversationFilePaste, isPasteTargetInChatPanel, openComposerPickerForFiles, resolvePickerActionsForAllFiles };
210
- //# sourceMappingURL=acorex-components-conversation-open-composer-picker-for-files-BKKO_8x6.mjs.map
210
+ //# sourceMappingURL=acorex-components-conversation-open-composer-picker-for-files-DBWQaSVC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-conversation-open-composer-picker-for-files-BKKO_8x6.mjs","sources":["../../../../packages/components/conversation/src/lib/components/message-list/open-composer-picker-popup.ts","../../../../packages/components/conversation/src/lib/components/message-list/open-composer-picker-for-files.ts"],"sourcesContent":["import type { AXConversationComposerService } from '../composer/composer.service';\nimport type { AXConversationComposerAction } from '../../registries/composer-action.registry';\n\nexport async function openComposerPickerPopup(\n composerService: AXConversationComposerService,\n action: AXConversationComposerAction,\n files: File[],\n): Promise<void> {\n if (files.length === 0) {\n return;\n }\n\n await composerService.openActionComponent(action, {}, { initialFiles: files });\n}\n","import type { AXActionSheetService } from '@acorex/components/action-sheet';\nimport type { AXPopupService } from '@acorex/components/popup';\nimport type { AXPlatform } from '@acorex/core/platform';\nimport type { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXFileService } from '@acorex/core/file';\nimport type { AXValidationRuleResult } from '@acorex/core/validation';\nimport type { AXConversationComposerService } from '../composer/composer.service';\nimport type { AXConversation } from '../../models';\nimport type { AXConversationComposerAction, AXConversationComposerActionRegistry } from '../../registries/composer-action.registry';\nimport { notifyPickerValidationErrors } from '../../plugins/composer/components/shared/picker-upload';\nimport type { AXConversationConfig } from '../../tokens/conversation-config.interface';\nimport { openComposerPickerPopup } from './open-composer-picker-popup';\n\nexport interface AXConversationOpenComposerPickerForFilesDeps {\n fileService: AXFileService;\n composerService: AXConversationComposerService;\n composerActionRegistry: AXConversationComposerActionRegistry;\n popupService: AXPopupService;\n actionSheetService: AXActionSheetService;\n platform: AXPlatform;\n toast: AXToastService;\n translation: AXTranslationService;\n conversation: AXConversation | null | undefined;\n config: Pick<Required<AXConversationConfig>, 'maxFilesPerMessage'>;\n}\n\n/** Catalogs registered on picker actions (conversation-image, conversation-file, …). */\nfunction pickerCatalogNames(registry: AXConversationComposerActionRegistry): string[] {\n const names = new Set<string>();\n for (const action of registry.actions()) {\n if ((action.component || action.componentLoader) && action.fileType) {\n names.add(action.fileType);\n }\n }\n return [...names];\n}\n\ninterface AXConversationInboundFilesAnalysis {\n matchingCatalogs: string[];\n actions: AXConversationComposerAction[];\n supportedFiles: File[];\n unsupportedFiles: { file: File; errors: AXValidationRuleResult[] }[];\n}\n\n/** Files that are not accepted by any registered picker catalog. */\nasync function collectUnsupportedInboundFiles(\n deps: Pick<AXConversationOpenComposerPickerForFilesDeps, 'fileService' | 'composerActionRegistry'>,\n files: File[],\n catalogs: string[],\n): Promise<{ file: File; errors: AXValidationRuleResult[] }[]> {\n const unsupported: { file: File; errors: AXValidationRuleResult[] }[] = [];\n\n for (const file of files) {\n let acceptedByAny = false;\n let lastErrors: AXValidationRuleResult[] = [];\n\n for (const catalog of catalogs) {\n const errors = await deps.fileService.validate(file, catalog);\n if (errors.length === 0) {\n acceptedByAny = true;\n break;\n }\n lastErrors = errors;\n }\n\n if (!acceptedByAny) {\n unsupported.push({ file, errors: lastErrors });\n }\n }\n\n return unsupported;\n}\n\nasync function analyzeInboundFiles(\n deps: Pick<\n AXConversationOpenComposerPickerForFilesDeps,\n 'fileService' | 'composerService' | 'composerActionRegistry'\n >,\n files: File[],\n): Promise<AXConversationInboundFilesAnalysis> {\n if (!files.length) {\n return { matchingCatalogs: [], actions: [], supportedFiles: [], unsupportedFiles: [] };\n }\n\n const catalogs = pickerCatalogNames(deps.composerActionRegistry);\n const unsupportedFiles = await collectUnsupportedInboundFiles(deps, files, catalogs);\n const unsupportedSet = new Set(unsupportedFiles.map((entry) => entry.file));\n const supportedFiles = files.filter((file) => !unsupportedSet.has(file));\n\n if (supportedFiles.length === 0) {\n return { matchingCatalogs: [], actions: [], supportedFiles: [], unsupportedFiles };\n }\n\n const context = deps.composerService.actionContext();\n const matchingCatalogs: string[] = [];\n\n for (const catalog of catalogs) {\n const { rejected } = await deps.fileService.validateMany(supportedFiles, catalog);\n if (rejected.length === 0) {\n matchingCatalogs.push(catalog);\n }\n }\n\n const seen = new Set<string>();\n const actions: AXConversationComposerAction[] = [];\n\n for (const catalog of matchingCatalogs) {\n for (const action of deps.composerActionRegistry.findPickerActionsForFileType(catalog, context)) {\n if (!seen.has(action.id)) {\n seen.add(action.id);\n actions.push(action);\n }\n }\n }\n\n return {\n matchingCatalogs,\n actions: actions.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0)),\n supportedFiles,\n unsupportedFiles,\n };\n}\n\nfunction notifyInboundFilesValidationFailures(\n deps: Pick<AXConversationOpenComposerPickerForFilesDeps, 'toast' | 'translation'>,\n analysis: AXConversationInboundFilesAnalysis,\n): void {\n if (analysis.supportedFiles.length === 0) {\n if (analysis.unsupportedFiles.length === 0) {\n deps.toast.warning(deps.translation.translateSync('@acorex:chat.errors.inbound-files-none-supported'));\n }\n return;\n }\n\n if (analysis.actions.length === 0) {\n const key =\n analysis.matchingCatalogs.length === 0\n ? '@acorex:chat.errors.inbound-files-none-supported'\n : '@acorex:chat.errors.inbound-files-no-send-option';\n deps.toast.warning(deps.translation.translateSync(key));\n }\n}\n\n/**\n * File catalogs that accept every supported file in the batch, then matching visible picker actions.\n */\nexport async function resolvePickerActionsForAllFiles(\n deps: Pick<AXConversationOpenComposerPickerForFilesDeps, 'fileService' | 'composerService' | 'composerActionRegistry'>,\n files: File[],\n): Promise<AXConversationComposerAction[]> {\n const analysis = await analyzeInboundFiles(deps, files);\n return analysis.actions;\n}\n\nasync function promptComposerActionChoice(\n deps: AXConversationOpenComposerPickerForFilesDeps,\n actions: AXConversationComposerAction[],\n fileCount: number,\n): Promise<AXConversationComposerAction | undefined> {\n const { AXConversationComposerActionChoiceDialogComponent } = await import('./composer-action-choice-dialog.component');\n const result = await deps.popupService.open(AXConversationComposerActionChoiceDialogComponent, {\n title: deps.translation.translateSync('@acorex:chat.dialog.choose-send-option.title'),\n size: 'sm',\n closeButton: true,\n header: true,\n inputs: {\n actions,\n fileCount,\n composerActionRegistry: deps.composerActionRegistry,\n },\n });\n\n const action = result?.data as AXConversationComposerAction | undefined;\n if (!action?.component && !action?.componentLoader) {\n return undefined;\n }\n return action;\n}\n\n/**\n * Match dropped/pasted files to composer picker action(s) and open the popup.\n * Unsupported files are skipped after a warning toast; supported files continue.\n * @returns true when a picker popup was opened\n */\nexport async function openComposerPickerForFiles(\n deps: AXConversationOpenComposerPickerForFilesDeps,\n files: File[],\n): Promise<boolean> {\n if (!files.length) {\n return false;\n }\n\n const conversation = deps.conversation;\n if (!conversation) {\n return false;\n }\n\n const analysis = await analyzeInboundFiles(deps, files);\n\n if (analysis.unsupportedFiles.length > 0) {\n notifyPickerValidationErrors(deps.toast, deps.translation, analysis.unsupportedFiles);\n }\n\n if (!analysis.supportedFiles.length || !analysis.actions.length) {\n notifyInboundFilesValidationFailures(deps, analysis);\n return false;\n }\n\n let action = analysis.actions[0];\n if (analysis.actions.length > 1) {\n const chosen = await promptComposerActionChoice(deps, analysis.actions, analysis.supportedFiles.length);\n if (!chosen) {\n return false;\n }\n action = chosen;\n }\n\n const catalog = action.fileType;\n if (!catalog) {\n deps.toast.warning(deps.translation.translateSync('@acorex:chat.errors.inbound-files-none-supported'));\n return false;\n }\n\n const { accepted, rejected } = await deps.fileService.validateMany(analysis.supportedFiles, catalog);\n if (rejected.length > 0) {\n notifyPickerValidationErrors(deps.toast, deps.translation, rejected);\n }\n if (accepted.length === 0) {\n return false;\n }\n\n await openComposerPickerPopup(deps.composerService, action, accepted);\n return true;\n}\n\n/** Extract OS-copied files from a paste event (e.g. Ctrl+V after copying a file in Explorer). */\nexport function filesFromClipboardEvent(event: ClipboardEvent): File[] {\n const items = event.clipboardData?.items;\n if (!items?.length) {\n return [];\n }\n\n const files: File[] = [];\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n if (item.kind === 'file') {\n const file = item.getAsFile();\n if (file) {\n files.push(file);\n }\n }\n }\n return files;\n}\n\n/** Whether a paste event target lies in the chat panel (not sidebar). */\nexport function isPasteTargetInChatPanel(host: HTMLElement, target: EventTarget | null): boolean {\n if (!(target instanceof Node) || !host.contains(target)) {\n return false;\n }\n\n const excluded = host.querySelector('.conversation-sidebar-container, .sidebar-container');\n if (excluded?.contains(target)) {\n return false;\n }\n\n const chatMain = host.querySelector('.conversation-main-container, .main-area, .conversation-view');\n if (chatMain) {\n return chatMain.contains(target);\n }\n\n return true;\n}\n\n/** Handle Ctrl+V / paste when the clipboard holds files copied from the OS. */\nexport async function handleConversationFilePaste(\n event: ClipboardEvent,\n host: HTMLElement,\n deps: AXConversationOpenComposerPickerForFilesDeps,\n): Promise<void> {\n if (!isPasteTargetInChatPanel(host, event.target)) {\n return;\n }\n\n const files = filesFromClipboardEvent(event);\n if (!files.length) {\n return;\n }\n\n const handled = await openComposerPickerForFiles(deps, files);\n if (handled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n}\n"],"names":[],"mappings":";;AAGO,eAAe,uBAAuB,CAC3C,eAA8C,EAC9C,MAAoC,EACpC,KAAa,EAAA;AAEb,IAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB;IACF;AAEA,IAAA,MAAM,eAAe,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AAChF;;ACcA;AACA,SAAS,kBAAkB,CAAC,QAA8C,EAAA;AACxE,IAAA,MAAM,K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K,CAAC,wBAAwB,EAAE;IAClC;AACF;;;;"}
1
+ {"version":3,"file":"acorex-components-conversation-open-composer-picker-for-files-DBWQaSVC.mjs","sources":["../../../../packages/components/conversation/src/lib/components/message-list/open-composer-picker-popup.ts","../../../../packages/components/conversation/src/lib/components/message-list/open-composer-picker-for-files.ts"],"sourcesContent":["import type { AXConversationComposerService } from '../composer/composer.service';\nimport type { AXConversationComposerAction } from '../../registries/composer-action.registry';\n\nexport async function openComposerPickerPopup(\n composerService: AXConversationComposerService,\n action: AXConversationComposerAction,\n files: File[],\n): Promise<void> {\n if (files.length === 0) {\n return;\n }\n\n await composerService.openActionComponent(action, {}, { initialFiles: files });\n}\n","import type { AXActionSheetService } from '@acorex/components/action-sheet';\nimport type { AXPopupService } from '@acorex/components/popup';\nimport type { AXPlatform } from '@acorex/core/platform';\nimport type { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXFileService } from '@acorex/core/file';\nimport type { AXValidationRuleResult } from '@acorex/core/validation';\nimport type { AXConversationComposerService } from '../composer/composer.service';\nimport type { AXConversation } from '../../models';\nimport type { AXConversationComposerAction, AXConversationComposerActionRegistry } from '../../registries/composer-action.registry';\nimport { notifyPickerValidationErrors } from '../../plugins/composer/components/shared/picker-upload';\nimport type { AXConversationConfig } from '../../tokens/conversation-config.interface';\nimport { openComposerPickerPopup } from './open-composer-picker-popup';\n\nexport interface AXConversationOpenComposerPickerForFilesDeps {\n fileService: AXFileService;\n composerService: AXConversationComposerService;\n composerActionRegistry: AXConversationComposerActionRegistry;\n popupService: AXPopupService;\n actionSheetService: AXActionSheetService;\n platform: AXPlatform;\n toast: AXToastService;\n translation: AXTranslationService;\n conversation: AXConversation | null | undefined;\n config: Pick<Required<AXConversationConfig>, 'maxFilesPerMessage'>;\n}\n\n/** Catalogs registered on picker actions (conversation-image, conversation-file, …). */\nfunction pickerCatalogNames(registry: AXConversationComposerActionRegistry): string[] {\n const names = new Set<string>();\n for (const action of registry.actions()) {\n if ((action.component || action.componentLoader) && action.fileType) {\n names.add(action.fileType);\n }\n }\n return [...names];\n}\n\ninterface AXConversationInboundFilesAnalysis {\n matchingCatalogs: string[];\n actions: AXConversationComposerAction[];\n supportedFiles: File[];\n unsupportedFiles: { file: File; errors: AXValidationRuleResult[] }[];\n}\n\n/** Files that are not accepted by any registered picker catalog. */\nasync function collectUnsupportedInboundFiles(\n deps: Pick<AXConversationOpenComposerPickerForFilesDeps, 'fileService' | 'composerActionRegistry'>,\n files: File[],\n catalogs: string[],\n): Promise<{ file: File; errors: AXValidationRuleResult[] }[]> {\n const unsupported: { file: File; errors: AXValidationRuleResult[] }[] = [];\n\n for (const file of files) {\n let acceptedByAny = false;\n let lastErrors: AXValidationRuleResult[] = [];\n\n for (const catalog of catalogs) {\n const errors = await deps.fileService.validate(file, catalog);\n if (errors.length === 0) {\n acceptedByAny = true;\n break;\n }\n lastErrors = errors;\n }\n\n if (!acceptedByAny) {\n unsupported.push({ file, errors: lastErrors });\n }\n }\n\n return unsupported;\n}\n\nasync function analyzeInboundFiles(\n deps: Pick<\n AXConversationOpenComposerPickerForFilesDeps,\n 'fileService' | 'composerService' | 'composerActionRegistry'\n >,\n files: File[],\n): Promise<AXConversationInboundFilesAnalysis> {\n if (!files.length) {\n return { matchingCatalogs: [], actions: [], supportedFiles: [], unsupportedFiles: [] };\n }\n\n const catalogs = pickerCatalogNames(deps.composerActionRegistry);\n const unsupportedFiles = await collectUnsupportedInboundFiles(deps, files, catalogs);\n const unsupportedSet = new Set(unsupportedFiles.map((entry) => entry.file));\n const supportedFiles = files.filter((file) => !unsupportedSet.has(file));\n\n if (supportedFiles.length === 0) {\n return { matchingCatalogs: [], actions: [], supportedFiles: [], unsupportedFiles };\n }\n\n const context = deps.composerService.actionContext();\n const matchingCatalogs: string[] = [];\n\n for (const catalog of catalogs) {\n const { rejected } = await deps.fileService.validateMany(supportedFiles, catalog);\n if (rejected.length === 0) {\n matchingCatalogs.push(catalog);\n }\n }\n\n const seen = new Set<string>();\n const actions: AXConversationComposerAction[] = [];\n\n for (const catalog of matchingCatalogs) {\n for (const action of deps.composerActionRegistry.findPickerActionsForFileType(catalog, context)) {\n if (!seen.has(action.id)) {\n seen.add(action.id);\n actions.push(action);\n }\n }\n }\n\n return {\n matchingCatalogs,\n actions: actions.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0)),\n supportedFiles,\n unsupportedFiles,\n };\n}\n\nfunction notifyInboundFilesValidationFailures(\n deps: Pick<AXConversationOpenComposerPickerForFilesDeps, 'toast' | 'translation'>,\n analysis: AXConversationInboundFilesAnalysis,\n): void {\n if (analysis.supportedFiles.length === 0) {\n if (analysis.unsupportedFiles.length === 0) {\n deps.toast.warning(deps.translation.translateSync('@acorex:chat.errors.inbound-files-none-supported'));\n }\n return;\n }\n\n if (analysis.actions.length === 0) {\n const key =\n analysis.matchingCatalogs.length === 0\n ? '@acorex:chat.errors.inbound-files-none-supported'\n : '@acorex:chat.errors.inbound-files-no-send-option';\n deps.toast.warning(deps.translation.translateSync(key));\n }\n}\n\n/**\n * File catalogs that accept every supported file in the batch, then matching visible picker actions.\n */\nexport async function resolvePickerActionsForAllFiles(\n deps: Pick<AXConversationOpenComposerPickerForFilesDeps, 'fileService' | 'composerService' | 'composerActionRegistry'>,\n files: File[],\n): Promise<AXConversationComposerAction[]> {\n const analysis = await analyzeInboundFiles(deps, files);\n return analysis.actions;\n}\n\nasync function promptComposerActionChoice(\n deps: AXConversationOpenComposerPickerForFilesDeps,\n actions: AXConversationComposerAction[],\n fileCount: number,\n): Promise<AXConversationComposerAction | undefined> {\n const { AXConversationComposerActionChoiceDialogComponent } = await import('./composer-action-choice-dialog.component');\n const result = await deps.popupService.open(AXConversationComposerActionChoiceDialogComponent, {\n title: deps.translation.translateSync('@acorex:chat.dialog.choose-send-option.title'),\n size: 'sm',\n closeButton: true,\n header: true,\n inputs: {\n actions,\n fileCount,\n composerActionRegistry: deps.composerActionRegistry,\n },\n });\n\n const action = result?.data as AXConversationComposerAction | undefined;\n if (!action?.component && !action?.componentLoader) {\n return undefined;\n }\n return action;\n}\n\n/**\n * Match dropped/pasted files to composer picker action(s) and open the popup.\n * Unsupported files are skipped after a warning toast; supported files continue.\n * @returns true when a picker popup was opened\n */\nexport async function openComposerPickerForFiles(\n deps: AXConversationOpenComposerPickerForFilesDeps,\n files: File[],\n): Promise<boolean> {\n if (!files.length) {\n return false;\n }\n\n const conversation = deps.conversation;\n if (!conversation) {\n return false;\n }\n\n const analysis = await analyzeInboundFiles(deps, files);\n\n if (analysis.unsupportedFiles.length > 0) {\n notifyPickerValidationErrors(deps.toast, deps.translation, analysis.unsupportedFiles);\n }\n\n if (!analysis.supportedFiles.length || !analysis.actions.length) {\n notifyInboundFilesValidationFailures(deps, analysis);\n return false;\n }\n\n let action = analysis.actions[0];\n if (analysis.actions.length > 1) {\n const chosen = await promptComposerActionChoice(deps, analysis.actions, analysis.supportedFiles.length);\n if (!chosen) {\n return false;\n }\n action = chosen;\n }\n\n const catalog = action.fileType;\n if (!catalog) {\n deps.toast.warning(deps.translation.translateSync('@acorex:chat.errors.inbound-files-none-supported'));\n return false;\n }\n\n const { accepted, rejected } = await deps.fileService.validateMany(analysis.supportedFiles, catalog);\n if (rejected.length > 0) {\n notifyPickerValidationErrors(deps.toast, deps.translation, rejected);\n }\n if (accepted.length === 0) {\n return false;\n }\n\n await openComposerPickerPopup(deps.composerService, action, accepted);\n return true;\n}\n\n/** Extract OS-copied files from a paste event (e.g. Ctrl+V after copying a file in Explorer). */\nexport function filesFromClipboardEvent(event: ClipboardEvent): File[] {\n const items = event.clipboardData?.items;\n if (!items?.length) {\n return [];\n }\n\n const files: File[] = [];\n for (let i = 0; i < items.length; i++) {\n const item = items[i];\n if (item.kind === 'file') {\n const file = item.getAsFile();\n if (file) {\n files.push(file);\n }\n }\n }\n return files;\n}\n\n/** Whether a paste event target lies in the chat panel (not sidebar). */\nexport function isPasteTargetInChatPanel(host: HTMLElement, target: EventTarget | null): boolean {\n if (!(target instanceof Node) || !host.contains(target)) {\n return false;\n }\n\n const excluded = host.querySelector('.conversation-sidebar-container, .sidebar-container');\n if (excluded?.contains(target)) {\n return false;\n }\n\n const chatMain = host.querySelector('.conversation-main-container, .main-area, .conversation-view');\n if (chatMain) {\n return chatMain.contains(target);\n }\n\n return true;\n}\n\n/** Handle Ctrl+V / paste when the clipboard holds files copied from the OS. */\nexport async function handleConversationFilePaste(\n event: ClipboardEvent,\n host: HTMLElement,\n deps: AXConversationOpenComposerPickerForFilesDeps,\n): Promise<void> {\n if (!isPasteTargetInChatPanel(host, event.target)) {\n return;\n }\n\n const files = filesFromClipboardEvent(event);\n if (!files.length) {\n return;\n }\n\n const handled = await openComposerPickerForFiles(deps, files);\n if (handled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n}\n"],"names":[],"mappings":";;AAGO,eAAe,uBAAuB,CAC3C,eAA8C,EAC9C,MAAoC,EACpC,KAAa,EAAA;AAEb,IAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB;IACF;AAEA,IAAA,MAAM,eAAe,CAAC,mBAAmB,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AAChF;;ACcA;AACA,SAAS,kBAAkB,CAAC,QAA8C,EAAA;AACxE,IAAA,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU;IAC/B,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE;AACvC,QAAA,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,eAAe,KAAK,MAAM,CAAC,QAAQ,EAAE;AACnE,YAAA,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC5B;IACF;AACA,IAAA,OAAO,CAAC,GAAG,KAAK,CAAC;AACnB;AASA;AACA,eAAe,8BAA8B,CAC3C,IAAkG,EAClG,KAAa,EACb,QAAkB,EAAA;IAElB,MAAM,WAAW,GAAuD,EA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AI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AACvD,QAAA,OAAO,KAAK;IACd;IAEA,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,qDAAqD,CAAC;AAC1F,IAAA,IAAI,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAA,OAAO,KAAK;IACd;IAEA,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,8DAA8D,CAAC;IACnG,IAAI,QAAQ,EAAE;AACZ,QAAA,OAAO,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;IAClC;AAEA,IAAA,OAAO,IAAI;AACb;AAEA;AACO,eAAe,2BAA2B,CAC/C,KAAqB,EACrB,IAAiB,EACjB,IAAkD,EAAA;IAElD,IAAI,CAAC,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;QACjD;IACF;AAEA,IAAA,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAK,CAAC;AAC5C,IAAA,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QACjB;IACF;IAEA,MAAM,OAAO,GAAG,MAAM,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC;IAC7D,IAAI,OAAO,EAAE;QACX,KAAK,CAAC,cAAc,EAAE;QACtB,KAAK,CAAC,wBAAwB,EAAE;IAClC;AACF;;;;"}
@@ -9,7 +9,7 @@ import { AsyncPipe } from '@angular/common';
9
9
  import * as i0 from '@angular/core';
10
10
  import { input, model, EventEmitter, effect, ViewEncapsulation, Component } from '@angular/core';
11
11
  import { FormsModule } from '@angular/forms';
12
- import { i as isValidPickerFileName } from './acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs';
12
+ import { i as isValidPickerFileName } from './acorex-components-conversation-acorex-components-conversation-CdAHDQD1.mjs';
13
13
 
14
14
  class AXConversationPickerRenameFileDialogComponent {
15
15
  constructor() {
@@ -62,4 +62,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
62
62
  }], ctorParameters: () => [], propDecorators: { initialName: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialName", required: true }] }], fileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileName", required: false }] }, { type: i0.Output, args: ["fileNameChange"] }] } });
63
63
 
64
64
  export { AXConversationPickerRenameFileDialogComponent };
65
- //# sourceMappingURL=acorex-components-conversation-picker-rename-file-dialog.component-BNKFb5yO.mjs.map
65
+ //# sourceMappingURL=acorex-components-conversation-picker-rename-file-dialog.component-swqLQ8g0.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-conversation-picker-rename-file-dialog.component-BNKFb5yO.mjs","sources":["../../../../packages/components/conversation/src/lib/plugins/composer/components/shared/picker-rename-file-dialog.component.ts","../../../../packages/components/conversation/src/lib/plugins/composer/components/shared/picker-rename-file-dialog.component.html"],"sourcesContent":["import { AXClosableComponent, AXComponentCloseEvent } from '@acorex/cdk/common';\nimport { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { Component, EventEmitter, ViewEncapsulation, effect, input, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { isValidPickerFileName } from './picker-file.utils';\n\n@Component({\n selector: 'ax-conversation-picker-rename-file-dialog',\n encapsulation: ViewEncapsulation.None,\n imports: [\n AsyncPipe,\n FormsModule,\n AXButtonComponent,\n AXDecoratorGenericComponent,\n AXTextBoxModule,\n AXTranslationModule,\n ],\n providers: [{ provide: AXClosableComponent, useExisting: AXConversationPickerRenameFileDialogComponent }],\n templateUrl: './picker-rename-file-dialog.component.html',\n styleUrl: './picker-rename-file-dialog.component.css',\n})\nexport class AXConversationPickerRenameFileDialogComponent {\n readonly initialName = input.required<string>();\n readonly fileName = model('');\n\n constructor() {\n effect(() => {\n this.fileName.set(this.initialName());\n });\n }\n\n canSave(): boolean {\n const next = this.fileName().trim();\n return isValidPickerFileName(next) && next !== this.initialName().trim();\n }\n\n save(): void {\n if (!this.canSave()) {\n return;\n }\n\n const event = new AXComponentCloseEvent();\n event.component = this;\n event.data = this.fileName().trim();\n this.onClosed.emit(event);\n }\n\n cancel(): void {\n const event = new AXComponentCloseEvent();\n event.component = this;\n this.onClosed.emit(event);\n }\n\n onKeyDown(event: { nativeEvent?: KeyboardEvent } | undefined): void {\n if (event?.nativeEvent?.key === 'Enter') {\n event.nativeEvent.preventDefault();\n this.save();\n }\n }\n\n readonly onClosed = new EventEmitter<AXComponentCloseEvent>();\n}\n","<div class=\"ax-conversation-picker-rename-dialog\">\n <div class=\"dialog-content\">\n <ax-text-box\n [(value)]=\"fileName\"\n [look]=\"'outline'\"\n [placeholder]=\"'@acorex:chat.pickers.files.rename-placeholder' | translate | async\"\n (onKeyDown)=\"onKeyDown($event)\"\n />\n </div>\n\n <ax-footer class=\"dialog-footer\">\n <ax-suffix>\n <ax-button\n [text]=\"'@acorex:chat.actions.cancel' | translate | async\"\n [look]=\"'solid'\"\n (onClick)=\"cancel()\"\n />\n <ax-button\n [text]=\"'@acorex:chat.actions.save' | translate | async\"\n [look]=\"'solid'\"\n [color]=\"'primary'\"\n [disabled]=\"!canSave()\"\n (onClick)=\"save()\"\n />\n </ax-suffix>\n </ax-footer>\n</div>\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;MAyBa,6CAA6C,CAAA;AAIxD,IAAA,WAAA,GAAA;QAHS,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ;wFAAU;QACtC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,EAAE;qFAAC;AAqCpB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAyB;QAlC3D,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,E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AA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,aAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,SAAA,EAAA,YAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACf,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EALnB,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAWA,6CAA6C,EAAA,UAAA,EAAA,CAAA;kBAfzD,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,2CAA2C,EAAA,aAAA,EACtC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B;wBACP,SAAS;wBACT,WAAW;wBACX,iBAAiB;wBACjB,2BAA2B;wBAC3B,eAAe;wBACf,mBAAmB;qBACpB,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,6CAA+C,EAAE,CAAC,EAAA,QAAA,EAAA,4xBAAA,EAAA,MAAA,EAAA,CAAA,igBAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"acorex-components-conversation-picker-rename-file-dialog.component-swqLQ8g0.mjs","sources":["../../../../packages/components/conversation/src/lib/plugins/composer/components/shared/picker-rename-file-dialog.component.ts","../../../../packages/components/conversation/src/lib/plugins/composer/components/shared/picker-rename-file-dialog.component.html"],"sourcesContent":["import { AXClosableComponent, AXComponentCloseEvent } from '@acorex/cdk/common';\nimport { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { Component, EventEmitter, ViewEncapsulation, effect, input, model } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { isValidPickerFileName } from './picker-file.utils';\n\n@Component({\n selector: 'ax-conversation-picker-rename-file-dialog',\n encapsulation: ViewEncapsulation.None,\n imports: [\n AsyncPipe,\n FormsModule,\n AXButtonComponent,\n AXDecoratorGenericComponent,\n AXTextBoxModule,\n AXTranslationModule,\n ],\n providers: [{ provide: AXClosableComponent, useExisting: AXConversationPickerRenameFileDialogComponent }],\n templateUrl: './picker-rename-file-dialog.component.html',\n styleUrl: './picker-rename-file-dialog.component.css',\n})\nexport class AXConversationPickerRenameFileDialogComponent {\n readonly initialName = input.required<string>();\n readonly fileName = model('');\n\n constructor() {\n effect(() => {\n this.fileName.set(this.initialName());\n });\n }\n\n canSave(): boolean {\n const next = this.fileName().trim();\n return isValidPickerFileName(next) && next !== this.initialName().trim();\n }\n\n save(): void {\n if (!this.canSave()) {\n return;\n }\n\n const event = new AXComponentCloseEvent();\n event.component = this;\n event.data = this.fileName().trim();\n this.onClosed.emit(event);\n }\n\n cancel(): void {\n const event = new AXComponentCloseEvent();\n event.component = this;\n this.onClosed.emit(event);\n }\n\n onKeyDown(event: { nativeEvent?: KeyboardEvent } | undefined): void {\n if (event?.nativeEvent?.key === 'Enter') {\n event.nativeEvent.preventDefault();\n this.save();\n }\n }\n\n readonly onClosed = new EventEmitter<AXComponentCloseEvent>();\n}\n","<div class=\"ax-conversation-picker-rename-dialog\">\n <div class=\"dialog-content\">\n <ax-text-box\n [(value)]=\"fileName\"\n [look]=\"'outline'\"\n [placeholder]=\"'@acorex:chat.pickers.files.rename-placeholder' | translate | async\"\n (onKeyDown)=\"onKeyDown($event)\"\n />\n </div>\n\n <ax-footer class=\"dialog-footer\">\n <ax-suffix>\n <ax-button\n [text]=\"'@acorex:chat.actions.cancel' | translate | async\"\n [look]=\"'solid'\"\n (onClick)=\"cancel()\"\n />\n <ax-button\n [text]=\"'@acorex:chat.actions.save' | translate | async\"\n [look]=\"'solid'\"\n [color]=\"'primary'\"\n [disabled]=\"!canSave()\"\n (onClick)=\"save()\"\n />\n </ax-suffix>\n </ax-footer>\n</div>\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;MAyBa,6CAA6C,CAAA;AAIxD,IAAA,WAAA,GAAA;QAHS,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,QAAQ;wFAAU;QACtC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,EAAE;qFAAC;AAqCpB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAyB;QAlC3D,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;AACvC,QAAA,CAAC,CAAC;IACJ;IAEA,OAAO,GAAA;QACL,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;AACnC,QAAA,OAAO,qBAAqB,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;IAC1E;IAEA,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE;YACnB;QACF;AAEA,QAAA,MAAM,KAAK,GAAG,IAAI,qBAAqB,EAAE;AACzC,QAAA,KAAK,CAAC,SAAS,GAAG,IAAI;QACtB,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;AACnC,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;IAC3B;IAEA,MAAM,GAAA;AACJ,QAAA,MAAM,KAAK,GAAG,IAAI,qBAAqB,EAAE;AACzC,QAAA,KAAK,CAAC,SAAS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,EAAA,aAAA,EACtC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B;wBACP,SAAS;wBACT,WAAW;wBACX,iBAAiB;wBACjB,2BAA2B;wBAC3B,eAAe;wBACf,mBAAmB;qBACpB,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAA,6CAA+C,EAAE,CAAC,EAAA,QAAA,EAAA,4xBAAA,EAAA,MAAA,EAAA,CAAA,igBAAA,CAAA,EAAA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { A as AXConversationApi, a as AXConversationApiLoggerService, b as AXConversationAudioAttachmentComponent, c as AXConversationAudioFileTypeProvider, d as AXConversationAudioPickerComponent, e as AXConversationAudioRendererComponent, f as AXConversationAvatarComponent, g as AXConversationAvatarPickerComponent, h as AXConversationBaseRegistry, j as AXConversationComposerActionRegistry, k as AXConversationComposerComponent, l as AXConversationComposerFileTypesProvider, m as AXConversationComposerGenerationStateService, o as AXConversationComposerPopupComponent, p as AXConversationComposerService, q as AXConversationComposerTabRegistry, r as AXConversationContainerComponent, s as AXConversationContainerDirective, t as AXConversationDateUtilsService, u as AXConversationEmojiTabComponent, v as AXConversationErrorHandlerService, w as AXConversationFallbackRendererComponent, x as AXConversationFileAttachmentComponent, y as AXConversationFileFileTypeProvider, z as AXConversationFilePickerComponent, B as AXConversationFileRendererComponent, C as AXConversationForwardMessageDialogComponent, D as AXConversationImageAttachmentComponent, E as AXConversationImageFileTypeProvider, F as AXConversationImagePickerComponent, G as AXConversationImageRendererComponent, H as AXConversationInfiniteScrollDirective, I as AXConversationInfoBarActionRegistry, J as AXConversationInfoBarComponent, K as AXConversationInfoBarSearchComponent, L as AXConversationInfoBarService, M as AXConversationItemActionRegistry, N as AXConversationLocationPickerComponent, O as AXConversationLocationRendererComponent, P as AXConversationMediaPlaybackInfoBarBannerComponent, Q as AXConversationMessageActionRegistry, R as AXConversationMessageApi, S as AXConversationMessageListComponent, T as AXConversationMessageListNoActiveDefaultComponent, U as AXConversationMessageListService, V as AXConversationMessageRendererCopyHostComponent, W as AXConversationMessageRendererRegistry, X as AXConversationMessageRendererStateComponent, Y as AXConversationMessageUtilsService, Z as AXConversationModule, _ as AXConversationNewDialogComponent, $ as AXConversationPickerCaptionComponent, a0 as AXConversationPickerEmptyComponent, a1 as AXConversationPickerFooterComponent, a2 as AXConversationPickerHeaderComponent, a3 as AXConversationPickerOptionsComponent, a4 as AXConversationPickerShellComponent, a5 as AXConversationPickerToolbarComponent, a6 as AXConversationRealtimeApi, a7 as AXConversationRegistryComponentOutletComponent, a8 as AXConversationRegistryService, a9 as AXConversationService, aa as AXConversationSidebarComponent, ab as AXConversationSidebarService, ac as AXConversationStickerRendererComponent, ad as AXConversationStickerTabComponent, ae as AXConversationSystemRendererComponent, af as AXConversationTabRegistry, ag as AXConversationTextRendererComponent, ah as AXConversationUserApi, ai as AXConversationVideoAttachmentComponent, aj as AXConversationVideoFileTypeProvider, ak as AXConversationVideoPickerComponent, al as AXConversationVideoRendererComponent, am as AXConversationVoiceFileTypeProvider, an as AXConversationVoiceRecorderComponent, ao as AXConversationVoiceRendererComponent, ap as AX_CONVERSATION_AUDIO_CATALOG, aq as AX_CONVERSATION_AUDIO_PRESENTATION, ar as AX_CONVERSATION_AUDIO_RENDERER, as as AX_CONVERSATION_BUILTIN_COMPOSER_TABS, at as AX_CONVERSATION_COMPOSER_AUDIO_ACTION, au as AX_CONVERSATION_COMPOSER_EMOJI_ACTION, av as AX_CONVERSATION_COMPOSER_EMOJI_TAB, aw as AX_CONVERSATION_COMPOSER_FILE_ACTION, ax as AX_CONVERSATION_COMPOSER_IMAGE_ACTION, ay as AX_CONVERSATION_COMPOSER_LOCATION_ACTION, az as AX_CONVERSATION_COMPOSER_STICKER_TAB, aA as AX_CONVERSATION_COMPOSER_VIDEO_ACTION, aB as AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, aC as AX_CONVERSATION_CONFIG, aD as AX_CONVERSATION_CONNECTION_ERRORS, aE as AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT, aF as AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS, aG as AX_CONVERSATION_DEFAULT_COMPOSER_TABS, aH as AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS, aI as AX_CONVERSATION_DEFAULT_CONVERSATION_TABS, aJ as AX_CONVERSATION_DEFAULT_GROUP_ICON, aK as AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS, aL as AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS, aM as AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND, aN as AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID, aO as AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND, aP as AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS, aQ as AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES, aR as AX_CONVERSATION_DEFAULT_USER_ICON, aS as AX_CONVERSATION_ERRORS, aT as AX_CONVERSATION_ERROR_HANDLER_CONFIG, aU as AX_CONVERSATION_ERROR_MESSAGES, aV as AX_CONVERSATION_FALLBACK_RENDERER, aW as AX_CONVERSATION_FILE_CATALOG, aX as AX_CONVERSATION_FILE_ERRORS, aY as AX_CONVERSATION_FILE_PRESENTATION, aZ as AX_CONVERSATION_FILE_RENDERER, a_ as AX_CONVERSATION_FILE_TYPES_READY, a$ as AX_CONVERSATION_IMAGE_CATALOG, b0 as AX_CONVERSATION_IMAGE_PRESENTATION, b1 as AX_CONVERSATION_IMAGE_RENDERER, b2 as AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, b3 as AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, b4 as AX_CONVERSATION_INFO_BAR_DELETE_ACTION, b5 as AX_CONVERSATION_INFO_BAR_DIVIDER, b6 as AX_CONVERSATION_INFO_BAR_MUTE_ACTION, b7 as AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, b8 as AX_CONVERSATION_ITEM_BLOCK_ACTION, b9 as AX_CONVERSATION_ITEM_DELETE_ACTION, ba as AX_CONVERSATION_ITEM_DIVIDER, bb as AX_CONVERSATION_ITEM_MARK_READ_ACTION, bc as AX_CONVERSATION_ITEM_MUTE_ACTION, bd as AX_CONVERSATION_ITEM_PIN_ACTION, be as AX_CONVERSATION_LOCATION_ERRORS, bf as AX_CONVERSATION_LOCATION_RENDERER, bg as AX_CONVERSATION_MESSAGE_DELETE_ACTION, bh as AX_CONVERSATION_MESSAGE_EDIT_ACTION, bi as AX_CONVERSATION_MESSAGE_ERRORS, bj as AX_CONVERSATION_MESSAGE_FORWARD_ACTION, bk as AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS, bl as AX_CONVERSATION_MESSAGE_REPLY_ACTION, bm as AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE, bn as AX_CONVERSATION_PEER_AVATAR_TYPES, bo as AX_CONVERSATION_REGISTRY_CONFIG, bp as AX_CONVERSATION_STICKER_API_KEY, bq as AX_CONVERSATION_STICKER_RENDERER, br as AX_CONVERSATION_SYSTEM_RENDERER, bs as AX_CONVERSATION_TAB_ALL, bt as AX_CONVERSATION_TAB_ARCHIVED, bu as AX_CONVERSATION_TAB_BOT, bv as AX_CONVERSATION_TAB_CHANNELS, bw as AX_CONVERSATION_TAB_GROUPS, bx as AX_CONVERSATION_TAB_PRIVATE, by as AX_CONVERSATION_TAB_UNREAD, bz as AX_CONVERSATION_TEXT_RENDERER, bA as AX_CONVERSATION_URL_ERRORS, bB as AX_CONVERSATION_USER_AVATAR_COMPONENT, bC as AX_CONVERSATION_USER_ERRORS, bD as AX_CONVERSATION_VIDEO_CATALOG, bE as AX_CONVERSATION_VIDEO_PRESENTATION, bF as AX_CONVERSATION_VIDEO_RENDERER, bG as AX_CONVERSATION_VOICE_CATALOG, bH as AX_CONVERSATION_VOICE_PRESENTATION, bI as AX_CONVERSATION_VOICE_RENDERER, bJ as AX_DEFAULT_CONVERSATION_CONFIG, bK as abortPickerUploads, bL as applyAudioLocalPreview, bM as applyFileLocalPreview, bN as applyLocalPreview, bO as applyVideoLocalPreview, bP as applyVoiceLocalPreview, bQ as audioItemFromUpload, bR as bindMediaRendererContentState, bS as buildMediaGalleryTiles, bT as canShowRendererContentError, bU as cleanupPickerUploads, bV as conversationAudioUtilities, bW as conversationFileUtilities, bX as conversationImageUtilities, bY as conversationVideoUtilities, bZ as conversationVoiceUtilities, b_ as copyWithFileTypeFallback, b$ as createConversationAudioFileType, c0 as createConversationFileFileType, c1 as createConversationImageFileType, c2 as createConversationVideoFileType, c3 as createConversationVoiceFileType, c4 as createLocalPreviewUrl, c5 as createObjectUrl, c6 as createPickerDragHandlers, c7 as createPickerUploadItemId, c8 as createResolvedMediaUrlSignal, c9 as deleteUploadedPickerMedia, ca as dismissComposerPickerHost, cb as ensureConversationFileCatalogRegistered, cc as fetchConversationMediaPage, cd as fileItemFromUpload, ce as filterMessagesByMediaCategory, cf as filterSupplementalInfoPanelMessages, cg as findExistingPrivateConversation, ch as formatDuration, ci as formatErrorMessage, cj as formatFileByteSize, ck as formatFileSize, cl as formatMediaDuration, cm as formatPickerValidationMessage, cn as getConversationMediaCategories, co as getConversationProfileFields, cp as getErrorMessage, cq as getMessageAudioItems, cr as getMessageVideoItems, cs as getPickerCancelUploadLabel, ct as getPrivatePeerParticipant, cu as hasRegistryComponent, cv as inferFileExtensionHintFromMessage, cw as isAttachmentListCategory, cx as isComposerTabEnabled, cy as isConversationReactionsEnabled, cz as isGenericPrivateConversationTitle, cA as isGridMediaCategory, cB as isMessageDeliveryPending, cC as isMessageListThemeBackground, cD as isNonPersistableMediaUrl, cE as isPickerItemReadyToSend, cF as isSameMessageListBackground, cG as isUploadAborted, cH as limitFilesToCapacity, cI as mediaCopyText, cJ as mergeAudioUploadResult, cK as mergeFileUploadResult, cL as mergeInfoPanelMessages, cM as mergeUploadResult, cN as mergeVideoUploadResult, cO as mergeVoiceUploadResult, cP as mergeWithDefaults, cQ as messageContainsLink, cR as normalizeAudioPayload, cS as normalizeFilePayload, cT as normalizeImagePayload, cU as normalizeMessageListBackgroundValue, cV as normalizeVideoPayload, cW as notifyMaxFilesCapacityExceeded, n as notifyPickerValidationErrors, cX as openWithFileType, cY as pickDisplayMediaUrl, cZ as pickerItemToMediaReference, c_ as pickerItemToUploadResult, c$ as provideConversation, d0 as provideConversationComposerFileTypes, d1 as provideConversationFileCatalog, d2 as reportMediaLoadError, d3 as resolveComposerMaxFiles, d4 as resolveConversationAvatarDisplay, d5 as resolveConversationComposerTabs, d6 as resolveConversationForViewer, d7 as resolveConversationMessageFileType, d8 as resolveConversationPeerParticipant, d9 as resolveConversationPeerUserId, da as resolveConversationTitleForViewer, db as resolveGalleryImageUrl, dc as resolveImageDisplayUrl, dd as resolveMessageListBackgroundRaw, de as resolveMessageListBackgroundStyle, df as resolveParticipantProfile, dg as resolvePersistableMediaUrl, dh as resolvePersistedThumbnailUrl, di as resolvePrivatePeerParticipant, dj as resolvePrivatePeerUserId, dk as resolveUserAvatarDisplay, dl as resolveVideoThumbnailUrl, dm as revokeObjectUrl, dn as revokePickerBlobPreviews, dp as sanitizeInput, dq as shouldUseUserAvatarForConversation, dr as syncPlaybackInfoBarBanner, ds as toMediaItemUploaderReference, dt as toUploaderReference, du as uploadPickerFile, dv as usesDefaultMessageListWallpaper, dw as validateConversationId, dx as validateEmail, dy as validateLatitude, dz as validateLongitude, dA as validateMessagePayload, dB as validateMessageText, dC as validateMessageType, dD as validateUrl, dE as validateUserId, dF as validateUserIds, dG as videoItemFromUpload } from './acorex-components-conversation-acorex-components-conversation-BtkyQUlh.mjs';
1
+ export { A as AXConversationApi, a as AXConversationApiLoggerService, b as AXConversationAudioAttachmentComponent, c as AXConversationAudioFileTypeProvider, d as AXConversationAudioPickerComponent, e as AXConversationAudioRendererComponent, f as AXConversationAvatarComponent, g as AXConversationAvatarPickerComponent, h as AXConversationBaseRegistry, j as AXConversationComposerActionRegistry, k as AXConversationComposerComponent, l as AXConversationComposerFileTypesProvider, m as AXConversationComposerGenerationStateService, o as AXConversationComposerPopupComponent, p as AXConversationComposerService, q as AXConversationComposerTabRegistry, r as AXConversationContainerComponent, s as AXConversationContainerDirective, t as AXConversationDateUtilsService, u as AXConversationDeleteDialogComponent, v as AXConversationEmojiTabComponent, w as AXConversationErrorHandlerService, x as AXConversationFallbackRendererComponent, y as AXConversationFileAttachmentComponent, z as AXConversationFileFileTypeProvider, B as AXConversationFilePickerComponent, C as AXConversationFileRendererComponent, D as AXConversationForwardMessageDialogComponent, E as AXConversationImageAttachmentComponent, F as AXConversationImageFileTypeProvider, G as AXConversationImagePickerComponent, H as AXConversationImageRendererComponent, I as AXConversationInfiniteScrollDirective, J as AXConversationInfoBarActionRegistry, K as AXConversationInfoBarComponent, L as AXConversationInfoBarSearchComponent, M as AXConversationInfoBarService, N as AXConversationItemActionRegistry, O as AXConversationLocationPickerComponent, P as AXConversationLocationRendererComponent, Q as AXConversationMediaPlaybackInfoBarBannerComponent, R as AXConversationMessageActionRegistry, S as AXConversationMessageApi, T as AXConversationMessageListComponent, U as AXConversationMessageListNoActiveDefaultComponent, V as AXConversationMessageListService, W as AXConversationMessageRendererCopyHostComponent, X as AXConversationMessageRendererRegistry, Y as AXConversationMessageRendererStateComponent, Z as AXConversationMessageUtilsService, _ as AXConversationModule, $ as AXConversationNewDialogComponent, a0 as AXConversationPickerCaptionComponent, a1 as AXConversationPickerEmptyComponent, a2 as AXConversationPickerFooterComponent, a3 as AXConversationPickerHeaderComponent, a4 as AXConversationPickerOptionsComponent, a5 as AXConversationPickerShellComponent, a6 as AXConversationPickerToolbarComponent, a7 as AXConversationRealtimeApi, a8 as AXConversationRegistryComponentOutletComponent, a9 as AXConversationRegistryService, aa as AXConversationService, ab as AXConversationSidebarComponent, ac as AXConversationSidebarService, ad as AXConversationStickerRendererComponent, ae as AXConversationStickerTabComponent, af as AXConversationSystemRendererComponent, ag as AXConversationTabRegistry, ah as AXConversationTextRendererComponent, ai as AXConversationUserApi, aj as AXConversationVideoAttachmentComponent, ak as AXConversationVideoFileTypeProvider, al as AXConversationVideoPickerComponent, am as AXConversationVideoRendererComponent, an as AXConversationVoiceFileTypeProvider, ao as AXConversationVoiceRecorderComponent, ap as AXConversationVoiceRendererComponent, aq as AX_CONVERSATION_AUDIO_CATALOG, ar as AX_CONVERSATION_AUDIO_PRESENTATION, as as AX_CONVERSATION_AUDIO_RENDERER, at as AX_CONVERSATION_BUILTIN_COMPOSER_TABS, au as AX_CONVERSATION_COMPOSER_AUDIO_ACTION, av as AX_CONVERSATION_COMPOSER_EMOJI_ACTION, aw as AX_CONVERSATION_COMPOSER_EMOJI_TAB, ax as AX_CONVERSATION_COMPOSER_FILE_ACTION, ay as AX_CONVERSATION_COMPOSER_IMAGE_ACTION, az as AX_CONVERSATION_COMPOSER_LOCATION_ACTION, aA as AX_CONVERSATION_COMPOSER_STICKER_TAB, aB as AX_CONVERSATION_COMPOSER_VIDEO_ACTION, aC as AX_CONVERSATION_COMPOSER_VOICE_RECORDING_ACTION, aD as AX_CONVERSATION_CONFIG, aE as AX_CONVERSATION_CONNECTION_ERRORS, aF as AX_CONVERSATION_CONVERSATION_AVATAR_COMPONENT, aG as AX_CONVERSATION_DEFAULT_COMPOSER_ACTIONS, aH as AX_CONVERSATION_DEFAULT_COMPOSER_TABS, aI as AX_CONVERSATION_DEFAULT_CONVERSATION_ITEM_ACTIONS, aJ as AX_CONVERSATION_DEFAULT_CONVERSATION_TABS, aK as AX_CONVERSATION_DEFAULT_GROUP_ICON, aL as AX_CONVERSATION_DEFAULT_INFO_BAR_ACTIONS, aM as AX_CONVERSATION_DEFAULT_MESSAGE_ACTIONS, aN as AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND, aO as AX_CONVERSATION_DEFAULT_MESSAGE_LIST_BACKGROUND_PRESET_ID, aP as AX_CONVERSATION_DEFAULT_MESSAGE_LIST_THEME_BACKGROUND, aQ as AX_CONVERSATION_DEFAULT_MESSAGE_RENDERERS, aR as AX_CONVERSATION_DEFAULT_ROOM_PREFERENCES, aS as AX_CONVERSATION_DEFAULT_USER_ICON, aT as AX_CONVERSATION_ERRORS, aU as AX_CONVERSATION_ERROR_HANDLER_CONFIG, aV as AX_CONVERSATION_ERROR_MESSAGES, aW as AX_CONVERSATION_FALLBACK_RENDERER, aX as AX_CONVERSATION_FILE_CATALOG, aY as AX_CONVERSATION_FILE_ERRORS, aZ as AX_CONVERSATION_FILE_PRESENTATION, a_ as AX_CONVERSATION_FILE_RENDERER, a$ as AX_CONVERSATION_FILE_TYPES_READY, b0 as AX_CONVERSATION_IMAGE_CATALOG, b1 as AX_CONVERSATION_IMAGE_PRESENTATION, b2 as AX_CONVERSATION_IMAGE_RENDERER, b3 as AX_CONVERSATION_INFO_BAR_ARCHIVE_ACTION, b4 as AX_CONVERSATION_INFO_BAR_BLOCK_ACTION, b5 as AX_CONVERSATION_INFO_BAR_DELETE_ACTION, b6 as AX_CONVERSATION_INFO_BAR_DIVIDER, b7 as AX_CONVERSATION_INFO_BAR_MUTE_ACTION, b8 as AX_CONVERSATION_INFO_BAR_SEARCH_ACTION, b9 as AX_CONVERSATION_ITEM_BLOCK_ACTION, ba as AX_CONVERSATION_ITEM_DELETE_ACTION, bb as AX_CONVERSATION_ITEM_DIVIDER, bc as AX_CONVERSATION_ITEM_MARK_READ_ACTION, bd as AX_CONVERSATION_ITEM_MUTE_ACTION, be as AX_CONVERSATION_ITEM_PIN_ACTION, bf as AX_CONVERSATION_LOCATION_ERRORS, bg as AX_CONVERSATION_LOCATION_RENDERER, bh as AX_CONVERSATION_MESSAGE_DELETE_ACTION, bi as AX_CONVERSATION_MESSAGE_EDIT_ACTION, bj as AX_CONVERSATION_MESSAGE_ERRORS, bk as AX_CONVERSATION_MESSAGE_FORWARD_ACTION, bl as AX_CONVERSATION_MESSAGE_LIST_BACKGROUND_PRESETS, bm as AX_CONVERSATION_MESSAGE_REPLY_ACTION, bn as AX_CONVERSATION_MESSAGE_TYPE_FILE_TYPE, bo as AX_CONVERSATION_PEER_AVATAR_TYPES, bp as AX_CONVERSATION_REGISTRY_CONFIG, bq as AX_CONVERSATION_STICKER_API_KEY, br as AX_CONVERSATION_STICKER_RENDERER, bs as AX_CONVERSATION_SYSTEM_RENDERER, bt as AX_CONVERSATION_TAB_ALL, bu as AX_CONVERSATION_TAB_ARCHIVED, bv as AX_CONVERSATION_TAB_BOT, bw as AX_CONVERSATION_TAB_CHANNELS, bx as AX_CONVERSATION_TAB_GROUPS, by as AX_CONVERSATION_TAB_PRIVATE, bz as AX_CONVERSATION_TAB_UNREAD, bA as AX_CONVERSATION_TEXT_RENDERER, bB as AX_CONVERSATION_URL_ERRORS, bC as AX_CONVERSATION_USER_AVATAR_COMPONENT, bD as AX_CONVERSATION_USER_ERRORS, bE as AX_CONVERSATION_VIDEO_CATALOG, bF as AX_CONVERSATION_VIDEO_PRESENTATION, bG as AX_CONVERSATION_VIDEO_RENDERER, bH as AX_CONVERSATION_VOICE_CATALOG, bI as AX_CONVERSATION_VOICE_PRESENTATION, bJ as AX_CONVERSATION_VOICE_RENDERER, bK as AX_DEFAULT_CONVERSATION_CONFIG, bL as abortPickerUploads, bM as applyAudioLocalPreview, bN as applyFileLocalPreview, bO as applyLocalPreview, bP as applyVideoLocalPreview, bQ as applyVoiceLocalPreview, bR as audioItemFromUpload, bS as bindMediaRendererContentState, bT as buildMediaGalleryTiles, bU as canShowRendererContentError, bV as cleanupPickerUploads, bW as conversationAudioUtilities, bX as conversationFileUtilities, bY as conversationImageUtilities, bZ as conversationVideoUtilities, b_ as conversationVoiceUtilities, b$ as copyWithFileTypeFallback, c0 as createConversationAudioFileType, c1 as createConversationFileFileType, c2 as createConversationImageFileType, c3 as createConversationVideoFileType, c4 as createConversationVoiceFileType, c5 as createLocalPreviewUrl, c6 as createObjectUrl, c7 as createPickerDragHandlers, c8 as createPickerUploadItemId, c9 as createResolvedMediaUrlSignal, ca as deleteUploadedPickerMedia, cb as dismissComposerPickerHost, cc as ensureConversationFileCatalogRegistered, cd as fetchConversationMediaPage, ce as fileItemFromUpload, cf as filterMessagesByMediaCategory, cg as filterSupplementalInfoPanelMessages, ch as findExistingPrivateConversation, ci as formatDuration, cj as formatErrorMessage, ck as formatFileByteSize, cl as formatFileSize, cm as formatMediaDuration, cn as formatPickerValidationMessage, co as getConversationMediaCategories, cp as getConversationProfileFields, cq as getErrorMessage, cr as getMessageAudioItems, cs as getMessageVideoItems, ct as getPickerCancelUploadLabel, cu as getPrivatePeerParticipant, cv as hasRegistryComponent, cw as inferFileExtensionHintFromMessage, cx as isAttachmentListCategory, cy as isComposerTabEnabled, cz as isConversationReactionsEnabled, cA as isConversationRoomCreator, cB as isGenericPrivateConversationTitle, cC as isGridMediaCategory, cD as isGroupLikeConversation, cE as isMessageDeliveryPending, cF as isMessageListThemeBackground, cG as isMessageVisibleAfterHistoryCutoff, cH as isNonPersistableMediaUrl, cI as isPickerItemReadyToSend, cJ as isSameMessageListBackground, cK as isUploadAborted, cL as limitFilesToCapacity, cM as mediaCopyText, cN as mergeAudioUploadResult, cO as mergeFileUploadResult, cP as mergeInfoPanelMessages, cQ as mergeUploadResult, cR as mergeVideoUploadResult, cS as mergeVoiceUploadResult, cT as mergeWithDefaults, cU as messageContainsLink, cV as normalizeAudioPayload, cW as normalizeFilePayload, cX as normalizeImagePayload, cY as normalizeMessageListBackgroundValue, cZ as normalizeVideoPayload, c_ as notifyMaxFilesCapacityExceeded, n as notifyPickerValidationErrors, c$ as openWithFileType, d0 as pickDisplayMediaUrl, d1 as pickEarliestJoinedParticipant, d2 as pickerItemToMediaReference, d3 as pickerItemToUploadResult, d4 as provideConversation, d5 as provideConversationComposerFileTypes, d6 as provideConversationFileCatalog, d7 as reportMediaLoadError, d8 as resolveComposerMaxFiles, d9 as resolveConversationAvatarDisplay, da as resolveConversationComposerTabs, db as resolveConversationForViewer, dc as resolveConversationMessageFileType, dd as resolveConversationPeerParticipant, de as resolveConversationPeerUserId, df as resolveConversationTitleForViewer, dg as resolveGalleryImageUrl, dh as resolveImageDisplayUrl, di as resolveMessageListBackgroundRaw, dj as resolveMessageListBackgroundStyle, dk as resolveParticipantProfile, dl as resolvePersistableMediaUrl, dm as resolvePersistedThumbnailUrl, dn as resolvePrivatePeerParticipant, dp as resolvePrivatePeerUserId, dq as resolveUserAvatarDisplay, dr as resolveVideoThumbnailUrl, ds as revokeObjectUrl, dt as revokePickerBlobPreviews, du as sanitizeInput, dv as shouldUseUserAvatarForConversation, dw as syncPlaybackInfoBarBanner, dx as toMediaItemUploaderReference, dy as toUploaderReference, dz as uploadPickerFile, dA as usesDefaultMessageListWallpaper, dB as validateConversationId, dC as validateEmail, dD as validateLatitude, dE as validateLongitude, dF as validateMessagePayload, dG as validateMessageText, dH as validateMessageType, dI as validateUrl, dJ as validateUserId, dK as validateUserIds, dL as videoItemFromUpload } from './acorex-components-conversation-acorex-components-conversation-CdAHDQD1.mjs';
2
2
  //# sourceMappingURL=acorex-components-conversation.mjs.map