@adecore/agents-react 0.44.4 → 0.45.0

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.
@@ -55,7 +55,7 @@ function sendLabelKey(busy, steerable, delivery) {
55
55
  return delivery === 'steer' ? 'composer.steerButton' : 'composer.queueWithSteerButton';
56
56
  }
57
57
  export function Composer(t0) {
58
- const $ = _c(239);
58
+ const $ = _c(246);
59
59
  const {
60
60
  chatId,
61
61
  info,
@@ -458,483 +458,501 @@ export function Composer(t0) {
458
458
  t29 = $[86];
459
459
  }
460
460
  const t30 = files.dropTarget;
461
- const T0 = PromptComposer;
462
- const t31 = !empty;
463
- const t32 = capabilities?.denyReason === true;
464
- let t33;
465
- if ($[87] === Symbol.for("react.memo_cache_sentinel")) {
466
- t33 = () => inputRef.current?.focus();
467
- $[87] = t33;
461
+ let t31;
462
+ if ($[87] !== chatId || $[88] !== focused || $[89] !== host.ComposerHeaderSlot || $[90] !== scope.id || $[91] !== writable) {
463
+ t31 = host.ComposerHeaderSlot && /*#__PURE__*/_jsx(host.ComposerHeaderSlot, {
464
+ scopeId: scope.id,
465
+ chatId: chatId,
466
+ disabled: !writable,
467
+ focused: focused
468
+ });
469
+ $[87] = chatId;
470
+ $[88] = focused;
471
+ $[89] = host.ComposerHeaderSlot;
472
+ $[90] = scope.id;
473
+ $[91] = writable;
474
+ $[92] = t31;
468
475
  } else {
469
- t33 = $[87];
476
+ t31 = $[92];
470
477
  }
471
- const t34 = writable && "data-[text-cursor]:cursor-text";
472
- let t35;
473
- if ($[88] !== t34) {
474
- t35 = clsx(t34);
475
- $[88] = t34;
476
- $[89] = t35;
478
+ const T0 = PromptComposer;
479
+ const t32 = !empty;
480
+ const t33 = capabilities?.denyReason === true;
481
+ let t34;
482
+ if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
483
+ t34 = () => inputRef.current?.focus();
484
+ $[93] = t34;
477
485
  } else {
478
- t35 = $[89];
486
+ t34 = $[93];
479
487
  }
488
+ const t35 = writable && "data-[text-cursor]:cursor-text";
480
489
  let t36;
481
- if ($[90] !== chatId || $[91] !== info) {
482
- t36 = /*#__PURE__*/_jsx(LimitDock, {
490
+ if ($[94] !== t35) {
491
+ t36 = clsx(t35);
492
+ $[94] = t35;
493
+ $[95] = t36;
494
+ } else {
495
+ t36 = $[95];
496
+ }
497
+ let t37;
498
+ if ($[96] !== chatId || $[97] !== info) {
499
+ t37 = /*#__PURE__*/_jsx(LimitDock, {
483
500
  chatId: chatId,
484
501
  info: info
485
502
  });
486
- $[90] = chatId;
487
- $[91] = info;
488
- $[92] = t36;
503
+ $[96] = chatId;
504
+ $[97] = info;
505
+ $[98] = t37;
489
506
  } else {
490
- t36 = $[92];
507
+ t37 = $[98];
491
508
  }
492
- const t37 = capabilities?.goals;
493
- let t38;
494
- if ($[93] !== chatId || $[94] !== info || $[95] !== t37) {
495
- t38 = /*#__PURE__*/_jsx(GoalDock, {
509
+ const t38 = capabilities?.goals;
510
+ let t39;
511
+ if ($[99] !== chatId || $[100] !== info || $[101] !== t38) {
512
+ t39 = /*#__PURE__*/_jsx(GoalDock, {
496
513
  chatId: chatId,
497
514
  info: info,
498
- goals: t37
515
+ goals: t38
499
516
  });
500
- $[93] = chatId;
501
- $[94] = info;
502
- $[95] = t37;
503
- $[96] = t38;
517
+ $[99] = chatId;
518
+ $[100] = info;
519
+ $[101] = t38;
520
+ $[102] = t39;
504
521
  } else {
505
- t38 = $[96];
522
+ t39 = $[102];
506
523
  }
507
- let t39;
508
- if ($[97] !== chatId || $[98] !== compactionOffer || $[99] !== controls.compact || $[100] !== scope) {
509
- t39 = compactionOffer && /*#__PURE__*/_jsx(ResumeCompactionDock, {
524
+ let t40;
525
+ if ($[103] !== chatId || $[104] !== compactionOffer || $[105] !== controls.compact || $[106] !== scope) {
526
+ t40 = compactionOffer && /*#__PURE__*/_jsx(ResumeCompactionDock, {
510
527
  tokens: compactionOffer.tokens,
511
528
  reason: compactionOffer.reason,
512
529
  onCompact: controls.compact,
513
530
  onDismiss: () => dismissResumeCompaction(scope, chatId, compactionOffer.turnId)
514
531
  });
515
- $[97] = chatId;
516
- $[98] = compactionOffer;
517
- $[99] = controls.compact;
518
- $[100] = scope;
519
- $[101] = t39;
532
+ $[103] = chatId;
533
+ $[104] = compactionOffer;
534
+ $[105] = controls.compact;
535
+ $[106] = scope;
536
+ $[107] = t40;
520
537
  } else {
521
- t39 = $[101];
538
+ t40 = $[107];
522
539
  }
523
- let t40;
524
- if ($[102] !== menus) {
525
- t40 = /*#__PURE__*/_jsx(ComposerMenu, {
540
+ let t41;
541
+ if ($[108] !== menus) {
542
+ t41 = /*#__PURE__*/_jsx(ComposerMenu, {
526
543
  menus: menus
527
544
  });
528
- $[102] = menus;
529
- $[103] = t40;
545
+ $[108] = menus;
546
+ $[109] = t41;
530
547
  } else {
531
- t40 = $[103];
548
+ t41 = $[109];
532
549
  }
533
- let t41;
534
- if ($[104] !== chatId || $[105] !== info.queuePaused || $[106] !== queue || $[107] !== takeBack || $[108] !== takingBack) {
535
- t41 = queue.length > 0 && /*#__PURE__*/_jsx(QueuedMessages, {
550
+ let t42;
551
+ if ($[110] !== chatId || $[111] !== info.queuePaused || $[112] !== queue || $[113] !== takeBack || $[114] !== takingBack) {
552
+ t42 = queue.length > 0 && /*#__PURE__*/_jsx(QueuedMessages, {
536
553
  chatId: chatId,
537
554
  queue: queue,
538
555
  paused: info.queuePaused === true,
539
556
  takingBack: takingBack !== null,
540
557
  onEdit: message => void takeBack(message)
541
558
  });
542
- $[104] = chatId;
543
- $[105] = info.queuePaused;
544
- $[106] = queue;
545
- $[107] = takeBack;
546
- $[108] = takingBack;
547
- $[109] = t41;
559
+ $[110] = chatId;
560
+ $[111] = info.queuePaused;
561
+ $[112] = queue;
562
+ $[113] = takeBack;
563
+ $[114] = takingBack;
564
+ $[115] = t42;
548
565
  } else {
549
- t41 = $[109];
566
+ t42 = $[115];
550
567
  }
551
- let t42;
552
- if ($[110] !== box.removeQuote || $[111] !== chatId || $[112] !== draft.quote || $[113] !== draft.quoteSource || $[114] !== notice || $[115] !== t) {
553
- t42 = draft.quote !== "" && /*#__PURE__*/_jsx(DraftQuote, {
568
+ let t43;
569
+ if ($[116] !== box.removeQuote || $[117] !== chatId || $[118] !== draft.quote || $[119] !== draft.quoteSource || $[120] !== notice || $[121] !== t) {
570
+ t43 = draft.quote !== "" && /*#__PURE__*/_jsx(DraftQuote, {
554
571
  chatId: chatId,
555
572
  quote: draft.quote,
556
573
  source: draft.quoteSource,
557
574
  onRemove: box.removeQuote,
558
575
  onSourceGone: () => notice.setNotice(t("rows.user.quoteGone"), "info")
559
576
  });
560
- $[110] = box.removeQuote;
561
- $[111] = chatId;
562
- $[112] = draft.quote;
563
- $[113] = draft.quoteSource;
564
- $[114] = notice;
565
- $[115] = t;
566
- $[116] = t42;
567
- } else {
568
- t42 = $[116];
569
- }
570
- let t43;
571
- if ($[117] !== box.removeAttachment || $[118] !== draft.attachments) {
572
- t43 = draft.attachments.length > 0 && /*#__PURE__*/_jsx(DraftAttachments, {
577
+ $[116] = box.removeQuote;
578
+ $[117] = chatId;
579
+ $[118] = draft.quote;
580
+ $[119] = draft.quoteSource;
581
+ $[120] = notice;
582
+ $[121] = t;
583
+ $[122] = t43;
584
+ } else {
585
+ t43 = $[122];
586
+ }
587
+ let t44;
588
+ if ($[123] !== box.removeAttachment || $[124] !== draft.attachments) {
589
+ t44 = draft.attachments.length > 0 && /*#__PURE__*/_jsx(DraftAttachments, {
573
590
  attachments: draft.attachments,
574
591
  onRemove: box.removeAttachment
575
592
  });
576
- $[117] = box.removeAttachment;
577
- $[118] = draft.attachments;
578
- $[119] = t43;
593
+ $[123] = box.removeAttachment;
594
+ $[124] = draft.attachments;
595
+ $[125] = t44;
579
596
  } else {
580
- t43 = $[119];
597
+ t44 = $[125];
581
598
  }
582
- const t44 = !writable;
583
- let t45;
584
- if ($[120] !== box || $[121] !== history || $[122] !== hold || $[123] !== menus) {
585
- t45 = (value, selection, state) => {
599
+ const t45 = !writable;
600
+ let t46;
601
+ if ($[126] !== box || $[127] !== history || $[128] !== hold || $[129] !== menus) {
602
+ t46 = (value, selection, state) => {
586
603
  hold.noteInput();
587
604
  box.setText(value);
588
605
  menus.setMenuIndex(0);
589
606
  menus.trackTriggers(value, selection, state);
590
607
  history.edited(value);
591
608
  };
592
- $[120] = box;
593
- $[121] = history;
594
- $[122] = hold;
595
- $[123] = menus;
596
- $[124] = t45;
609
+ $[126] = box;
610
+ $[127] = history;
611
+ $[128] = hold;
612
+ $[129] = menus;
613
+ $[130] = t46;
597
614
  } else {
598
- t45 = $[124];
615
+ t46 = $[130];
599
616
  }
600
- let t46;
601
- if ($[125] !== hold || $[126] !== menus) {
602
- t46 = () => {
617
+ let t47;
618
+ if ($[131] !== hold || $[132] !== menus) {
619
+ t47 = () => {
603
620
  menus.close();
604
621
  hold.release("blur");
605
622
  };
606
- $[125] = hold;
607
- $[126] = menus;
608
- $[127] = t46;
623
+ $[131] = hold;
624
+ $[132] = menus;
625
+ $[133] = t47;
609
626
  } else {
610
- t46 = $[127];
627
+ t47 = $[133];
611
628
  }
612
- let t47;
613
- if ($[128] !== dictationToolbar || $[129] !== draft.text || $[130] !== editorExtensions || $[131] !== files.onCopy || $[132] !== files.onPaste || $[133] !== focused || $[134] !== hold.setComposing || $[135] !== menus.inputAria || $[136] !== menus.trackTriggers || $[137] !== onKeyDown || $[138] !== placeholder || $[139] !== t44 || $[140] !== t45 || $[141] !== t46) {
614
- t47 = /*#__PURE__*/_jsx(ComposerInput, {
629
+ let t48;
630
+ if ($[134] !== dictationToolbar || $[135] !== draft.text || $[136] !== editorExtensions || $[137] !== files.onCopy || $[138] !== files.onPaste || $[139] !== focused || $[140] !== hold.setComposing || $[141] !== menus.inputAria || $[142] !== menus.trackTriggers || $[143] !== onKeyDown || $[144] !== placeholder || $[145] !== t45 || $[146] !== t46 || $[147] !== t47) {
631
+ t48 = /*#__PURE__*/_jsx(ComposerInput, {
615
632
  ref: inputRef,
616
633
  dictationToolbar: dictationToolbar,
617
634
  className: "composer-input select-text text-sm leading-normal text-text",
618
635
  value: draft.text,
619
636
  placeholder: placeholder,
620
- disabled: t44,
637
+ disabled: t45,
621
638
  tabbable: focused,
622
639
  extensions: editorExtensions,
623
640
  aria: menus.inputAria,
624
- onChange: t45,
641
+ onChange: t46,
625
642
  onSelectionChange: menus.trackTriggers,
626
- onBlur: t46,
643
+ onBlur: t47,
627
644
  onComposing: hold.setComposing,
628
645
  onKeyDown: onKeyDown,
629
646
  onPaste: files.onPaste,
630
647
  onCopy: files.onCopy
631
648
  });
632
- $[128] = dictationToolbar;
633
- $[129] = draft.text;
634
- $[130] = editorExtensions;
635
- $[131] = files.onCopy;
636
- $[132] = files.onPaste;
637
- $[133] = focused;
638
- $[134] = hold.setComposing;
639
- $[135] = menus.inputAria;
640
- $[136] = menus.trackTriggers;
641
- $[137] = onKeyDown;
642
- $[138] = placeholder;
643
- $[139] = t44;
644
- $[140] = t45;
645
- $[141] = t46;
646
- $[142] = t47;
647
- } else {
648
- t47 = $[142];
649
- }
650
- let t48;
651
- if ($[143] !== notice.notice || $[144] !== notice.tone) {
652
- t48 = notice.notice && /*#__PURE__*/_jsx("div", {
649
+ $[134] = dictationToolbar;
650
+ $[135] = draft.text;
651
+ $[136] = editorExtensions;
652
+ $[137] = files.onCopy;
653
+ $[138] = files.onPaste;
654
+ $[139] = focused;
655
+ $[140] = hold.setComposing;
656
+ $[141] = menus.inputAria;
657
+ $[142] = menus.trackTriggers;
658
+ $[143] = onKeyDown;
659
+ $[144] = placeholder;
660
+ $[145] = t45;
661
+ $[146] = t46;
662
+ $[147] = t47;
663
+ $[148] = t48;
664
+ } else {
665
+ t48 = $[148];
666
+ }
667
+ let t49;
668
+ if ($[149] !== notice.notice || $[150] !== notice.tone) {
669
+ t49 = notice.notice && /*#__PURE__*/_jsx("div", {
653
670
  className: clsx("px-5 pb-1 text-xs @max-md/composer:px-3.5", notice.tone === "error" ? "text-status-error" : "text-text-muted"),
654
671
  role: notice.tone === "error" ? "alert" : "status",
655
672
  children: notice.notice
656
673
  });
657
- $[143] = notice.notice;
658
- $[144] = notice.tone;
659
- $[145] = t48;
674
+ $[149] = notice.notice;
675
+ $[150] = notice.tone;
676
+ $[151] = t49;
660
677
  } else {
661
- t48 = $[145];
678
+ t49 = $[151];
662
679
  }
663
- const t49 = guard.visible && /*#__PURE__*/_jsxs("div", {
680
+ const t50 = guard.visible && /*#__PURE__*/_jsxs("div", {
664
681
  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"),
665
682
  children: [formatNumber(guard.count), " / ", formatNumber(PROMPT_MAX_CHARS), guard.tooLong && ` ${t("composer.tooLong")}`]
666
683
  });
667
684
  const T1 = ComposerControls;
668
- const t50 = capabilities?.attachments !== false;
669
- const t51 = !busy || !empty;
670
- const t52 = empty || !writable || guard.tooLong;
671
- const t53 = t(sendLabelKey(busy, steerable, sendDelivery));
672
- let t54;
673
- if ($[146] !== draft.text || $[147] !== sendKey) {
674
- t54 = sendShortcut(sendKey, draft.text.includes("\n"));
675
- $[146] = draft.text;
676
- $[147] = sendKey;
677
- $[148] = t54;
678
- } else {
679
- t54 = $[148];
680
- }
685
+ const t51 = capabilities?.attachments !== false;
686
+ const t52 = !busy || !empty;
687
+ const t53 = empty || !writable || guard.tooLong;
688
+ const t54 = t(sendLabelKey(busy, steerable, sendDelivery));
681
689
  let t55;
682
- if ($[149] !== submit) {
683
- t55 = alternate => submit(alternate ? "alternate" : "default");
684
- $[149] = submit;
685
- $[150] = t55;
686
- } else {
687
- t55 = $[150];
688
- }
689
- const t56 = continuable !== null && continuable !== sentFor && empty && writable && pending.length === 0 && extraPrompts.length === 0 ? continueTurn : null;
690
- const t57 = scope.id;
691
- let t58;
692
- if ($[151] !== draft.quote || $[152] !== draft.text) {
693
- t58 = withQuote(draft.quote, draft.text.trim());
694
- $[151] = draft.quote;
690
+ if ($[152] !== draft.text || $[153] !== sendKey) {
691
+ t55 = sendShortcut(sendKey, draft.text.includes("\n"));
695
692
  $[152] = draft.text;
696
- $[153] = t58;
693
+ $[153] = sendKey;
694
+ $[154] = t55;
697
695
  } else {
698
- t58 = $[153];
696
+ t55 = $[154];
699
697
  }
698
+ let t56;
699
+ if ($[155] !== submit) {
700
+ t56 = alternate => submit(alternate ? "alternate" : "default");
701
+ $[155] = submit;
702
+ $[156] = t56;
703
+ } else {
704
+ t56 = $[156];
705
+ }
706
+ const t57 = continuable !== null && continuable !== sentFor && empty && writable && pending.length === 0 && extraPrompts.length === 0 ? continueTurn : null;
707
+ const t58 = scope.id;
700
708
  let t59;
701
- if ($[154] !== chatId || $[155] !== info.provider || $[156] !== info.runtimeMode || $[157] !== info.selection || $[158] !== scope.id || $[159] !== t58) {
702
- t59 = {
703
- scopeId: t57,
709
+ if ($[157] !== draft.quote || $[158] !== draft.text) {
710
+ t59 = withQuote(draft.quote, draft.text.trim());
711
+ $[157] = draft.quote;
712
+ $[158] = draft.text;
713
+ $[159] = t59;
714
+ } else {
715
+ t59 = $[159];
716
+ }
717
+ let t60;
718
+ if ($[160] !== chatId || $[161] !== info.provider || $[162] !== info.runtimeMode || $[163] !== info.selection || $[164] !== scope.id || $[165] !== t59) {
719
+ t60 = {
720
+ scopeId: t58,
704
721
  chatId,
705
- text: t58,
722
+ text: t59,
706
723
  provider: info.provider,
707
724
  selection: info.selection,
708
725
  runtimeMode: info.runtimeMode
709
726
  };
710
- $[154] = chatId;
711
- $[155] = info.provider;
712
- $[156] = info.runtimeMode;
713
- $[157] = info.selection;
714
- $[158] = scope.id;
715
- $[159] = t58;
716
- $[160] = t59;
727
+ $[160] = chatId;
728
+ $[161] = info.provider;
729
+ $[162] = info.runtimeMode;
730
+ $[163] = info.selection;
731
+ $[164] = scope.id;
732
+ $[165] = t59;
733
+ $[166] = t60;
717
734
  } else {
718
- t59 = $[160];
735
+ t60 = $[166];
719
736
  }
720
- let t60;
721
- if ($[161] !== sendActions || $[162] !== t51 || $[163] !== t52 || $[164] !== t53 || $[165] !== t54 || $[166] !== t55 || $[167] !== t56 || $[168] !== t59) {
722
- t60 = {
723
- visible: t51,
724
- disabled: t52,
725
- label: t53,
726
- kbd: t54,
727
- onSend: t55,
728
- onContinue: t56,
737
+ let t61;
738
+ if ($[167] !== sendActions || $[168] !== t52 || $[169] !== t53 || $[170] !== t54 || $[171] !== t55 || $[172] !== t56 || $[173] !== t57 || $[174] !== t60) {
739
+ t61 = {
740
+ visible: t52,
741
+ disabled: t53,
742
+ label: t54,
743
+ kbd: t55,
744
+ onSend: t56,
745
+ onContinue: t57,
729
746
  actions: sendActions,
730
- draft: t59
747
+ draft: t60
731
748
  };
732
- $[161] = sendActions;
733
- $[162] = t51;
734
- $[163] = t52;
735
- $[164] = t53;
736
- $[165] = t54;
737
- $[166] = t55;
738
- $[167] = t56;
739
- $[168] = t59;
740
- $[169] = t60;
741
- } else {
742
- t60 = $[169];
749
+ $[167] = sendActions;
750
+ $[168] = t52;
751
+ $[169] = t53;
752
+ $[170] = t54;
753
+ $[171] = t55;
754
+ $[172] = t56;
755
+ $[173] = t57;
756
+ $[174] = t60;
757
+ $[175] = t61;
758
+ } else {
759
+ t61 = $[175];
743
760
  }
744
- let t61;
745
- if ($[170] !== files) {
746
- t61 = picked => {
761
+ let t62;
762
+ if ($[176] !== files) {
763
+ t62 = picked => {
747
764
  files.addFiles(picked);
748
765
  inputRef.current?.focus();
749
766
  };
750
- $[170] = files;
751
- $[171] = t61;
767
+ $[176] = files;
768
+ $[177] = t62;
752
769
  } else {
753
- t61 = $[171];
770
+ t62 = $[177];
754
771
  }
755
- let t62;
756
- if ($[172] !== writable) {
757
- t62 = added => {
772
+ let t63;
773
+ if ($[178] !== writable) {
774
+ t63 = added => {
758
775
  if (writable) {
759
776
  inputRef.current?.insert(added);
760
777
  }
761
778
  };
762
- $[172] = writable;
763
- $[173] = t62;
779
+ $[178] = writable;
780
+ $[179] = t63;
764
781
  } else {
765
- t62 = $[173];
782
+ t63 = $[179];
766
783
  }
767
- let t63;
768
- if ($[174] !== T1 || $[175] !== chatId || $[176] !== controls || $[177] !== info || $[178] !== providerFixed || $[179] !== restoreStashed || $[180] !== setDictationToolbar || $[181] !== t50 || $[182] !== t60 || $[183] !== t61 || $[184] !== t62 || $[185] !== writable) {
769
- t63 = /*#__PURE__*/_jsx(T1, {
784
+ let t64;
785
+ if ($[180] !== T1 || $[181] !== chatId || $[182] !== controls || $[183] !== info || $[184] !== providerFixed || $[185] !== restoreStashed || $[186] !== setDictationToolbar || $[187] !== t51 || $[188] !== t61 || $[189] !== t62 || $[190] !== t63 || $[191] !== writable) {
786
+ t64 = /*#__PURE__*/_jsx(T1, {
770
787
  chatId: chatId,
771
788
  info: info,
772
789
  providerFixed: providerFixed,
773
790
  writable: writable,
774
- attachable: t50,
791
+ attachable: t51,
775
792
  controls: controls,
776
- send: t60,
793
+ send: t61,
777
794
  dictationToolbar: setDictationToolbar,
778
- onFiles: t61,
795
+ onFiles: t62,
779
796
  onRestore: restoreStashed,
780
- insert: t62
797
+ insert: t63
781
798
  });
782
- $[174] = T1;
783
- $[175] = chatId;
784
- $[176] = controls;
785
- $[177] = info;
786
- $[178] = providerFixed;
787
- $[179] = restoreStashed;
788
- $[180] = setDictationToolbar;
789
- $[181] = t50;
790
- $[182] = t60;
791
- $[183] = t61;
792
- $[184] = t62;
793
- $[185] = writable;
794
- $[186] = t63;
795
- } else {
796
- t63 = $[186];
799
+ $[180] = T1;
800
+ $[181] = chatId;
801
+ $[182] = controls;
802
+ $[183] = info;
803
+ $[184] = providerFixed;
804
+ $[185] = restoreStashed;
805
+ $[186] = setDictationToolbar;
806
+ $[187] = t51;
807
+ $[188] = t61;
808
+ $[189] = t62;
809
+ $[190] = t63;
810
+ $[191] = writable;
811
+ $[192] = t64;
812
+ } else {
813
+ t64 = $[192];
797
814
  }
798
- let t64;
799
- if ($[187] !== pointSurface || $[188] !== pressSurface || $[189] !== t35 || $[190] !== t36 || $[191] !== t38 || $[192] !== t39 || $[193] !== t40 || $[194] !== t41 || $[195] !== t42 || $[196] !== t43 || $[197] !== t47 || $[198] !== t48 || $[199] !== t49 || $[200] !== t63) {
800
- t64 = /*#__PURE__*/_jsxs("div", {
801
- className: t35,
815
+ let t65;
816
+ if ($[193] !== pointSurface || $[194] !== pressSurface || $[195] !== t36 || $[196] !== t37 || $[197] !== t39 || $[198] !== t40 || $[199] !== t41 || $[200] !== t42 || $[201] !== t43 || $[202] !== t44 || $[203] !== t48 || $[204] !== t49 || $[205] !== t50 || $[206] !== t64) {
817
+ t65 = /*#__PURE__*/_jsxs("div", {
818
+ className: t36,
802
819
  onPointerOver: pointSurface,
803
820
  onMouseDown: pressSurface,
804
- children: [t36, t38, t39, t40, t41, t42, t43, t47, t48, t49, t63]
821
+ children: [t37, t39, t40, t41, t42, t43, t44, t48, t49, t50, t64]
805
822
  });
806
- $[187] = pointSurface;
807
- $[188] = pressSurface;
808
- $[189] = t35;
809
- $[190] = t36;
810
- $[191] = t38;
811
- $[192] = t39;
812
- $[193] = t40;
813
- $[194] = t41;
814
- $[195] = t42;
815
- $[196] = t43;
816
- $[197] = t47;
817
- $[198] = t48;
818
- $[199] = t49;
819
- $[200] = t63;
820
- $[201] = t64;
821
- } else {
822
- t64 = $[201];
823
+ $[193] = pointSurface;
824
+ $[194] = pressSurface;
825
+ $[195] = t36;
826
+ $[196] = t37;
827
+ $[197] = t39;
828
+ $[198] = t40;
829
+ $[199] = t41;
830
+ $[200] = t42;
831
+ $[201] = t43;
832
+ $[202] = t44;
833
+ $[203] = t48;
834
+ $[204] = t49;
835
+ $[205] = t50;
836
+ $[206] = t64;
837
+ $[207] = t65;
838
+ } else {
839
+ t65 = $[207];
823
840
  }
824
- let t65;
825
- if ($[202] !== T0 || $[203] !== answerPromptsElsewhere || $[204] !== chatId || $[205] !== disabled || $[206] !== focused || $[207] !== hold || $[208] !== pending || $[209] !== t31 || $[210] !== t32 || $[211] !== t33 || $[212] !== t64) {
826
- t65 = /*#__PURE__*/_jsx(T0, {
841
+ let t66;
842
+ if ($[208] !== T0 || $[209] !== answerPromptsElsewhere || $[210] !== chatId || $[211] !== disabled || $[212] !== focused || $[213] !== hold || $[214] !== pending || $[215] !== t32 || $[216] !== t33 || $[217] !== t34 || $[218] !== t65) {
843
+ t66 = /*#__PURE__*/_jsx(T0, {
827
844
  chatId: chatId,
828
845
  pending: pending,
829
846
  focused: focused,
830
847
  onShowElsewhere: answerPromptsElsewhere,
831
848
  disabled: disabled,
832
- hasDraft: t31,
833
- denyReason: t32,
834
- onAllAnswered: t33,
849
+ hasDraft: t32,
850
+ denyReason: t33,
851
+ onAllAnswered: t34,
835
852
  hold: hold,
836
- children: t64
853
+ children: t65
837
854
  });
838
- $[202] = T0;
839
- $[203] = answerPromptsElsewhere;
840
- $[204] = chatId;
841
- $[205] = disabled;
842
- $[206] = focused;
843
- $[207] = hold;
844
- $[208] = pending;
845
- $[209] = t31;
846
- $[210] = t32;
847
- $[211] = t33;
848
- $[212] = t64;
849
- $[213] = t65;
850
- } else {
851
- t65 = $[213];
852
- }
853
- let t66;
854
- if ($[214] !== files.dropTarget || $[215] !== t29 || $[216] !== t65) {
855
- t66 = /*#__PURE__*/_jsx("div", {
855
+ $[208] = T0;
856
+ $[209] = answerPromptsElsewhere;
857
+ $[210] = chatId;
858
+ $[211] = disabled;
859
+ $[212] = focused;
860
+ $[213] = hold;
861
+ $[214] = pending;
862
+ $[215] = t32;
863
+ $[216] = t33;
864
+ $[217] = t34;
865
+ $[218] = t65;
866
+ $[219] = t66;
867
+ } else {
868
+ t66 = $[219];
869
+ }
870
+ let t67;
871
+ if ($[220] !== files.dropTarget || $[221] !== t29 || $[222] !== t31 || $[223] !== t66) {
872
+ t67 = /*#__PURE__*/_jsxs("div", {
856
873
  className: t29,
857
874
  ...t30,
858
- children: t65
875
+ children: [t31, t66]
859
876
  });
860
- $[214] = files.dropTarget;
861
- $[215] = t29;
862
- $[216] = t65;
863
- $[217] = t66;
877
+ $[220] = files.dropTarget;
878
+ $[221] = t29;
879
+ $[222] = t31;
880
+ $[223] = t66;
881
+ $[224] = t67;
864
882
  } else {
865
- t66 = $[217];
866
- }
867
- const t67 = controls.confirmClear;
868
- let t68;
869
- if ($[218] !== t) {
870
- t68 = t("composer.clear.title");
871
- $[218] = t;
872
- $[219] = t68;
873
- } else {
874
- t68 = $[219];
883
+ t67 = $[224];
875
884
  }
885
+ const t68 = controls.confirmClear;
876
886
  let t69;
877
- if ($[220] !== t) {
878
- t69 = t("composer.clear.description");
879
- $[220] = t;
880
- $[221] = t69;
887
+ if ($[225] !== t) {
888
+ t69 = t("composer.clear.title");
889
+ $[225] = t;
890
+ $[226] = t69;
881
891
  } else {
882
- t69 = $[221];
892
+ t69 = $[226];
883
893
  }
884
894
  let t70;
885
- if ($[222] !== t) {
886
- t70 = t("composer.clear.confirm");
887
- $[222] = t;
888
- $[223] = t70;
895
+ if ($[227] !== t) {
896
+ t70 = t("composer.clear.description");
897
+ $[227] = t;
898
+ $[228] = t70;
889
899
  } else {
890
- t70 = $[223];
900
+ t70 = $[228];
891
901
  }
892
902
  let t71;
893
- if ($[224] !== t) {
894
- t71 = t("composer.notice.clearFailed");
895
- $[224] = t;
896
- $[225] = t71;
903
+ if ($[229] !== t) {
904
+ t71 = t("composer.clear.confirm");
905
+ $[229] = t;
906
+ $[230] = t71;
897
907
  } else {
898
- t71 = $[225];
908
+ t71 = $[230];
899
909
  }
900
910
  let t72;
901
- if ($[226] !== controls.cancelClear || $[227] !== controls.confirmClear || $[228] !== controls.forceClearThread || $[229] !== t68 || $[230] !== t69 || $[231] !== t70 || $[232] !== t71) {
902
- t72 = /*#__PURE__*/_jsx(PromptDialog, {
903
- open: t67,
904
- title: t68,
905
- description: t69,
906
- confirmLabel: t70,
911
+ if ($[231] !== t) {
912
+ t72 = t("composer.notice.clearFailed");
913
+ $[231] = t;
914
+ $[232] = t72;
915
+ } else {
916
+ t72 = $[232];
917
+ }
918
+ let t73;
919
+ if ($[233] !== controls.cancelClear || $[234] !== controls.confirmClear || $[235] !== controls.forceClearThread || $[236] !== t69 || $[237] !== t70 || $[238] !== t71 || $[239] !== t72) {
920
+ t73 = /*#__PURE__*/_jsx(PromptDialog, {
921
+ open: t68,
922
+ title: t69,
923
+ description: t70,
924
+ confirmLabel: t71,
907
925
  danger: true,
908
- fallbackMessage: t71,
926
+ fallbackMessage: t72,
909
927
  onConfirm: controls.forceClearThread,
910
928
  onOpenChange: controls.cancelClear
911
929
  });
912
- $[226] = controls.cancelClear;
913
- $[227] = controls.confirmClear;
914
- $[228] = controls.forceClearThread;
915
- $[229] = t68;
916
- $[230] = t69;
917
- $[231] = t70;
918
- $[232] = t71;
919
- $[233] = t72;
920
- } else {
921
- t72 = $[233];
922
- }
923
- let t73;
924
- if ($[234] !== t26 || $[235] !== t27 || $[236] !== t66 || $[237] !== t72) {
925
- t73 = /*#__PURE__*/_jsxs("div", {
930
+ $[233] = controls.cancelClear;
931
+ $[234] = controls.confirmClear;
932
+ $[235] = controls.forceClearThread;
933
+ $[236] = t69;
934
+ $[237] = t70;
935
+ $[238] = t71;
936
+ $[239] = t72;
937
+ $[240] = t73;
938
+ } else {
939
+ t73 = $[240];
940
+ }
941
+ let t74;
942
+ if ($[241] !== t26 || $[242] !== t27 || $[243] !== t67 || $[244] !== t73) {
943
+ t74 = /*#__PURE__*/_jsxs("div", {
926
944
  className: t25,
927
- children: [t26, t27, t66, t72]
945
+ children: [t26, t27, t67, t73]
928
946
  });
929
- $[234] = t26;
930
- $[235] = t27;
931
- $[236] = t66;
932
- $[237] = t72;
933
- $[238] = t73;
947
+ $[241] = t26;
948
+ $[242] = t27;
949
+ $[243] = t67;
950
+ $[244] = t73;
951
+ $[245] = t74;
934
952
  } else {
935
- t73 = $[238];
953
+ t74 = $[245];
936
954
  }
937
- return t73;
955
+ return t74;
938
956
  }
939
957
  function _temp4(event) {
940
958
  event.currentTarget.toggleAttribute("data-text-cursor", surfacePartOf(event.target, event.currentTarget) !== "action");