@burdenoff/fe-libs 2026.1029.1 → 2026.1029.3
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/shared/assistant/turnTimeline.js +1 -1
- package/dist/shared/assistant/turnTimingReporter.d.ts +11 -0
- package/dist/shared/assistant/turnTimingReporter.js +73 -56
- package/dist/shared/assistant/ui/AssistantChatArea.js +129 -129
- package/dist/shared/assistant/ui/AssistantSpeechProvider.js +134 -129
- package/dist/shared/assistant/ui/useVoiceSession.js +201 -177
- package/dist/shared/assistant/voice/voiceSession.d.ts +7 -0
- package/dist/shared/assistant/voice/voiceSession.js +10 -1
- package/dist/shared/components/assistantWidget/AssistantWidget.js +177 -176
- package/dist/shared/components/assistantWidget/assistantWidgetPosition.d.ts +32 -0
- package/dist/shared/components/assistantWidget/assistantWidgetPosition.js +4 -0
- package/dist/shared-assistant.js +210 -210
- package/package.json +1 -1
|
@@ -50,53 +50,53 @@ import { NO_FIRST_TEXT as an, buildAssistantProgress as on, readAheadFor as sn,
|
|
|
50
50
|
import { parseToolActivity as dn } from "./AssistantToolActivity.js";
|
|
51
51
|
import { countSpokenTurns as fn, spokenMessagesSinceContinueNote as pn, spokenTurnText as mn } from "../spokenTurns.js";
|
|
52
52
|
import { beginTurn as hn, describeTurn as w, detectTurnDevice as gn, markTurn as T, restartAttempt as _n, turnClockMs as vn } from "../turnTimeline.js";
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
53
|
+
import { sendAssistantTurnTimings as yn, startTurnTimingReporting as bn } from "../turnTimingReporter.js";
|
|
54
|
+
import { useAssistantSpeech as xn } from "./AssistantSpeechProvider.js";
|
|
55
|
+
import { useLiveAvatarTab as Sn, useLiveAvatarTabSeam as Cn } from "./assistantLiveAvatarSeam.js";
|
|
56
|
+
import { useVoiceSession as wn } from "./useVoiceSession.js";
|
|
57
|
+
import { isMultimodalBodyRejection as Tn, isRecoverableAssistantError as En } from "../transportErrors.js";
|
|
58
|
+
import { createReadinessTracker as Dn, planAfterTransportFailure as On, planTrustedSandboxFailure as kn } from "../sandboxReadiness.js";
|
|
59
|
+
import { AssistantAiDisclaimer as An } from "./AssistantAiDisclaimer.js";
|
|
60
|
+
import { writeProposalConfirmState as jn } from "./writeProposalPresentation.js";
|
|
61
|
+
import { writeProposalUsesDialog as Mn } from "./AssistantWriteProposalCard.js";
|
|
62
|
+
import { dispatchAssistantQuotaExhausted as Nn, notifyAiCreditsUpdated as Pn } from "../aiCredits.js";
|
|
63
|
+
import { AiCreditBalance as Fn } from "./AiCreditBalance.js";
|
|
64
|
+
import { AssistantWriteConfirmDialog as In } from "./AssistantWriteConfirmDialog.js";
|
|
65
|
+
import { useWriteProposalConfirm as Ln } from "./useWriteProposalConfirm.js";
|
|
66
|
+
import { AssistantWriteProposalSlot as Rn } from "./AssistantWriteProposalSlot.js";
|
|
67
|
+
import { readWriteProposalRefs as zn, writeProposalsEnabledFor as Bn } from "../writeProposalDiscovery.js";
|
|
68
|
+
import { planWriteReply as Vn, promptWriteApproval as Hn } from "../writeReplySend.js";
|
|
69
|
+
import { useWriteProposals as Un } from "./useWriteProposals.js";
|
|
70
|
+
import { AssistantSpokenTurnsNotice as Wn } from "./AssistantSpokenTurnsNotice.js";
|
|
71
|
+
import { AssistantHistoryArchivedNotice as Gn, AssistantHistoryDeletedNotice as Kn, AssistantHistoryLoadState as qn, AssistantHistoryReadOnlyBanner as Jn, AssistantHistoryShowEarlier as Yn } from "./AssistantHistoryNotices.js";
|
|
72
|
+
import { VoiceTranscriptDrawer as Xn } from "./voice/VoiceTranscriptDrawer.js";
|
|
73
|
+
import { downloadFile as Zn } from "../exportConversation.js";
|
|
74
|
+
import { conversationHasHistory as Qn, isOtherScopeHistoryConversation as $n, isReadOnlyHistoryConversation as er, isReusableHistoryDraft as tr } from "../history/historyList.js";
|
|
75
|
+
import { useAssistantHistoryStatus as nr } from "../history/historyStatus.js";
|
|
76
|
+
import { assistantHistory as rr } from "../history/historyEngine.js";
|
|
77
|
+
import { AssistantEmptyState as ir } from "./AssistantEmptyState.js";
|
|
78
|
+
import { AssistantNothingToDeleteNotice as ar } from "./AssistantDeleteConversationDialog.js";
|
|
79
|
+
import { assistantHistoryIsOn as or } from "./conversationDelete.js";
|
|
80
|
+
import { useConversationDeleteDialog as sr } from "./conversationDeleteDialog.js";
|
|
81
|
+
import { useControlConfirmDialog as cr } from "./controlConfirmDialog.js";
|
|
82
|
+
import { useLeaveConfirmAsking as lr } from "./leaveConfirm.js";
|
|
83
|
+
import { startFocusReturnAfterKeep as ur } from "./leaveConfirmFocus.js";
|
|
84
|
+
import { resolveConversationDeleteTarget as dr } from "../conversationDeleteCommand.js";
|
|
85
|
+
import { resumeContextFor as fr } from "../history/historyResume.js";
|
|
86
|
+
import { useHistoryRowControlsFor as pr } from "../history/useHistoryRowControls.js";
|
|
87
|
+
import { liveCoverage as mr } from "../liveDeltas.js";
|
|
88
|
+
import { createLiveRender as hr } from "../liveOverlay.js";
|
|
89
|
+
import { AssistantMessageList as gr } from "./AssistantMessageList.js";
|
|
90
|
+
import { AssistantUiOfferLinks as _r } from "./AssistantUiOfferLink.js";
|
|
91
|
+
import { AssistantVoiceSession as vr } from "./voice/AssistantVoiceSession.js";
|
|
92
|
+
import { voiceStartBlocker as yr, voiceStartBlockerLasts as br } from "./voice/voiceStartGate.js";
|
|
93
|
+
import { avatarAskBlocker as xr, avatarAskWrites as Sr, avatarTabAskLine as Cr } from "./avatar/avatarAskGate.js";
|
|
94
|
+
import { createAvatarTabDraft as wr } from "./avatar/avatarTabDraft.js";
|
|
95
|
+
import { AssistantAvatarTab as Tr } from "./avatar/AssistantAvatarTab.js";
|
|
96
|
+
import { useAssistantApiAccess as Er } from "../useAssistantApiAccess.js";
|
|
97
|
+
import { useConversationTurns as Dr } from "../useConversationTurns.js";
|
|
98
|
+
import { openTurnStream as Or, turnStreamAvailable as kr } from "../turnStream.js";
|
|
99
|
+
import { createSnapshotPoller as Ar } from "../snapshotPoller.js";
|
|
100
100
|
import { QuarantineSet as jr, WarmCancelled as Mr, claimPreopenedSession as Nr, consumeWarm as Pr, preopenKey as Fr, preopenWanted as Ir, prewarmTarget as Lr, settleWarmBeforeSend as Rr, startPreopen as zr, startWarm as Br, warmState as Vr } from "../prewarm.js";
|
|
101
101
|
import { navEntryIds as Hr } from "../uiActions/resolveTarget.js";
|
|
102
102
|
import { lookupNamedRecords as Ur } from "../uiActions/recordNames.js";
|
|
@@ -142,10 +142,10 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
142
142
|
$i,
|
|
143
143
|
ea,
|
|
144
144
|
z
|
|
145
|
-
]), na = ta.reply.english, ra = ta.replyIsExplicit, ia = ta.reply.code, { conversations: aa, activeConversationId: B, mode: V, processingByConversationId: oa, setMode: sa, setConversationMode: ca, setActiveConversation: la, createConversation: ua, addMessage: H, updateMessage: da, patchMessage: fa, mergeMessageMetadata: pa, setConversationProcessing: ma, clearConversationProcessing: ha, setBackendSessionId: ga, clearBackendSessionId: _a, setSandbox: va, clearSandbox: ya, acknowledgedWriteModes: ba, acknowledgeWriteMode: xa, autoRouting: Sa, setAutoRouting: Ca, routeConversation: wa } = v(), U = aa.find((e) => e.id === B), Ta =
|
|
145
|
+
]), na = ta.reply.english, ra = ta.replyIsExplicit, ia = ta.reply.code, { conversations: aa, activeConversationId: B, mode: V, processingByConversationId: oa, setMode: sa, setConversationMode: ca, setActiveConversation: la, createConversation: ua, addMessage: H, updateMessage: da, patchMessage: fa, mergeMessageMetadata: pa, setConversationProcessing: ma, clearConversationProcessing: ha, setBackendSessionId: ga, clearBackendSessionId: _a, setSandbox: va, clearSandbox: ya, acknowledgedWriteModes: ba, acknowledgeWriteMode: xa, autoRouting: Sa, setAutoRouting: Ca, routeConversation: wa } = v(), U = aa.find((e) => e.id === B), Ta = Dr(U), Ea = Ta.all, W = B ? oa[B] : void 0, Da = It(W?.status), Oa = Da ? W?.messageId ?? null : null, ka = W?.status === "error" ? W.messageId : null, Aa = v((e) => e.sandboxWriteCapabilities), { panel: G, entries: ja, retiredSandboxes: Ma } = Un({
|
|
146
146
|
tr: N,
|
|
147
147
|
productWriteApproval: I
|
|
148
|
-
}), Na =
|
|
148
|
+
}), Na = Ln({
|
|
149
149
|
approve: (e, t) => G.approve(e, t),
|
|
150
150
|
decline: (e, t, n) => G.decline(e, t, n),
|
|
151
151
|
presented: (e, t) => G.presented(e, t)
|
|
@@ -159,13 +159,13 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
159
159
|
G,
|
|
160
160
|
Pa
|
|
161
161
|
]);
|
|
162
|
-
let Ia =
|
|
162
|
+
let Ia = er(U), La = pr(U)?.archivedAt != null, Ra = nr((e) => B !== null && B in e.loadingIds), za = nr((e) => B !== null && B in e.loadErrorIds), Ba = nr((e) => e.remoteDelete), [Va, Ha] = A(() => nr.getState().remoteDelete?.at ?? null), Ua = Ba?.wasActive === !0 && Ba.at !== Va ? Ba.at : null;
|
|
163
163
|
D(() => {
|
|
164
164
|
if (Ua === null) return;
|
|
165
165
|
let e = window.setTimeout(() => Ha(Ua), Ni);
|
|
166
166
|
return () => window.clearTimeout(e);
|
|
167
167
|
}, [Ua]);
|
|
168
|
-
let { canUseApiCalls: Wa, loading: Ga } =
|
|
168
|
+
let { canUseApiCalls: Wa, loading: Ga } = Er(C(), R), Ka = k(Dt({
|
|
169
169
|
loading: Ga,
|
|
170
170
|
canUseAdminModes: Wa
|
|
171
171
|
})).current, qa = k(F);
|
|
@@ -174,17 +174,17 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
174
174
|
}, [F]);
|
|
175
175
|
let Ja = () => {
|
|
176
176
|
let e = v.getState().activeConversationId;
|
|
177
|
-
e &&
|
|
177
|
+
e && rr.openConversation(e, { modes: qa.current });
|
|
178
178
|
}, Ya = () => {
|
|
179
179
|
let e = v.getState().activeConversationId;
|
|
180
|
-
e &&
|
|
180
|
+
e && rr.loadEarlier(e);
|
|
181
181
|
}, Xa = k(L);
|
|
182
182
|
D(() => {
|
|
183
183
|
Xa.current = L;
|
|
184
184
|
}, [L]);
|
|
185
185
|
let Za = !!P && Ui !== !1;
|
|
186
186
|
D(() => {
|
|
187
|
-
if (Za) return
|
|
187
|
+
if (Za) return bn({ send: (e) => yn(e, {
|
|
188
188
|
workspaceId: C(),
|
|
189
189
|
authContext: {
|
|
190
190
|
accessToken: Xa.current(),
|
|
@@ -207,7 +207,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
207
207
|
D(() => {
|
|
208
208
|
to.current = $a;
|
|
209
209
|
}, [$a]);
|
|
210
|
-
let no = k(null), ro = k(!1), [io, ao] = A(!1), oo = ht(F), [so, co] = A(null), [lo, uo] = A(null), fo = lo !== null && lo === B, po =
|
|
210
|
+
let no = k(null), ro = k(!1), [io, ao] = A(!1), oo = ht(F), [so, co] = A(null), [lo, uo] = A(null), fo = lo !== null && lo === B, po = Sn(), mo = Cn(), K = po.open && mo !== null, ho = po.close, go = k(K);
|
|
211
211
|
Ei(() => {
|
|
212
212
|
go.current = K;
|
|
213
213
|
}, [K]);
|
|
@@ -223,11 +223,11 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
223
223
|
let e = v.getState(), t = e.activeConversationId, n = t ? e.conversations.find((e) => e.id === t) : void 0;
|
|
224
224
|
return !t || !n ? null : {
|
|
225
225
|
id: t,
|
|
226
|
-
reusableDraft:
|
|
226
|
+
reusableDraft: tr(n, ie()),
|
|
227
227
|
liveProposals: G.liveFor(t).count,
|
|
228
228
|
turnInFlight: It(e.processingByConversationId[t]?.status)
|
|
229
229
|
};
|
|
230
|
-
}, [G]), Co = k({}), q = k(
|
|
230
|
+
}, [G]), Co = k({}), q = k(Dn()), J = k(new jr()), wo = k(/* @__PURE__ */ new Set()), To = O(() => F.find((e) => e.id === V), [F, V]), Eo = v((e) => {
|
|
231
231
|
let t = e.sandboxesByMode[V]?.sandboxId;
|
|
232
232
|
return t ? e.sandboxWriteCapabilities[t] : void 0;
|
|
233
233
|
}), Do = To !== void 0 && bt({
|
|
@@ -364,8 +364,8 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
364
364
|
} catch (s) {
|
|
365
365
|
if (p) {
|
|
366
366
|
q.current.invalidate(c);
|
|
367
|
-
let l =
|
|
368
|
-
if (l === "check-network" && (l = await
|
|
367
|
+
let l = kn(s, o.isAbandoned?.() ?? !1), p = l === "check-network";
|
|
368
|
+
if (l === "check-network" && (l = await On(() => ve(i, P, r, bi(), a, J.current, I))), l !== "rethrow" && o.isAbandoned?.() && (l = "rethrow"), l !== "rethrow") {
|
|
369
369
|
p || w(n, { cacheProofFailed: !0 }), l === "replace" && (J.current.add(c), _a(t), ya(r), G.retireSandbox(c));
|
|
370
370
|
let s = await e(t, n, r, i, a, {
|
|
371
371
|
...o,
|
|
@@ -442,8 +442,8 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
442
442
|
active: i ? {
|
|
443
443
|
mode: i.mode,
|
|
444
444
|
backendSessionId: i.backendSessionId,
|
|
445
|
-
continuable: !
|
|
446
|
-
hasHistory:
|
|
445
|
+
continuable: !er(i) && !$n(i, c),
|
|
446
|
+
hasHistory: Qn(i)
|
|
447
447
|
} : void 0,
|
|
448
448
|
mode: a.mode
|
|
449
449
|
}) && zr(Fr({
|
|
@@ -503,7 +503,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
503
503
|
Ho(), e && G.declineForReply(e, "corrected", "spoken");
|
|
504
504
|
}, [Ho, G]), Wo = E(async (e) => {
|
|
505
505
|
let t = v.getState(), n = pe(t), r = C(), i = t.activeConversationId;
|
|
506
|
-
if (!n || !r || !i ||
|
|
506
|
+
if (!n || !r || !i || Bn(t.sandboxWriteCapabilities[n.sandboxId])) return;
|
|
507
507
|
let a = t.conversations.find((e) => e.id === i), o = a ? le(x(a.messages), {
|
|
508
508
|
sessionId: a.backendSessionId,
|
|
509
509
|
sandboxId: n.sandboxId,
|
|
@@ -545,7 +545,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
545
545
|
H,
|
|
546
546
|
pa,
|
|
547
547
|
N
|
|
548
|
-
]), Go = n(), { speakFinishedReply: Ko, speakingMessageId: qo, stop: Jo } =
|
|
548
|
+
]), Go = n(), { speakFinishedReply: Ko, speakingMessageId: qo, stop: Jo } = xn(), Yo = k(null), Xo = E((e, t) => {
|
|
549
549
|
let n = Yo.current;
|
|
550
550
|
n?.token === e && n.exchange === null && (n.exchange = t);
|
|
551
551
|
}, []), Zo = E((e) => {
|
|
@@ -696,13 +696,13 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
696
696
|
...i ? { localAction: i } : {},
|
|
697
697
|
...Ge(t)
|
|
698
698
|
}
|
|
699
|
-
}), i &&
|
|
699
|
+
}), i && rr.recordCommittedEntries(e, [a], "NOTE", r);
|
|
700
700
|
}, [H, z]), Ss = E((e, t) => (t.status === "kept" || t.status === "refused" && t.reason === "unsaved-changes") && Z.release(e), [Z]), Cs = k(null);
|
|
701
701
|
D(() => () => {
|
|
702
702
|
Cs.current?.(), Cs.current = null;
|
|
703
703
|
}, []);
|
|
704
704
|
let ws = E((e) => {
|
|
705
|
-
Cs.current?.(), Cs.current = X.current ?
|
|
705
|
+
Cs.current?.(), Cs.current = X.current ? ur(document, e) : null;
|
|
706
706
|
}, []), Ts = E((e, t, n, r = !1) => {
|
|
707
707
|
if (us.current !== null) return;
|
|
708
708
|
let i = bs(e, n), a = C(), o = (e, t, n, r) => xs(e, t, n, a, r);
|
|
@@ -813,7 +813,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
813
813
|
]), Os = E((e) => {
|
|
814
814
|
let t = v.getState(), n = t.conversations.find((e) => e.id === t.activeConversationId);
|
|
815
815
|
return n ? ei($r, window.location.pathname, ai(n.messages, e)) : !1;
|
|
816
|
-
}, []), ks =
|
|
816
|
+
}, []), ks = sr(), As = cr(), js = ks?.request ?? null, Ms = E((e, t, n = !1, r = !1) => {
|
|
817
817
|
let { navItems: i, options: a, theme: o, navigate: s } = Y.current, c = Jr(i), l = null, u = {
|
|
818
818
|
...a,
|
|
819
819
|
locale: t === void 0 ? z : ta.input.code,
|
|
@@ -1025,7 +1025,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1025
1025
|
localAction: c,
|
|
1026
1026
|
...Ge(i)
|
|
1027
1027
|
}
|
|
1028
|
-
}),
|
|
1028
|
+
}), rr.recordCommittedEntries(e, [u, d], "LOCAL_COMMAND", C()), a !== void 0 && Qo(a, {
|
|
1029
1029
|
conversationId: e,
|
|
1030
1030
|
questionId: u,
|
|
1031
1031
|
replyId: d
|
|
@@ -1047,12 +1047,12 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1047
1047
|
return ua(void 0, e.autoRouting && to.current ? p : e.mode, e.autoRouting ? { routedBy: "auto" } : void 0);
|
|
1048
1048
|
}, [ua]), Us = E((e) => {
|
|
1049
1049
|
if (!js) return !1;
|
|
1050
|
-
let t = e !== void 0, n = v.getState(), r =
|
|
1050
|
+
let t = e !== void 0, n = v.getState(), r = dr({
|
|
1051
1051
|
spoken: t,
|
|
1052
1052
|
bound: vo.current,
|
|
1053
1053
|
activeConversationId: n.activeConversationId,
|
|
1054
1054
|
conversations: n.conversations,
|
|
1055
|
-
historyOn:
|
|
1055
|
+
historyOn: or()
|
|
1056
1056
|
});
|
|
1057
1057
|
if (r && js(r), t) {
|
|
1058
1058
|
let e = r ? "Opened the delete confirmation. Choose Delete or Cancel on screen." : "There is no conversation to delete.", t = r ? N("deleteConversation.opened", "Opened the delete confirmation. Choose Delete or Cancel on screen.") : N("deleteConversation.nothing", "There is no conversation to delete.");
|
|
@@ -1096,7 +1096,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1096
1096
|
localAction: a,
|
|
1097
1097
|
...Ge(n)
|
|
1098
1098
|
}
|
|
1099
|
-
}),
|
|
1099
|
+
}), rr.recordCommittedEntries(e, [t, l], "LOCAL_COMMAND", o), i !== void 0 && Qo(i, {
|
|
1100
1100
|
conversationId: e,
|
|
1101
1101
|
questionId: t,
|
|
1102
1102
|
replyId: l
|
|
@@ -1432,26 +1432,26 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1432
1432
|
if (wo.current.has(c)) return;
|
|
1433
1433
|
}
|
|
1434
1434
|
if (no.current || se() !== null || ro.current || us.current !== null) return;
|
|
1435
|
-
let f = n.targetConversationId, p = ie(), ee = (e) =>
|
|
1435
|
+
let f = n.targetConversationId, p = ie(), ee = (e) => er(e) || $n(e, p);
|
|
1436
1436
|
if (f !== void 0) {
|
|
1437
1437
|
let e = i.conversations.find((e) => e.id === f);
|
|
1438
1438
|
if (i.activeConversationId !== f || !e || e.mode !== i.mode || ee(e)) return;
|
|
1439
1439
|
}
|
|
1440
1440
|
if (n.avatarTabAsk !== void 0) {
|
|
1441
1441
|
let e = s ? i.conversations.find((e) => e.id === s) : void 0, t = e && !ee(e) ? e : void 0;
|
|
1442
|
-
if (
|
|
1442
|
+
if (Sr({
|
|
1443
1443
|
auto: i.autoRouting && to.current && f === void 0,
|
|
1444
1444
|
selectedMode: i.mode,
|
|
1445
1445
|
conversation: t ? {
|
|
1446
1446
|
mode: t.mode,
|
|
1447
1447
|
routedBy: t.routedBy,
|
|
1448
|
-
hasHistory:
|
|
1448
|
+
hasHistory: Qn(t)
|
|
1449
1449
|
} : null,
|
|
1450
1450
|
modeWrites: (e) => qa.current.find((t) => t.id === e)?.writeCapable === !0 || Ce(e)
|
|
1451
1451
|
}) !== null) return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (n.fromPerson && n.writeReplyBound === void 0) {
|
|
1454
|
-
let r = f ?? s ?? null, i = n.voiceSessionId === void 0 ? "typed" : "spoken", o = Ls(r, n.voiceSessionId), c =
|
|
1454
|
+
let r = f ?? s ?? null, i = n.voiceSessionId === void 0 ? "typed" : "spoken", o = Ls(r, n.voiceSessionId), c = Vn({
|
|
1455
1455
|
text: e,
|
|
1456
1456
|
locale: i === "spoken" ? ta.input.code : z,
|
|
1457
1457
|
origin: i,
|
|
@@ -1530,7 +1530,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1530
1530
|
conversation: oe ? {
|
|
1531
1531
|
mode: oe.mode,
|
|
1532
1532
|
routedBy: oe.routedBy,
|
|
1533
|
-
hasHistory:
|
|
1533
|
+
hasHistory: Qn(oe)
|
|
1534
1534
|
} : null
|
|
1535
1535
|
}) : null;
|
|
1536
1536
|
if (h && qa.current.find((e) => e.id === h.mode)?.writeCapable && !de(i.acknowledgedWriteModes, h.mode)) {
|
|
@@ -1548,7 +1548,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1548
1548
|
if (h) h.action === "new" || !oe ? _ = ua(void 0, g, { routedBy: "auto" }) : (_ = oe.id, wa(_, g));
|
|
1549
1549
|
else {
|
|
1550
1550
|
let e = i.autoRouting ? { routedBy: "auto" } : void 0;
|
|
1551
|
-
!_ || ee(pe) || pe && pe.mode !== g &&
|
|
1551
|
+
!_ || ee(pe) || pe && pe.mode !== g && Qn(pe) ? _ = ua(void 0, g, e) : pe && pe.mode !== g && (e ? wa(_, g) : ca(_, g));
|
|
1552
1552
|
}
|
|
1553
1553
|
if (!_) return;
|
|
1554
1554
|
r && vo.current !== void 0 && _ !== i.activeConversationId && xo(_), n.approvalFollowUp || (Co.current[_] = t);
|
|
@@ -1656,7 +1656,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1656
1656
|
confirmsWrites: Ce(g),
|
|
1657
1657
|
proposalBound: Ki(g, i)
|
|
1658
1658
|
}) === "voice-in-write-mode") throw new Pe("voice-in-write-mode", "Voice in a write mode");
|
|
1659
|
-
let ie =
|
|
1659
|
+
let ie = fr({
|
|
1660
1660
|
conversation: v.getState().conversations.find((e) => e.id === _),
|
|
1661
1661
|
content: e,
|
|
1662
1662
|
sessionIsNew: u,
|
|
@@ -1665,12 +1665,12 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1665
1665
|
modes: qa.current,
|
|
1666
1666
|
answerText: (e) => dn(e).text
|
|
1667
1667
|
});
|
|
1668
|
-
if (Ke(),
|
|
1669
|
-
let e =
|
|
1668
|
+
if (Ke(), kr()) {
|
|
1669
|
+
let e = Or({
|
|
1670
1670
|
mint: () => Se(i, y, c, g, ve),
|
|
1671
1671
|
mark: (e) => T(b, e)
|
|
1672
1672
|
});
|
|
1673
|
-
x.stream = e, x.render =
|
|
1673
|
+
x.stream = e, x.render = hr({
|
|
1674
1674
|
stream: e,
|
|
1675
1675
|
conversationId: _,
|
|
1676
1676
|
messageId: b,
|
|
@@ -1681,7 +1681,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1681
1681
|
}
|
|
1682
1682
|
let ae = await cn(() => be(i, y, c, g, ve, { limit: 50 }), u, sn(f, i, c));
|
|
1683
1683
|
ko(_, b, "streaming", "thinking");
|
|
1684
|
-
let oe = Vi?.(), h =
|
|
1684
|
+
let oe = Vi?.(), h = Hn(v.getState().sandboxWriteCapabilities[i]), se = Y.current, ce = fi(i, c), de = se.options.uiCatalogue ? li(Jr(se.navItems), {
|
|
1685
1685
|
permissionsSettled: se.navPermissionsSettled,
|
|
1686
1686
|
simulating: se.navSimulating,
|
|
1687
1687
|
sentBefore: di(ce)
|
|
@@ -1725,7 +1725,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1725
1725
|
try {
|
|
1726
1726
|
await He(Ie);
|
|
1727
1727
|
} catch (e) {
|
|
1728
|
-
if (!Xe.canFailover() || !Ie || !
|
|
1728
|
+
if (!Xe.canFailover() || !Ie || !Tn(e)) throw e;
|
|
1729
1729
|
await He(void 0), s ||= ze;
|
|
1730
1730
|
}
|
|
1731
1731
|
de && ui(ce);
|
|
@@ -1749,7 +1749,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1749
1749
|
T(b, "promptSent");
|
|
1750
1750
|
let ot = null, st = !1, ct = an, S = on([], ae);
|
|
1751
1751
|
x.render?.arm(ae);
|
|
1752
|
-
let lt = Date.now() + ue.streamBudgetMs, ut = Date.now(), dt = Date.now(), ft =
|
|
1752
|
+
let lt = Date.now() + ue.streamBudgetMs, ut = Date.now(), dt = Date.now(), ft = Ar(() => be(i, y, c, g, ve, {
|
|
1753
1753
|
limit: 50,
|
|
1754
1754
|
sinceMs: ae,
|
|
1755
1755
|
surfaceTurnTerminal: !0,
|
|
@@ -1770,9 +1770,9 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1770
1770
|
let e = un(ct, S, vn());
|
|
1771
1771
|
ct = e.tracker, e.confirmedAt !== null && T(b, "firstText", e.confirmedAt);
|
|
1772
1772
|
}
|
|
1773
|
-
if (S.pendingWrite && !
|
|
1773
|
+
if (S.pendingWrite && !Bn(v.getState().sandboxWriteCapabilities[i]) && pa(_, b, { pendingWrite: S.pendingWrite }), S.done && (x.stream ? w(b, {
|
|
1774
1774
|
transport: x.stream.reachedOpen ? "sse" : "poll",
|
|
1775
|
-
live:
|
|
1775
|
+
live: mr(x.stream.live)
|
|
1776
1776
|
}) : w(b, {
|
|
1777
1777
|
transport: "poll",
|
|
1778
1778
|
live: "none"
|
|
@@ -1814,13 +1814,13 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1814
1814
|
messageId: S.messageId,
|
|
1815
1815
|
model: S.model,
|
|
1816
1816
|
tokens: S.tokens
|
|
1817
|
-
}, Wi, { ledger: Re("panel", P) }) : { ok: !0 }).ok &&
|
|
1817
|
+
}, Wi, { ledger: Re("panel", P) }) : { ok: !0 }).ok && Pn(P)), S.done || xe(i, c);
|
|
1818
1818
|
let yt = Ae();
|
|
1819
1819
|
if (yt.abandon) {
|
|
1820
1820
|
yt.clearProcessing && ha(_);
|
|
1821
1821
|
return;
|
|
1822
1822
|
}
|
|
1823
|
-
T(b, "complete"), w(b, { outcome: "answered" }), ma(_, "complete", b, null),
|
|
1823
|
+
T(b, "complete"), w(b, { outcome: "answered" }), ma(_, "complete", b, null), rr.recordCommittedEntries(_, [Ee.id, b], "TURN", y), Je = !1, $e && Oe && S.done && Ds({
|
|
1824
1824
|
replyId: b,
|
|
1825
1825
|
conversationId: _,
|
|
1826
1826
|
voiceSessionId: n.voiceSessionId,
|
|
@@ -1839,7 +1839,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1839
1839
|
t.clearProcessing && ha(_);
|
|
1840
1840
|
return;
|
|
1841
1841
|
}
|
|
1842
|
-
if (i === 1 && Xe.canFailover() &&
|
|
1842
|
+
if (i === 1 && Xe.canFailover() && En(e)) {
|
|
1843
1843
|
Qe();
|
|
1844
1844
|
let e = a ?? v.getState().sandboxesByMode[g]?.sandboxId ?? null;
|
|
1845
1845
|
return e && (J.current.add(e), q.current.invalidate(e)), _a(_), ya(g), da(_, b, ""), pa(_, b, { pendingWrite: void 0 }), e && G.retireSandbox(e), Ke(), Ye(), _n(b), $e(2);
|
|
@@ -1886,7 +1886,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1886
1886
|
mode: g,
|
|
1887
1887
|
capabilities: t ? v.getState().sandboxWriteCapabilities[t] : null
|
|
1888
1888
|
}) });
|
|
1889
|
-
w(b, { outcome: r.kind === "temporary" ? "failed" : "refused" }), r.offersUpgrade &&
|
|
1889
|
+
w(b, { outcome: r.kind === "temporary" ? "failed" : "refused" }), r.offersUpgrade && Nn(P, "sandbox");
|
|
1890
1890
|
let i = Le(r, N, { locale: z });
|
|
1891
1891
|
ma(_, "error", b, i.headline), fa(_, b, { content: i.text }), pa(_, b, {
|
|
1892
1892
|
lang: i.translated ? z : "en",
|
|
@@ -1995,12 +1995,12 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
1995
1995
|
sandboxId: $s,
|
|
1996
1996
|
nowMs: Date.now()
|
|
1997
1997
|
}), tc = ue(Qs), nc = (e) => {
|
|
1998
|
-
if (
|
|
1998
|
+
if (zn(e.metadata).length > 0) return !0;
|
|
1999
1999
|
let t = e.metadata?.sandboxId;
|
|
2000
|
-
return
|
|
2000
|
+
return Bn(t ? Aa[t] : null);
|
|
2001
2001
|
}, rc = (e) => {
|
|
2002
|
-
let t =
|
|
2003
|
-
return t.length === 0 || !B ? null : /* @__PURE__ */ j(
|
|
2002
|
+
let t = zn(e.metadata);
|
|
2003
|
+
return t.length === 0 || !B ? null : /* @__PURE__ */ j(Rn, {
|
|
2004
2004
|
refs: t,
|
|
2005
2005
|
conversationId: B,
|
|
2006
2006
|
panel: G,
|
|
@@ -2023,7 +2023,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2023
2023
|
conversationId: B,
|
|
2024
2024
|
perfNow: performance.now()
|
|
2025
2025
|
}), n = t[0];
|
|
2026
|
-
return n ? /* @__PURE__ */ j(
|
|
2026
|
+
return n ? /* @__PURE__ */ j(_r, {
|
|
2027
2027
|
offers: t.map(({ offer: e, target: t }) => ({
|
|
2028
2028
|
offerId: e.offerId,
|
|
2029
2029
|
label: t.label,
|
|
@@ -2063,7 +2063,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2063
2063
|
]), lc = E(() => {
|
|
2064
2064
|
if (cc.length === 0) return;
|
|
2065
2065
|
let e = /* @__PURE__ */ new Date();
|
|
2066
|
-
|
|
2066
|
+
Zn($e(cc, {
|
|
2067
2067
|
title: N("voiceSession.transcript", "Voice conversation"),
|
|
2068
2068
|
savedAt: N("voiceSession.savedAt", "Saved"),
|
|
2069
2069
|
session: N("voiceSession.sessionLabel", "Session"),
|
|
@@ -2083,7 +2083,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2083
2083
|
let e = window.setTimeout(() => pc(null), Mi);
|
|
2084
2084
|
return () => window.clearTimeout(e);
|
|
2085
2085
|
}, [fc]);
|
|
2086
|
-
let hc = k(/* @__PURE__ */ new Set()), gc = k(() => !1), $ =
|
|
2086
|
+
let hc = k(/* @__PURE__ */ new Set()), gc = k(() => !1), $ = wn({
|
|
2087
2087
|
onSubmit: E((e, t, n, r) => {
|
|
2088
2088
|
let i = vo.current, a = ft(i), o = () => {
|
|
2089
2089
|
let e = v.getState();
|
|
@@ -2161,7 +2161,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2161
2161
|
let e = bc[bc.length - 1];
|
|
2162
2162
|
if (!e) return;
|
|
2163
2163
|
let { view: t } = e;
|
|
2164
|
-
if (
|
|
2164
|
+
if (Mn(t) && jn(t, Aa[e.session.sandboxId]).offerConfirm) {
|
|
2165
2165
|
Cc(t);
|
|
2166
2166
|
return;
|
|
2167
2167
|
}
|
|
@@ -2171,7 +2171,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2171
2171
|
Aa,
|
|
2172
2172
|
Cc
|
|
2173
2173
|
]), Tc = yc ? xt(bc) : null, Ec = xc ? ja[xc] : void 0, Dc = yc && Ec && Ec.session.conversationId === B ? {
|
|
2174
|
-
content: /* @__PURE__ */ j(
|
|
2174
|
+
content: /* @__PURE__ */ j(Rn, {
|
|
2175
2175
|
refs: [{
|
|
2176
2176
|
proposalId: Ec.view.proposalId,
|
|
2177
2177
|
sandboxId: Ec.session.sandboxId,
|
|
@@ -2188,7 +2188,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2188
2188
|
}),
|
|
2189
2189
|
closeLabel: Tt(N, yt.trayClose),
|
|
2190
2190
|
onClose: () => Sc(null)
|
|
2191
|
-
} : null, Oc = Na.asking, kc = ks?.asking === !0, Ac = As?.asking === !0, jc =
|
|
2191
|
+
} : null, Oc = Na.asking, kc = ks?.asking === !0, Ac = As?.asking === !0, jc = lr(), Mc = $.holdListening;
|
|
2192
2192
|
a("assistant.transcript", O(() => yc || K ? null : { run: () => fo ? { status: "already" } : (_o(!0), { status: "done" }) }, [
|
|
2193
2193
|
yc,
|
|
2194
2194
|
K,
|
|
@@ -2226,7 +2226,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2226
2226
|
productWriteApproval: I,
|
|
2227
2227
|
capabilities: r
|
|
2228
2228
|
})) continue;
|
|
2229
|
-
let i = Et(t,
|
|
2229
|
+
let i = Et(t, jn(t, r).offerConfirm, N), a = t.proposalId;
|
|
2230
2230
|
Pc({
|
|
2231
2231
|
id: `write-readback:${a}`,
|
|
2232
2232
|
text: i.text,
|
|
@@ -2275,7 +2275,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2275
2275
|
}),
|
|
2276
2276
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2277
2277
|
metadata: { continuedVoiceTurns: zc }
|
|
2278
|
-
}),
|
|
2278
|
+
}), rr.recordCommittedEntries(e, [n], "NOTE", C()), _o(!1), $.end(), ho();
|
|
2279
2279
|
}, [
|
|
2280
2280
|
cc,
|
|
2281
2281
|
zc,
|
|
@@ -2311,7 +2311,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2311
2311
|
Oo,
|
|
2312
2312
|
$
|
|
2313
2313
|
]);
|
|
2314
|
-
let [Wc, Gc] = A(Fi), Kc =
|
|
2314
|
+
let [Wc, Gc] = A(Fi), Kc = yr({
|
|
2315
2315
|
available: $.available,
|
|
2316
2316
|
allowedInMode: Oo,
|
|
2317
2317
|
readOnly: Ia,
|
|
@@ -2347,23 +2347,23 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2347
2347
|
let $c = O(() => ({
|
|
2348
2348
|
live: $.active,
|
|
2349
2349
|
blocked: Kc === null ? null : qc.voiceStartBlocked(Kc),
|
|
2350
|
-
impossible:
|
|
2350
|
+
impossible: br(Kc),
|
|
2351
2351
|
start: Qc
|
|
2352
2352
|
}), [
|
|
2353
2353
|
$.active,
|
|
2354
2354
|
Kc,
|
|
2355
2355
|
qc,
|
|
2356
2356
|
Qc
|
|
2357
|
-
]), [el, tl] = A("mini"), nl = zi && po.covered !== !0 && !($.active && el !== "mini") && !(fo && !$.active) && !(Oc || kc || Ac || jc), rl = mo?.ask, il = Di(rl?.subscribe ?? Li, rl?.getSnapshot ?? Ri, rl?.getSnapshot ?? Ri), al =
|
|
2357
|
+
]), [el, tl] = A("mini"), nl = zi && po.covered !== !0 && !($.active && el !== "mini") && !(fo && !$.active) && !(Oc || kc || Ac || jc), rl = mo?.ask, il = Di(rl?.subscribe ?? Li, rl?.getSnapshot ?? Ri, rl?.getSnapshot ?? Ri), al = xr({
|
|
2358
2358
|
voiceLive: $.active,
|
|
2359
2359
|
readOnly: Ia,
|
|
2360
|
-
writes:
|
|
2360
|
+
writes: Sr({
|
|
2361
2361
|
auto: eo,
|
|
2362
2362
|
selectedMode: V,
|
|
2363
2363
|
conversation: U && !Ia ? {
|
|
2364
2364
|
mode: U.mode,
|
|
2365
2365
|
routedBy: U.routedBy,
|
|
2366
|
-
hasHistory:
|
|
2366
|
+
hasHistory: Qn(U)
|
|
2367
2367
|
} : null,
|
|
2368
2368
|
modeWrites: (e) => F.find((t) => t.id === e)?.writeCapable === !0 || Ce(e)
|
|
2369
2369
|
}),
|
|
@@ -2408,9 +2408,9 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2408
2408
|
Q,
|
|
2409
2409
|
Jo,
|
|
2410
2410
|
Xc
|
|
2411
|
-
]), [cl] = A(() =>
|
|
2411
|
+
]), [cl] = A(() => wr()), ll = O(() => ({
|
|
2412
2412
|
blocker: al,
|
|
2413
|
-
line:
|
|
2413
|
+
line: Cr(al, Kc),
|
|
2414
2414
|
send: sl,
|
|
2415
2415
|
last: Jc,
|
|
2416
2416
|
navigatingReplyId: ps,
|
|
@@ -2484,9 +2484,9 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2484
2484
|
}, []);
|
|
2485
2485
|
let pl = E((e) => {
|
|
2486
2486
|
let t = B ? v.getState().conversations.find((e) => e.id === B) : void 0;
|
|
2487
|
-
if (t && t.mode !== e && G.withdraw(t.id, "mode_switched"), t &&
|
|
2487
|
+
if (t && t.mode !== e && G.withdraw(t.id, "mode_switched"), t && Qn(t)) {
|
|
2488
2488
|
if (t.mode !== e) {
|
|
2489
|
-
let t = ie(), n = v.getState().conversations.find((n) => n.mode === e &&
|
|
2489
|
+
let t = ie(), n = v.getState().conversations.find((n) => n.mode === e && tr(n, t) && !v.getState().processingByConversationId[n.id]);
|
|
2490
2490
|
n ? la(n.id) : ua(void 0, e);
|
|
2491
2491
|
}
|
|
2492
2492
|
} else B && ca(B, e);
|
|
@@ -2510,12 +2510,12 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2510
2510
|
Ca(!0);
|
|
2511
2511
|
return;
|
|
2512
2512
|
}
|
|
2513
|
-
if (!
|
|
2513
|
+
if (!Qn(t)) {
|
|
2514
2514
|
wa(t.id, p);
|
|
2515
2515
|
return;
|
|
2516
2516
|
}
|
|
2517
2517
|
G.withdraw(t.id, "mode_switched");
|
|
2518
|
-
let n = ie(), r = e.conversations.find((t) => t.routedBy === "auto" &&
|
|
2518
|
+
let n = ie(), r = e.conversations.find((t) => t.routedBy === "auto" && tr(t, n) && !e.processingByConversationId[t.id]);
|
|
2519
2519
|
r ? (la(r.id), wa(r.id, p)) : ua(void 0, p, { routedBy: "auto" });
|
|
2520
2520
|
}, [
|
|
2521
2521
|
ua,
|
|
@@ -2564,31 +2564,31 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2564
2564
|
"aria-labelledby": po.ids.chatTab
|
|
2565
2565
|
} : {},
|
|
2566
2566
|
children: [
|
|
2567
|
-
Ua === null ? null : /* @__PURE__ */ j(
|
|
2568
|
-
cc.length > 0 && !$.active ? /* @__PURE__ */ j(
|
|
2567
|
+
Ua === null ? null : /* @__PURE__ */ j(Kn, { onDismiss: () => Ha(Ua) }),
|
|
2568
|
+
cc.length > 0 && !$.active ? /* @__PURE__ */ j(Wn, {
|
|
2569
2569
|
count: cc.length,
|
|
2570
2570
|
onOpenTranscript: () => _o(!0)
|
|
2571
2571
|
}) : null,
|
|
2572
|
-
Qs.length === 0 && (Ra || za) ? /* @__PURE__ */ j(
|
|
2572
|
+
Qs.length === 0 && (Ra || za) ? /* @__PURE__ */ j(qn, {
|
|
2573
2573
|
state: Ra ? "loading" : "failed",
|
|
2574
2574
|
onRetry: Ja
|
|
2575
2575
|
}) : Qs.length === 0 && U?.sync?.hasOlder ? /* @__PURE__ */ j("div", {
|
|
2576
2576
|
className: "flex min-h-0 flex-1 flex-col",
|
|
2577
|
-
children: /* @__PURE__ */ j(
|
|
2577
|
+
children: /* @__PURE__ */ j(Yn, {
|
|
2578
2578
|
onShowEarlier: Ya,
|
|
2579
2579
|
disabled: Ra
|
|
2580
2580
|
})
|
|
2581
|
-
}) : Qs.length === 0 ? /* @__PURE__ */ j(
|
|
2581
|
+
}) : Qs.length === 0 ? /* @__PURE__ */ j(ir, {
|
|
2582
2582
|
mode: V,
|
|
2583
2583
|
onSuggestionClick: Ks,
|
|
2584
2584
|
explainsAuto: eo,
|
|
2585
2585
|
suggestions: eo && V === "assistant" ? ee(F.find((e) => e.id === "assistant")?.suggestions ?? [], F.find((e) => e.id === "api-calls")?.suggestions ?? []) : void 0
|
|
2586
2586
|
}) : /* @__PURE__ */ Oi("div", {
|
|
2587
2587
|
className: "flex min-h-0 flex-1 flex-col",
|
|
2588
|
-
children: [U?.sync?.hasOlder ? /* @__PURE__ */ j(
|
|
2588
|
+
children: [U?.sync?.hasOlder ? /* @__PURE__ */ j(Yn, {
|
|
2589
2589
|
onShowEarlier: Ya,
|
|
2590
2590
|
disabled: Ra
|
|
2591
|
-
}) : null, /* @__PURE__ */ j(
|
|
2591
|
+
}) : null, /* @__PURE__ */ j(gr, {
|
|
2592
2592
|
onApprovePendingWrite: Wo,
|
|
2593
2593
|
approvingWriteRef: Io,
|
|
2594
2594
|
approvableMessageId: ec?.messageId ?? null,
|
|
@@ -2603,13 +2603,13 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2603
2603
|
renderUiOffers: ac
|
|
2604
2604
|
})]
|
|
2605
2605
|
}),
|
|
2606
|
-
Ia ? /* @__PURE__ */ j(
|
|
2607
|
-
La && B ? /* @__PURE__ */ j(
|
|
2608
|
-
Bs === null ? null : /* @__PURE__ */ j(
|
|
2606
|
+
Ia ? /* @__PURE__ */ j(Jn, { onStartNew: () => ua() }) : null,
|
|
2607
|
+
La && B ? /* @__PURE__ */ j(Gn, { onUnarchive: () => rr.updateConversation(B, { archived: !1 }) }) : null,
|
|
2608
|
+
Bs === null ? null : /* @__PURE__ */ j(ar, {
|
|
2609
2609
|
tr: N,
|
|
2610
2610
|
onDismiss: () => Vs(null)
|
|
2611
2611
|
}),
|
|
2612
|
-
Qs.length > 0 && (Ra || za) ? /* @__PURE__ */ j(
|
|
2612
|
+
Qs.length > 0 && (Ra || za) ? /* @__PURE__ */ j(qn, {
|
|
2613
2613
|
state: Ra ? "loading" : "failed",
|
|
2614
2614
|
onRetry: Ja,
|
|
2615
2615
|
compact: !0
|
|
@@ -2633,16 +2633,16 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2633
2633
|
suspendDictation: K,
|
|
2634
2634
|
onVoiceStateChange: po.ids ? Gc : void 0
|
|
2635
2635
|
}),
|
|
2636
|
-
/* @__PURE__ */ j(
|
|
2636
|
+
/* @__PURE__ */ j(Fn, {
|
|
2637
2637
|
productKey: P,
|
|
2638
2638
|
enabled: !!Wi,
|
|
2639
2639
|
className: "px-3 pt-1 text-center",
|
|
2640
2640
|
testId: "assistant-ai-credit-balance"
|
|
2641
2641
|
}),
|
|
2642
|
-
/* @__PURE__ */ j(
|
|
2642
|
+
/* @__PURE__ */ j(An, { className: "px-3 pb-2 pt-1" })
|
|
2643
2643
|
]
|
|
2644
2644
|
}),
|
|
2645
|
-
fo && !$.active ? /* @__PURE__ */ j(
|
|
2645
|
+
fo && !$.active ? /* @__PURE__ */ j(Xn, {
|
|
2646
2646
|
turns: cc,
|
|
2647
2647
|
onClose: () => _o(!1),
|
|
2648
2648
|
onSave: lc,
|
|
@@ -2652,7 +2652,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2652
2652
|
showEarlierDisabled: Ra,
|
|
2653
2653
|
renderAfterTurn: ic
|
|
2654
2654
|
}) : null,
|
|
2655
|
-
K && mo && po.ids ? /* @__PURE__ */ j(
|
|
2655
|
+
K && mo && po.ids ? /* @__PURE__ */ j(Tr, {
|
|
2656
2656
|
tab: mo,
|
|
2657
2657
|
id: po.ids.avatarPanel,
|
|
2658
2658
|
labelledBy: po.ids.avatarTab,
|
|
@@ -2661,7 +2661,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2661
2661
|
voice: $c,
|
|
2662
2662
|
...rl ? { ask: ll } : {}
|
|
2663
2663
|
}) : null,
|
|
2664
|
-
$.active && /* @__PURE__ */ j(
|
|
2664
|
+
$.active && /* @__PURE__ */ j(vr, {
|
|
2665
2665
|
session: $.session,
|
|
2666
2666
|
notice: $.notice,
|
|
2667
2667
|
privacyNotice: $.handsFree.privacyNotice,
|
|
@@ -2705,7 +2705,7 @@ var Li = () => () => {}, Ri = () => "off", zi = ({ visible: zi = !0, writeAccess
|
|
|
2705
2705
|
onConfirm: gl,
|
|
2706
2706
|
onCancel: vl
|
|
2707
2707
|
}),
|
|
2708
|
-
/* @__PURE__ */ j(
|
|
2708
|
+
/* @__PURE__ */ j(In, {
|
|
2709
2709
|
...Na.dialog,
|
|
2710
2710
|
view: oc?.view ?? Na.dialog.view,
|
|
2711
2711
|
serverNow: oc?.serverNow ?? NaN,
|