@burdenoff/fe-libs 2026.1113.10 → 2026.1114.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.
Files changed (57) hide show
  1. package/README.md +55 -8
  2. package/dist/node_modules/pdfjs-dist/build/pdf.js +21 -0
  3. package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +21 -0
  4. package/dist/platform-pages/AcceptShareRoute.js +15 -16
  5. package/dist/platform-pages/AffiliatesPage.js +4 -5
  6. package/dist/shared/assistant/createSandboxAssistantTransport.js +0 -1
  7. package/dist/shared/assistant/index.d.ts +3 -0
  8. package/dist/shared/assistant/ui/AIAssistantPanel.js +267 -241
  9. package/dist/shared/assistant/ui/AssistantChatArea.js +1243 -1241
  10. package/dist/shared/assistant/ui/AssistantConversationList.js +253 -252
  11. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +4 -23
  12. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +52 -55
  13. package/dist/shared/assistant/ui/AssistantMessageItem.js +37 -38
  14. package/dist/shared/assistant/ui/AssistantMessageList.js +48 -47
  15. package/dist/shared/assistant/ui/AssistantSpeechProvider.js +24 -25
  16. package/dist/shared/assistant/ui/assistantPageLayout.d.ts +13 -0
  17. package/dist/shared/assistant/ui/assistantPageLayout.js +8 -0
  18. package/dist/shared/assistant/ui/avatar/AssistantCompactAvatar.d.ts +6 -0
  19. package/dist/shared/assistant/ui/avatar/AssistantCompactAvatar.js +77 -71
  20. package/dist/shared/assistant/ui/compact/AssistantMenuView.js +130 -129
  21. package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +13 -0
  22. package/dist/shared/assistant/ui/compact/AssistantPageBar.js +46 -0
  23. package/dist/shared/assistant/ui/compact/AssistantViewSwitch.d.ts +5 -0
  24. package/dist/shared/assistant/ui/compact/AssistantViewSwitch.js +11 -11
  25. package/dist/shared/assistant/ui/composer/AssistantCompactFooter.js +15 -11
  26. package/dist/shared/assistant/ui/composer/AssistantComposer.js +258 -257
  27. package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +3 -3
  28. package/dist/shared/assistant/ui/composer/connectSource.js +1 -2
  29. package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -30
  30. package/dist/shared/assistant/uiActions/assistantHref.js +7 -43
  31. package/dist/shared/assistant/uiActions/assistantLinkNavigation.d.ts +12 -0
  32. package/dist/shared/assistant/uiActions/assistantLinkNavigation.js +42 -0
  33. package/dist/shared/assistant/uiActions/inAppLinks.js +9 -8
  34. package/dist/shared/components/ContextConversationWidget.js +6 -7
  35. package/dist/shared/components/assistantWidget/MessageContent.js +3 -4
  36. package/dist/shared/components/contextConversationWidget/Composer.js +9 -10
  37. package/dist/shared/components/contextConversationWidget/MessageItem.js +0 -1
  38. package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.js +0 -1
  39. package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.js +0 -1
  40. package/dist/shared/components/contextConversationWidget/ReplyBanner.js +0 -1
  41. package/dist/shared/components/contextConversationWidget/WidgetHeader.js +8 -9
  42. package/dist/shared/hooks/usePushDeviceRegistration.js +9 -10
  43. package/dist/shared/hooks/useRecordProductVisit.js +8 -9
  44. package/dist/shared/tours/ToursContext.js +6 -7
  45. package/dist/shared-assistant.js +224 -221
  46. package/dist/shared-hooks.js +10 -12
  47. package/dist/shared-plugins.js +0 -1
  48. package/dist/shared-providers-shell.js +7 -8
  49. package/dist/shared.js +83 -87
  50. package/dist/third-party/pdfjs-dist/ATTRIBUTION.txt +54 -0
  51. package/dist/third-party/pdfjs-dist/LICENSE +177 -0
  52. package/dist/third-party/pdfjs-dist/manifest.json +19 -0
  53. package/dist/utils/index.js +1 -1
  54. package/package.json +29 -2
  55. package/dist/shared/actors/index.js +0 -3
  56. package/dist/shared/assistant/speech/index.js +0 -6
  57. package/dist/shared/plugins/iframe-mount/index.js +0 -5
@@ -19,94 +19,95 @@ import { AssistantModeSelector as de } from "./AssistantModeSelector.js";
19
19
  import { AssistantModeMenu as fe } from "./AssistantModeMenu.js";
20
20
  import { AssistantViewSwitchRow as pe } from "../compact/AssistantViewSwitchRow.js";
21
21
  import { compactEnterSends as me, isImeComposingEnter as he } from "./imeEnter.js";
22
- import { useCallback as s, useEffect as c, useId as l, useLayoutEffect as u, useMemo as ge, useRef as d, useState as f } from "react";
23
- import { ArrowUp as _e, Loader2 as p, Square as ve } from "lucide-react";
24
- import { Fragment as ye, jsx as m, jsxs as h } from "react/jsx-runtime";
22
+ import { PAGE_COLUMN as ge, useAssistantPageLayout as _e } from "../assistantPageLayout.js";
23
+ import { useCallback as s, useEffect as c, useId as l, useLayoutEffect as ve, useMemo as ye, useRef as u, useState as d } from "react";
24
+ import { ArrowUp as be, Loader2 as f, Square as xe } from "lucide-react";
25
+ import { Fragment as Se, jsx as p, jsxs as m } from "react/jsx-runtime";
25
26
  // src/shared/assistant/ui/composer/AssistantComposer.tsx
