@acorex/components 18.5.16 → 18.5.17
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.component.d.ts +26 -0
- package/alert/lib/alert.component.d.ts +50 -2
- package/audio-wave/lib/audio-wave.component.d.ts +48 -0
- package/avatar/lib/avatar.component.d.ts +20 -1
- package/badge/lib/badge.component.d.ts +8 -0
- package/bottom-navigation/lib/bottom-navigation.component.d.ts +16 -0
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +11 -0
- package/breadcrumbs/lib/breadcrumbs.component.d.ts +11 -0
- package/button/lib/button-item-list.component.d.ts +34 -0
- package/button/lib/button-item.component.d.ts +47 -0
- package/button/lib/button.component.d.ts +36 -0
- package/button-group/lib/button-group.component.d.ts +53 -0
- package/calendar/lib/calendar-range.component.d.ts +48 -0
- package/calendar/lib/calendar.component.d.ts +114 -0
- package/check-box/lib/check-box.component.d.ts +36 -0
- package/chips/lib/chips.component.d.ts +13 -0
- package/circular-progress/lib/circular-progress.component.d.ts +67 -1
- package/collapse/lib/collapse-group.component.d.ts +38 -0
- package/collapse/lib/collapse.component.d.ts +55 -0
- package/color-box/lib/color-box.component.d.ts +28 -1
- package/color-palette/lib/color-palette-input.component.d.ts +35 -0
- package/color-palette/lib/color-palette-picker.component.d.ts +53 -0
- package/color-palette/lib/color-palette-preview.component.d.ts +17 -0
- package/color-palette/lib/color-palette-swatches.component.d.ts +30 -0
- package/color-palette/lib/color-palette.component.d.ts +8 -0
- package/comment/lib/comment-container/comment-container.component.d.ts +5 -0
- package/comment/lib/comment-item/comment-item.component.d.ts +16 -2
- package/comment/lib/comment-like/comment-like.component.d.ts +8 -0
- package/comment/lib/comment-reply/comment-reply.component.d.ts +4 -0
- package/comment/lib/comment-view/comment-view.component.d.ts +4 -0
- package/common/lib/components/base-component.class.d.ts +8 -0
- package/common/lib/components/button-base-component.class.d.ts +21 -0
- package/common/lib/components/interactive-component.class.d.ts +15 -0
- package/conversation/lib/conversation-container/conversation-container.component.d.ts +4 -0
- package/conversation/lib/conversation-input/conversation-input.component.d.ts +79 -2
- package/conversation/lib/conversation-message/conversation-message.component.d.ts +41 -0
- package/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.d.ts +62 -0
- package/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.d.ts +34 -0
- package/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.d.ts +21 -0
- package/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.d.ts +29 -0
- package/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.d.ts +11 -0
- package/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.d.ts +72 -0
- package/conversation/lib/conversation-view/conversation-view.component.d.ts +22 -0
- package/data-pager/lib/data-pager-base.component.d.ts +9 -0
- package/data-pager/lib/data-pager-info.component.d.ts +14 -0
- package/data-pager/lib/data-pager-input-selector.component.d.ts +17 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +20 -0
- package/data-pager/lib/data-pager-numeric-selector.component.d.ts +14 -0
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +21 -1
- package/esm2022/alert/lib/alert.component.mjs +48 -3
- package/esm2022/audio-wave/lib/audio-wave.component.mjs +43 -1
- package/esm2022/avatar/lib/avatar.component.mjs +21 -2
- package/esm2022/badge/lib/badge.component.mjs +9 -1
- package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +14 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +9 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +6 -1
- package/esm2022/button/lib/button-item-list.component.mjs +35 -1
- package/esm2022/button/lib/button-item.component.mjs +36 -1
- package/esm2022/button/lib/button.component.mjs +37 -1
- package/esm2022/button-group/lib/button-group.component.mjs +48 -1
- package/esm2022/calendar/lib/calendar-range.component.mjs +46 -1
- package/esm2022/calendar/lib/calendar.component.mjs +112 -1
- package/esm2022/check-box/lib/check-box.component.mjs +34 -1
- package/esm2022/chips/lib/chips.component.mjs +14 -1
- package/esm2022/circular-progress/lib/circular-progress.component.mjs +69 -1
- package/esm2022/collapse/lib/collapse-group.component.mjs +39 -1
- package/esm2022/collapse/lib/collapse.component.mjs +53 -1
- package/esm2022/color-box/lib/color-box.component.mjs +23 -2
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +36 -1
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +54 -1
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +18 -1
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +28 -1
- package/esm2022/color-palette/lib/color-palette.component.mjs +9 -1
- package/esm2022/comment/lib/comment-container/comment-container.component.mjs +6 -1
- package/esm2022/comment/lib/comment-item/comment-item.component.mjs +15 -1
- package/esm2022/comment/lib/comment-like/comment-like.component.mjs +9 -1
- package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +5 -1
- package/esm2022/comment/lib/comment-view/comment-view.component.mjs +5 -1
- package/esm2022/common/lib/components/base-component.class.mjs +9 -1
- package/esm2022/common/lib/components/button-base-component.class.mjs +22 -1
- package/esm2022/common/lib/components/interactive-component.class.mjs +16 -1
- package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +5 -1
- package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +75 -1
- package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +39 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +63 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +35 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +22 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +9 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +30 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +12 -1
- package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +70 -1
- package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +23 -1
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +7 -1
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +9 -1
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +18 -1
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +15 -1
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +20 -1
- package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +5 -1
- package/esm2022/scheduler/lib/scheduler.component.mjs +10 -1
- package/esm2022/search-box/lib/search-box.component.mjs +19 -2
- package/esm2022/select-box/lib/select-box.component.mjs +50 -2
- package/esm2022/selection-list/lib/selection-list.component.mjs +51 -1
- package/esm2022/side-menu/lib/side-menu.component.mjs +5 -1
- package/esm2022/skeleton/lib/skeleton.component.mjs +11 -1
- package/esm2022/slider/lib/slider.component.mjs +52 -2
- package/esm2022/step-wizard/lib/step-wizard.component.mjs +23 -1
- package/esm2022/switch/lib/switch-content.component.mjs +5 -1
- package/esm2022/switch/lib/switch.component.mjs +11 -1
- package/esm2022/tabs/lib/tab-item.component.mjs +24 -1
- package/esm2022/tabs/lib/tabs.component.mjs +36 -1
- package/esm2022/tag/lib/tag.component.mjs +2 -1
- package/esm2022/text-area/lib/text-area.component.mjs +8 -1
- package/esm2022/text-box/lib/text-box.component.mjs +13 -1
- package/esm2022/toast/lib/toast.component.mjs +6 -1
- package/esm2022/tooltip/lib/tooltip.component.mjs +5 -1
- package/esm2022/uploader/lib/uploader-dialog-container.component.mjs +16 -1
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +5 -1
- package/esm2022/uploader/lib/uploader-list.component.mjs +8 -3
- package/esm2022/uploader/lib/uploader.models.mjs +14 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +18 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +106 -36
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -1
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -1
- package/fesm2022/acorex-components-action-sheet.mjs +20 -0
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +47 -2
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +42 -0
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +20 -1
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +8 -0
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +13 -0
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +13 -0
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +47 -0
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +105 -0
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +156 -0
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +33 -0
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +13 -0
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +68 -0
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +90 -0
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +22 -1
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +140 -0
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +35 -0
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +44 -0
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +372 -0
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +62 -0
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +32 -0
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +18 -1
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +49 -1
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +50 -0
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +4 -0
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +10 -0
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +51 -1
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +22 -0
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +14 -0
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +58 -0
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +1 -0
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +7 -0
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +12 -0
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +5 -0
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +4 -0
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +39 -2
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +134 -35
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +31 -31
- package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
- package/scheduler/lib/scheduler-week-view.component.d.ts +4 -0
- package/scheduler/lib/scheduler.component.d.ts +10 -0
- package/search-box/lib/search-box.component.d.ts +19 -1
- package/select-box/lib/select-box.component.d.ts +78 -1
- package/selection-list/lib/selection-list.component.d.ts +55 -0
- package/side-menu/lib/side-menu.component.d.ts +4 -0
- package/skeleton/lib/skeleton.component.d.ts +10 -0
- package/slider/lib/slider.component.d.ts +51 -1
- package/step-wizard/lib/step-wizard.component.d.ts +23 -0
- package/switch/lib/switch-content.component.d.ts +4 -0
- package/switch/lib/switch.component.d.ts +14 -0
- package/tabs/lib/tab-item.component.d.ts +32 -0
- package/tabs/lib/tabs.component.d.ts +42 -0
- package/tag/lib/tag.component.d.ts +4 -0
- package/text-area/lib/text-area.component.d.ts +13 -0
- package/text-box/lib/text-box.component.d.ts +27 -0
- package/toast/lib/toast.component.d.ts +6 -0
- package/tooltip/lib/tooltip.component.d.ts +13 -0
- package/uploader/lib/uploader-dialog-container.component.d.ts +15 -0
- package/uploader/lib/uploader-drop-zone.component.d.ts +4 -0
- package/uploader/lib/uploader-list.component.d.ts +5 -0
- package/uploader/lib/uploader.models.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +19 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +61 -20
- package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +4 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +3 -0
@@ -8,17 +8,52 @@ import * as i2 from "@acorex/components/audio-wave";
|
|
8
8
|
import * as i3 from "@acorex/components/loading";
|
9
9
|
import * as i4 from "@angular/common";
|
10
10
|
import * as i5 from "@acorex/core/format";
|
11
|
+
/**
|
12
|
+
* A component for displaying and handling audio messages in a conversation.
|
13
|
+
*
|
14
|
+
* @category Components
|
15
|
+
*/
|
11
16
|
export class AXConversationVoiceMessageComponent extends AXConversationMessageBaseComponent {
|
17
|
+
/**
|
18
|
+
* @ignore
|
19
|
+
*/
|
12
20
|
constructor() {
|
13
21
|
super();
|
22
|
+
/**
|
23
|
+
* @ignore
|
24
|
+
*/
|
14
25
|
this.config = { url: '' };
|
26
|
+
/**
|
27
|
+
* @ignore
|
28
|
+
*/
|
15
29
|
this.audioState = signal('paused');
|
30
|
+
/**
|
31
|
+
* @ignore
|
32
|
+
*/
|
16
33
|
this.parent = inject(AXConversationViewComponent);
|
34
|
+
/**
|
35
|
+
* @ignore
|
36
|
+
*/
|
17
37
|
this.selectedRate = signal(1);
|
38
|
+
/**
|
39
|
+
* @ignore
|
40
|
+
*/
|
18
41
|
this.selectedRateIndex = signal(1);
|
42
|
+
/**
|
43
|
+
* @ignore
|
44
|
+
*/
|
19
45
|
this.audioProgress = signal(0);
|
46
|
+
/**
|
47
|
+
* @ignore
|
48
|
+
*/
|
20
49
|
this.timeLeft = signal(0);
|
50
|
+
/**
|
51
|
+
* @ignore
|
52
|
+
*/
|
21
53
|
this.currentTime = signal(0);
|
54
|
+
/**
|
55
|
+
* @ignore
|
56
|
+
*/
|
22
57
|
this.duration = signal(0);
|
23
58
|
afterNextRender(() => {
|
24
59
|
this.config.url = this.message?.content;
|
@@ -30,6 +65,9 @@ export class AXConversationVoiceMessageComponent extends AXConversationMessageBa
|
|
30
65
|
this.handleLoadingProgress();
|
31
66
|
});
|
32
67
|
}
|
68
|
+
/**
|
69
|
+
* @ignore
|
70
|
+
*/
|
33
71
|
setWaveColor() {
|
34
72
|
let waveColor = '';
|
35
73
|
let progressColor = '';
|
@@ -44,15 +82,28 @@ export class AXConversationVoiceMessageComponent extends AXConversationMessageBa
|
|
44
82
|
this.config.waveColor = waveColor;
|
45
83
|
this.config.progressColor = progressColor;
|
46
84
|
}
|
85
|
+
/**
|
86
|
+
* Pauses the audio playback and updates the audio state to 'paused'.
|
87
|
+
* @ignore
|
88
|
+
*/
|
47
89
|
handlePauseClick() {
|
48
90
|
this.audio?.pause();
|
49
91
|
this.audioState.set('paused');
|
50
92
|
}
|
93
|
+
/**
|
94
|
+
* Plays the audio and updates the audio state to 'playing'.
|
95
|
+
* @ignore
|
96
|
+
*/
|
51
97
|
handlePlayClick() {
|
52
98
|
this.audio?.play()?.then(() => {
|
53
99
|
this.audioState.set('playing');
|
54
100
|
});
|
55
101
|
}
|
102
|
+
/**
|
103
|
+
* Updates audio state and progress based on status changes from the audio wave.
|
104
|
+
* @param e - The event containing status and data related to the audio.
|
105
|
+
* @ignore
|
106
|
+
*/
|
56
107
|
handleOnStatusChanged(e) {
|
57
108
|
if (e.status === 'load' || e.status === 'loading') {
|
58
109
|
this.audioState.set('loading');
|
@@ -76,17 +127,32 @@ export class AXConversationVoiceMessageComponent extends AXConversationMessageBa
|
|
76
127
|
this.audioState.set('error');
|
77
128
|
}
|
78
129
|
}
|
130
|
+
/**
|
131
|
+
* @ignore
|
132
|
+
*/
|
79
133
|
handleLoadingProgress() {
|
80
134
|
// this.audioLoaderProgress?.nativeElement.style.cssText = `--ax-audio-progress: ${this.audioProgress()}`;
|
81
135
|
}
|
136
|
+
/**
|
137
|
+
* Handles the cancellation of a loading operation.
|
138
|
+
* @ignore
|
139
|
+
*/
|
82
140
|
handleCancelLoading() {
|
83
141
|
//
|
84
142
|
}
|
143
|
+
/**
|
144
|
+
* Reloads the audio and updates the state to 'loading'.
|
145
|
+
* @ignore
|
146
|
+
*/
|
85
147
|
handleReloadClick() {
|
86
148
|
//
|
87
149
|
this.audioState.set('loading');
|
88
150
|
this.audio.load();
|
89
151
|
}
|
152
|
+
/**
|
153
|
+
* Cycles through predefined audio playback rates and updates the rate.
|
154
|
+
* @ignore
|
155
|
+
*/
|
90
156
|
handleRateClick() {
|
91
157
|
const rates = [0.5, 1, 2, 4];
|
92
158
|
if (this.selectedRateIndex() == rates.length - 1) {
|
@@ -98,6 +164,9 @@ export class AXConversationVoiceMessageComponent extends AXConversationMessageBa
|
|
98
164
|
this.selectedRate.set(rates[this.selectedRateIndex()]);
|
99
165
|
this.audio.setRate(this.selectedRate());
|
100
166
|
}
|
167
|
+
/**
|
168
|
+
* @ignore
|
169
|
+
*/
|
101
170
|
get __hostClass() {
|
102
171
|
return `${this.message.fromId ? 'ax-state-other' : 'ax-state-own'}`;
|
103
172
|
}
|
@@ -114,4 +183,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
114
183
|
type: HostBinding,
|
115
184
|
args: ['class']
|
116
185
|
}] } });
|
117
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLW1lc3NhZ2Utdm9pY2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi1tZXNzYWdlcy9jb252ZXJzYXRpb24tbWVzc2FnZS12b2ljZS9jb252ZXJzYXRpb24tbWVzc2FnZS12b2ljZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvY29udmVyc2F0aW9u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4gICAgICAgICAgW3N0cm9rZV09XCIyXCJcbiAgICAgICAgICBbY29sb3JdPVwibWVzc2FnZS5mcm9tSWQgPyAndmFyKC0tYXgtb3RoZXItY29sb3IpJyA6ICd2YXIoLS1heC1vd24tY29sb3IpJ1wiXG4gICAgICAgID48L2F4LWxvYWRpbmctc3Bpbm5lcj5cbiAgICAgIDwvYnV0dG9uPlxuICAgIH1cbiAgfVxuPC9kaXY+XG48YXgtYXVkaW8td2F2ZSAjYSBbY29uZmlnXT1cImNvbmZpZ1wiIChvblN0YXR1c0NoYW5nZWQpPVwiaGFuZGxlT25TdGF0dXNDaGFuZ2VkKCRldmVudClcIj48L2F4LWF1ZGlvLXdhdmU+XG48YXgtc3VmZml4PlxuICA8ZGl2IGNsYXNzPVwiYXgtYXVkaW8tcmF0ZS1idXR0b25cIiBbY2xhc3MuYXgtc3RhdGUtb3duXT1cIiFtZXNzYWdlPy5mcm9tSWRcIiAoY2xpY2spPVwiaGFuZGxlUmF0ZUNsaWNrKClcIj57eyBzZWxlY3RlZFJhdGUoKSB9fVg8L2Rpdj5cbjwvYXgtc3VmZml4PlxuIl19
|
@@ -3,11 +3,30 @@ import { ChangeDetectionStrategy, Component, ViewContainerRef, ViewEncapsulation
|
|
3
3
|
import { AXConversationService } from '../services/conversation.service';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "../conversation-message/conversation-message.component";
|
6
|
+
/**
|
7
|
+
* Displays the conversation view with messages and interactions.
|
8
|
+
*
|
9
|
+
* @category Components
|
10
|
+
*/
|
6
11
|
export class AXConversationViewComponent extends MXBaseComponent {
|
12
|
+
/**
|
13
|
+
* @ignore
|
14
|
+
*/
|
7
15
|
constructor() {
|
8
16
|
super();
|
17
|
+
/**
|
18
|
+
* @ignore
|
19
|
+
*/
|
9
20
|
this.conversationService = inject(AXConversationService);
|
21
|
+
/**
|
22
|
+
* Emits an event when an action is performed within the conversation view.
|
23
|
+
*
|
24
|
+
* @event
|
25
|
+
*/
|
10
26
|
this.onAction = output();
|
27
|
+
/**
|
28
|
+
* @ignore
|
29
|
+
*/
|
11
30
|
this.conversations = computed(() => {
|
12
31
|
return this.conversationService.chats();
|
13
32
|
});
|
@@ -16,6 +35,9 @@ export class AXConversationViewComponent extends MXBaseComponent {
|
|
16
35
|
this.scrollIntoEndOfView();
|
17
36
|
});
|
18
37
|
}
|
38
|
+
/**
|
39
|
+
* @ignore
|
40
|
+
*/
|
19
41
|
scrollIntoEndOfView() {
|
20
42
|
const el = this.viewRef.element.nativeElement;
|
21
43
|
el.scroll({ top: el.scrollHeight });
|
@@ -27,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
27
49
|
type: Component,
|
28
50
|
args: [{ selector: 'ax-conversation-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "@for (item of conversations(); track $index) {\n <ax-conversation-message [chatMessage]=\"item\"></ax-conversation-message>\n}\n", styles: ["ax-conversation-view{display:flex;flex-direction:column;gap:.5rem;height:100%;width:100%;overflow-y:auto;overflow-x:hidden}\n"] }]
|
29
51
|
}], ctorParameters: () => [] });
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyc2F0aW9uLXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbnZlcnNhdGlvbi9zcmMvbGliL2NvbnZlcnNhdGlvbi12aWV3L2NvbnZlcnNhdGlvbi12aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9jb252ZXJzYXRpb24vc3JjL2xpYi9jb252ZXJzYXRpb24tdmlldy9jb252ZXJzYXRpb24tdmlldy5jb21wb25lbnQ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cigpIHtcbiAgICBzdXBlcigpO1xuICAgIGFmdGVyTmV4dFJlbmRlcigoKSA9PiB7XG4gICAgICB0aGlzLnNjcm9sbEludG9FbmRPZlZpZXcoKTtcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgc2Nyb2xsSW50b0VuZE9mVmlldygpIHtcbiAgICBjb25zdCBlbCA9IHRoaXMudmlld1JlZi5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQgYXMgSFRNTEVsZW1lbnQ7XG4gICAgZWwuc2Nyb2xsKHsgdG9wOiBlbC5zY3JvbGxIZWlnaHQgfSk7XG4gIH1cbn1cbiIsIkBmb3IgKGl0ZW0gb2YgY29udmVyc2F0aW9ucygpOyB0cmFjayAkaW5kZXgpIHtcbiAgPGF4LWNvbnZlcnNhdGlvbi1tZXNzYWdlIFtjaGF0TWVzc2FnZV09XCJpdGVtXCI+PC9heC1jb252ZXJzYXRpb24tbWVzc2FnZT5cbn1cbiJdfQ==
|
@@ -21,6 +21,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
21
21
|
type: Injectable
|
22
22
|
}] });
|
23
23
|
export class AXDataPagerChild extends MXInteractiveComponent {
|
24
|
+
/**
|
25
|
+
* @ignore
|
26
|
+
*/
|
24
27
|
constructor() {
|
25
28
|
super();
|
26
29
|
this._parent = inject(AXDataPagerParentComponent);
|
@@ -34,6 +37,9 @@ export class AXDataPagerChild extends MXInteractiveComponent {
|
|
34
37
|
this.applyParent();
|
35
38
|
});
|
36
39
|
}
|
40
|
+
/**
|
41
|
+
* @ignore
|
42
|
+
*/
|
37
43
|
ngAfterViewInit() {
|
38
44
|
this.applyParent();
|
39
45
|
}
|
@@ -43,4 +49,4 @@ export class AXDataPagerChild extends MXInteractiveComponent {
|
|
43
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXDataPagerChild, decorators: [{
|
44
50
|
type: Injectable
|
45
51
|
}], ctorParameters: () => [] });
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1iYXNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUF3QixzQkFBc0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ2xHLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNwRCxPQUFPLEVBQWdCLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBZ0JqRSxNQUFNLE9BQU8sdUJBQXdCLFNBQVEsT0FBTztJQUFwRDs7UUFDRSxVQUFLLEdBQWlDLEVBQUUsSUFBSSxFQUFFLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUM7UUFDekQsU0FBSSxHQUFHLENBQUMsQ0FBQztRQUNULFNBQUksR0FBRyxDQUFDLENBQUM7UUFDVCxTQUFJLEdBQUcsQ0FBQyxDQUFDO1FBQ1QsZUFBVSxHQUFHLENBQUMsQ0FBQztRQUNmLGVBQVUsR0FBRyxDQUFDLENBQUM7SUFDakIsQ0FBQztDQUFBO0FBR0QsTUFBTSxPQUFnQiwwQkFBMEI7OEdBQTFCLDBCQUEwQjtrSEFBMUIsMEJBQTBCOzsyRkFBMUIsMEJBQTBCO2tCQUQvQyxVQUFVOztBQWlCWCxNQUFNLE9BQWdCLGdCQUFpQixTQUFRLHNCQUFzQjtJQUluRTs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W50Lm9uT3B0aW9uQ2hhbmdlZC5waXBlKHRoaXMuX3Vuc3Vic2NyaWJlci50YWtlVW50aWxEZXN0cm95KS5zdWJzY3JpYmUoKGMpID0+IHtcbiAgICAgIHRoaXMuYXBwbHlQYXJlbnQoKTtcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgbmdBZnRlclZpZXdJbml0KCkge1xuICAgIHRoaXMuYXBwbHlQYXJlbnQoKTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgcHJvdGVjdGVkIGFic3RyYWN0IGFwcGx5UGFyZW50KCk6IHZvaWQ7XG59XG4iXX0=
|
@@ -5,11 +5,19 @@ import { AXDataPagerChild } from './data-pager-base.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "@angular/common";
|
7
7
|
import * as i2 from "@acorex/core/translation";
|
8
|
+
/**
|
9
|
+
* Displays formatted and translated information text for a data pager component.
|
10
|
+
*
|
11
|
+
* @category Components
|
12
|
+
*/
|
8
13
|
export class AXDataPagerInfoComponent extends AXDataPagerChild {
|
9
14
|
constructor() {
|
10
15
|
super(...arguments);
|
11
16
|
this.translateService = inject(AXTranslationService);
|
12
17
|
}
|
18
|
+
/**
|
19
|
+
* @ignore
|
20
|
+
*/
|
13
21
|
applyParent() {
|
14
22
|
const info = this._parent.displayInfo;
|
15
23
|
if ([info.range, info.range.from, info.totalItems].every((c) => c)) {
|
@@ -38,4 +46,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
38
46
|
}], propDecorators: { text: [{
|
39
47
|
type: Input
|
40
48
|
}] } });
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1pbmZvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJv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5jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -4,17 +4,34 @@ import { AXDataPagerChild } from './data-pager-base.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@angular/forms";
|
6
6
|
import * as i2 from "@acorex/components/number-box";
|
7
|
+
/**
|
8
|
+
* Provides an input selector for navigating pages in a data pager component.
|
9
|
+
*
|
10
|
+
* @category Components
|
11
|
+
*/
|
7
12
|
export class AXDataPagerInputSelectorComponent extends AXDataPagerChild {
|
8
13
|
constructor() {
|
9
14
|
super(...arguments);
|
15
|
+
/**
|
16
|
+
* @ignore
|
17
|
+
*/
|
10
18
|
this._totalPages = 1;
|
19
|
+
/**
|
20
|
+
* @ignore
|
21
|
+
*/
|
11
22
|
this._currentPage = 1;
|
12
23
|
}
|
24
|
+
/**
|
25
|
+
* @ignore
|
26
|
+
*/
|
13
27
|
applyParent() {
|
14
28
|
this._currentPage = this._parent.displayInfo.page;
|
15
29
|
this._totalPages = this._parent.displayInfo.totalPages;
|
16
30
|
this.cdr.markForCheck();
|
17
31
|
}
|
32
|
+
/**
|
33
|
+
* @ignore
|
34
|
+
*/
|
18
35
|
_handleValueChanged(e) {
|
19
36
|
//TODO: debounceTime
|
20
37
|
if (e.isUserInteraction) {
|
@@ -70,4 +87,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
70
87
|
],
|
71
88
|
}]
|
72
89
|
}] });
|
73
|
-
//# sourceMappingURL=data:application/json;base64,
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1pbnB1dC1zZWxlY3Rvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZGF0YS1wYWdlci9zcmMvbGliL2RhdGEtcGFnZXIt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KipcbiAgICogIEBpZ25vcmVcbiAgICovXG4gIHByb3RlY3RlZCBvdmVycmlkZSBhcHBseVBhcmVudCgpIHtcbiAgICB0aGlzLl9jdXJyZW50UGFnZSA9IHRoaXMuX3BhcmVudC5kaXNwbGF5SW5mby5wYWdlO1xuICAgIHRoaXMuX3RvdGFsUGFnZXMgPSB0aGlzLl9wYXJlbnQuZGlzcGxheUluZm8udG90YWxQYWdlcztcbiAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgcHJvdGVjdGVkIF9oYW5kbGVWYWx1ZUNoYW5nZWQoZTogQVhWYWx1ZUNoYW5nZWRFdmVudDxudW1iZXI+KSB7XG4gICAgLy9UT0RPOiBkZWJvdW5jZVRpbWVcbiAgICBpZiAoZS5pc1VzZXJJbnRlcmFjdGlvbikge1xuICAgICAgdGhpcy5fcGFyZW50LmdvVG9QYWdlKGUudmFsdWUgYXMgbnVtYmVyKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -5,19 +5,36 @@ import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
6
6
|
import * as i2 from "@acorex/components/button";
|
7
7
|
import * as i3 from "@acorex/components/decorators";
|
8
|
+
/**
|
9
|
+
* Provides buttons for navigating to the next and last pages in a data pager component.
|
10
|
+
*
|
11
|
+
* @category Components
|
12
|
+
*/
|
8
13
|
export class AXDataPagerNextButtonsComponent extends AXDataPagerChild {
|
14
|
+
/**
|
15
|
+
* @ignore
|
16
|
+
*/
|
9
17
|
ngOnInit() {
|
10
18
|
super.ngOnInit;
|
11
19
|
this.rtl = AXHtmlUtil.isRtl(this.getHostElement());
|
12
20
|
}
|
21
|
+
/**
|
22
|
+
* @ignore
|
23
|
+
*/
|
13
24
|
applyParent() {
|
14
25
|
this.disabled = this._parent.displayInfo.page == this._parent.displayInfo.totalPages || this._parent.disabled;
|
15
26
|
}
|
27
|
+
/**
|
28
|
+
* @ignore
|
29
|
+
*/
|
16
30
|
_emitOnLastPageClick(e) {
|
17
31
|
if (this._parent.readonly || this._parent.disabled)
|
18
32
|
return;
|
19
33
|
this._parent.goLastPage();
|
20
34
|
}
|
35
|
+
/**
|
36
|
+
* @ignore
|
37
|
+
*/
|
21
38
|
_emitOnNextPageClick(e) {
|
22
39
|
if (this._parent.readonly || this._parent.disabled)
|
23
40
|
return;
|
@@ -62,4 +79,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
62
79
|
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNextButtonsComponent }, AXUnsubscriber],
|
63
80
|
}]
|
64
81
|
}] });
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1uZXh0LWJ1dHRvbnMuY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1uZXh0LWJ1dHRvbnMuY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLGNBQWMsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2hFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEYsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7Ozs7O0FBRS9EOzs7O0dBSUc7QUFxQkgsTUFBTSxPQUFPLCtCQUFnQyxTQUFRLGdCQUFnQjtJQU1uRTs7T0FFRztJQUNNLFFBQVE7UUFDZixLQUFLL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biAgLyoqXG4gICAqICBAaWdub3JlXG4gICAqL1xuICBwcm90ZWN0ZWQgcnRsITogYm9vbGVhbjtcblxuICAvKipcbiAgICogIEBpZ25vcmVcbiAgICovXG4gIG92ZXJyaWRlIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHN1cGVyLm5nT25Jbml0O1xuICAgIHRoaXMucnRsID0gQVhIdG1sVXRpbC5pc1J0bCh0aGlzLmdldEhvc3RFbGVtZW50KCkpO1xuICB9XG5cbiAgLyoqXG4gICAqICBAaWdub3JlXG4gICAqL1xuICBwcm90ZWN0ZWQgb3ZlcnJpZGUgYXBwbHlQYXJlbnQoKSB7XG4gICAgdGhpcy5kaXNhYmxlZCA9IHRoaXMuX3BhcmVudC5kaXNwbGF5SW5mby5wYWdlID09IHRoaXMuX3BhcmVudC5kaXNwbGF5SW5mby50b3RhbFBhZ2VzIHx8IHRoaXMuX3BhcmVudC5kaXNhYmxlZDtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgX2VtaXRPbkxhc3RQYWdlQ2xpY2soZTogQVhDbGlja0V2ZW50KSB7XG4gICAgaWYgKHRoaXMuX3BhcmVudC5yZWFkb25seSB8fCB0aGlzLl9wYXJlbnQuZGlzYWJsZWQpIHJldHVybjtcbiAgICB0aGlzLl9wYXJlbnQuZ29MYXN0UGFnZSgpO1xuICB9XG5cbiAgLyoqXG4gICAqICBAaWdub3JlXG4gICAqL1xuICBfZW1pdE9uTmV4dFBhZ2VDbGljayhlOiBBWENsaWNrRXZlbnQpIHtcbiAgICBpZiAodGhpcy5fcGFyZW50LnJlYWRvbmx5IHx8IHRoaXMuX3BhcmVudC5kaXNhYmxlZCkgcmV0dXJuO1xuICAgIHRoaXMuX3BhcmVudC5nb05leHRQYWdlKCk7XG4gIH1cbn1cbiJdfQ==
|
@@ -6,6 +6,11 @@ import * as i1 from "@angular/common";
|
|
6
6
|
import * as i2 from "@acorex/components/button";
|
7
7
|
import * as i3 from "@acorex/components/decorators";
|
8
8
|
import * as i4 from "@acorex/components/skeleton";
|
9
|
+
/**
|
10
|
+
* Component that provides numeric page selection controls for a data pager.
|
11
|
+
*
|
12
|
+
* @category Components
|
13
|
+
*/
|
9
14
|
export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
10
15
|
constructor() {
|
11
16
|
super(...arguments);
|
@@ -13,8 +18,14 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
13
18
|
this._currentPage = 1;
|
14
19
|
this._lastPage = 1;
|
15
20
|
this._loading = false;
|
21
|
+
/**
|
22
|
+
* @ignore
|
23
|
+
*/
|
16
24
|
this._displayCount = 5;
|
17
25
|
}
|
26
|
+
/**
|
27
|
+
* @ignore
|
28
|
+
*/
|
18
29
|
applyParent() {
|
19
30
|
this._currentPage = this._parent.displayInfo.page;
|
20
31
|
this._loading = this._parent.isLoading;
|
@@ -45,6 +56,9 @@ export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
|
45
56
|
}
|
46
57
|
this.cdr.detectChanges();
|
47
58
|
}
|
59
|
+
/**
|
60
|
+
* @ignore
|
61
|
+
*/
|
48
62
|
_handleOnItemClick(e) {
|
49
63
|
if (this._parent.readonly || this._parent.disabled)
|
50
64
|
return;
|
@@ -137,4 +151,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
|
|
137
151
|
],
|
138
152
|
}]
|
139
153
|
}] });
|
140
|
-
//# sourceMappingURL=data:application/json;base64,
|
154
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9saWIvZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG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