@adecore/agents-react 0.54.16 → 0.55.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 (91) hide show
  1. package/dist/agents/AgentModelLabel.d.ts +5 -0
  2. package/dist/agents/AgentModelLabel.js +32 -7
  3. package/dist/chat/account-choice.d.ts +1 -0
  4. package/dist/chat/account-choice.js +13 -4
  5. package/dist/chat/mentions.d.ts +24 -2
  6. package/dist/chat/mentions.js +84 -10
  7. package/dist/chat/subagent-list.d.ts +0 -1
  8. package/dist/chat/subagent-list.js +1 -9
  9. package/dist/chat/tag-suggestions.d.ts +22 -0
  10. package/dist/chat/tag-suggestions.js +71 -0
  11. package/dist/chat/ui/Composer.js +489 -447
  12. package/dist/chat/ui/ComposerInput.d.ts +1 -0
  13. package/dist/chat/ui/ComposerInput.js +9 -1
  14. package/dist/chat/ui/Markdown.js +41 -25
  15. package/dist/chat/ui/NamedChip.d.ts +5 -0
  16. package/dist/chat/ui/NamedChip.js +118 -0
  17. package/dist/chat/ui/Pickers.d.ts +0 -4
  18. package/dist/chat/ui/Pickers.js +1 -141
  19. package/dist/chat/ui/PromptEditor.js +2 -1
  20. package/dist/chat/ui/ReferenceChip.d.ts +3 -2
  21. package/dist/chat/ui/ReferenceChip.js +58 -36
  22. package/dist/chat/ui/RunSettings.d.ts +3 -2
  23. package/dist/chat/ui/RunSettings.js +386 -361
  24. package/dist/chat/ui/SubagentInfo.js +98 -114
  25. package/dist/chat/ui/SubagentTimeline.js +65 -43
  26. package/dist/chat/ui/Timeline.js +14 -8
  27. package/dist/chat/ui/chip-clipboard.js +10 -0
  28. package/dist/chat/ui/composer/ComposerControls.d.ts +6 -1
  29. package/dist/chat/ui/composer/ComposerControls.js +171 -158
  30. package/dist/chat/ui/composer/ComposerMenu.js +184 -55
  31. package/dist/chat/ui/composer/ComposerPlusMenu.d.ts +18 -0
  32. package/dist/chat/ui/composer/ComposerPlusMenu.js +400 -0
  33. package/dist/chat/ui/composer/ComposerStatusLine.d.ts +4 -0
  34. package/dist/chat/ui/composer/ComposerStatusLine.js +239 -0
  35. package/dist/chat/ui/composer/chips.d.ts +2 -0
  36. package/dist/chat/ui/composer/chips.js +66 -5
  37. package/dist/chat/ui/composer/insert.d.ts +1 -0
  38. package/dist/chat/ui/composer/insert.js +24 -0
  39. package/dist/chat/ui/composer/use-composer-menus.js +34 -17
  40. package/dist/chat/ui/composer/use-prompt-menus.d.ts +10 -2
  41. package/dist/chat/ui/composer/use-prompt-menus.js +290 -202
  42. package/dist/chat/ui/covered-bottom.d.ts +1 -0
  43. package/dist/chat/ui/covered-bottom.js +6 -0
  44. package/dist/chat/ui/named-chip-look.d.ts +14 -0
  45. package/dist/chat/ui/named-chip-look.js +72 -0
  46. package/dist/chat/ui/rehype-chips.js +13 -2
  47. package/dist/host-hooks.d.ts +2 -1
  48. package/dist/host-hooks.js +6 -0
  49. package/dist/host.d.ts +17 -0
  50. package/dist/index.d.ts +1 -1
  51. package/dist/locales/en/agent-chat.d.ts +14 -2
  52. package/dist/locales/en/agent-chat.js +16 -4
  53. package/dist/locales/nl/agent-chat.d.ts +14 -2
  54. package/dist/locales/nl/agent-chat.js +16 -4
  55. package/dist/state/chats.d.ts +1 -0
  56. package/dist/state/chats.js +45 -0
  57. package/package.json +9 -9
  58. package/src/agents/AgentModelLabel.tsx +10 -1
  59. package/src/chat/account-choice.ts +8 -0
  60. package/src/chat/mentions.ts +110 -13
  61. package/src/chat/subagent-list.ts +1 -14
  62. package/src/chat/tag-suggestions.ts +121 -0
  63. package/src/chat/ui/Composer.tsx +24 -12
  64. package/src/chat/ui/ComposerInput.tsx +13 -1
  65. package/src/chat/ui/Markdown.tsx +5 -0
  66. package/src/chat/ui/NamedChip.tsx +34 -0
  67. package/src/chat/ui/Pickers.tsx +1 -51
  68. package/src/chat/ui/PromptEditor.tsx +7 -1
  69. package/src/chat/ui/ReferenceChip.tsx +15 -4
  70. package/src/chat/ui/RunSettings.tsx +51 -29
  71. package/src/chat/ui/SubagentInfo.tsx +17 -17
  72. package/src/chat/ui/SubagentTimeline.tsx +7 -2
  73. package/src/chat/ui/Timeline.tsx +11 -5
  74. package/src/chat/ui/chip-clipboard.ts +8 -1
  75. package/src/chat/ui/composer/ComposerControls.tsx +24 -17
  76. package/src/chat/ui/composer/ComposerMenu.tsx +82 -15
  77. package/src/chat/ui/composer/ComposerPlusMenu.tsx +158 -0
  78. package/src/chat/ui/composer/ComposerStatusLine.tsx +94 -0
  79. package/src/chat/ui/composer/chips.ts +78 -7
  80. package/src/chat/ui/composer/insert.ts +12 -0
  81. package/src/chat/ui/composer/use-composer-menus.ts +5 -2
  82. package/src/chat/ui/composer/use-prompt-menus.ts +55 -10
  83. package/src/chat/ui/covered-bottom.ts +7 -0
  84. package/src/chat/ui/named-chip-look.ts +64 -0
  85. package/src/chat/ui/rehype-chips.ts +17 -2
  86. package/src/host-hooks.ts +11 -1
  87. package/src/host.ts +29 -0
  88. package/src/index.ts +2 -0
  89. package/src/locales/en/agent-chat.ts +16 -4
  90. package/src/locales/nl/agent-chat.ts +16 -4
  91. package/src/state/chats.ts +26 -0
@@ -6,7 +6,7 @@ import { ChevronDown } from 'lucide-react';
6
6
  import { useEffect, useRef, useState, useSyncExternalStore } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
8
8
  import { useChatHost } from '../../host.js';
9
- import { useHostComposerSendActions, useHostExtraPrompts, useHostSendDelivery } from '../../host-hooks.js';
9
+ import { useHostComposerSendActions, useHostComposerStatus, useHostExtraPrompts, useHostSendDelivery } from '../../host-hooks.js';
10
10
  import { canSteer } from '../../providers/provider-abilities.js';
11
11
  import { useChatScope } from '../../scope.js';
12
12
  import { useProviders } from '../../state/providers.js';
@@ -21,6 +21,7 @@ import { ChatActivity } from './ChatActivity.js';
21
21
  import { chipDecorations } from './composer/chips.js';