26
- var be = 200;
27
- function xe(e) {
27
+ var Ce = 200;
28
+ function we(e) {
28
29
  if (!e) return !1;
29
30
  let t = e.ownerDocument.activeElement;
30
31
  return !t || t === e.ownerDocument.body ? !1 : e.contains(t) ? !0 : e.closest("[data-assistant-panel]")?.contains(t) ?? !1;
31
32
  }
32
- var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend: g, disabled: Ce = !1, readOnly: we = !1, placeholder: Te, mode: Ee, availableModes: _, attachmentCharsPerFile: De, onModeChange: Oe, auto: ke, onStartVoiceSession: v, onDraftStart: Ae, onDraftChange: je, suspendDictation: Me = !1, onVoiceStateChange: Ne, presentation: Pe = "classic", turnInFlight: y = !1, onStop: b, turnId: Fe, modeDisabledReason: Ie = null, inputRef: x, aboveCard: Le, viewSwitch: Re, modeReadOnly: ze = !1, voiceSessionActive: S = !1 }) => {
33
- let C = r(), { locale: w } = n(), T = Ce || we, E = Pe === "compact", D = d(null), Be = s((e) => {
34
- D.current = e, typeof x == "function" ? x(e) : x && (x.current = e);
35
- }, [x]), [O, k] = f(""), [A, j] = f(!1), [M, Ve] = f(!1), N = d(!1), [He, P] = f(null), [Ue, F] = f(null), [I, L] = f(null), [We, Ge] = f(y);
36
- We === y ? I !== null && y && Fe != null && Fe !== I && L(null) : (Ge(y), y ? (F(null), L(null)) : I !== null && (F(I), L(null)));
37
- let Ke = d(!1), R = d(null), qe = d(!1), Je = d(!1), Ye = d(null), z = d(!1), B = d(0), { attachments: V, isBusy: Xe, preparingCount: Ze, sendBlocker: Qe, rejection: $e, addFiles: H, remove: et, retry: tt, clear: nt, clearRejection: rt, canAddMore: it, commit: at, cancelCommit: ot } = ne({ perFileChars: De }), U = O.trim() !== "" || V.length > 0, st = d(!1), ct = d(!1);
33
+ var Te = ({ children: e }) => e(l()), h = ({ writeAccessDenied: l = !1, onSend: h, disabled: Ee = !1, readOnly: De = !1, placeholder: Oe, mode: ke, availableModes: g, attachmentCharsPerFile: Ae, onModeChange: je, auto: Me, onStartVoiceSession: _, onDraftStart: Ne, onDraftChange: Pe, suspendDictation: Fe = !1, onVoiceStateChange: Ie, presentation: Le = "classic", turnInFlight: v = !1, onStop: y, turnId: Re, modeDisabledReason: ze = null, inputRef: b, aboveCard: Be, viewSwitch: Ve, modeReadOnly: He = !1, voiceSessionActive: x = !1 }) => {
34
+ let S = r(), Ue = _e(), { locale: C } = n(), w = Ee || De, T = Le === "compact", E = u(null), We = s((e) => {
35
+ E.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
36
+ }, [b]), [D, O] = d(""), [k, A] = d(!1), [j, Ge] = d(!1), M = u(!1), [N, P] = d(null), [Ke, F] = d(null), [I, L] = d(null), [qe, Je] = d(v);
37
+ qe === v ? I !== null && v && Re != null && Re !== I && L(null) : (Je(v), v ? (F(null), L(null)) : I !== null && (F(I), L(null)));
38
+ let Ye = u(!1), R = u(null), Xe = u(!1), Ze = u(!1), Qe = u(null), z = u(!1), B = u(0), { attachments: V, isBusy: $e, preparingCount: et, sendBlocker: tt, rejection: nt, addFiles: H, remove: rt, retry: it, clear: at, clearRejection: ot, canAddMore: st, commit: ct, cancelCommit: lt } = ne({ perFileChars: Ae }), U = D.trim() !== "" || V.length > 0, ut = u(!1), dt = u(!1);
38
39
  c(() => {
39
- U && !st.current ? (st.current = !0, Ae?.()) : U || (st.current = !1);
40
- }, [U, Ae]), c(() => {
41
- U || (ct.current = !1), je?.({
42
- text: O,
40
+ U && !ut.current ? (ut.current = !0, Ne?.()) : U || (ut.current = !1);
41
+ }, [U, Ne]), c(() => {
42
+ U || (dt.current = !1), Pe?.({
43
+ text: D,
43
44
  hasAttachments: V.length > 0,
44
- dictated: ct.current
45
+ dictated: dt.current
45
46
  });
46
47
  }, [
47
- O,
48
+ D,
48
49
  V.length,
49
50
  U,
50
- je
51
+ Pe
51
52
  ]);
52
- let lt = s((e) => {
53
- ct.current = !0, k((t) => t ? `${t.replace(/\s+$/, "")} ${e}` : e);
54
- }, []), ut = a((e) => e.assistantLanguage), dt = ge(() => ee(ut, w), [ut, w]), W = te({
55
- onFinalize: lt,
56
- language: dt.tag
57
- }), G = W.isActive, ft = W.interim, pt = W.stop;
53
+ let ft = s((e) => {
54
+ dt.current = !0, O((t) => t ? `${t.replace(/\s+$/, "")} ${e}` : e);
55
+ }, []), pt = a((e) => e.assistantLanguage), mt = ye(() => ee(pt, C), [pt, C]), W = te({
56
+ onFinalize: ft,
57
+ language: mt.tag
58
+ }), G = W.isActive, ht = W.interim, gt = W.stop;
58
59
  c(() => {
59
- Me && G && (ft.trim() !== "" && lt(ft.trim()), pt());
60
+ Fe && G && (ht.trim() !== "" && ft(ht.trim()), gt());
60
61
  }, [
61
- Me,
62
+ Fe,
62
63
  G,
63
- ft,
64
- pt,
65
- lt
64
+ ht,
65
+ gt,
66
+ ft
66
67
  ]), c(() => {
67
- Ne?.({
68
- committing: M,
68
+ Ie?.({
69
+ committing: j,
69
70
  dictating: G
70
71
  });
71
72
  }, [
72
- Ne,
73
- M,
73
+ Ie,
74
+ j,
74
75
  G
75
76
  ]);
76
- let mt = o((e) => e.pending), ht = mt ? C("askAbout.placeholder", "Ask about {{name}}…", { name: mt.label }) : Te ?? C("composer.placeholder", "Ask me anything…"), gt = o((e) => e.focusRequested), _t = (e) => {
77
- k(e), requestAnimationFrame(() => {
78
- let t = D.current;
77
+ let _t = o((e) => e.pending), vt = _t ? S("askAbout.placeholder", "Ask about {{name}}…", { name: _t.label }) : Oe ?? S("composer.placeholder", "Ask me anything…"), yt = o((e) => e.focusRequested), bt = (e) => {
78
+ O(e), requestAnimationFrame(() => {
79
+ let t = E.current;
79
80
  t && (t.focus({ preventScroll: !0 }), t.setSelectionRange(e.length, e.length));
80
81
  });
81
82
  };
82
83
  c(() => {
83
- if (!gt || T) return;
84
- let e = D.current;
84
+ if (!yt || w) return;
85
+ let e = E.current;
85
86
  e && (e.focus({ preventScroll: !0 }), o.getState().actions.composerFocused());
86
- }, [gt, T]);
87
- let K = O.trim(), q = re(V), vt = V.filter((e) => e.status === "error"), J = (K.length > 0 || q.length > 0) && !T && !M && Qe === null, yt = q.some((e) => !(e.fileId && e.downloadUrl) && !e.inlineOnly), bt = d(T);
88
- bt.current = T;
89
- let Y = d(!0);
87
+ }, [yt, w]);
88
+ let K = D.trim(), q = re(V), xt = V.filter((e) => e.status === "error"), J = (K.length > 0 || q.length > 0) && !w && !j && tt === null, St = q.some((e) => !(e.fileId && e.downloadUrl) && !e.inlineOnly), Ct = u(w);
89
+ Ct.current = w;
90
+ let Y = u(!0);
90
91
  c(() => (Y.current = !0, () => {
91
92
  Y.current = !1;
92
- }), []), u(() => {
93
- let e = D.current;
94
- e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, be)}px`);
95
- }, [O]);
93
+ }), []), ve(() => {
94
+ let e = E.current;
95
+ e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, Ce)}px`);
96
+ }, [D]);
96
97
  let X = s(async () => {
97
- if (!J || N.current) return;
98
+ if (!J || M.current) return;
98
99
  W.isActive && W.stop();
99
- let e = O.trim();
100
+ let e = D.trim();
100
101
  P(null);
101
- let t = E && xe(Ye.current);
102
- if (!yt) {
103
- z.current = t, g(e, q), k(""), nt();
102
+ let t = T && we(Qe.current);
103
+ if (!St) {
104
+ z.current = t, h(e, q), O(""), at();
104
105
  return;
105
106
  }
106
107
  let n = a.getState().activeConversationId;
107
- N.current = !0, Ve(!0);
108
+ M.current = !0, Ge(!0);
108
109
  try {
109
- let r = await at();
110
+ let r = await ct();
110
111
  if (!Y.current) {
111
112
  r.ok && await r.rollback();
112
113
  return;
@@ -118,7 +119,7 @@ var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend:
118
119
  });
119
120
  return;
120
121
  }
121
- if (bt.current) {
122
+ if (Ct.current) {
122
123
  await r.rollback(), Y.current && P({
123
124
  kind: "busy",
124
125
  failures: []
@@ -133,290 +134,290 @@ var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend:
133
134
  });
134
135
  return;
135
136
  }
136
- z.current = t, g(e, re(r.attachments)), r.handedOver(), k(""), nt();
137
+ z.current = t, h(e, re(r.attachments)), r.handedOver(), O(""), at();
137
138
  } finally {
138
- N.current = !1, Y.current && Ve(!1);
139
+ M.current = !1, Y.current && Ge(!1);
139
140
  }
140
141
  }, [
141
142
  J,
142
- yt,
143
- at,
144
- g,
145
- O,
143
+ St,
144
+ ct,
145
+ h,
146
+ D,
146
147
  q,
147
- nt,
148
+ at,
148
149
  W,
149
- E
150
- ]), xt = s(() => {
151
- ot(), D.current?.focus();
152
- }, [ot]), Z = s(() => {
153
- bt.current ? Ke.current = !0 : D.current?.focus();
154
- }, []), St = s(() => {
155
- if (Je.current) return;
156
- let e = b?.() ?? null;
157
- e !== null && (Je.current = !0, L(e)), Z();
158
- }, [b, Z]);
150
+ T
151
+ ]), wt = s(() => {
152
+ lt(), E.current?.focus();
153
+ }, [lt]), Z = s(() => {
154
+ Ct.current ? Ye.current = !0 : E.current?.focus();
155
+ }, []), Tt = s(() => {
156
+ if (Ze.current) return;
157
+ let e = y?.() ?? null;
158
+ e !== null && (Ze.current = !0, L(e)), Z();
159
+ }, [y, Z]);
159
160
  c(() => {
160
- !T && Ke.current && (Ke.current = !1, D.current?.focus());
161
- }, [T]);
162
- let Ct = s((e) => {
161
+ !w && Ye.current && (Ye.current = !1, E.current?.focus());
162
+ }, [w]);
163
+ let Et = s((e) => {
163
164
  if (e !== null) {
164
165
  R.current = e;
165
166
  return;
166
167
  }
167
168
  let t = R.current;
168
- R.current = null, t !== null && t.ownerDocument.activeElement === t && (qe.current = !0);
169
- }, []), Q = E && y && b !== void 0;
170
- u(() => {
171
- !Q && qe.current && (qe.current = !1, Z());
169
+ R.current = null, t !== null && t.ownerDocument.activeElement === t && (Xe.current = !0);
170
+ }, []), Q = T && v && y !== void 0;
171
+ ve(() => {
172
+ !Q && Xe.current && (Xe.current = !1, Z());
172
173
  }, [Q, Z]), c(() => {
173
- I === null && (Je.current = !1);
174
- }, [I]), u(() => {
174
+ I === null && (Ze.current = !1);
175
+ }, [I]), ve(() => {
175
176
  if (!Q) return;
176
177
  let e = z.current;
177
178
  if (z.current = !1, !e) return;
178
179
  let t = R.current;
179
180
  if (t === null) return;
180
181
  let n = t.ownerDocument, r = n.activeElement;
181
- (r === null || r === n.body || r === D.current) && t.focus({ preventScroll: !0 });
182
+ (r === null || r === n.body || r === E.current) && t.focus({ preventScroll: !0 });
182
183
  }, [Q]);
183
- let wt = s((e) => {
184
- k(e), F(null);
184
+ let Dt = s((e) => {
185
+ O(e), F(null);
185
186
  }, []);
186
187
  c(() => {
187
188
  P(null);
188
189
  }, [V.length]);
189
- let Tt = (t) => {
190
- if (t.kind === "busy") return C("attachments.saveBusy", "The assistant started another reply, so nothing was sent. Your message and files are still here.");
191
- if (t.kind === "moved") return C("attachments.saveMoved", "You switched conversations while the files were being saved, so nothing was sent. Your message and files are still here.");
190
+ let Ot = (t) => {
191
+ if (t.kind === "busy") return S("attachments.saveBusy", "The assistant started another reply, so nothing was sent. Your message and files are still here.");
192
+ if (t.kind === "moved") return S("attachments.saveMoved", "You switched conversations while the files were being saved, so nothing was sent. Your message and files are still here.");
192
193
  let { failures: n } = t;
193
- if (n.some((e) => e.code === ie.editorAccessRequired)) return e(C, w);
194
- if (n.some((e) => e.code === ie.quotaExceeded || e.code === ie.quotaNotProvisioned)) return `${C("attachments.quotaFull", "File storage is full or not set up for this workspace, so the attachments couldn't be saved. Nothing was sent.")} ${C("attachments.retrySend", "Press Send to try again, or remove the file.")}`;
194
+ if (n.some((e) => e.code === ie.editorAccessRequired)) return e(S, C);
195
+ if (n.some((e) => e.code === ie.quotaExceeded || e.code === ie.quotaNotProvisioned)) return `${S("attachments.quotaFull", "File storage is full or not set up for this workspace, so the attachments couldn't be saved. Nothing was sent.")} ${S("attachments.retrySend", "Press Send to try again, or remove the file.")}`;
195
196
  let r = n[0], i = V.find((e) => e.id === r?.id)?.filename ?? "";
196
- return `${n.length <= 1 ? C("attachments.saveFailedOne", "{{name}} couldn't be saved, so nothing was sent.", { name: i }) : C("attachments.saveFailedMany", "{{count}} attachments couldn't be saved, so nothing was sent.", { count: n.length })} ${C("attachments.retrySend", "Press Send to try again, or remove the file.")}`;
197
- }, Et = s((e) => {
197
+ return `${n.length <= 1 ? S("attachments.saveFailedOne", "{{name}} couldn't be saved, so nothing was sent.", { name: i }) : S("attachments.saveFailedMany", "{{count}} attachments couldn't be saved, so nothing was sent.", { count: n.length })} ${S("attachments.retrySend", "Press Send to try again, or remove the file.")}`;
198
+ }, kt = s((e) => {
198
199
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
199
- }, [X]), Dt = s((e) => {
200
+ }, [X]), At = s((e) => {
200
201
  e.key === "Escape" ? he(e) && e.stopPropagation() : me(e) && (e.preventDefault(), F(null), X());
201
- }, [X]), Ot = s((e) => {
202
+ }, [X]), jt = s((e) => {
202
203
  let t = Array.from(e.clipboardData?.files ?? []);
203
204
  t.length !== 0 && (e.preventDefault(), H(t));
204
- }, [H]), kt = s((e) => {
205
- Array.from(e.dataTransfer?.types ?? []).includes("Files") && (B.current += 1, j(!0));
206
- }, []), At = s(() => {
207
- B.current = Math.max(0, B.current - 1), B.current === 0 && j(!1);
208
- }, []), jt = s((e) => {
205
+ }, [H]), Mt = s((e) => {
206
+ Array.from(e.dataTransfer?.types ?? []).includes("Files") && (B.current += 1, A(!0));
207
+ }, []), Nt = s(() => {
208
+ B.current = Math.max(0, B.current - 1), B.current === 0 && A(!1);
209
+ }, []), Pt = s((e) => {
209
210
  Array.from(e.dataTransfer?.types ?? []).includes("Files") && e.preventDefault();
210
- }, []), Mt = s((e) => {
211
- e.preventDefault(), B.current = 0, j(!1), H(e.dataTransfer?.files ?? null);
212
- }, [H]), Nt = (e) => {
211
+ }, []), Ft = s((e) => {
212
+ e.preventDefault(), B.current = 0, A(!1), H(e.dataTransfer?.files ?? null);
213
+ }, [H]), It = (e) => {
213
214
  switch (e) {
214
- case "too-many": return C("attachments.tooMany", "You can attach up to {{max}} files per message.", { max: 5 });
215
- case "too-large": return C("attachments.tooLarge", "That file is larger than 10 MB.");
216
- case "empty": return C("attachments.empty", "That file is empty.");
217
- case "unreadable": return C("attachments.unreadable", "That file could not be read.");
218
- case "unsupported-image": return C("attachments.unsupportedImage", "This device can't read that image format, so it can't be resized to send. Save it as JPEG and try again.");
219
- case "too-large-to-save": return C("attachments.tooLargeToSave", "That file is over 5 MB, so it can't be saved to Files, and no text could be read from it.");
215
+ case "too-many": return S("attachments.tooMany", "You can attach up to {{max}} files per message.", { max: 5 });
216
+ case "too-large": return S("attachments.tooLarge", "That file is larger than 10 MB.");
217
+ case "empty": return S("attachments.empty", "That file is empty.");
218
+ case "unreadable": return S("attachments.unreadable", "That file could not be read.");
219
+ case "unsupported-image": return S("attachments.unsupportedImage", "This device can't read that image format, so it can't be resized to send. Save it as JPEG and try again.");
220
+ case "too-large-to-save": return S("attachments.tooLargeToSave", "That file is over 5 MB, so it can't be saved to Files, and no text could be read from it.");
220
221
  }
221
222
  }, $ = (() => {
222
223
  switch (W.error) {
223
- case "not-allowed": return C("voice.denied", "Microphone access is blocked. Allow it in your browser settings to dictate.");
224
- case "audio-capture": return C("voice.noMic", "No microphone was found.");
225
- case "network": return C("voice.network", "Speech recognition is offline right now.");
226
- case "language-not-supported": return C("voice.languageNotSupported", "This browser cannot recognise spoken {{language}}. Try a different browser, or type instead.", { language: i(W.language, w) });
227
- case "unknown": return C("voice.failed", "Dictation stopped unexpectedly.");
224
+ case "not-allowed": return S("voice.denied", "Microphone access is blocked. Allow it in your browser settings to dictate.");
225
+ case "audio-capture": return S("voice.noMic", "No microphone was found.");
226
+ case "network": return S("voice.network", "Speech recognition is offline right now.");
227
+ case "language-not-supported": return S("voice.languageNotSupported", "This browser cannot recognise spoken {{language}}. Try a different browser, or type instead.", { language: i(W.language, C) });
228
+ case "unknown": return S("voice.failed", "Dictation stopped unexpectedly.");
228
229
  default: return null;
229
230
  }
230
- })(), Pt = (e, n) => M ? /* @__PURE__ */ m(t, {
231
- onDismiss: xt,
232
- children: /* @__PURE__ */ h("p", {
231
+ })(), Lt = (e, n) => j ? /* @__PURE__ */ p(t, {
232
+ onDismiss: wt,
233
+ children: /* @__PURE__ */ m("p", {
233
234
  className: "flex items-center justify-center gap-2 text-text-muted",
234
235
  "data-testid": "assistant-commit-status",
235
236
  children: [
236
- /* @__PURE__ */ m(p, {
237
+ /* @__PURE__ */ p(f, {
237
238
  className: "size-3 motion-safe:animate-spin",
238
239
  "aria-hidden": "true"
239
240
  }),
240
- /* @__PURE__ */ m("span", { children: C("attachments.saving", "Saving your attachments…") }),
241
- /* @__PURE__ */ m("button", {
241
+ /* @__PURE__ */ p("span", { children: S("attachments.saving", "Saving your attachments…") }),
242
+ /* @__PURE__ */ p("button", {
242
243
  type: "button",
243
- onClick: xt,
244
+ onClick: wt,
244
245
  className: "rounded text-text-primary underline underline-offset-2 hover:text-action-primary-bg focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",
245
246
  "data-testid": "assistant-commit-cancel",
246
- children: C("attachments.cancelSaving", "Cancel")
247
+ children: S("attachments.cancelSaving", "Cancel")
247
248
  })
248
249
  ]
249
250
  })
250
- }) : He ? /* @__PURE__ */ m("p", {
251
+ }) : N ? /* @__PURE__ */ p("p", {
251
252
  className: "text-status-error-text",
252
253
  role: "alert",
253
254
  "data-testid": "assistant-commit-failed",
254
- children: Tt(He)
255
- }) : W.isStarting && !W.isListening ? /* @__PURE__ */ m("p", {
255
+ children: Ot(N)
256
+ }) : W.isStarting && !W.isListening ? /* @__PURE__ */ p("p", {
256
257
  className: "text-text-muted",
257
258
  "data-testid": "assistant-voice-starting",
258
- children: C("voice.starting", "Starting the microphone…")
259
- }) : W.isListening ? /* @__PURE__ */ h("p", {
259
+ children: S("voice.starting", "Starting the microphone…")
260
+ }) : W.isListening ? /* @__PURE__ */ m("p", {
260
261
  className: "text-status-error-text",
261
262
  "data-testid": "assistant-voice-status",
262
- children: [/* @__PURE__ */ m(le, {}), W.interim || C("voice.listening", "Listening… speak now, tap the square to stop")]
263
- }) : $ ? /* @__PURE__ */ m("p", {
263
+ children: [/* @__PURE__ */ p(le, {}), W.interim || S("voice.listening", "Listening… speak now, tap the square to stop")]
264
+ }) : $ ? /* @__PURE__ */ p("p", {
264
265
  className: "text-status-error-text",
265
266
  "data-testid": "assistant-voice-error",
266
267
  children: $
267
- }) : $e ? /* @__PURE__ */ m("button", {
268
+ }) : nt ? /* @__PURE__ */ p("button", {
268
269
  type: "button",
269
- onClick: rt,
270
+ onClick: ot,
270
271
  className: "text-status-error-text underline-offset-2 hover:underline",
271
272
  "data-testid": "assistant-attachment-rejection",
272
- children: Nt($e)
273
- }) : Qe === "failed" ? /* @__PURE__ */ m("p", {
273
+ children: It(nt)
274
+ }) : tt === "failed" ? /* @__PURE__ */ p("p", {
274
275
  className: "text-status-error-text",
275
276
  "data-testid": "assistant-attachment-blocked",
276
- children: vt.length === 1 ? C("attachments.blockedOne", "{{name}} didn't upload. Retry or remove it before sending.", { name: vt[0].filename }) : C("attachments.blockedMany", "{{count}} attachments didn't upload. Retry or remove them before sending.", { count: vt.length })
277
- }) : n ? /* @__PURE__ */ m("p", {
277
+ children: xt.length === 1 ? S("attachments.blockedOne", "{{name}} didn't upload. Retry or remove it before sending.", { name: xt[0].filename }) : S("attachments.blockedMany", "{{count}} attachments didn't upload. Retry or remove them before sending.", { count: xt.length })
278
+ }) : n ? /* @__PURE__ */ p("p", {
278
279
  className: "text-text-muted",
279
280
  "data-testid": "assistant-stopping-status",
280
- children: C("composer.stopping", "Stopping the reply…")
281
- }) : e ? /* @__PURE__ */ m("p", {
281
+ children: S("composer.stopping", "Stopping the reply…")
282
+ }) : e ? /* @__PURE__ */ p("p", {
282
283
  className: "text-text-muted",
283
284
  "data-testid": "assistant-stop-status",
284
- children: C("composer.stopped", "Reply stopped.")
285
- }) : /* @__PURE__ */ m("p", {
285
+ children: S("composer.stopped", "Reply stopped.")
286
+ }) : /* @__PURE__ */ p("p", {
286
287
  className: "text-text-muted",
287
- children: C("composer.hint", "Enter to send · Shift+Enter for newline · drag or paste files to attach")
288
+ children: S("composer.hint", "Enter to send · Shift+Enter for newline · drag or paste files to attach")
288
289
  });
289
- if (E) {
290
- let e = v !== void 0 && K.length === 0 && V.length === 0 && !W.isActive, t = C("composer.hint", "Enter to send · Shift+Enter for newline · drag or paste files to attach"), n = !!(M || He || W.isStarting || W.isListening || $ || $e || Qe === "failed" || Ue !== null || I !== null), r = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-elevated)]";
291
- return /* @__PURE__ */ m(Se, { children: (i) => /* @__PURE__ */ h("div", {
292
- ref: Ye,
293
- className: "flex-shrink-0 px-3 pt-1.5",
290
+ if (T) {
291
+ let e = _ !== void 0 && K.length === 0 && V.length === 0 && !W.isActive, t = S("composer.hint", "Enter to send · Shift+Enter for newline · drag or paste files to attach"), n = !!(j || N || W.isStarting || W.isListening || $ || nt || tt === "failed" || Ke !== null || I !== null), r = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-elevated)]";
292
+ return /* @__PURE__ */ p(Te, { children: (i) => /* @__PURE__ */ m("div", {
293
+ ref: Qe,
294
+ className: Ue ? `flex-shrink-0 px-3 pt-1.5 ${ge}` : "flex-shrink-0 px-3 pt-1.5",
294
295
  children: [
295
- Le,
296
- Re ? /* @__PURE__ */ m(pe, {
297
- voiceLive: S,
298
- children: Re
296
+ Be,
297
+ Ve ? /* @__PURE__ */ p(pe, {
298
+ voiceLive: x,
299
+ children: Ve
299
300
  }) : null,
300
- /* @__PURE__ */ h("div", {
301
+ /* @__PURE__ */ m("div", {
301
302
  className: n || l ? "mb-1.5 px-1 text-center text-xs" : "",
302
303
  "aria-live": "polite",
303
304
  "data-testid": "assistant-composer-status",
304
- children: [l ? /* @__PURE__ */ m("p", {
305
+ children: [l ? /* @__PURE__ */ p("p", {
305
306
  className: "text-status-warning",
306
307
  "data-testid": "assistant-write-access-warning",
307
- children: C("composer.writeAccessDenied", "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.")
308
- }) : null, n ? Pt(Ue !== null, I !== null) : null]
308
+ children: S("composer.writeAccessDenied", "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.")
309
+ }) : null, n ? Lt(Ke !== null, I !== null) : null]
309
310
  }),
310
- /* @__PURE__ */ m("p", {
311
+ /* @__PURE__ */ p("p", {
311
312
  id: i,
312
313
  hidden: !0,
313
314
  "data-testid": "assistant-composer-hint",
314
315
  children: t
315
316
  }),
316
- /* @__PURE__ */ h("div", {
317
- onDragEnter: kt,
318
- onDragLeave: At,
319
- onDragOver: jt,
320
- onDrop: Mt,
321
- className: `flex flex-col rounded-3xl border transition-colors focus-within:border-[var(--color-focus-ring)] focus-within:ring-1 focus-within:ring-[var(--color-focus-ring)] ${ze ? "bg-bg-surface" : "bg-bg-elevated"} ${A ? "border-dashed border-[var(--color-focus-ring)]" : "border-[var(--color-text-muted)]"}`,
317
+ /* @__PURE__ */ m("div", {
318
+ onDragEnter: Mt,
319
+ onDragLeave: Nt,
320
+ onDragOver: Pt,
321
+ onDrop: Ft,
322
+ className: `flex flex-col rounded-3xl border transition-colors focus-within:border-[var(--color-focus-ring)] focus-within:ring-1 focus-within:ring-[var(--color-focus-ring)] ${He ? "bg-bg-surface" : "bg-bg-elevated"} ${k ? "border-dashed border-[var(--color-focus-ring)]" : "border-[var(--color-text-muted)]"}`,
322
323
  "data-testid": "assistant-composer",
323
324
  "data-presentation": "compact",
324
325
  children: [
325
- /* @__PURE__ */ m("div", {
326
+ /* @__PURE__ */ p("div", {
326
327
  className: "px-3 pt-3 empty:hidden",
327
- children: /* @__PURE__ */ h(ye, { children: [/* @__PURE__ */ m(se, {
328
- disabled: M,
328
+ children: /* @__PURE__ */ m(Se, { children: [/* @__PURE__ */ p(se, {
329
+ disabled: j,
329
330
  showSuggestions: K.length === 0,
330
- onSuggest: _t
331
- }), /* @__PURE__ */ m(oe, {
331
+ onSuggest: bt
332
+ }), /* @__PURE__ */ p(oe, {
332
333
  attachments: V,
333
- onRemove: et,
334
- onRetry: tt,
335
- disabled: T || M,
336
- preparingCount: Ze
334
+ onRemove: rt,
335
+ onRetry: it,
336
+ disabled: w || j,
337
+ preparingCount: et
337
338
  })] })
338
339
  }),
339
- /* @__PURE__ */ m("textarea", {
340
- ref: Be,
341
- value: O,
342
- onChange: (e) => wt(e.target.value),
343
- onKeyDown: Dt,
344
- onPaste: Ot,
345
- disabled: T,
346
- readOnly: M,
347
- "aria-busy": M || void 0,
348
- placeholder: A ? C("composer.dropHere", "Drop files to attach") : ht,
340
+ /* @__PURE__ */ p("textarea", {
341
+ ref: We,
342
+ value: D,
343
+ onChange: (e) => Dt(e.target.value),
344
+ onKeyDown: At,
345
+ onPaste: jt,
346
+ disabled: w,
347
+ readOnly: j,
348
+ "aria-busy": j || void 0,
349
+ placeholder: k ? S("composer.dropHere", "Drop files to attach") : vt,
349
350
  rows: 1,
350
351
  className: "min-h-10 w-full resize-none bg-transparent px-4 pb-1 pt-3 text-base leading-6 text-text-primary placeholder:text-text-muted focus:outline-none disabled:opacity-50",
351
352
  "aria-describedby": i,
352
353
  title: t,
353
- "aria-label": C("chatInput.ariaLabel", "Message input"),
354
+ "aria-label": S("chatInput.ariaLabel", "Message input"),
354
355
  "data-testid": "assistant-input"
355
356
  }),
356
- /* @__PURE__ */ h("div", {
357
+ /* @__PURE__ */ m("div", {
357
358
  className: "flex flex-nowrap items-center gap-1 px-1.5 pb-1.5 pt-1",
358
359
  "data-testid": "assistant-composer-controls",
359
360
  children: [
360
- /* @__PURE__ */ m(ae, {
361
+ /* @__PURE__ */ p(ae, {
361
362
  onFiles: H,
362
- canAddMore: it,
363
- disabled: T || M,
363
+ canAddMore: st,
364
+ disabled: w || j,
364
365
  compact: !0,
365
366
  capMenuHeight: !0
366
367
  }),
367
- /* @__PURE__ */ m(fe, {
368
+ /* @__PURE__ */ p(fe, {
368
369
  chip: !0,
369
- readOnly: ze,
370
- mode: Ee,
371
- availableModes: _,
372
- onModeChange: Oe,
373
- auto: ke,
374
- disabled: T || M,
375
- disabledReason: I === null ? y ? "replying" : Ie ?? "busy" : "busy"
370
+ readOnly: He,
371
+ mode: ke,
372
+ availableModes: g,
373
+ onModeChange: je,
374
+ auto: Me,
375
+ disabled: w || j,
376
+ disabledReason: I === null ? v ? "replying" : ze ?? "busy" : "busy"
376
377
  }),
377
- /* @__PURE__ */ m("div", { className: "min-w-0 flex-1" }),
378
- W.isSupported && !S && /* @__PURE__ */ m(ce, {
378
+ /* @__PURE__ */ p("div", { className: "min-w-0 flex-1" }),
379
+ W.isSupported && !x && /* @__PURE__ */ p(ce, {
379
380
  compact: !0,
380
381
  isListening: W.isListening,
381
382
  isStarting: W.isStarting,
382
383
  onToggle: W.toggle,
383
- disabled: T || M
384
+ disabled: w || j
384
385
  }),
385
- Q ? /* @__PURE__ */ m("button", {
386
- ref: Ct,
386
+ Q ? /* @__PURE__ */ p("button", {
387
+ ref: Et,
387
388
  type: "button",
388
- onClick: St,
389
+ onClick: Tt,
389
390
  className: `flex size-11 sm:size-10 flex-shrink-0 items-center justify-center rounded-full bg-action-primary-bg text-action-primary-text transition-colors hover:bg-action-primary-bg-hover ${r} ${I === null ? "" : "cursor-default opacity-60"}`,
390
- "aria-label": I === null ? C("composer.stop", "Stop the reply") : C("composer.stopping", "Stopping the reply…"),
391
- title: I === null ? C("composer.stop", "Stop the reply") : C("composer.stopping", "Stopping the reply…"),
391
+ "aria-label": I === null ? S("composer.stop", "Stop the reply") : S("composer.stopping", "Stopping the reply…"),
392
+ title: I === null ? S("composer.stop", "Stop the reply") : S("composer.stopping", "Stopping the reply…"),
392
393
  "aria-disabled": I === null ? void 0 : "true",
393
394
  "aria-busy": I === null ? void 0 : "true",
394
395
  "data-testid": "assistant-stop",
395
- children: I === null ? /* @__PURE__ */ m(ve, {
396
+ children: I === null ? /* @__PURE__ */ p(xe, {
396
397
  className: "size-4 fill-current",
397
398
  "aria-hidden": "true"
398
- }) : /* @__PURE__ */ m(p, {
399
+ }) : /* @__PURE__ */ p(f, {
399
400
  className: "size-4 motion-safe:animate-spin",
400
401
  "aria-hidden": "true"
401
402
  })
402
- }) : e ? /* @__PURE__ */ m(ue, {
403
+ }) : e ? /* @__PURE__ */ p(ue, {
403
404
  compact: !0,
404
- invisible: S,
405
- onStart: v,
406
- disabled: T || M
407
- }) : /* @__PURE__ */ m("button", {
405
+ invisible: x,
406
+ onStart: _,
407
+ disabled: w || j
408
+ }) : /* @__PURE__ */ p("button", {
408
409
  type: "button",
409
410
  onClick: () => {
410
411
  F(null), X();
411
412
  },
412
413
  disabled: !J,
413
414
  className: `flex size-11 sm:size-10 flex-shrink-0 items-center justify-center rounded-full transition-colors ${r} ${J ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover" : "bg-[var(--color-bg-disabled)] text-[var(--color-text-disabled)]"}`,
414
- "aria-label": C("chatInput.send", "Send message"),
415
+ "aria-label": S("chatInput.send", "Send message"),
415
416
  "data-testid": "assistant-send",
416
- children: Ce || Xe || M ? /* @__PURE__ */ m(p, {
417
+ children: Ee || $e || j ? /* @__PURE__ */ p(f, {
417
418
  className: "size-5 motion-safe:animate-spin",
418
419
  "aria-hidden": "true"
419
- }) : /* @__PURE__ */ m(_e, {
420
+ }) : /* @__PURE__ */ p(be, {
420
421
  className: "size-5",
421
422
  "aria-hidden": "true"
422
423
  })
@@ -428,95 +429,95 @@ var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend:
428
429
  ]
429
430
  }) });
430
431
  }
431
- return /* @__PURE__ */ h("div", {
432
+ return /* @__PURE__ */ m("div", {
432
433
  className: "flex-shrink-0 px-3 pb-3 pt-1.5",
433
434
  children: [
434
- /* @__PURE__ */ h("div", {
435
- onDragEnter: kt,
436
- onDragLeave: At,
437
- onDragOver: jt,
438
- onDrop: Mt,
439
- className: `rounded-2xl border p-2 shadow-sm transition-colors focus-within:border-action-primary-bg focus-within:ring-2 focus-within:ring-action-primary-bg/15 ${A ? "border-action-primary-bg border-dashed bg-action-primary-bg/5" : "border-border-default bg-bg-sunken"}`,
435
+ /* @__PURE__ */ m("div", {
436
+ onDragEnter: Mt,
437
+ onDragLeave: Nt,
438
+ onDragOver: Pt,
439
+ onDrop: Ft,
440
+ className: `rounded-2xl border p-2 shadow-sm transition-colors focus-within:border-action-primary-bg focus-within:ring-2 focus-within:ring-action-primary-bg/15 ${k ? "border-action-primary-bg border-dashed bg-action-primary-bg/5" : "border-border-default bg-bg-sunken"}`,
440
441
  "data-testid": "assistant-composer",
441
442
  children: [
442
- /* @__PURE__ */ h(ye, { children: [/* @__PURE__ */ m(se, {
443
- disabled: M,
443
+ /* @__PURE__ */ m(Se, { children: [/* @__PURE__ */ p(se, {
444
+ disabled: j,
444
445
  showSuggestions: K.length === 0,
445
- onSuggest: _t
446
- }), /* @__PURE__ */ m(oe, {
446
+ onSuggest: bt
447
+ }), /* @__PURE__ */ p(oe, {
447
448
  attachments: V,
448
- onRemove: et,
449
- onRetry: tt,
450
- disabled: T || M,
451
- preparingCount: Ze
449
+ onRemove: rt,
450
+ onRetry: it,
451
+ disabled: w || j,
452
+ preparingCount: et
452
453
  })] }),
453
- /* @__PURE__ */ h("div", {
454
+ /* @__PURE__ */ m("div", {
454
455
  className: "flex items-end gap-2",
455
456
  children: [
456
- /* @__PURE__ */ m(ae, {
457
+ /* @__PURE__ */ p(ae, {
457
458
  onFiles: H,
458
- canAddMore: it,
459
- disabled: T || M,
459
+ canAddMore: st,
460
+ disabled: w || j,
460
461
  showLabel: !0
461
462
  }),
462
- /* @__PURE__ */ m("textarea", {
463
- ref: D,
464
- value: O,
465
- onChange: (e) => k(e.target.value),
466
- onKeyDown: Et,
467
- onPaste: Ot,
468
- disabled: T,
469
- readOnly: M,
470
- "aria-busy": M || void 0,
471
- placeholder: A ? C("composer.dropHere", "Drop files to attach") : ht,
463
+ /* @__PURE__ */ p("textarea", {
464
+ ref: E,
465
+ value: D,
466
+ onChange: (e) => O(e.target.value),
467
+ onKeyDown: kt,
468
+ onPaste: jt,
469
+ disabled: w,
470
+ readOnly: j,
471
+ "aria-busy": j || void 0,
472
+ placeholder: k ? S("composer.dropHere", "Drop files to attach") : vt,
472
473
  rows: 1,
473
474
  className: "min-h-[36px] flex-1 resize-none self-center bg-transparent px-1 py-2 text-[15px] leading-relaxed text-text-primary placeholder:text-text-muted focus:outline-none disabled:opacity-50",
474
- "aria-label": C("chatInput.ariaLabel", "Message input"),
475
+ "aria-label": S("chatInput.ariaLabel", "Message input"),
475
476
  "data-testid": "assistant-input"
476
477
  }),
477
- W.isSupported && /* @__PURE__ */ m(ce, {
478
+ W.isSupported && /* @__PURE__ */ p(ce, {
478
479
  isListening: W.isListening,
479
480
  isStarting: W.isStarting,
480
481
  onToggle: W.toggle,
481
- disabled: T || M
482
+ disabled: w || j
482
483
  }),
483
- v && K.length === 0 && V.length === 0 && !W.isActive ? /* @__PURE__ */ m(ue, {
484
- onStart: v,
485
- disabled: T || M
486
- }) : /* @__PURE__ */ m("button", {
484
+ _ && K.length === 0 && V.length === 0 && !W.isActive ? /* @__PURE__ */ p(ue, {
485
+ onStart: _,
486
+ disabled: w || j
487
+ }) : /* @__PURE__ */ p("button", {
487
488
  type: "button",
488
489
  onClick: () => void X(),
489
490
  disabled: !J,
490
491
  className: `flex size-9 flex-shrink-0 items-center justify-center rounded-full shadow-sm transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong ${J ? "bg-action-primary-bg text-action-primary-text hover:scale-105 hover:bg-action-primary-bg-hover" : "bg-bg-elevated text-text-muted"}`,
491
- "aria-label": C("chatInput.send", "Send message"),
492
+ "aria-label": S("chatInput.send", "Send message"),
492
493
  "data-testid": "assistant-send",
493
- children: Ce || Xe || M ? /* @__PURE__ */ m(p, { className: "size-4 motion-safe:animate-spin" }) : /* @__PURE__ */ m(_e, { className: "size-4" })
494
+ children: Ee || $e || j ? /* @__PURE__ */ p(f, { className: "size-4 motion-safe:animate-spin" }) : /* @__PURE__ */ p(be, { className: "size-4" })
494
495
  })
495
496
  ]
496
497
  }),
497
- (_.length > 1 || _.some((e) => e.writeCapable)) && /* @__PURE__ */ m("div", {
498
+ (g.length > 1 || g.some((e) => e.writeCapable)) && /* @__PURE__ */ p("div", {
498
499
  className: "mt-2 px-0.5",
499
- children: /* @__PURE__ */ m(de, {
500
- mode: Ee,
501
- availableModes: _,
502
- onModeChange: Oe,
503
- disabled: T || M,
504
- auto: ke
500
+ children: /* @__PURE__ */ p(de, {
501
+ mode: ke,
502
+ availableModes: g,
503
+ onModeChange: je,
504
+ disabled: w || j,
505
+ auto: Me
505
506
  })
506
507
  })
507
508
  ]
508
509
  }),
509
- l ? /* @__PURE__ */ m("p", {
510
+ l ? /* @__PURE__ */ p("p", {
510
511
  className: "mt-1.5 px-1 text-center text-[11px] text-status-warning",
511
512
  "data-testid": "assistant-write-access-warning",
512
- children: C("composer.writeAccessDenied", "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.")
513
+ children: S("composer.writeAccessDenied", "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.")
513
514
  }) : null,
514
- /* @__PURE__ */ m("div", {
515
+ /* @__PURE__ */ p("div", {
515
516
  className: "mt-1.5 px-1 text-center text-[11px]",
516
517
  "aria-live": "polite",
517
- children: Pt(!1, !1)
518
+ children: Lt(!1, !1)
518
519
  })
519
520
  ]
520
521
  });
521
522
  };
522
- export { g as AssistantComposer };
523
+ export { h as AssistantComposer };