@acorex/components 21.0.3-next.38 → 21.0.3-next.40
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.
- package/{conversation2 → conversation}/README.md +23 -23
- package/fesm2022/acorex-components-button.mjs +4 -4
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-YhVa42TC.mjs +13711 -0
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-YhVa42TC.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-audio-attachment.component-CLvS3W8F.mjs +119 -0
- package/fesm2022/acorex-components-conversation-audio-attachment.component-CLvS3W8F.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-audio-composer.payload-BHQJNyXz.mjs +59 -0
- package/fesm2022/acorex-components-conversation-audio-composer.payload-BHQJNyXz.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-audio-picker.component-BD_fN2Ip.mjs +432 -0
- package/fesm2022/acorex-components-conversation-audio-picker.component-BD_fN2Ip.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-audio-renderer.component-CcxVVprx.mjs +177 -0
- package/fesm2022/acorex-components-conversation-audio-renderer.component-CcxVVprx.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-audio.payload-Bag4aTut.mjs +54 -0
- package/fesm2022/acorex-components-conversation-audio.payload-Bag4aTut.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-C28hl7iD.mjs +101 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-C28hl7iD.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-audio.file-type-CfGSVnMA.mjs +100 -0
- package/fesm2022/acorex-components-conversation-conversation-audio.file-type-CfGSVnMA.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-file.file-type-DB-2xhaC.mjs +121 -0
- package/fesm2022/acorex-components-conversation-conversation-file.file-type-DB-2xhaC.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-image.file-type-C02OzZZB.mjs +84 -0
- package/fesm2022/acorex-components-conversation-conversation-image.file-type-C02OzZZB.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-info-media-view.component-Mhk7JE6K.mjs +238 -0
- package/fesm2022/acorex-components-conversation-conversation-info-media-view.component-Mhk7JE6K.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-info-panel.component-CNaM5ajR.mjs +1080 -0
- package/fesm2022/acorex-components-conversation-conversation-info-panel.component-CNaM5ajR.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-video.file-type-Pescv4Vu.mjs +102 -0
- package/fesm2022/acorex-components-conversation-conversation-video.file-type-Pescv4Vu.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-conversation-voice.file-type-DDd47o4r.mjs +90 -0
- package/fesm2022/acorex-components-conversation-conversation-voice.file-type-DDd47o4r.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-emoji-categories-C7Gm95V0.mjs +1840 -0
- package/fesm2022/acorex-components-conversation-emoji-categories-C7Gm95V0.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-fallback-renderer.component-CYh_6O6j.mjs +44 -0
- package/fesm2022/acorex-components-conversation-fallback-renderer.component-CYh_6O6j.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-file-composer.payload-Dy7aG-EH.mjs +64 -0
- package/fesm2022/acorex-components-conversation-file-composer.payload-Dy7aG-EH.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-file-picker.component-DCVgl33l.mjs +468 -0
- package/fesm2022/acorex-components-conversation-file-picker.component-DCVgl33l.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-file-renderer.component-DgCi06Mg.mjs +125 -0
- package/fesm2022/acorex-components-conversation-file-renderer.component-DgCi06Mg.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-file.payload-DyFxTQYn.mjs +50 -0
- package/fesm2022/acorex-components-conversation-file.payload-DyFxTQYn.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-format-media-DUD4vA6F.mjs +21 -0
- package/fesm2022/acorex-components-conversation-format-media-DUD4vA6F.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-image-attachment.component-CLMGxXPl.mjs +77 -0
- package/fesm2022/acorex-components-conversation-image-attachment.component-CLMGxXPl.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-image-picker.component-CS343UDa.mjs +407 -0
- package/fesm2022/acorex-components-conversation-image-picker.component-CS343UDa.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-image-renderer.component-Cy0TA6cL.mjs +83 -0
- package/fesm2022/acorex-components-conversation-image-renderer.component-Cy0TA6cL.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-index-3V2b14I0.mjs +184 -0
- package/fesm2022/acorex-components-conversation-index-3V2b14I0.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-index-MCvfr9Zd.mjs +266 -0
- package/fesm2022/acorex-components-conversation-index-MCvfr9Zd.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-location-picker.component-DcNQzuoU.mjs +149 -0
- package/fesm2022/acorex-components-conversation-location-picker.component-DcNQzuoU.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-location-renderer.component-Cw2PB0LM.mjs +118 -0
- package/fesm2022/acorex-components-conversation-location-renderer.component-Cw2PB0LM.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-media-formatters-DV3wEEno.mjs +17 -0
- package/fesm2022/acorex-components-conversation-media-formatters-DV3wEEno.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-media-playback-info-bar-banner.component-DbWUl6M2.mjs +140 -0
- package/fesm2022/acorex-components-conversation-media-playback-info-bar-banner.component-DbWUl6M2.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-message-renderer-copy-host.component-oXTr_Lfq.mjs +33 -0
- package/fesm2022/acorex-components-conversation-message-renderer-copy-host.component-oXTr_Lfq.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-message-renderer-state.component-Dp-JdHWr.mjs +172 -0
- package/fesm2022/acorex-components-conversation-message-renderer-state.component-Dp-JdHWr.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-Du8Lj9Sp.mjs +224 -0
- package/fesm2022/acorex-components-conversation-open-composer-picker-for-files-Du8Lj9Sp.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-pagination-demo-data-oIT_YJmN.mjs +81 -0
- package/fesm2022/acorex-components-conversation-pagination-demo-data-oIT_YJmN.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-picker-header.component-BneIFjXq.mjs +91 -0
- package/fesm2022/acorex-components-conversation-picker-header.component-BneIFjXq.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-picker-toolbar.component-BthRvEeE.mjs +537 -0
- package/fesm2022/acorex-components-conversation-picker-toolbar.component-BthRvEeE.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-picker-upload-C-PlKPaU.mjs +163 -0
- package/fesm2022/acorex-components-conversation-picker-upload-C-PlKPaU.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-playback-banner-sync-D8FFKde6.mjs +68 -0
- package/fesm2022/acorex-components-conversation-playback-banner-sync-D8FFKde6.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-renderer-shared.styles-Digah3Zn.mjs +95 -0
- package/fesm2022/acorex-components-conversation-renderer-shared.styles-Digah3Zn.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-search.component-B-nc6xiA.mjs +187 -0
- package/fesm2022/acorex-components-conversation-search.component-B-nc6xiA.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-send-message-media-BRklgfV7.mjs +170 -0
- package/fesm2022/acorex-components-conversation-send-message-media-BRklgfV7.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-shared-storage.seed-J9PA4l3c.mjs +750 -0
- package/fesm2022/acorex-components-conversation-shared-storage.seed-J9PA4l3c.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-sticker-renderer.component-BmBwy7Ig.mjs +103 -0
- package/fesm2022/acorex-components-conversation-sticker-renderer.component-BmBwy7Ig.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-system-renderer.component-uie3tm5N.mjs +55 -0
- package/fesm2022/acorex-components-conversation-system-renderer.component-uie3tm5N.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-text-renderer.component-DNAquHYK.mjs +109 -0
- package/fesm2022/acorex-components-conversation-text-renderer.component-DNAquHYK.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-video-attachment.component-CGaUhnSb.mjs +105 -0
- package/fesm2022/acorex-components-conversation-video-attachment.component-CGaUhnSb.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-video-composer.payload-DMqRkafr.mjs +62 -0
- package/fesm2022/acorex-components-conversation-video-composer.payload-DMqRkafr.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-video-picker.component-DPwSBnoH.mjs +446 -0
- package/fesm2022/acorex-components-conversation-video-picker.component-DPwSBnoH.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-video-renderer.component-DKa9mUe2.mjs +181 -0
- package/fesm2022/acorex-components-conversation-video-renderer.component-DKa9mUe2.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-video.payload-C8QaqxuX.mjs +54 -0
- package/fesm2022/acorex-components-conversation-video.payload-C8QaqxuX.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-voice-composer.payload-DLVow7ex.mjs +17 -0
- package/fesm2022/acorex-components-conversation-voice-composer.payload-DLVow7ex.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-voice-recorder.component-D_rdANZN.mjs +344 -0
- package/fesm2022/acorex-components-conversation-voice-recorder.component-D_rdANZN.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-voice-renderer.component-BY5FJcT8.mjs +270 -0
- package/fesm2022/acorex-components-conversation-voice-renderer.component-BY5FJcT8.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation.mjs +2 -0
- package/fesm2022/acorex-components-conversation.mjs.map +1 -0
- package/fesm2022/acorex-components-kbd.mjs +2 -2
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +22 -14
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +2 -2
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/package.json +6 -6
- package/types/{acorex-components-conversation2.d.ts → acorex-components-conversation.d.ts} +1127 -1928
- package/types/acorex-components-scheduler-picker.d.ts +2 -0
- package/fesm2022/acorex-components-conversation2.mjs +0 -22347
- package/fesm2022/acorex-components-conversation2.mjs.map +0 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { AXButtonComponent } from '@acorex/components/button';
|
|
2
|
+
import * as i1 from '@acorex/components/decorators';
|
|
3
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
4
|
+
import * as i2 from '@acorex/components/label';
|
|
5
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
6
|
+
import * as i1$1 from '@acorex/components/progress-bar';
|
|
7
|
+
import { AXProgressBarModule } from '@acorex/components/progress-bar';
|
|
8
|
+
import { AXToastService } from '@acorex/components/toast';
|
|
9
|
+
import * as i3 from '@acorex/core/translation';
|
|
10
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
11
|
+
import * as i2$1 from '@angular/common';
|
|
12
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
13
|
+
import * as i0 from '@angular/core';
|
|
14
|
+
import { inject, PLATFORM_ID, DestroyRef, input, output, signal, computed, Component } from '@angular/core';
|
|
15
|
+
import { o as AXConversationComposerService, v as AX_CONVERSATION_VOICE_CATALOG } from './acorex-components-conversation-acorex-components-conversation-YhVa42TC.mjs';
|
|
16
|
+
import { AXUploaderService } from '@acorex/cdk/uploader';
|
|
17
|
+
import './acorex-components-conversation-conversation-voice.file-type-DDd47o4r.mjs';
|
|
18
|
+
import './acorex-components-conversation-voice-composer.payload-DLVow7ex.mjs';
|
|
19
|
+
import { n as notifyPickerValidationErrors, i as isUploadAborted } from './acorex-components-conversation-picker-upload-C-PlKPaU.mjs';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Voice Recorder Component
|
|
23
|
+
* Full-width voice recording interface for the composer
|
|
24
|
+
*/
|
|
25
|
+
class AXConversationVoiceRecorderComponent {
|
|
26
|
+
constructor() {
|
|
27
|
+
this.platformId = inject(PLATFORM_ID);
|
|
28
|
+
this.destroyRef = inject(DestroyRef);
|
|
29
|
+
this.composerService = inject(AXConversationComposerService);
|
|
30
|
+
this.uploader = inject(AXUploaderService);
|
|
31
|
+
this.toast = inject(AXToastService);
|
|
32
|
+
this.translation = inject(AXTranslationService);
|
|
33
|
+
this.conversation = input(...(ngDevMode ? [undefined, { debugName: "conversation" }] : /* istanbul ignore next */ []));
|
|
34
|
+
this.recordingComplete = output();
|
|
35
|
+
this.recordingCancelled = output();
|
|
36
|
+
this.isRecording = signal(false, ...(ngDevMode ? [{ debugName: "isRecording" }] : /* istanbul ignore next */ []));
|
|
37
|
+
this.isUploading = signal(false, ...(ngDevMode ? [{ debugName: "isUploading" }] : /* istanbul ignore next */ []));
|
|
38
|
+
this.uploadProgress = signal(0, ...(ngDevMode ? [{ debugName: "uploadProgress" }] : /* istanbul ignore next */ []));
|
|
39
|
+
this.recordingDuration = signal(0, ...(ngDevMode ? [{ debugName: "recordingDuration" }] : /* istanbul ignore next */ []));
|
|
40
|
+
this.recordingStartTime = 0;
|
|
41
|
+
this.audioChunks = [];
|
|
42
|
+
this.cancelled = false;
|
|
43
|
+
this.formattedTime = computed(() => {
|
|
44
|
+
const duration = this.recordingDuration();
|
|
45
|
+
const minutes = Math.floor(duration / 60);
|
|
46
|
+
const seconds = duration % 60;
|
|
47
|
+
return `${minutes}:${seconds.toString().padStart(2, '0')}`;
|
|
48
|
+
}, ...(ngDevMode ? [{ debugName: "formattedTime" }] : /* istanbul ignore next */ []));
|
|
49
|
+
this.destroyRef.onDestroy(() => this.stopAndCleanup());
|
|
50
|
+
}
|
|
51
|
+
async startRecording() {
|
|
52
|
+
if (!isPlatformBrowser(this.platformId))
|
|
53
|
+
return;
|
|
54
|
+
try {
|
|
55
|
+
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
56
|
+
this.activeStream = stream;
|
|
57
|
+
this.mediaRecorder = new MediaRecorder(stream);
|
|
58
|
+
this.audioChunks = [];
|
|
59
|
+
this.cancelled = false;
|
|
60
|
+
this.mediaRecorder.ondataavailable = (event) => {
|
|
61
|
+
if (event.data.size > 0) {
|
|
62
|
+
this.audioChunks.push(event.data);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.mediaRecorder.onstop = async () => {
|
|
66
|
+
stream.getTracks().forEach((track) => track.stop());
|
|
67
|
+
this.activeStream = undefined;
|
|
68
|
+
if (this.cancelled) {
|
|
69
|
+
this.cancelled = false;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const audioBlob = new Blob(this.audioChunks, { type: 'audio/webm' });
|
|
73
|
+
this.recordingComplete.emit(audioBlob);
|
|
74
|
+
const conv = this.conversation();
|
|
75
|
+
if (conv && this.audioChunks.length > 0) {
|
|
76
|
+
await this.sendVoiceMessage(audioBlob, conv);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
this.mediaRecorder.start();
|
|
80
|
+
this.isRecording.set(true);
|
|
81
|
+
this.recordingStartTime = Date.now();
|
|
82
|
+
this.recordingDuration.set(0);
|
|
83
|
+
this.timerInterval = window.setInterval(() => {
|
|
84
|
+
const elapsed = Math.floor((Date.now() - this.recordingStartTime) / 1000);
|
|
85
|
+
this.recordingDuration.set(elapsed);
|
|
86
|
+
}, 1000);
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
console.error('Failed to start recording:', error);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/** Stop recording and send */
|
|
93
|
+
stopRecording() {
|
|
94
|
+
if (this.mediaRecorder && this.isRecording()) {
|
|
95
|
+
this.mediaRecorder.stop();
|
|
96
|
+
this.isRecording.set(false);
|
|
97
|
+
this.clearTimer();
|
|
98
|
+
// Close the full-width component
|
|
99
|
+
this.composerService.hideComponent();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
cancelRecording() {
|
|
103
|
+
if (this.mediaRecorder && this.isRecording()) {
|
|
104
|
+
this.cancelled = true;
|
|
105
|
+
this.mediaRecorder.stop();
|
|
106
|
+
this.isRecording.set(false);
|
|
107
|
+
this.clearTimer();
|
|
108
|
+
this.audioChunks = [];
|
|
109
|
+
this.recordingCancelled.emit();
|
|
110
|
+
this.composerService.hideComponent();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/** Close the voice recorder */
|
|
114
|
+
cancel() {
|
|
115
|
+
if (this.isRecording()) {
|
|
116
|
+
this.cancelRecording();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
this.abortInProgressUploads();
|
|
120
|
+
this.composerService.hideComponent();
|
|
121
|
+
}
|
|
122
|
+
abortInProgressUploads() {
|
|
123
|
+
if (this.uploadAbortController && !this.uploadAbortController.signal.aborted) {
|
|
124
|
+
this.uploadAbortController.abort();
|
|
125
|
+
}
|
|
126
|
+
this.uploadAbortController = undefined;
|
|
127
|
+
if (this.isUploading()) {
|
|
128
|
+
this.isUploading.set(false);
|
|
129
|
+
this.uploadProgress.set(0);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** Clear timer */
|
|
133
|
+
clearTimer() {
|
|
134
|
+
if (this.timerInterval) {
|
|
135
|
+
clearInterval(this.timerInterval);
|
|
136
|
+
this.timerInterval = undefined;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
getUploadingLabel() {
|
|
140
|
+
return this.translation.translateSync('@acorex:chat.pickers.files.uploading-progress', {
|
|
141
|
+
params: { progress: this.uploadProgress() },
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/** Send voice message */
|
|
145
|
+
async sendVoiceMessage(audioBlob, conversation) {
|
|
146
|
+
const voiceFile = new File([audioBlob], `voice-${Date.now()}.webm`, { type: 'audio/webm' });
|
|
147
|
+
const { rejected } = await this.uploader.validateFiles([voiceFile], AX_CONVERSATION_VOICE_CATALOG);
|
|
148
|
+
if (rejected.length > 0) {
|
|
149
|
+
notifyPickerValidationErrors(this.toast, this.translation, rejected);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this.uploadAbortController = new AbortController();
|
|
153
|
+
const uploadSignal = this.uploadAbortController.signal;
|
|
154
|
+
this.isUploading.set(true);
|
|
155
|
+
this.uploadProgress.set(0);
|
|
156
|
+
const command = {
|
|
157
|
+
conversationId: conversation.id,
|
|
158
|
+
type: 'voice',
|
|
159
|
+
payload: {
|
|
160
|
+
type: 'voice',
|
|
161
|
+
url: '',
|
|
162
|
+
duration: this.recordingDuration(),
|
|
163
|
+
size: audioBlob.size,
|
|
164
|
+
mimeType: 'audio/webm',
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
this.composerService.hideComponent();
|
|
168
|
+
void this.composerService
|
|
169
|
+
.sendMessage(command, {
|
|
170
|
+
media: {
|
|
171
|
+
source: audioBlob,
|
|
172
|
+
fileName: `voice-${Date.now()}.webm`,
|
|
173
|
+
mimeType: 'audio/webm',
|
|
174
|
+
onProgress: (percent) => {
|
|
175
|
+
if (!uploadSignal.aborted) {
|
|
176
|
+
this.uploadProgress.set(percent);
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
signal: uploadSignal,
|
|
180
|
+
},
|
|
181
|
+
})
|
|
182
|
+
.catch((error) => {
|
|
183
|
+
if (!isUploadAborted(error, uploadSignal)) {
|
|
184
|
+
console.error('Failed to send voice message:', error);
|
|
185
|
+
}
|
|
186
|
+
})
|
|
187
|
+
.finally(() => {
|
|
188
|
+
this.uploadAbortController = undefined;
|
|
189
|
+
if (!uploadSignal.aborted) {
|
|
190
|
+
this.isUploading.set(false);
|
|
191
|
+
this.uploadProgress.set(0);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
stopAndCleanup() {
|
|
196
|
+
this.abortInProgressUploads();
|
|
197
|
+
this.clearTimer();
|
|
198
|
+
if (this.mediaRecorder?.state === 'recording') {
|
|
199
|
+
this.cancelled = true;
|
|
200
|
+
this.mediaRecorder.stop();
|
|
201
|
+
}
|
|
202
|
+
this.activeStream?.getTracks().forEach((track) => track.stop());
|
|
203
|
+
this.activeStream = undefined;
|
|
204
|
+
}
|
|
205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXConversationVoiceRecorderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXConversationVoiceRecorderComponent, isStandalone: true, selector: "ax-conversation-voice-recorder", inputs: { conversation: { classPropertyName: "conversation", publicName: "conversation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { recordingComplete: "recordingComplete", recordingCancelled: "recordingCancelled" }, ngImport: i0, template: `
|
|
207
|
+
<div class="voice-recorder">
|
|
208
|
+
<!-- Header with Close Button -->
|
|
209
|
+
<div class="recorder-header">
|
|
210
|
+
<h3 class="recorder-title">{{ '@acorex:chat.voice-recorder.title' | translate | async }}</h3>
|
|
211
|
+
<button
|
|
212
|
+
type="button"
|
|
213
|
+
class="close-button"
|
|
214
|
+
(click)="cancel()"
|
|
215
|
+
[attr.aria-label]="'@acorex:chat.actions.close' | translate | async"
|
|
216
|
+
>
|
|
217
|
+
<i class="fa-light fa-xmark"></i>
|
|
218
|
+
</button>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<div class="recorder-content">
|
|
222
|
+
@if (isUploading()) {
|
|
223
|
+
<div class="recorder-upload">
|
|
224
|
+
<ax-label>{{ getUploadingLabel() }}</ax-label>
|
|
225
|
+
<ax-progress-bar [progress]="uploadProgress()" [mode]="'determinate'" [height]="6" />
|
|
226
|
+
</div>
|
|
227
|
+
} @else if (!isRecording()) {
|
|
228
|
+
<!-- Start Recording State -->
|
|
229
|
+
<div class="recorder-idle">
|
|
230
|
+
<button class="record-button" (click)="startRecording()">
|
|
231
|
+
<i class="fa-light fa-microphone"></i>
|
|
232
|
+
</button>
|
|
233
|
+
<span class="recorder-hint">{{ '@acorex:chat.voice-recorder.tap-to-start' | translate | async }}</span>
|
|
234
|
+
</div>
|
|
235
|
+
} @else {
|
|
236
|
+
<!-- Recording State -->
|
|
237
|
+
<div class="recorder-active">
|
|
238
|
+
<div class="recorder-info">
|
|
239
|
+
<div class="recording-indicator">
|
|
240
|
+
<span class="pulse-dot"></span>
|
|
241
|
+
<span class="recording-text">{{ '@acorex:chat.voice-recorder.recording' | translate | async }}</span>
|
|
242
|
+
</div>
|
|
243
|
+
<div class="recording-time">{{ formattedTime() }}</div>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<div class="recorder-actions">
|
|
247
|
+
<ax-button
|
|
248
|
+
[text]="translation.translateSync('@acorex:chat.actions.cancel')"
|
|
249
|
+
[look]="'ghost'"
|
|
250
|
+
(onClick)="cancelRecording()"
|
|
251
|
+
>
|
|
252
|
+
<ax-prefix>
|
|
253
|
+
<ax-icon><i class="fa-light fa-xmark"></i></ax-icon>
|
|
254
|
+
</ax-prefix>
|
|
255
|
+
</ax-button>
|
|
256
|
+
|
|
257
|
+
<ax-button
|
|
258
|
+
[text]="translation.translateSync('@acorex:chat.actions.send')"
|
|
259
|
+
[look]="'primary'"
|
|
260
|
+
(onClick)="stopRecording()"
|
|
261
|
+
>
|
|
262
|
+
<ax-prefix>
|
|
263
|
+
<ax-icon><i class="fa-light fa-paper-plane"></i></ax-icon>
|
|
264
|
+
</ax-prefix>
|
|
265
|
+
</ax-button>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
}
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
`, isInline: true, styles: [":host{display:block;width:100%;container-type:inline-size}.voice-recorder{display:flex;flex-direction:column;width:100%;background:rgb(var(--ax-sys-color-lightest-surface))}.recorder-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid rgb(var(--ax-sys-color-border-light-surface))}.recorder-title{margin:0;font-size:.875rem;font-weight:600}.close-button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;border-radius:50%;font-size:1rem;cursor:pointer;transition:all .2s;opacity:.7}.close-button:hover{background:rgb(var(--ax-sys-color-light-surface));opacity:1}.recorder-upload{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem;width:100%;max-width:320px;margin:0 auto}.recorder-content{display:flex;align-items:center;width:100%;padding:1rem}.recorder-idle{display:flex;align-items:center;gap:1rem;width:100%}.record-button{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:none;background:rgb(var(--ax-sys-color-primary-500));color:rgb(var(--ax-sys-color-on-primary-surface));border-radius:50%;font-size:1.5rem;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px rgba(var(--ax-sys-color-primary-500),.3)}.record-button:hover{background:rgb(var(--ax-sys-color-primary-600))}.recorder-hint{font-size:.875rem;opacity:.7}.recorder-active{display:flex;align-items:center;justify-content:space-between;width:100%;gap:1rem}.recorder-info{display:flex;align-items:center;gap:1.5rem;flex:1}.recording-indicator{display:flex;align-items:center;gap:.5rem}.pulse-dot{width:12px;height:12px;background:rgb(var(--ax-sys-color-danger-500));border-radius:50%;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.recording-text{font-size:.875rem;font-weight:600;color:rgb(var(--ax-sys-color-danger-500))}.recording-time{font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums;min-width:80px}.recorder-actions{display:flex;align-items:center;gap:.75rem}@container (max-width: 768px){.voice-recorder{padding:.75rem}.record-button{width:48px;height:48px;font-size:1.25rem}.recorder-info{gap:1rem}.recording-time{font-size:1.125rem;font-variant-numeric:tabular-nums}.recorder-actions{gap:.5rem}}@container (max-width: 480px){.recorder-hint{font-size:.8125rem}.recording-text{display:none}.recording-time{font-size:1rem;min-width:60px;font-variant-numeric:tabular-nums}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXProgressBarModule }, { kind: "component", type: i1$1.AXProgressBarComponent, selector: "ax-progress-bar", inputs: ["color", "mode", "progress", "height"], outputs: ["ValueChange", "sizeChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }] }); }
|
|
272
|
+
}
|
|
273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXConversationVoiceRecorderComponent, decorators: [{
|
|
274
|
+
type: Component,
|
|
275
|
+
args: [{ selector: 'ax-conversation-voice-recorder', imports: [CommonModule, AXButtonComponent, AXDecoratorModule, AXLabelModule, AXProgressBarModule, AXTranslationModule], template: `
|
|
276
|
+
<div class="voice-recorder">
|
|
277
|
+
<!-- Header with Close Button -->
|
|
278
|
+
<div class="recorder-header">
|
|
279
|
+
<h3 class="recorder-title">{{ '@acorex:chat.voice-recorder.title' | translate | async }}</h3>
|
|
280
|
+
<button
|
|
281
|
+
type="button"
|
|
282
|
+
class="close-button"
|
|
283
|
+
(click)="cancel()"
|
|
284
|
+
[attr.aria-label]="'@acorex:chat.actions.close' | translate | async"
|
|
285
|
+
>
|
|
286
|
+
<i class="fa-light fa-xmark"></i>
|
|
287
|
+
</button>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div class="recorder-content">
|
|
291
|
+
@if (isUploading()) {
|
|
292
|
+
<div class="recorder-upload">
|
|
293
|
+
<ax-label>{{ getUploadingLabel() }}</ax-label>
|
|
294
|
+
<ax-progress-bar [progress]="uploadProgress()" [mode]="'determinate'" [height]="6" />
|
|
295
|
+
</div>
|
|
296
|
+
} @else if (!isRecording()) {
|
|
297
|
+
<!-- Start Recording State -->
|
|
298
|
+
<div class="recorder-idle">
|
|
299
|
+
<button class="record-button" (click)="startRecording()">
|
|
300
|
+
<i class="fa-light fa-microphone"></i>
|
|
301
|
+
</button>
|
|
302
|
+
<span class="recorder-hint">{{ '@acorex:chat.voice-recorder.tap-to-start' | translate | async }}</span>
|
|
303
|
+
</div>
|
|
304
|
+
} @else {
|
|
305
|
+
<!-- Recording State -->
|
|
306
|
+
<div class="recorder-active">
|
|
307
|
+
<div class="recorder-info">
|
|
308
|
+
<div class="recording-indicator">
|
|
309
|
+
<span class="pulse-dot"></span>
|
|
310
|
+
<span class="recording-text">{{ '@acorex:chat.voice-recorder.recording' | translate | async }}</span>
|
|
311
|
+
</div>
|
|
312
|
+
<div class="recording-time">{{ formattedTime() }}</div>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<div class="recorder-actions">
|
|
316
|
+
<ax-button
|
|
317
|
+
[text]="translation.translateSync('@acorex:chat.actions.cancel')"
|
|
318
|
+
[look]="'ghost'"
|
|
319
|
+
(onClick)="cancelRecording()"
|
|
320
|
+
>
|
|
321
|
+
<ax-prefix>
|
|
322
|
+
<ax-icon><i class="fa-light fa-xmark"></i></ax-icon>
|
|
323
|
+
</ax-prefix>
|
|
324
|
+
</ax-button>
|
|
325
|
+
|
|
326
|
+
<ax-button
|
|
327
|
+
[text]="translation.translateSync('@acorex:chat.actions.send')"
|
|
328
|
+
[look]="'primary'"
|
|
329
|
+
(onClick)="stopRecording()"
|
|
330
|
+
>
|
|
331
|
+
<ax-prefix>
|
|
332
|
+
<ax-icon><i class="fa-light fa-paper-plane"></i></ax-icon>
|
|
333
|
+
</ax-prefix>
|
|
334
|
+
</ax-button>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
}
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
`, styles: [":host{display:block;width:100%;container-type:inline-size}.voice-recorder{display:flex;flex-direction:column;width:100%;background:rgb(var(--ax-sys-color-lightest-surface))}.recorder-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid rgb(var(--ax-sys-color-border-light-surface))}.recorder-title{margin:0;font-size:.875rem;font-weight:600}.close-button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;border-radius:50%;font-size:1rem;cursor:pointer;transition:all .2s;opacity:.7}.close-button:hover{background:rgb(var(--ax-sys-color-light-surface));opacity:1}.recorder-upload{display:flex;flex-direction:column;gap:.75rem;padding:1.5rem;width:100%;max-width:320px;margin:0 auto}.recorder-content{display:flex;align-items:center;width:100%;padding:1rem}.recorder-idle{display:flex;align-items:center;gap:1rem;width:100%}.record-button{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:none;background:rgb(var(--ax-sys-color-primary-500));color:rgb(var(--ax-sys-color-on-primary-surface));border-radius:50%;font-size:1.5rem;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px rgba(var(--ax-sys-color-primary-500),.3)}.record-button:hover{background:rgb(var(--ax-sys-color-primary-600))}.recorder-hint{font-size:.875rem;opacity:.7}.recorder-active{display:flex;align-items:center;justify-content:space-between;width:100%;gap:1rem}.recorder-info{display:flex;align-items:center;gap:1.5rem;flex:1}.recording-indicator{display:flex;align-items:center;gap:.5rem}.pulse-dot{width:12px;height:12px;background:rgb(var(--ax-sys-color-danger-500));border-radius:50%;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.recording-text{font-size:.875rem;font-weight:600;color:rgb(var(--ax-sys-color-danger-500))}.recording-time{font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums;min-width:80px}.recorder-actions{display:flex;align-items:center;gap:.75rem}@container (max-width: 768px){.voice-recorder{padding:.75rem}.record-button{width:48px;height:48px;font-size:1.25rem}.recorder-info{gap:1rem}.recording-time{font-size:1.125rem;font-variant-numeric:tabular-nums}.recorder-actions{gap:.5rem}}@container (max-width: 480px){.recorder-hint{font-size:.8125rem}.recording-text{display:none}.recording-time{font-size:1rem;min-width:60px;font-variant-numeric:tabular-nums}}\n"] }]
|
|
341
|
+
}], ctorParameters: () => [], propDecorators: { conversation: [{ type: i0.Input, args: [{ isSignal: true, alias: "conversation", required: false }] }], recordingComplete: [{ type: i0.Output, args: ["recordingComplete"] }], recordingCancelled: [{ type: i0.Output, args: ["recordingCancelled"] }] } });
|
|
342
|
+
|
|
343
|
+
export { AXConversationVoiceRecorderComponent };
|
|
344
|
+
//# sourceMappingURL=acorex-components-conversation-voice-recorder.component-D_rdANZN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-components-conversation-voice-recorder.component-D_rdANZN.mjs","sources":["../../../../packages/components/conversation/src/lib/plugins/composer/components/voice-recorder/voice-recorder.component.ts"],"sourcesContent":["/**\n * Voice Recorder Component\n * Full-width voice recording interface for the composer\n */\n\nimport { AXButtonComponent } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { Component, DestroyRef, PLATFORM_ID, computed, inject, input, output, signal } from '@angular/core';\nimport { AXConversationComposerService } from '../../../../components/composer/composer.service';\nimport type { AXConversation, AXConversationSendMessageCommand } from '../../../../models';\nimport { AXUploaderService } from '@acorex/cdk/uploader';\nimport { AX_CONVERSATION_VOICE_CATALOG } from './index';\nimport { isUploadAborted, notifyPickerValidationErrors } from '../shared/picker-upload';\n\n@Component({\n selector: 'ax-conversation-voice-recorder',\n imports: [CommonModule, AXButtonComponent, AXDecoratorModule, AXLabelModule, AXProgressBarModule, AXTranslationModule],\n template: `\n <div class=\"voice-recorder\">\n <!-- Header with Close Button -->\n <div class=\"recorder-header\">\n <h3 class=\"recorder-title\">{{ '@acorex:chat.voice-recorder.title' | translate | async }}</h3>\n <button\n type=\"button\"\n class=\"close-button\"\n (click)=\"cancel()\"\n [attr.aria-label]=\"'@acorex:chat.actions.close' | translate | async\"\n >\n <i class=\"fa-light fa-xmark\"></i>\n </button>\n </div>\n\n <div class=\"recorder-content\">\n @if (isUploading()) {\n <div class=\"recorder-upload\">\n <ax-label>{{ getUploadingLabel() }}</ax-label>\n <ax-progress-bar [progress]=\"uploadProgress()\" [mode]=\"'determinate'\" [height]=\"6\" />\n </div>\n } @else if (!isRecording()) {\n <!-- Start Recording State -->\n <div class=\"recorder-idle\">\n <button class=\"record-button\" (click)=\"startRecording()\">\n <i class=\"fa-light fa-microphone\"></i>\n </button>\n <span class=\"recorder-hint\">{{ '@acorex:chat.voice-recorder.tap-to-start' | translate | async }}</span>\n </div>\n } @else {\n <!-- Recording State -->\n <div class=\"recorder-active\">\n <div class=\"recorder-info\">\n <div class=\"recording-indicator\">\n <span class=\"pulse-dot\"></span>\n <span class=\"recording-text\">{{ '@acorex:chat.voice-recorder.recording' | translate | async }}</span>\n </div>\n <div class=\"recording-time\">{{ formattedTime() }}</div>\n </div>\n\n <div class=\"recorder-actions\">\n <ax-button\n [text]=\"translation.translateSync('@acorex:chat.actions.cancel')\"\n [look]=\"'ghost'\"\n (onClick)=\"cancelRecording()\"\n >\n <ax-prefix>\n <ax-icon><i class=\"fa-light fa-xmark\"></i></ax-icon>\n </ax-prefix>\n </ax-button>\n\n <ax-button\n [text]=\"translation.translateSync('@acorex:chat.actions.send')\"\n [look]=\"'primary'\"\n (onClick)=\"stopRecording()\"\n >\n <ax-prefix>\n <ax-icon><i class=\"fa-light fa-paper-plane\"></i></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n </div>\n }\n </div>\n </div>\n `,\n styles: [\n `\n :host {\n display: block;\n width: 100%;\n container-type: inline-size;\n }\n\n .voice-recorder {\n display: flex;\n flex-direction: column;\n width: 100%;\n background: rgb(var(--ax-sys-color-lightest-surface));\n }\n\n .recorder-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.75rem 1rem;\n border-bottom: 1px solid rgb(var(--ax-sys-color-border-light-surface));\n }\n\n .recorder-title {\n margin: 0;\n font-size: 0.875rem;\n font-weight: 600;\n }\n\n .close-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n border: none;\n background: transparent;\n border-radius: 50%;\n font-size: 1rem;\n cursor: pointer;\n transition: all 0.2s;\n opacity: 0.7;\n }\n\n .close-button:hover {\n background: rgb(var(--ax-sys-color-light-surface));\n opacity: 1;\n }\n\n .recorder-upload {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n padding: 1.5rem;\n width: 100%;\n max-width: 320px;\n margin: 0 auto;\n }\n\n .recorder-content {\n display: flex;\n align-items: center;\n width: 100%;\n padding: 1rem;\n }\n\n .recorder-idle {\n display: flex;\n align-items: center;\n gap: 1rem;\n width: 100%;\n }\n\n .record-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 56px;\n height: 56px;\n border: none;\n background: rgb(var(--ax-sys-color-primary-500));\n color: rgb(var(--ax-sys-color-on-primary-surface));\n border-radius: 50%;\n font-size: 1.5rem;\n cursor: pointer;\n transition: all 0.2s;\n box-shadow: 0 2px 8px rgba(var(--ax-sys-color-primary-500), 0.3);\n }\n\n .record-button:hover {\n background: rgb(var(--ax-sys-color-primary-600));\n }\n\n .recorder-hint {\n font-size: 0.875rem;\n opacity: 0.7;\n }\n\n .recorder-active {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n gap: 1rem;\n }\n\n .recorder-info {\n display: flex;\n align-items: center;\n gap: 1.5rem;\n flex: 1;\n }\n\n .recording-indicator {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n }\n\n .pulse-dot {\n width: 12px;\n height: 12px;\n background: rgb(var(--ax-sys-color-danger-500));\n border-radius: 50%;\n animation: pulse 1.5s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n }\n\n .recording-text {\n font-size: 0.875rem;\n font-weight: 600;\n color: rgb(var(--ax-sys-color-danger-500));\n }\n\n .recording-time {\n font-size: 1.25rem;\n font-weight: 600;\n font-variant-numeric: tabular-nums;\n min-width: 80px;\n }\n\n .recorder-actions {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n }\n\n @container (max-width: 768px) {\n .voice-recorder {\n padding: 0.75rem;\n }\n\n .record-button {\n width: 48px;\n height: 48px;\n font-size: 1.25rem;\n }\n\n .recorder-info {\n gap: 1rem;\n }\n\n .recording-time {\n font-size: 1.125rem;\n font-variant-numeric: tabular-nums;\n }\n\n .recorder-actions {\n gap: 0.5rem;\n }\n }\n\n @container (max-width: 480px) {\n .recorder-hint {\n font-size: 0.8125rem;\n }\n\n .recording-text {\n display: none;\n }\n\n .recording-time {\n font-size: 1rem;\n min-width: 60px;\n font-variant-numeric: tabular-nums;\n }\n }\n `,\n ],\n})\nexport class AXConversationVoiceRecorderComponent {\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n private readonly composerService = inject(AXConversationComposerService);\n private readonly uploader = inject(AXUploaderService);\n private readonly toast = inject(AXToastService);\n readonly translation = inject(AXTranslationService);\n\n readonly conversation = input<AXConversation>();\n readonly recordingComplete = output<Blob>();\n readonly recordingCancelled = output<void>();\n\n readonly isRecording = signal(false);\n readonly isUploading = signal(false);\n readonly uploadProgress = signal(0);\n readonly recordingDuration = signal(0);\n\n private recordingStartTime = 0;\n private timerInterval?: number;\n private mediaRecorder?: MediaRecorder;\n private audioChunks: Blob[] = [];\n private activeStream?: MediaStream;\n private cancelled = false;\n private uploadAbortController?: AbortController;\n\n readonly formattedTime = computed(() => {\n const duration = this.recordingDuration();\n const minutes = Math.floor(duration / 60);\n const seconds = duration % 60;\n return `${minutes}:${seconds.toString().padStart(2, '0')}`;\n });\n\n constructor() {\n this.destroyRef.onDestroy(() => this.stopAndCleanup());\n }\n\n async startRecording(): Promise<void> {\n if (!isPlatformBrowser(this.platformId)) return;\n\n try {\n const stream = await navigator.mediaDevices.getUserMedia({ audio: true });\n this.activeStream = stream;\n this.mediaRecorder = new MediaRecorder(stream);\n this.audioChunks = [];\n this.cancelled = false;\n\n this.mediaRecorder.ondataavailable = (event) => {\n if (event.data.size > 0) {\n this.audioChunks.push(event.data);\n }\n };\n\n this.mediaRecorder.onstop = async () => {\n stream.getTracks().forEach((track) => track.stop());\n this.activeStream = undefined;\n\n if (this.cancelled) {\n this.cancelled = false;\n return;\n }\n\n const audioBlob = new Blob(this.audioChunks, { type: 'audio/webm' });\n this.recordingComplete.emit(audioBlob);\n\n const conv = this.conversation();\n if (conv && this.audioChunks.length > 0) {\n await this.sendVoiceMessage(audioBlob, conv);\n }\n };\n\n this.mediaRecorder.start();\n this.isRecording.set(true);\n this.recordingStartTime = Date.now();\n this.recordingDuration.set(0);\n\n this.timerInterval = window.setInterval(() => {\n const elapsed = Math.floor((Date.now() - this.recordingStartTime) / 1000);\n this.recordingDuration.set(elapsed);\n }, 1000);\n } catch (error) {\n console.error('Failed to start recording:', error);\n }\n }\n\n /** Stop recording and send */\n stopRecording(): void {\n if (this.mediaRecorder && this.isRecording()) {\n this.mediaRecorder.stop();\n this.isRecording.set(false);\n this.clearTimer();\n // Close the full-width component\n this.composerService.hideComponent();\n }\n }\n\n cancelRecording(): void {\n if (this.mediaRecorder && this.isRecording()) {\n this.cancelled = true;\n this.mediaRecorder.stop();\n this.isRecording.set(false);\n this.clearTimer();\n this.audioChunks = [];\n this.recordingCancelled.emit();\n this.composerService.hideComponent();\n }\n }\n\n /** Close the voice recorder */\n cancel(): void {\n if (this.isRecording()) {\n this.cancelRecording();\n return;\n }\n this.abortInProgressUploads();\n this.composerService.hideComponent();\n }\n\n abortInProgressUploads(): void {\n if (this.uploadAbortController && !this.uploadAbortController.signal.aborted) {\n this.uploadAbortController.abort();\n }\n this.uploadAbortController = undefined;\n if (this.isUploading()) {\n this.isUploading.set(false);\n this.uploadProgress.set(0);\n }\n }\n\n /** Clear timer */\n private clearTimer(): void {\n if (this.timerInterval) {\n clearInterval(this.timerInterval);\n this.timerInterval = undefined;\n }\n }\n\n getUploadingLabel(): string {\n return this.translation.translateSync('@acorex:chat.pickers.files.uploading-progress', {\n params: { progress: this.uploadProgress() },\n });\n }\n\n /** Send voice message */\n private async sendVoiceMessage(audioBlob: Blob, conversation: AXConversation): Promise<void> {\n const voiceFile = new File([audioBlob], `voice-${Date.now()}.webm`, { type: 'audio/webm' });\n const { rejected } = await this.uploader.validateFiles([voiceFile], AX_CONVERSATION_VOICE_CATALOG);\n\n if (rejected.length > 0) {\n notifyPickerValidationErrors(this.toast, this.translation, rejected);\n return;\n }\n\n this.uploadAbortController = new AbortController();\n const uploadSignal = this.uploadAbortController.signal;\n this.isUploading.set(true);\n this.uploadProgress.set(0);\n\n const command: AXConversationSendMessageCommand = {\n conversationId: conversation.id,\n type: 'voice',\n payload: {\n type: 'voice',\n url: '',\n duration: this.recordingDuration(),\n size: audioBlob.size,\n mimeType: 'audio/webm',\n },\n };\n\n this.composerService.hideComponent();\n\n void this.composerService\n .sendMessage(command, {\n media: {\n source: audioBlob,\n fileName: `voice-${Date.now()}.webm`,\n mimeType: 'audio/webm',\n onProgress: (percent) => {\n if (!uploadSignal.aborted) {\n this.uploadProgress.set(percent);\n }\n },\n signal: uploadSignal,\n },\n })\n .catch((error) => {\n if (!isUploadAborted(error, uploadSignal)) {\n console.error('Failed to send voice message:', error);\n }\n })\n .finally(() => {\n this.uploadAbortController = undefined;\n if (!uploadSignal.aborted) {\n this.isUploading.set(false);\n this.uploadProgress.set(0);\n }\n });\n }\n\n private stopAndCleanup(): void {\n this.abortInProgressUploads();\n this.clearTimer();\n if (this.mediaRecorder?.state === 'recording') {\n this.cancelled = true;\n this.mediaRecorder.stop();\n }\n this.activeStream?.getTracks().forEach((track) => track.stop());\n this.activeStream = undefined;\n }\n}\n"],"names":["i3","i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;MA4RU,oCAAoC,CAAA;AAgC/C,IAAA,WAAA,GAAA;AA/BiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACvD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACpC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAE1C,IAAA,CAAA,YAAY,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAkB;QACtC,IAAA,CAAA,iBAAiB,GAAG,MAAM,EAAQ;QAClC,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAQ;AA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