@burdenoff/microfe-healthybowl 2026.903.21 → 2026.904.1
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/dist/components/assistant/AIAssistantPanel.js +25 -21
- package/dist/components/assistant/AIAssistantPanel.js.map +1 -1
- package/dist/components/assistant/AssistantApiCallsConsentDialog.js +8 -8
- package/dist/components/assistant/AssistantApiCallsConsentDialog.js.map +1 -1
- package/dist/components/assistant/AssistantAutoSpeakToggle.js +1 -1
- package/dist/components/assistant/AssistantChatArea.js +248 -249
- package/dist/components/assistant/AssistantChatArea.js.map +1 -1
- package/dist/components/assistant/AssistantConversationList.js +31 -31
- package/dist/components/assistant/AssistantConversationList.js.map +1 -1
- package/dist/components/assistant/AssistantEmptyState.js +9 -9
- package/dist/components/assistant/AssistantEmptyState.js.map +1 -1
- package/dist/components/assistant/AssistantHeader.js +17 -17
- package/dist/components/assistant/AssistantHeader.js.map +1 -1
- package/dist/components/assistant/AssistantMarkdownImage.js +14 -14
- package/dist/components/assistant/AssistantMarkdownImage.js.map +1 -1
- package/dist/components/assistant/AssistantMarkdownRenderer.js +25 -25
- package/dist/components/assistant/AssistantMarkdownRenderer.js.map +1 -1
- package/dist/components/assistant/AssistantMessageAttachments.js +29 -29
- package/dist/components/assistant/AssistantMessageAttachments.js.map +1 -1
- package/dist/components/assistant/AssistantMessageItem.js +28 -28
- package/dist/components/assistant/AssistantMessageItem.js.map +1 -1
- package/dist/components/assistant/AssistantMessageList.js +14 -14
- package/dist/components/assistant/AssistantMessageList.js.map +1 -1
- package/dist/components/assistant/AssistantMoreMenu.js +25 -25
- package/dist/components/assistant/AssistantMoreMenu.js.map +1 -1
- package/dist/components/assistant/AssistantPendingWriteCard.js +8 -8
- package/dist/components/assistant/AssistantPendingWriteCard.js.map +1 -1
- package/dist/components/assistant/AssistantReplyLanguageSelector.js +11 -11
- package/dist/components/assistant/AssistantReplyLanguageSelector.js.map +1 -1
- package/dist/components/assistant/AssistantSpeakButton.js +4 -4
- package/dist/components/assistant/AssistantSpeakButton.js.map +1 -1
- package/dist/components/assistant/AssistantSpeechProvider.js +188 -188
- package/dist/components/assistant/AssistantSpeechProvider.js.map +1 -1
- package/dist/components/assistant/AssistantSpokenTurnsNotice.js +5 -5
- package/dist/components/assistant/AssistantSpokenTurnsNotice.js.map +1 -1
- package/dist/components/assistant/AssistantToolActivity.js +16 -16
- package/dist/components/assistant/AssistantToolActivity.js.map +1 -1
- package/dist/components/assistant/composer/AssistantAttachmentButton.js +20 -20
- package/dist/components/assistant/composer/AssistantAttachmentButton.js.map +1 -1
- package/dist/components/assistant/composer/AssistantAttachmentChips.js +23 -23
- package/dist/components/assistant/composer/AssistantAttachmentChips.js.map +1 -1
- package/dist/components/assistant/composer/AssistantComposer.js +44 -44
- package/dist/components/assistant/composer/AssistantComposer.js.map +1 -1
- package/dist/components/assistant/composer/AssistantLanguageSelector.js +7 -7
- package/dist/components/assistant/composer/AssistantLanguageSelector.js.map +1 -1
- package/dist/components/assistant/composer/AssistantModeSelector.js +28 -28
- package/dist/components/assistant/composer/AssistantModeSelector.js.map +1 -1
- package/dist/components/assistant/composer/AssistantVoiceButton.js +6 -6
- package/dist/components/assistant/composer/AssistantVoiceButton.js.map +1 -1
- package/dist/components/assistant/composer/AssistantVoiceSelector.js +7 -7
- package/dist/components/assistant/composer/AssistantVoiceSelector.js.map +1 -1
- package/dist/components/assistant/voice/AssistantVoiceSession.js +77 -77
- package/dist/components/assistant/voice/AssistantVoiceSession.js.map +1 -1
- package/dist/components/assistant/voice/AssistantVoiceSessionButton.js +6 -6
- package/dist/components/assistant/voice/AssistantVoiceSessionButton.js.map +1 -1
- package/dist/components/assistant/voice/VoiceConversationView.js +11 -11
- package/dist/components/assistant/voice/VoiceConversationView.js.map +1 -1
- package/dist/components/assistant/voice/VoiceTranscriptDrawer.js +13 -13
- package/dist/components/assistant/voice/VoiceTranscriptDrawer.js.map +1 -1
- package/dist/hooks/useAssistantAttachments.js +94 -94
- package/dist/hooks/useAssistantAttachments.js.map +1 -1
- package/dist/services/assistantApi.js +1 -1
- package/dist/services/assistantApi.js.map +1 -1
- package/dist/utils/attachmentSources.js +4 -4
- package/dist/utils/attachmentSources.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { getSpeechEngine as e } from "../../services/speech/index.js";
|
|
2
2
|
import { useAssistantStore as t } from "../../store/assistantStore.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { jsx as
|
|
3
|
+
import { isVoiceTurn as n } from "../../utils/voiceTurnVisibility.js";
|
|
4
|
+
import { voicePreviewText as r } from "../../utils/voicePreview.js";
|
|
5
|
+
import { chunkForSpeech as i, toSpeakableText as a } from "../../utils/speakableText.js";
|
|
6
|
+
import { speechLabelsFor as o } from "../../config/speechLabels.js";
|
|
7
|
+
import { VOICE_LIST_TIMEOUT_MS as s, languageDisplayName as c, selectVoiceForLocale as l, speechGate as ee, speechLangForLocale as u, voiceAvailability as d, voicesForLocale as f } from "../../utils/speechVoices.js";
|
|
8
|
+
import { resolveSpeechLocale as te } from "../../utils/replyLanguage.js";
|
|
9
|
+
import { DEFAULT_SPEECH_RATE as ne, findAssistantLanguage as p } from "../../config/assistantLanguages.js";
|
|
10
|
+
import { resolveLanguagePair as re } from "../../config/assistantLanguagePair.js";
|
|
11
|
+
import { IDLE_PLAYBACK as ie, isSpeakingMessage as ae, speechPlaybackReducer as oe } from "../../utils/speechPlayback.js";
|
|
12
|
+
import { isTurnInFlight as se } from "../../utils/assistantTurnState.js";
|
|
13
|
+
import { parseToolActivity as ce } from "./AssistantToolActivity.js";
|
|
14
|
+
import { createContext as m, useCallback as h, useContext as g, useEffect as _, useMemo as v, useReducer as le, useRef as y, useState as b } from "react";
|
|
15
|
+
import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
16
|
+
import { useAssistantTr as de } from "@burdenoff/fe-libs/shared/assistant";
|
|
17
|
+
import { jsx as fe } from "react/jsx-runtime";
|
|
18
18
|
//#region src/components/assistant/AssistantSpeechProvider.tsx
|
|
19
|
-
var
|
|
19
|
+
var pe = {
|
|
20
20
|
codeBlock: "",
|
|
21
21
|
image: "",
|
|
22
22
|
link: "",
|
|
@@ -25,7 +25,7 @@ var me = {
|
|
|
25
25
|
emailAt: "at",
|
|
26
26
|
emailDot: "dot",
|
|
27
27
|
nestedItem: ""
|
|
28
|
-
},
|
|
28
|
+
}, me = m({
|
|
29
29
|
isSupported: !1,
|
|
30
30
|
availability: "unsupported",
|
|
31
31
|
isBlocked: !0,
|
|
@@ -46,250 +46,250 @@ var me = {
|
|
|
46
46
|
setSessionSpeaking: () => {},
|
|
47
47
|
previewVoice: () => {}
|
|
48
48
|
});
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function x() {
|
|
50
|
+
return g(me);
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
let
|
|
54
|
-
|
|
55
|
-
}, []),
|
|
56
|
-
|
|
57
|
-
if (!
|
|
52
|
+
var S = ({ children: m, visible: g = !0, engine: x = e() }) => {
|
|
53
|
+
let S = de(), { locale: C } = ue(), [w, T] = le(oe, ie), [E, D] = b(() => x.listVoices()), [O, k] = b(!1), [A, j] = b(() => /* @__PURE__ */ new Map()), M = y(0), [N, P] = b(null), F = y(null), I = y(() => {}), L = h(() => {
|
|
54
|
+
F.current?.(), F.current = null;
|
|
55
|
+
}, []), R = t((e) => e.autoSpeakEnabled), z = t((e) => e.setAutoSpeak), [B, he] = b(!1), ge = t((e) => e.activeConversationId), V = v(() => x.isSupported(), [x]);
|
|
56
|
+
_(() => {
|
|
57
|
+
if (!V) return;
|
|
58
58
|
let e = () => {
|
|
59
|
-
|
|
59
|
+
D(x.listVoices()), j((e) => e.size === 0 ? e : /* @__PURE__ */ new Map());
|
|
60
60
|
};
|
|
61
|
-
return e(),
|
|
62
|
-
}, [
|
|
63
|
-
let
|
|
61
|
+
return e(), x.subscribeVoices(e);
|
|
62
|
+
}, [x, V]);
|
|
63
|
+
let H = t((e) => e.assistantLanguage), U = t((e) => e.replyLanguage), W = t((e) => e.preferredVoices), G = t((e) => e.setPreferredVoice), K = v(() => re(H, U, C).reply, [
|
|
64
|
+
H,
|
|
65
|
+
U,
|
|
66
|
+
C
|
|
67
|
+
]), q = K.code, J = h((e) => p(e)?.tag ?? u(e), []), _e = h((e) => p(e)?.rate ?? ne, []), Y = v(() => d(V, E, K.tag, O), [
|
|
64
68
|
V,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
I(), b.cancel(), w({ type: "stop" });
|
|
83
|
-
}, [I, b]), be = m((e) => {
|
|
84
|
-
let t = b.listVoices().find((t) => t.name === e) ?? null;
|
|
85
|
-
t && (Y(), b.speak([i(G)], {
|
|
69
|
+
E,
|
|
70
|
+
K,
|
|
71
|
+
O
|
|
72
|
+
]), ve = v(() => ({
|
|
73
|
+
codeBlock: S("speech.codeBlock", "Code block"),
|
|
74
|
+
image: S("speech.image", "image"),
|
|
75
|
+
link: S("speech.link", "link"),
|
|
76
|
+
largeTable: S("speech.largeTable", "Table with {{rows}} rows and {{columns}} columns"),
|
|
77
|
+
truncated: S("speech.truncated", "The rest of this message is not read aloud"),
|
|
78
|
+
nestedItem: S("speech.nestedItem", "Sub-item {{ordinal}}"),
|
|
79
|
+
emailAt: S("speech.emailAt", "at"),
|
|
80
|
+
emailDot: S("speech.emailDot", "dot")
|
|
81
|
+
}), [S]), X = h(() => {
|
|
82
|
+
L(), x.cancel(), T({ type: "stop" });
|
|
83
|
+
}, [L, x]), ye = h((e) => {
|
|
84
|
+
let t = x.listVoices().find((t) => t.name === e) ?? null;
|
|
85
|
+
t && (X(), x.speak([r(q)], {
|
|
86
86
|
voice: t,
|
|
87
|
-
lang:
|
|
87
|
+
lang: J(q)
|
|
88
88
|
}));
|
|
89
89
|
}, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]),
|
|
95
|
-
|
|
90
|
+
x,
|
|
91
|
+
q,
|
|
92
|
+
X,
|
|
93
|
+
J
|
|
94
|
+
]), be = h((e) => A.get(e) ?? null, [A]), xe = h((e, t, n) => {
|
|
95
|
+
L();
|
|
96
96
|
let r = !1, i = () => {}, a = (a) => {
|
|
97
97
|
if (!r) {
|
|
98
|
-
if (r = !0,
|
|
99
|
-
|
|
98
|
+
if (r = !0, F.current = null, clearTimeout(o), i(), a.length === 0) {
|
|
99
|
+
k(!0);
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
D(a), I.current(e, t, a, n);
|
|
103
103
|
}
|
|
104
|
-
}, o = setTimeout(() => a(
|
|
105
|
-
i =
|
|
106
|
-
r || (r = !0, clearTimeout(o), i(),
|
|
104
|
+
}, o = setTimeout(() => a(x.listVoices()), s);
|
|
105
|
+
i = x.subscribeVoices(() => a(x.listVoices())), F.current = () => {
|
|
106
|
+
r || (r = !0, clearTimeout(o), i(), F.current = null);
|
|
107
107
|
};
|
|
108
|
-
}, [
|
|
109
|
-
let
|
|
110
|
-
if (
|
|
111
|
-
let e =
|
|
112
|
-
e.length > 0 && (
|
|
108
|
+
}, [L, x]), Z = h((e, t, n, r) => {
|
|
109
|
+
let a = n;
|
|
110
|
+
if (a.length === 0) {
|
|
111
|
+
let e = x.listVoices();
|
|
112
|
+
e.length > 0 && (a = e, D(e));
|
|
113
113
|
}
|
|
114
|
-
let o =
|
|
114
|
+
let o = J(r), s = ee(d(!0, a, r, O));
|
|
115
115
|
if (s === "block") {
|
|
116
|
-
let t =
|
|
117
|
-
|
|
116
|
+
let t = S("speech.noVoiceForReply", "This reply is in {{language}}, and no {{language}} voice is installed on this device.", { language: c(o, C) });
|
|
117
|
+
j((n) => new Map(n).set(e, t));
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
if (s === "wait-for-voices") {
|
|
121
|
-
|
|
121
|
+
xe(e, t, r);
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
j((t) => {
|
|
125
125
|
if (!t.has(e)) return t;
|
|
126
126
|
let n = new Map(t);
|
|
127
127
|
return n.delete(e), n;
|
|
128
128
|
});
|
|
129
|
-
let
|
|
130
|
-
|
|
129
|
+
let u = M.current + 1;
|
|
130
|
+
M.current = u, T({
|
|
131
131
|
type: "start",
|
|
132
132
|
messageId: e,
|
|
133
|
-
requestId:
|
|
133
|
+
requestId: u
|
|
134
134
|
});
|
|
135
|
-
let
|
|
136
|
-
|
|
137
|
-
requestId:
|
|
138
|
-
chunks:
|
|
135
|
+
let f = i(t);
|
|
136
|
+
P({
|
|
137
|
+
requestId: u,
|
|
138
|
+
chunks: f,
|
|
139
139
|
index: -1
|
|
140
|
-
}),
|
|
141
|
-
voice: l(
|
|
140
|
+
}), x.speak(f, {
|
|
141
|
+
voice: l(a, o, W[r]),
|
|
142
142
|
lang: o,
|
|
143
|
-
rate:
|
|
143
|
+
rate: _e(r)
|
|
144
144
|
}, {
|
|
145
|
-
onChunkStart: (e) =>
|
|
145
|
+
onChunkStart: (e) => P((t) => t?.requestId === u ? {
|
|
146
146
|
...t,
|
|
147
147
|
index: e
|
|
148
148
|
} : t),
|
|
149
|
-
onEnd: () =>
|
|
149
|
+
onEnd: () => T({
|
|
150
150
|
type: "finished",
|
|
151
|
-
requestId:
|
|
151
|
+
requestId: u
|
|
152
152
|
}),
|
|
153
|
-
onError: () =>
|
|
153
|
+
onError: () => T({
|
|
154
154
|
type: "failed",
|
|
155
|
-
requestId:
|
|
155
|
+
requestId: u
|
|
156
156
|
})
|
|
157
157
|
});
|
|
158
158
|
}, [
|
|
159
|
-
b,
|
|
160
|
-
S,
|
|
161
|
-
H,
|
|
162
|
-
q,
|
|
163
|
-
K,
|
|
164
159
|
x,
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
C,
|
|
161
|
+
W,
|
|
162
|
+
_e,
|
|
163
|
+
J,
|
|
164
|
+
S,
|
|
165
|
+
O,
|
|
166
|
+
xe
|
|
167
167
|
]);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, [
|
|
171
|
-
let
|
|
172
|
-
if (!
|
|
173
|
-
let r =
|
|
174
|
-
i &&
|
|
168
|
+
_(() => {
|
|
169
|
+
I.current = Z;
|
|
170
|
+
}, [Z]);
|
|
171
|
+
let Q = h((e, t, n) => {
|
|
172
|
+
if (!V) return;
|
|
173
|
+
let r = te(a(t, { labels: pe }), n ?? q), i = a(t, { labels: o(r, ve) });
|
|
174
|
+
i && Z(e, i, E, r);
|
|
175
175
|
}, [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
]),
|
|
182
|
-
if (
|
|
183
|
-
|
|
176
|
+
V,
|
|
177
|
+
ve,
|
|
178
|
+
q,
|
|
179
|
+
Z,
|
|
180
|
+
E
|
|
181
|
+
]), Se = h((e, t, n) => {
|
|
182
|
+
if (ae(w, e)) {
|
|
183
|
+
X();
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
Q(e, t, n);
|
|
187
187
|
}, [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
w,
|
|
189
|
+
Q,
|
|
190
|
+
X
|
|
191
191
|
]);
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}, [
|
|
195
|
-
|
|
196
|
-
}, [
|
|
197
|
-
|
|
198
|
-
}, [
|
|
199
|
-
|
|
200
|
-
}, [
|
|
192
|
+
_(() => {
|
|
193
|
+
g || X();
|
|
194
|
+
}, [g, X]), _(() => {
|
|
195
|
+
X(), j(/* @__PURE__ */ new Map());
|
|
196
|
+
}, [ge, X]), _(() => {
|
|
197
|
+
j((e) => e.size === 0 ? e : /* @__PURE__ */ new Map()), X();
|
|
198
|
+
}, [q, X]), _(() => () => {
|
|
199
|
+
F.current?.(), F.current = null, x.cancel();
|
|
200
|
+
}, [x]), _(() => {
|
|
201
201
|
if (typeof window > "u") return;
|
|
202
|
-
let e = () =>
|
|
202
|
+
let e = () => x.cancel();
|
|
203
203
|
return window.addEventListener("pagehide", e), () => window.removeEventListener("pagehide", e);
|
|
204
|
-
}, [
|
|
205
|
-
if (typeof document > "u" || !
|
|
204
|
+
}, [x]), _(() => {
|
|
205
|
+
if (typeof document > "u" || !V) return;
|
|
206
206
|
let e = () => {
|
|
207
207
|
if (document.visibilityState !== "visible") return;
|
|
208
|
-
let e =
|
|
209
|
-
e.length > 0 &&
|
|
208
|
+
let e = x.listVoices();
|
|
209
|
+
e.length > 0 && L(), D(e), k(!1), j((e) => e.size === 0 ? e : /* @__PURE__ */ new Map());
|
|
210
210
|
};
|
|
211
211
|
return document.addEventListener("visibilitychange", e), window.addEventListener("focus", e), () => {
|
|
212
212
|
document.removeEventListener("visibilitychange", e), window.removeEventListener("focus", e);
|
|
213
213
|
};
|
|
214
214
|
}, [
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
L,
|
|
216
|
+
x,
|
|
217
|
+
V
|
|
218
218
|
]);
|
|
219
|
-
let
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}, [
|
|
223
|
-
if (!(!
|
|
224
|
-
let
|
|
225
|
-
if (!
|
|
226
|
-
let i = e.processingByConversationId[
|
|
227
|
-
if (i?.status !== "complete" || !
|
|
219
|
+
let Ce = y(Q);
|
|
220
|
+
_(() => {
|
|
221
|
+
Ce.current = Q;
|
|
222
|
+
}, [Q]), _(() => {
|
|
223
|
+
if (!(!R && !B || !g || !V)) return t.subscribe((e, t) => {
|
|
224
|
+
let r = e.activeConversationId;
|
|
225
|
+
if (!r || r !== t.activeConversationId) return;
|
|
226
|
+
let i = e.processingByConversationId[r], a = t.processingByConversationId[r];
|
|
227
|
+
if (i?.status !== "complete" || !se(a?.status)) return;
|
|
228
228
|
let o = i.messageId ?? a?.messageId ?? null;
|
|
229
229
|
if (!o) return;
|
|
230
|
-
let s = e.conversations.find((e) => e.id ===
|
|
231
|
-
if (!s || s.role !== "assistant" ||
|
|
232
|
-
let { text: c } =
|
|
233
|
-
c.trim() &&
|
|
230
|
+
let s = e.conversations.find((e) => e.id === r)?.messages.find((e) => e.id === o);
|
|
231
|
+
if (!s || s.role !== "assistant" || n(s) !== B) return;
|
|
232
|
+
let { text: c } = ce(s.content);
|
|
233
|
+
c.trim() && Ce.current(o, c, s.metadata?.lang);
|
|
234
234
|
});
|
|
235
235
|
}, [
|
|
236
|
-
|
|
237
|
-
z,
|
|
236
|
+
R,
|
|
238
237
|
B,
|
|
239
|
-
|
|
238
|
+
V,
|
|
239
|
+
g
|
|
240
240
|
]);
|
|
241
|
-
let
|
|
242
|
-
|
|
241
|
+
let $ = v(() => f(E, K.tag), [E, K]), we = v(() => l(E, K.tag, W[q]), [
|
|
242
|
+
E,
|
|
243
|
+
K,
|
|
243
244
|
W,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
index: M.index
|
|
245
|
+
q
|
|
246
|
+
]), Te = v(() => ({
|
|
247
|
+
isSupported: V,
|
|
248
|
+
availability: Y,
|
|
249
|
+
isBlocked: Y === "no-voices",
|
|
250
|
+
disabledReason: Y === "no-voices" ? S("speech.noVoicesOnDevice", "This device has no speech voices installed. Add one in your device speech or accessibility settings.") : null,
|
|
251
|
+
blockedFor: be,
|
|
252
|
+
voiceChoices: $,
|
|
253
|
+
spokenChunks: N ? {
|
|
254
|
+
chunks: N.chunks,
|
|
255
|
+
index: N.index
|
|
256
256
|
} : null,
|
|
257
|
-
activeVoiceName:
|
|
258
|
-
preferredVoiceName:
|
|
259
|
-
setVoice: (e) =>
|
|
260
|
-
speakingMessageId:
|
|
261
|
-
isSpeaking: (e) =>
|
|
262
|
-
toggle:
|
|
263
|
-
stop:
|
|
264
|
-
autoSpeakEnabled:
|
|
265
|
-
setAutoSpeak:
|
|
266
|
-
sessionSpeaking:
|
|
267
|
-
setSessionSpeaking:
|
|
268
|
-
previewVoice:
|
|
257
|
+
activeVoiceName: we?.name ?? null,
|
|
258
|
+
preferredVoiceName: W[q] ?? null,
|
|
259
|
+
setVoice: (e) => G(q, e),
|
|
260
|
+
speakingMessageId: w.status === "speaking" ? w.messageId : null,
|
|
261
|
+
isSpeaking: (e) => ae(w, e),
|
|
262
|
+
toggle: Se,
|
|
263
|
+
stop: X,
|
|
264
|
+
autoSpeakEnabled: R,
|
|
265
|
+
setAutoSpeak: z,
|
|
266
|
+
sessionSpeaking: B,
|
|
267
|
+
setSessionSpeaking: he,
|
|
268
|
+
previewVoice: ye
|
|
269
269
|
}), [
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
Q,
|
|
270
|
+
V,
|
|
271
|
+
Y,
|
|
272
|
+
be,
|
|
274
273
|
$,
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
we,
|
|
275
|
+
W,
|
|
277
276
|
G,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
q,
|
|
278
|
+
w,
|
|
279
|
+
Se,
|
|
280
|
+
X,
|
|
282
281
|
R,
|
|
283
282
|
z,
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
B,
|
|
284
|
+
ye,
|
|
285
|
+
S
|
|
286
286
|
]);
|
|
287
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ fe(me.Provider, {
|
|
288
288
|
value: Te,
|
|
289
|
-
children:
|
|
289
|
+
children: m
|
|
290
290
|
});
|
|
291
291
|
};
|
|
292
292
|
//#endregion
|
|
293
|
-
export {
|
|
293
|
+
export { S as AssistantSpeechProvider, x as useAssistantSpeech };
|
|
294
294
|
|
|
295
295
|
//# sourceMappingURL=AssistantSpeechProvider.js.map
|