22
22
  import { ComposerControls } from './composer/ComposerControls.js';
23
23
  import { ComposerMenu } from './composer/ComposerMenu.js';
24
+ import { ComposerStatusLine } from './composer/ComposerStatusLine.js';
24
25
  import { DraftAttachments, DraftQuote } from './composer/DraftParts.js';
25
26
  import { composerKeyHandler } from './composer/key-handler.js';
26
27
  import { useHintedPlaceholder } from './composer/placeholder.js';
@@ -55,7 +56,7 @@ function sendLabelKey(busy, steerable, delivery) {
55
56
  return delivery === 'steer' ? 'composer.steerButton' : 'composer.queueWithSteerButton';
56
57
  }
57
58
  export function Composer(t0) {
58
- const $ = _c(249);
59
+ const $ = _c(260);
59
60
  const {
60
61
  chatId,
61
62
  info,
@@ -208,6 +209,7 @@ export function Composer(t0) {
208
209
  const [sentFor, setSentFor] = useState(null);
209
210
  const extraPrompts = useHostExtraPrompts(scope.id, chatId);
210
211
  const sendActions = useHostComposerSendActions(scope.id, chatId);
212
+ const statusItems = useHostComposerStatus(scope.id, chatId);
211
213
  let t12;
212
214
  if ($[35] !== continuable || $[36] !== onSend) {
213
215
  t12 = (text, extras) => {
@@ -284,98 +286,111 @@ export function Composer(t0) {
284
286
  const compactionOffer = useCompactionOffer(chatId, info, capabilities?.compaction);
285
287
  const t15 = capabilities?.mentions !== false;
286
288
  let t16;
287
- if ($[45] !== chatId || $[46] !== disabled || $[47] !== menus.hasSkills || $[48] !== menus.offersViews || $[49] !== readOnly || $[50] !== t15) {
289
+ if ($[45] !== menus.hasSkills || $[46] !== menus.offersViews || $[47] !== t15) {
288
290
  t16 = {
289
- chatId,
290
- disabled,
291
- readOnly,
292
291
  mentionable: t15,
293
292
  referable: menus.offersViews,
294
293
  hasSkills: menus.hasSkills
295
294
  };
296
- $[45] = chatId;
297
- $[46] = disabled;
298
- $[47] = menus.hasSkills;
299
- $[48] = menus.offersViews;
300
- $[49] = readOnly;
301
- $[50] = t15;
302
- $[51] = t16;
295
+ $[45] = menus.hasSkills;
296
+ $[46] = menus.offersViews;
297
+ $[47] = t15;
298
+ $[48] = t16;
303
299
  } else {
304
- t16 = $[51];
300
+ t16 = $[48];
305
301
  }
306
- const placeholder = useHintedPlaceholder(t16);
302
+ const sigils = t16;
307
303
  let t17;
308
- if ($[52] !== draft.mentions || $[53] !== draft.skills || $[54] !== host.ReferenceIcon || $[55] !== menus.referenceChips) {
309
- t17 = chipDecorations({
304
+ if ($[49] !== chatId || $[50] !== disabled || $[51] !== readOnly || $[52] !== sigils) {
305
+ t17 = {
306
+ chatId,
307
+ disabled,
308
+ readOnly,
309
+ ...sigils
310
+ };
311
+ $[49] = chatId;
312
+ $[50] = disabled;
313
+ $[51] = readOnly;
314
+ $[52] = sigils;
315
+ $[53] = t17;
316
+ } else {
317
+ t17 = $[53];
318
+ }
319
+ const placeholder = useHintedPlaceholder(t17);
320
+ let t18;
321
+ if ($[54] !== draft.mentions || $[55] !== draft.skills || $[56] !== host.ReferenceIcon || $[57] !== menus.namedLook || $[58] !== menus.referenceChips) {
322
+ t18 = chipDecorations({
310
323
  mentions: draft.mentions,
311
324
  skills: draft.skills,
312
325
  references: menus.referenceChips,
313
- referenceIcon: host.ReferenceIcon
326
+ referenceIcon: host.ReferenceIcon,
327
+ named: menus.namedLook
314
328
  });
315
- $[52] = draft.mentions;
316
- $[53] = draft.skills;
317
- $[54] = host.ReferenceIcon;
318
- $[55] = menus.referenceChips;
319
- $[56] = t17;
329
+ $[54] = draft.mentions;
330
+ $[55] = draft.skills;
331
+ $[56] = host.ReferenceIcon;
332
+ $[57] = menus.namedLook;
333
+ $[58] = menus.referenceChips;
334
+ $[59] = t18;
320
335
  } else {
321
- t17 = $[56];
336
+ t18 = $[59];
322
337
  }
323
- let t18;
324
- if ($[57] !== t17) {
325
- t18 = [t17, LEAVE_DROPS_TO_THE_CARD];
326
- $[57] = t17;
327
- $[58] = t18;
328
- } else {
329
- t18 = $[58];
330
- }
331
- const editorExtensions = t18;
332
338
  let t19;
333
- if ($[59] !== chatId) {
334
- t19 = () => timelineAtEnd(chatId);
335
- $[59] = chatId;
336
- $[60] = t19;
339
+ if ($[60] !== t18) {
340
+ t19 = [t18, LEAVE_DROPS_TO_THE_CARD];
341
+ $[60] = t18;
342
+ $[61] = t19;
337
343
  } else {
338
- t19 = $[60];
344
+ t19 = $[61];
339
345
  }
340
- const atEnd = useSyncExternalStore(subscribeTimelineEnd, t19, _temp3);
346
+ const editorExtensions = t19;
341
347
  let t20;
342
- if ($[61] !== info.queue) {
343
- t20 = info.queue ?? [];
344
- $[61] = info.queue;
345
- $[62] = t20;
348
+ if ($[62] !== chatId) {
349
+ t20 = () => timelineAtEnd(chatId);
350
+ $[62] = chatId;
351
+ $[63] = t20;
346
352
  } else {
347
- t20 = $[62];
353
+ t20 = $[63];
348
354
  }
349
- const queue = t20;
355
+ const atEnd = useSyncExternalStore(subscribeTimelineEnd, t20, _temp3);
350
356
  let t21;
351
- if ($[63] !== draft) {
352
- t21 = isEmptyDraft(draft);
353
- $[63] = draft;
354
- $[64] = t21;
357
+ if ($[64] !== info.queue) {
358
+ t21 = info.queue ?? [];
359
+ $[64] = info.queue;
360
+ $[65] = t21;
355
361
  } else {
356
- t21 = $[64];
362
+ t21 = $[65];
357
363
  }
358
- const empty = t21;
364
+ const queue = t21;
359
365
  let t22;
366
+ if ($[66] !== draft) {
367
+ t22 = isEmptyDraft(draft);
368
+ $[66] = draft;
369
+ $[67] = t22;
370
+ } else {
371
+ t22 = $[67];
372
+ }
373
+ const empty = t22;
360
374
  let t23;
361
- if ($[65] !== focused) {
362
- t22 = () => {
375
+ let t24;
376
+ if ($[68] !== focused) {
377
+ t23 = () => {
363
378
  if (focused) {
364
379
  inputRef.current?.focus();
365
380
  }
366
381
  };
367
- t23 = [focused];
368
- $[65] = focused;
369
- $[66] = t22;
370
- $[67] = t23;
382
+ t24 = [focused];
383
+ $[68] = focused;
384
+ $[69] = t23;
385
+ $[70] = t24;
371
386
  } else {
372
- t22 = $[66];
373
- t23 = $[67];
387
+ t23 = $[69];
388
+ t24 = $[70];
374
389
  }
375
- useEffect(t22, t23);
376
- let t24;
377
- if ($[68] !== chatId || $[69] !== draft.text || $[70] !== files.noteKey || $[71] !== history || $[72] !== host || $[73] !== menus || $[74] !== sendKey || $[75] !== submit || $[76] !== toggleStash) {
378
- t24 = composerKeyHandler({
390
+ useEffect(t23, t24);
391
+ let t25;
392
+ if ($[71] !== chatId || $[72] !== draft.text || $[73] !== files.noteKey || $[74] !== history || $[75] !== host || $[76] !== menus || $[77] !== sendKey || $[78] !== submit || $[79] !== toggleStash) {
393
+ t25 = composerKeyHandler({
379
394
  chatId,
380
395
  host,
381
396
  sendKey,
@@ -386,40 +401,40 @@ export function Composer(t0) {
386
401
  toggleStash,
387
402
  submit
388
403
  });
389
- $[68] = chatId;
390
- $[69] = draft.text;
391
- $[70] = files.noteKey;
392
- $[71] = history;
393
- $[72] = host;
394
- $[73] = menus;
395
- $[74] = sendKey;
396
- $[75] = submit;
397
- $[76] = toggleStash;
398
- $[77] = t24;
399
- } else {
400
- t24 = $[77];
401
- }
402
- const onKeyDown = t24;
404
+ $[71] = chatId;
405
+ $[72] = draft.text;
406
+ $[73] = files.noteKey;
407
+ $[74] = history;
408
+ $[75] = host;
409
+ $[76] = menus;
410
+ $[77] = sendKey;
411
+ $[78] = submit;
412
+ $[79] = toggleStash;
413
+ $[80] = t25;
414
+ } else {
415
+ t25 = $[80];
416
+ }
417
+ const onKeyDown = t25;
403
418
  const pointSurface = _temp4;
404
- let t25;
405
- if ($[78] !== writable) {
406
- t25 = event_0 => {
419
+ let t26;
420
+ if ($[81] !== writable) {
421
+ t26 = event_0 => {
407
422
  if (!writable || event_0.button !== 0 || event_0.defaultPrevented || surfacePartOf(event_0.target, event_0.currentTarget) !== "surface") {
408
423
  return;
409
424
  }
410
425
  event_0.preventDefault();
411
426
  inputRef.current?.setCaret(Infinity);
412
427
  };
413
- $[78] = writable;
414
- $[79] = t25;
428
+ $[81] = writable;
429
+ $[82] = t26;
415
430
  } else {
416
- t25 = $[79];
431
+ t26 = $[82];
417
432
  }
418
- const pressSurface = t25;
419
- const t26 = "chat-composer-content pointer-events-none relative z-10 w-full";
420
- let t27;
421
- if ($[80] !== atEnd || $[81] !== chatId || $[82] !== readOnly || $[83] !== t) {
422
- t27 = !atEnd && !readOnly && /*#__PURE__*/_jsx("div", {
433
+ const pressSurface = t26;
434
+ const t27 = "chat-composer-content pointer-events-none relative z-10 @container/composer-area w-full";
435
+ let t28;
436
+ if ($[83] !== atEnd || $[84] !== chatId || $[85] !== readOnly || $[86] !== t) {
437
+ t28 = !atEnd && !readOnly && /*#__PURE__*/_jsx("div", {
423
438
  className: "absolute inset-x-0 bottom-full mb-2 flex justify-center",
424
439
  children: /*#__PURE__*/_jsx(Tooltip, {
425
440
  label: t("composer.jumpToEnd"),
@@ -436,198 +451,186 @@ export function Composer(t0) {
436
451
  })
437
452
  })
438
453
  });
439
- $[80] = atEnd;
440
- $[81] = chatId;
441
- $[82] = readOnly;
442
- $[83] = t;
443
- $[84] = t27;
454
+ $[83] = atEnd;
455
+ $[84] = chatId;
456
+ $[85] = readOnly;
457
+ $[86] = t;
458
+ $[87] = t28;
444
459
  } else {
445
- t27 = $[84];
460
+ t28 = $[87];
446
461
  }
447
- let t28;
448
- if ($[85] !== chatId || $[86] !== workflowPill) {
449
- t28 = /*#__PURE__*/_jsx(ChatActivity, {
462
+ let t29;
463
+ if ($[88] !== chatId || $[89] !== workflowPill) {
464
+ t29 = /*#__PURE__*/_jsx(ChatActivity, {
450
465
  chatId: chatId,
451
466
  workflows: workflowPill
452
467
  });
453
- $[85] = chatId;
454
- $[86] = workflowPill;
455
- $[87] = t28;
468
+ $[88] = chatId;
469
+ $[89] = workflowPill;
470
+ $[90] = t29;
456
471
  } else {
457
- t28 = $[87];
472
+ t29 = $[90];
458
473
  }
459
- const t29 = files.dragging ? "border-accent bg-[color-mix(in_srgb,var(--accent-soft)_60%,var(--surface-raised))]" : "border-border bg-[color-mix(in_srgb,var(--surface-raised)_92%,transparent)]";
460
- let t30;
461
- if ($[88] !== t29) {
462
- t30 = clsx("@container/composer pointer-events-auto flex flex-col overflow-hidden rounded-2xl border shadow-float backdrop-blur-[14px] focus-ring-within", t29);
463
- $[88] = t29;
464
- $[89] = t30;
474
+ const t30 = files.dragging ? "border-accent bg-[color-mix(in_srgb,var(--accent-soft)_60%,var(--surface-raised))]" : "border-border bg-[color-mix(in_srgb,var(--surface-raised)_92%,transparent)]";
475
+ let t31;
476
+ if ($[91] !== t30) {
477
+ t31 = clsx("@container/composer pointer-events-auto relative z-1 flex flex-col overflow-hidden rounded-2xl border shadow-float backdrop-blur-[14px] focus-ring-within", t30);
478
+ $[91] = t30;
479
+ $[92] = t31;
465
480
  } else {
466
- t30 = $[89];
481
+ t31 = $[92];
467
482
  }
468
- const t31 = files.dropTarget;
469
- let t32;
470
- if ($[90] !== chatId || $[91] !== focused || $[92] !== host.ComposerHeaderSlot || $[93] !== scope.id || $[94] !== writable) {
471
- t32 = host.ComposerHeaderSlot && /*#__PURE__*/_jsx(host.ComposerHeaderSlot, {
483
+ const t32 = files.dropTarget;
484
+ let t33;
485
+ if ($[93] !== chatId || $[94] !== focused || $[95] !== host.ComposerHeaderSlot || $[96] !== scope.id || $[97] !== writable) {
486
+ t33 = host.ComposerHeaderSlot && /*#__PURE__*/_jsx(host.ComposerHeaderSlot, {
472
487
  scopeId: scope.id,
473
488
  chatId: chatId,
474
489
  disabled: !writable,
475
490
  focused: focused
476
491
  });
477
- $[90] = chatId;
478
- $[91] = focused;
479
- $[92] = host.ComposerHeaderSlot;
480
- $[93] = scope.id;
481
- $[94] = writable;
482
- $[95] = t32;
492
+ $[93] = chatId;
493
+ $[94] = focused;
494
+ $[95] = host.ComposerHeaderSlot;
495
+ $[96] = scope.id;
496
+ $[97] = writable;
497
+ $[98] = t33;
483
498
  } else {
484
- t32 = $[95];
499
+ t33 = $[98];
485
500
  }
486
501
  const T0 = PromptComposer;
487
- const t33 = !empty;
488
- const t34 = capabilities?.denyReason === true;
489
- let t35;
490
- if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
491
- t35 = () => inputRef.current?.focus();
492
- $[96] = t35;
493
- } else {
494
- t35 = $[96];
495
- }
496
- const t36 = writable && "data-[text-cursor]:cursor-text";
497
- let t37;
498
- if ($[97] !== t36) {
499
- t37 = clsx(t36);
500
- $[97] = t36;
501
- $[98] = t37;
502
+ const t34 = !empty;
503
+ const t35 = capabilities?.denyReason === true;
504
+ let t36;
505
+ if ($[99] === Symbol.for("react.memo_cache_sentinel")) {
506
+ t36 = () => inputRef.current?.focus();
507
+ $[99] = t36;
502
508
  } else {
503
- t37 = $[98];
509
+ t36 = $[99];
504
510
  }
511
+ const t37 = writable && "data-[text-cursor]:cursor-text";
505
512
  let t38;
506
- if ($[99] !== chatId || $[100] !== info) {
507
- t38 = /*#__PURE__*/_jsx(LimitDock, {
508
- chatId: chatId,
509
- info: info
510
- });
511
- $[99] = chatId;
512
- $[100] = info;
513
+ if ($[100] !== t37) {
514
+ t38 = clsx(t37);
515
+ $[100] = t37;
513
516
  $[101] = t38;
514
517
  } else {
515
518
  t38 = $[101];
516
519
  }
517
- const t39 = capabilities?.goals;
518
- let t40;
519
- if ($[102] !== chatId || $[103] !== info || $[104] !== t39) {
520
- t40 = /*#__PURE__*/_jsx(GoalDock, {
520
+ let t39;
521
+ if ($[102] !== chatId || $[103] !== info) {
522
+ t39 = /*#__PURE__*/_jsx(LimitDock, {
521
523
  chatId: chatId,
522
- info: info,
523
- goals: t39
524
+ info: info
524
525
  });
525
526
  $[102] = chatId;
526
527
  $[103] = info;
527
528
  $[104] = t39;
528
- $[105] = t40;
529
529
  } else {
530
- t40 = $[105];
530
+ t39 = $[104];
531
531
  }
532
+ const t40 = capabilities?.goals;
532
533
  let t41;
533
- if ($[106] !== chatId || $[107] !== compactionOffer || $[108] !== controls.compact || $[109] !== scope) {
534
- t41 = compactionOffer && /*#__PURE__*/_jsx(ResumeCompactionDock, {
534
+ if ($[105] !== chatId || $[106] !== info || $[107] !== t40) {
535
+ t41 = /*#__PURE__*/_jsx(GoalDock, {
536
+ chatId: chatId,
537
+ info: info,
538
+ goals: t40
539
+ });
540
+ $[105] = chatId;
541
+ $[106] = info;
542
+ $[107] = t40;
543
+ $[108] = t41;
544
+ } else {
545
+ t41 = $[108];
546
+ }
547
+ let t42;
548
+ if ($[109] !== chatId || $[110] !== compactionOffer || $[111] !== controls.compact || $[112] !== scope) {
549
+ t42 = compactionOffer && /*#__PURE__*/_jsx(ResumeCompactionDock, {
535
550
  tokens: compactionOffer.tokens,
536
551
  reason: compactionOffer.reason,
537
552
  onCompact: controls.compact,
538
553
  onDismiss: () => dismissResumeCompaction(scope, chatId, compactionOffer.turnId)
539
554
  });
540
- $[106] = chatId;
541
- $[107] = compactionOffer;
542
- $[108] = controls.compact;
543
- $[109] = scope;
544
- $[110] = t41;
555
+ $[109] = chatId;
556
+ $[110] = compactionOffer;
557
+ $[111] = controls.compact;
558
+ $[112] = scope;
559
+ $[113] = t42;
545
560
  } else {
546
- t41 = $[110];
561
+ t42 = $[113];
547
562
  }
548
- let t42;
549
- if ($[111] !== menus) {
550
- t42 = /*#__PURE__*/_jsx(ComposerMenu, {
563
+ let t43;
564
+ if ($[114] !== menus) {
565
+ t43 = /*#__PURE__*/_jsx(ComposerMenu, {
551
566
  menus: menus
552
567
  });
553
- $[111] = menus;
554
- $[112] = t42;
568
+ $[114] = menus;
569
+ $[115] = t43;
555
570
  } else {
556
- t42 = $[112];
571
+ t43 = $[115];
557
572
  }
558
- let t43;
559
- if ($[113] !== chatId || $[114] !== info.queuePaused || $[115] !== queue || $[116] !== takeBack || $[117] !== takingBack) {
560
- t43 = queue.length > 0 && /*#__PURE__*/_jsx(QueuedMessages, {
573
+ let t44;
574
+ if ($[116] !== chatId || $[117] !== info.queuePaused || $[118] !== queue || $[119] !== takeBack || $[120] !== takingBack) {
575
+ t44 = queue.length > 0 && /*#__PURE__*/_jsx(QueuedMessages, {
561
576
  chatId: chatId,
562
577
  queue: queue,
563
578
  paused: info.queuePaused === true,
564
579
  takingBack: takingBack !== null,
565
580
  onEdit: message => void takeBack(message)
566
581
  });
567
- $[113] = chatId;
568
- $[114] = info.queuePaused;
569
- $[115] = queue;
570
- $[116] = takeBack;
571
- $[117] = takingBack;
572
- $[118] = t43;
582
+ $[116] = chatId;
583
+ $[117] = info.queuePaused;
584
+ $[118] = queue;
585
+ $[119] = takeBack;
586
+ $[120] = takingBack;
587
+ $[121] = t44;
573
588
  } else {
574
- t43 = $[118];
589
+ t44 = $[121];
575
590
  }
576
- let t44;
577
- if ($[119] !== box.removeQuote || $[120] !== chatId || $[121] !== draft.quote || $[122] !== draft.quoteSource || $[123] !== notice || $[124] !== t) {
578
- t44 = draft.quote !== "" && /*#__PURE__*/_jsx(DraftQuote, {
591
+ let t45;
592
+ if ($[122] !== box.removeQuote || $[123] !== chatId || $[124] !== draft.quote || $[125] !== draft.quoteSource || $[126] !== notice || $[127] !== t) {
593
+ t45 = draft.quote !== "" && /*#__PURE__*/_jsx(DraftQuote, {
579
594
  chatId: chatId,
580
595
  quote: draft.quote,
581
596
  source: draft.quoteSource,
582
597
  onRemove: box.removeQuote,
583
598
  onSourceGone: () => notice.setNotice(t("rows.user.quoteGone"), "info")
584
599
  });
585
- $[119] = box.removeQuote;
586
- $[120] = chatId;
587
- $[121] = draft.quote;
588
- $[122] = draft.quoteSource;
589
- $[123] = notice;
590
- $[124] = t;
591
- $[125] = t44;
600
+ $[122] = box.removeQuote;
601
+ $[123] = chatId;
602
+ $[124] = draft.quote;
603
+ $[125] = draft.quoteSource;
604
+ $[126] = notice;
605
+ $[127] = t;
606
+ $[128] = t45;
592
607
  } else {
593
- t44 = $[125];
608
+ t45 = $[128];
594
609
  }
595
- let t45;
596
- if ($[126] !== box.removeAttachment || $[127] !== draft.attachments) {
597
- t45 = draft.attachments.length > 0 && /*#__PURE__*/_jsx(DraftAttachments, {
610
+ let t46;
611
+ if ($[129] !== box.removeAttachment || $[130] !== draft.attachments) {
612
+ t46 = draft.attachments.length > 0 && /*#__PURE__*/_jsx(DraftAttachments, {
598
613
  attachments: draft.attachments,
599
614
  onRemove: box.removeAttachment
600
615
  });
601
- $[126] = box.removeAttachment;
602
- $[127] = draft.attachments;
603
- $[128] = t45;
616
+ $[129] = box.removeAttachment;
617
+ $[130] = draft.attachments;
618
+ $[131] = t46;
604
619
  } else {
605
- t45 = $[128];
620
+ t46 = $[131];
606
621
  }
607
- const t46 = !writable;
608
- let t47;
609
- if ($[129] !== box || $[130] !== history || $[131] !== hold || $[132] !== menus) {
610
- t47 = (value, selection, state) => {
622
+ const t47 = !writable;
623
+ let t48;
624
+ if ($[132] !== box || $[133] !== history || $[134] !== hold || $[135] !== menus) {
625
+ t48 = (value, selection, state) => {
611
626
  hold.noteInput();
612
627
  box.setText(value);
613
628
  menus.setMenuIndex(0);
614
629
  menus.trackTriggers(value, selection, state);
615
630
  history.edited(value);
616
631
  };
617
- $[129] = box;
618
- $[130] = history;
619
- $[131] = hold;
620
- $[132] = menus;
621
- $[133] = t47;
622
- } else {
623
- t47 = $[133];
624
- }
625
- let t48;
626
- if ($[134] !== hold || $[135] !== menus) {
627
- t48 = () => {
628
- menus.close();
629
- hold.release("blur");
630
- };
632
+ $[132] = box;
633
+ $[133] = history;
631
634
  $[134] = hold;
632
635
  $[135] = menus;
633
636
  $[136] = t48;
@@ -635,332 +638,371 @@ export function Composer(t0) {
635
638
  t48 = $[136];
636
639
  }
637
640
  let t49;
638
- if ($[137] !== dictationToolbar || $[138] !== draft.text || $[139] !== editorExtensions || $[140] !== files.onCopy || $[141] !== files.onPaste || $[142] !== focused || $[143] !== hold.setComposing || $[144] !== menus.inputAria || $[145] !== menus.trackTriggers || $[146] !== onKeyDown || $[147] !== placeholder || $[148] !== t46 || $[149] !== t47 || $[150] !== t48) {
639
- t49 = /*#__PURE__*/_jsx(ComposerInput, {
641
+ if ($[137] !== hold || $[138] !== menus) {
642
+ t49 = () => {
643
+ menus.close();
644
+ hold.release("blur");
645
+ };
646
+ $[137] = hold;
647
+ $[138] = menus;
648
+ $[139] = t49;
649
+ } else {
650
+ t49 = $[139];
651
+ }
652
+ let t50;
653
+ if ($[140] !== dictationToolbar || $[141] !== draft.text || $[142] !== editorExtensions || $[143] !== files.onCopy || $[144] !== files.onPaste || $[145] !== focused || $[146] !== hold.setComposing || $[147] !== menus.inputAria || $[148] !== menus.trackTriggers || $[149] !== onKeyDown || $[150] !== placeholder || $[151] !== t47 || $[152] !== t48 || $[153] !== t49) {
654
+ t50 = /*#__PURE__*/_jsx(ComposerInput, {
640
655
  ref: inputRef,
641
656
  dictationToolbar: dictationToolbar,
642
657
  className: "composer-input select-text text-sm leading-normal text-text",
643
658
  value: draft.text,
644
659
  placeholder: placeholder,
645
- disabled: t46,
660
+ disabled: t47,
646
661
  tabbable: focused,
647
662
  extensions: editorExtensions,
648
663
  aria: menus.inputAria,
649
- onChange: t47,
664
+ onChange: t48,
650
665
  onSelectionChange: menus.trackTriggers,
651
- onBlur: t48,
666
+ onBlur: t49,
652
667
  onComposing: hold.setComposing,
653
668
  onKeyDown: onKeyDown,
654
669
  onPaste: files.onPaste,
655
670
  onCopy: files.onCopy
656
671
  });
657
- $[137] = dictationToolbar;
658
- $[138] = draft.text;
659
- $[139] = editorExtensions;
660
- $[140] = files.onCopy;
661
- $[141] = files.onPaste;
662
- $[142] = focused;
663
- $[143] = hold.setComposing;
664
- $[144] = menus.inputAria;
665
- $[145] = menus.trackTriggers;
666
- $[146] = onKeyDown;
667
- $[147] = placeholder;
668
- $[148] = t46;
669
- $[149] = t47;
670
- $[150] = t48;
671
- $[151] = t49;
672
- } else {
673
- t49 = $[151];
672
+ $[140] = dictationToolbar;
673
+ $[141] = draft.text;
674
+ $[142] = editorExtensions;
675
+ $[143] = files.onCopy;
676
+ $[144] = files.onPaste;
677
+ $[145] = focused;
678
+ $[146] = hold.setComposing;
679
+ $[147] = menus.inputAria;
680
+ $[148] = menus.trackTriggers;
681
+ $[149] = onKeyDown;
682
+ $[150] = placeholder;
683
+ $[151] = t47;
684
+ $[152] = t48;
685
+ $[153] = t49;
686
+ $[154] = t50;
687
+ } else {
688
+ t50 = $[154];
674
689
  }
675
- let t50;
676
- if ($[152] !== notice.notice || $[153] !== notice.tone) {
677
- t50 = notice.notice && /*#__PURE__*/_jsx("div", {
690
+ let t51;
691
+ if ($[155] !== notice.notice || $[156] !== notice.tone) {
692
+ t51 = notice.notice && /*#__PURE__*/_jsx("div", {
678
693
  className: clsx("px-5 pb-1 text-xs @max-md/composer:px-3.5", notice.tone === "error" ? "text-status-error" : "text-text-muted"),
679
694
  role: notice.tone === "error" ? "alert" : "status",
680
695
  children: notice.notice
681
696
  });
682
- $[152] = notice.notice;
683
- $[153] = notice.tone;
684
- $[154] = t50;
697
+ $[155] = notice.notice;
698
+ $[156] = notice.tone;
699
+ $[157] = t51;
685
700
  } else {
686
- t50 = $[154];
701
+ t51 = $[157];
687
702
  }
688
- const t51 = guard.visible && /*#__PURE__*/_jsxs("div", {
703
+ const t52 = guard.visible && /*#__PURE__*/_jsxs("div", {
689
704
  className: clsx("px-5 pb-1 text-right text-xs tabular-nums @max-md/composer:px-3.5", guard.tooLong ? "text-status-error" : "text-text-faint"),
690
705
  children: [formatNumber(guard.count), " / ", formatNumber(PROMPT_MAX_CHARS), guard.tooLong && ` ${t("composer.tooLong")}`]
691
706
  });
692
707
  const T1 = ComposerControls;
693
- const t52 = capabilities?.attachments !== false;
694
- const t53 = !busy || !empty;
695
- const t54 = empty || !writable || guard.tooLong;
696
- const t55 = t(sendLabelKey(busy, steerable, sendDelivery));
697
- let t56;
698
- if ($[155] !== draft.text || $[156] !== sendKey) {
699
- t56 = sendShortcut(sendKey, draft.text.includes("\n"));
700
- $[155] = draft.text;
701
- $[156] = sendKey;
702
- $[157] = t56;
703
- } else {
704
- t56 = $[157];
705
- }
708
+ const t53 = capabilities?.attachments !== false;
709
+ const t54 = !busy || !empty;
710
+ const t55 = empty || !writable || guard.tooLong;
711
+ const t56 = t(sendLabelKey(busy, steerable, sendDelivery));
706
712
  let t57;
707
- if ($[158] !== submit) {
708
- t57 = alternate => submit(alternate ? "alternate" : "default");
709
- $[158] = submit;
710
- $[159] = t57;
713
+ if ($[158] !== draft.text || $[159] !== sendKey) {
714
+ t57 = sendShortcut(sendKey, draft.text.includes("\n"));
715
+ $[158] = draft.text;
716
+ $[159] = sendKey;
717
+ $[160] = t57;
711
718
  } else {
712
- t57 = $[159];
719
+ t57 = $[160];
713
720
  }
714
- const t58 = continuable !== null && continuable !== sentFor && empty && writable && pending.length === 0 && extraPrompts.length === 0 ? continueTurn : null;
715
- const t59 = scope.id;
716
- let t60;
717
- if ($[160] !== draft.quote || $[161] !== draft.text) {
718
- t60 = withQuote(draft.quote, draft.text.trim());
719
- $[160] = draft.quote;
720
- $[161] = draft.text;
721
- $[162] = t60;
721
+ let t58;
722
+ if ($[161] !== submit) {
723
+ t58 = alternate => submit(alternate ? "alternate" : "default");
724
+ $[161] = submit;
725
+ $[162] = t58;
722
726
  } else {
723
- t60 = $[162];
727
+ t58 = $[162];
724
728
  }
729
+ const t59 = continuable !== null && continuable !== sentFor && empty && writable && pending.length === 0 && extraPrompts.length === 0 ? continueTurn : null;
730
+ const t60 = scope.id;
725
731
  let t61;
726
- if ($[163] !== chatId || $[164] !== info.provider || $[165] !== info.runtimeMode || $[166] !== info.selection || $[167] !== scope.id || $[168] !== t60) {
727
- t61 = {
728
- scopeId: t59,
732
+ if ($[163] !== draft.quote || $[164] !== draft.text) {
733
+ t61 = withQuote(draft.quote, draft.text.trim());
734
+ $[163] = draft.quote;
735
+ $[164] = draft.text;
736
+ $[165] = t61;
737
+ } else {
738
+ t61 = $[165];
739
+ }
740
+ let t62;
741
+ if ($[166] !== chatId || $[167] !== info.provider || $[168] !== info.runtimeMode || $[169] !== info.selection || $[170] !== scope.id || $[171] !== t61) {
742
+ t62 = {
743
+ scopeId: t60,
729
744
  chatId,
730
- text: t60,
745
+ text: t61,
731
746
  provider: info.provider,
732
747
  selection: info.selection,
733
748
  runtimeMode: info.runtimeMode
734
749
  };
735
- $[163] = chatId;
736
- $[164] = info.provider;
737
- $[165] = info.runtimeMode;
738
- $[166] = info.selection;
739
- $[167] = scope.id;
740
- $[168] = t60;
741
- $[169] = t61;
750
+ $[166] = chatId;
751
+ $[167] = info.provider;
752
+ $[168] = info.runtimeMode;
753
+ $[169] = info.selection;
754
+ $[170] = scope.id;
755
+ $[171] = t61;
756
+ $[172] = t62;
742
757
  } else {
743
- t61 = $[169];
758
+ t62 = $[172];
744
759
  }
745
- let t62;
746
- if ($[170] !== sendActions || $[171] !== t53 || $[172] !== t54 || $[173] !== t55 || $[174] !== t56 || $[175] !== t57 || $[176] !== t58 || $[177] !== t61) {
747
- t62 = {
748
- visible: t53,
749
- disabled: t54,
750
- label: t55,
751
- kbd: t56,
752
- onSend: t57,
753
- onContinue: t58,
760
+ let t63;
761
+ if ($[173] !== sendActions || $[174] !== t54 || $[175] !== t55 || $[176] !== t56 || $[177] !== t57 || $[178] !== t58 || $[179] !== t59 || $[180] !== t62) {
762
+ t63 = {
763
+ visible: t54,
764
+ disabled: t55,
765
+ label: t56,
766
+ kbd: t57,
767
+ onSend: t58,
768
+ onContinue: t59,
754
769
  actions: sendActions,
755
- draft: t61
770
+ draft: t62
756
771
  };
757
- $[170] = sendActions;
758
- $[171] = t53;
759
- $[172] = t54;
760
- $[173] = t55;
761
- $[174] = t56;
762
- $[175] = t57;
763
- $[176] = t58;
764
- $[177] = t61;
765
- $[178] = t62;
766
- } else {
767
- t62 = $[178];
772
+ $[173] = sendActions;
773
+ $[174] = t54;
774
+ $[175] = t55;
775
+ $[176] = t56;
776
+ $[177] = t57;
777
+ $[178] = t58;
778
+ $[179] = t59;
779
+ $[180] = t62;
780
+ $[181] = t63;
781
+ } else {
782
+ t63 = $[181];
768
783
  }
769
- let t63;
770
- if ($[179] !== files) {
771
- t63 = picked => {
784
+ let t64;
785
+ if ($[182] !== files) {
786
+ t64 = picked => {
772
787
  files.addFiles(picked);
773
788
  inputRef.current?.focus();
774
789
  };
775
- $[179] = files;
776
- $[180] = t63;
790
+ $[182] = files;
791
+ $[183] = t64;
777
792
  } else {
778
- t63 = $[180];
793
+ t64 = $[183];
779
794
  }
780
- let t64;
781
- if ($[181] !== writable) {
782
- t64 = added => {
795
+ let t65;
796
+ let t66;
797
+ if ($[184] !== writable) {
798
+ t65 = sigil => {
799
+ if (writable) {
800
+ inputRef.current?.insertSigil(sigil);
801
+ }
802
+ };
803
+ t66 = added => {
783
804
  if (writable) {
784
805
  inputRef.current?.insert(added);
785
806
  }
786
807
  };
787
- $[181] = writable;
788
- $[182] = t64;
808
+ $[184] = writable;
809
+ $[185] = t65;
810
+ $[186] = t66;
789
811
  } else {
790
- t64 = $[182];
812
+ t65 = $[185];
813
+ t66 = $[186];
791
814
  }
792
- let t65;
793
- if ($[183] !== T1 || $[184] !== chatId || $[185] !== controls || $[186] !== info || $[187] !== providerFixed || $[188] !== restoreStashed || $[189] !== setDictationToolbar || $[190] !== t52 || $[191] !== t62 || $[192] !== t63 || $[193] !== t64 || $[194] !== writable) {
794
- t65 = /*#__PURE__*/_jsx(T1, {
815
+ let t67;
816
+ if ($[187] !== T1 || $[188] !== chatId || $[189] !== controls || $[190] !== empty || $[191] !== info || $[192] !== providerFixed || $[193] !== restoreStashed || $[194] !== setDictationToolbar || $[195] !== sigils || $[196] !== t53 || $[197] !== t63 || $[198] !== t64 || $[199] !== t65 || $[200] !== t66 || $[201] !== toggleStash || $[202] !== writable) {
817
+ t67 = /*#__PURE__*/_jsx(T1, {
795
818
  chatId: chatId,
796
819
  info: info,
797
820
  providerFixed: providerFixed,
798
821
  writable: writable,
799
- attachable: t52,
822
+ attachable: t53,
823
+ emptyDraft: empty,
824
+ sigils: sigils,
800
825
  controls: controls,
801
- send: t62,
826
+ send: t63,
802
827
  dictationToolbar: setDictationToolbar,
803
- onFiles: t63,
828
+ onFiles: t64,
804
829
  onRestore: restoreStashed,
805
- insert: t64
830
+ onStash: toggleStash,
831
+ onSigil: t65,
832
+ insert: t66
806
833
  });
807
- $[183] = T1;
808
- $[184] = chatId;
809
- $[185] = controls;
810
- $[186] = info;
811
- $[187] = providerFixed;
812
- $[188] = restoreStashed;
813
- $[189] = setDictationToolbar;
814
- $[190] = t52;
815
- $[191] = t62;
816
- $[192] = t63;
817
- $[193] = t64;
818
- $[194] = writable;
819
- $[195] = t65;
820
- } else {
821
- t65 = $[195];
834
+ $[187] = T1;
835
+ $[188] = chatId;
836
+ $[189] = controls;
837
+ $[190] = empty;
838
+ $[191] = info;
839
+ $[192] = providerFixed;
840
+ $[193] = restoreStashed;
841
+ $[194] = setDictationToolbar;
842
+ $[195] = sigils;
843
+ $[196] = t53;
844
+ $[197] = t63;
845
+ $[198] = t64;
846
+ $[199] = t65;
847
+ $[200] = t66;
848
+ $[201] = toggleStash;
849
+ $[202] = writable;
850
+ $[203] = t67;
851
+ } else {
852
+ t67 = $[203];
822
853
  }
823
- let t66;
824
- if ($[196] !== pointSurface || $[197] !== pressSurface || $[198] !== t37 || $[199] !== t38 || $[200] !== t40 || $[201] !== t41 || $[202] !== t42 || $[203] !== t43 || $[204] !== t44 || $[205] !== t45 || $[206] !== t49 || $[207] !== t50 || $[208] !== t51 || $[209] !== t65) {
825
- t66 = /*#__PURE__*/_jsxs("div", {
826
- className: t37,
854
+ let t68;
855
+ if ($[204] !== pointSurface || $[205] !== pressSurface || $[206] !== t38 || $[207] !== t39 || $[208] !== t41 || $[209] !== t42 || $[210] !== t43 || $[211] !== t44 || $[212] !== t45 || $[213] !== t46 || $[214] !== t50 || $[215] !== t51 || $[216] !== t52 || $[217] !== t67) {
856
+ t68 = /*#__PURE__*/_jsxs("div", {
857
+ className: t38,
827
858
  onPointerOver: pointSurface,
828
859
  onMouseDown: pressSurface,
829
- children: [t38, t40, t41, t42, t43, t44, t45, t49, t50, t51, t65]
860
+ children: [t39, t41, t42, t43, t44, t45, t46, t50, t51, t52, t67]
830
861
  });
831
- $[196] = pointSurface;
832
- $[197] = pressSurface;
833
- $[198] = t37;
834
- $[199] = t38;
835
- $[200] = t40;
836
- $[201] = t41;
837
- $[202] = t42;
838
- $[203] = t43;
839
- $[204] = t44;
840
- $[205] = t45;
841
- $[206] = t49;
842
- $[207] = t50;
843
- $[208] = t51;
844
- $[209] = t65;
845
- $[210] = t66;
846
- } else {
847
- t66 = $[210];
848
- }
849
- let t67;
850
- if ($[211] !== T0 || $[212] !== answerPromptsElsewhere || $[213] !== chatId || $[214] !== disabled || $[215] !== focused || $[216] !== hold || $[217] !== pending || $[218] !== t33 || $[219] !== t34 || $[220] !== t35 || $[221] !== t66) {
851
- t67 = /*#__PURE__*/_jsx(T0, {
862
+ $[204] = pointSurface;
863
+ $[205] = pressSurface;
864
+ $[206] = t38;
865
+ $[207] = t39;
866
+ $[208] = t41;
867
+ $[209] = t42;
868
+ $[210] = t43;
869
+ $[211] = t44;
870
+ $[212] = t45;
871
+ $[213] = t46;
872
+ $[214] = t50;
873
+ $[215] = t51;
874
+ $[216] = t52;
875
+ $[217] = t67;
876
+ $[218] = t68;
877
+ } else {
878
+ t68 = $[218];
879
+ }
880
+ let t69;
881
+ if ($[219] !== T0 || $[220] !== answerPromptsElsewhere || $[221] !== chatId || $[222] !== disabled || $[223] !== focused || $[224] !== hold || $[225] !== pending || $[226] !== t34 || $[227] !== t35 || $[228] !== t36 || $[229] !== t68) {
882
+ t69 = /*#__PURE__*/_jsx(T0, {
852
883
  chatId: chatId,
853
884
  pending: pending,
854
885
  focused: focused,
855
886
  onShowElsewhere: answerPromptsElsewhere,
856
887
  disabled: disabled,
857
- hasDraft: t33,
858
- denyReason: t34,
859
- onAllAnswered: t35,
888
+ hasDraft: t34,
889
+ denyReason: t35,
890
+ onAllAnswered: t36,
860
891
  hold: hold,
861
- children: t66
862
- });
863
- $[211] = T0;
864
- $[212] = answerPromptsElsewhere;
865
- $[213] = chatId;
866
- $[214] = disabled;
867
- $[215] = focused;
868
- $[216] = hold;
869
- $[217] = pending;
870
- $[218] = t33;
871
- $[219] = t34;
872
- $[220] = t35;
873
- $[221] = t66;
874
- $[222] = t67;
875
- } else {
876
- t67 = $[222];
877
- }
878
- let t68;
879
- if ($[223] !== files.dropTarget || $[224] !== t30 || $[225] !== t32 || $[226] !== t67) {
880
- t68 = /*#__PURE__*/_jsxs("div", {
881
- className: t30,
882
- ...t31,
883
- children: [t32, t67]
892
+ children: t68
884
893
  });
885
- $[223] = files.dropTarget;
886
- $[224] = t30;
887
- $[225] = t32;
888
- $[226] = t67;
889
- $[227] = t68;
890
- } else {
891
- t68 = $[227];
894
+ $[219] = T0;
895
+ $[220] = answerPromptsElsewhere;
896
+ $[221] = chatId;
897
+ $[222] = disabled;
898
+ $[223] = focused;
899
+ $[224] = hold;
900
+ $[225] = pending;
901
+ $[226] = t34;
902
+ $[227] = t35;
903
+ $[228] = t36;
904
+ $[229] = t68;
905
+ $[230] = t69;
906
+ } else {
907
+ t69 = $[230];
892
908
  }
893
- const t69 = controls.confirmClear;
894
909
  let t70;
895
- if ($[228] !== t) {
896
- t70 = t("composer.clear.title");
897
- $[228] = t;
898
- $[229] = t70;
910
+ if ($[231] !== files.dropTarget || $[232] !== t31 || $[233] !== t33 || $[234] !== t69) {
911
+ t70 = /*#__PURE__*/_jsxs("div", {
912
+ className: t31,
913
+ ...t32,
914
+ children: [t33, t69]
915
+ });
916
+ $[231] = files.dropTarget;
917
+ $[232] = t31;
918
+ $[233] = t33;
919
+ $[234] = t69;
920
+ $[235] = t70;
899
921
  } else {
900
- t70 = $[229];
922
+ t70 = $[235];
901
923
  }
902
924
  let t71;
903
- if ($[230] !== t) {
904
- t71 = t("composer.clear.description");
905
- $[230] = t;
906
- $[231] = t71;
907
- } else {
908
- t71 = $[231];
909
- }
910
- let t72;
911
- if ($[232] !== t) {
912
- t72 = t("composer.clear.confirm");
913
- $[232] = t;
914
- $[233] = t72;
925
+ if ($[236] !== statusItems) {
926
+ t71 = /*#__PURE__*/_jsx(ComposerStatusLine, {
927
+ items: statusItems
928
+ });
929
+ $[236] = statusItems;
930
+ $[237] = t71;
915
931
  } else {
916
- t72 = $[233];
932
+ t71 = $[237];
917
933
  }
934
+ const t72 = controls.confirmClear;
918
935
  let t73;
919
- if ($[234] !== t) {
920
- t73 = t("composer.notice.clearFailed");
921
- $[234] = t;
922
- $[235] = t73;
936
+ if ($[238] !== t) {
937
+ t73 = t("composer.clear.title");
938
+ $[238] = t;
939
+ $[239] = t73;
923
940
  } else {
924
- t73 = $[235];
941
+ t73 = $[239];
925
942
  }
926
943
  let t74;
927
- if ($[236] !== controls.cancelClear || $[237] !== controls.confirmClear || $[238] !== controls.forceClearThread || $[239] !== t70 || $[240] !== t71 || $[241] !== t72 || $[242] !== t73) {
928
- t74 = /*#__PURE__*/_jsx(PromptDialog, {
929
- open: t69,
930
- title: t70,
931
- description: t71,
932
- confirmLabel: t72,
944
+ if ($[240] !== t) {
945
+ t74 = t("composer.clear.description");
946
+ $[240] = t;
947
+ $[241] = t74;
948
+ } else {
949
+ t74 = $[241];
950
+ }
951
+ let t75;
952
+ if ($[242] !== t) {
953
+ t75 = t("composer.clear.confirm");
954
+ $[242] = t;
955
+ $[243] = t75;
956
+ } else {
957
+ t75 = $[243];
958
+ }
959
+ let t76;
960
+ if ($[244] !== t) {
961
+ t76 = t("composer.notice.clearFailed");
962
+ $[244] = t;
963
+ $[245] = t76;
964
+ } else {
965
+ t76 = $[245];
966
+ }
967
+ let t77;
968
+ if ($[246] !== controls.cancelClear || $[247] !== controls.confirmClear || $[248] !== controls.forceClearThread || $[249] !== t73 || $[250] !== t74 || $[251] !== t75 || $[252] !== t76) {
969
+ t77 = /*#__PURE__*/_jsx(PromptDialog, {
970
+ open: t72,
971
+ title: t73,
972
+ description: t74,
973
+ confirmLabel: t75,
933
974
  danger: true,
934
- fallbackMessage: t73,
975
+ fallbackMessage: t76,
935
976
  onConfirm: controls.forceClearThread,
936
977
  onOpenChange: controls.cancelClear
937
978
  });
938
- $[236] = controls.cancelClear;
939
- $[237] = controls.confirmClear;
940
- $[238] = controls.forceClearThread;
941
- $[239] = t70;
942
- $[240] = t71;
943
- $[241] = t72;
944
- $[242] = t73;
945
- $[243] = t74;
946
- } else {
947
- t74 = $[243];
948
- }
949
- let t75;
950
- if ($[244] !== t27 || $[245] !== t28 || $[246] !== t68 || $[247] !== t74) {
951
- t75 = /*#__PURE__*/_jsxs("div", {
952
- className: t26,
953
- children: [t27, t28, t68, t74]
979
+ $[246] = controls.cancelClear;
980
+ $[247] = controls.confirmClear;
981
+ $[248] = controls.forceClearThread;
982
+ $[249] = t73;
983
+ $[250] = t74;
984
+ $[251] = t75;
985
+ $[252] = t76;
986
+ $[253] = t77;
987
+ } else {
988
+ t77 = $[253];
989
+ }
990
+ let t78;
991
+ if ($[254] !== t28 || $[255] !== t29 || $[256] !== t70 || $[257] !== t71 || $[258] !== t77) {
992
+ t78 = /*#__PURE__*/_jsxs("div", {
993
+ className: t27,
994
+ children: [t28, t29, t70, t71, t77]
954
995
  });
955
- $[244] = t27;
956
- $[245] = t28;
957
- $[246] = t68;
958
- $[247] = t74;
959
- $[248] = t75;
996
+ $[254] = t28;
997
+ $[255] = t29;
998
+ $[256] = t70;
999
+ $[257] = t71;
1000
+ $[258] = t77;
1001
+ $[259] = t78;
960
1002
  } else {
961
- t75 = $[248];
1003
+ t78 = $[259];
962
1004
  }
963
- return t75;
1005
+ return t78;
964
1006
  }
965
1007
  function _temp4(event) {
966
1008
  event.currentTarget.toggleAttribute("data-text-cursor", surfacePartOf(event.target, event.currentTarget) !== "action");