@adecore/agents-react 0.44.4 → 0.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat/logic/timeline.d.ts +2 -0
- package/dist/chat/logic/timeline.js +16 -6
- package/dist/chat/ui/Composer.js +345 -327
- package/dist/chat/ui/SubagentTimeline.js +4 -1
- package/dist/chat/ui/Timeline.js +5 -3
- package/dist/chat/ui/rows/Rows.js +58 -56
- package/dist/chat/ui/rows/SubagentRow.js +88 -68
- package/dist/chat/ui/rows/WorkRows.d.ts +2 -1
- package/dist/chat/ui/rows/WorkRows.js +116 -83
- package/dist/host-hooks.d.ts +1 -0
- package/dist/host-hooks.js +3 -0
- package/dist/host.d.ts +8 -0
- package/dist/host.js +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/chat/logic/timeline.ts +21 -7
- package/src/chat/ui/Composer.tsx +1 -0
- package/src/chat/ui/SubagentTimeline.tsx +5 -1
- package/src/chat/ui/Timeline.tsx +6 -3
- package/src/chat/ui/rows/Rows.tsx +10 -1
- package/src/chat/ui/rows/SubagentRow.tsx +12 -3
- package/src/chat/ui/rows/WorkRows.tsx +22 -11
- package/src/host-hooks.ts +4 -0
- package/src/host.ts +14 -0
- package/src/index.ts +1 -0
package/dist/chat/ui/Composer.js
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
|
|
476
|
+
t31 = $[92];
|
|
470
477
|
}
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
486
|
+
t34 = $[93];
|
|
479
487
|
}
|
|
488
|
+
const t35 = writable && "data-[text-cursor]:cursor-text";
|
|
480
489
|
let t36;
|
|
481
|
-
if ($[
|
|
482
|
-
t36 =
|
|
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
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
503
|
+
$[96] = chatId;
|
|
504
|
+
$[97] = info;
|
|
505
|
+
$[98] = t37;
|
|
489
506
|
} else {
|
|
490
|
-
|
|
507
|
+
t37 = $[98];
|
|
491
508
|
}
|
|
492
|
-
const
|
|
493
|
-
let
|
|
494
|
-
if ($[
|
|
495
|
-
|
|
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:
|
|
515
|
+
goals: t38
|
|
499
516
|
});
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
517
|
+
$[99] = chatId;
|
|
518
|
+
$[100] = info;
|
|
519
|
+
$[101] = t38;
|
|
520
|
+
$[102] = t39;
|
|
504
521
|
} else {
|
|
505
|
-
|
|
522
|
+
t39 = $[102];
|
|
506
523
|
}
|
|
507
|
-
let
|
|
508
|
-
if ($[
|
|
509
|
-
|
|
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
|
-
$[
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
532
|
+
$[103] = chatId;
|
|
533
|
+
$[104] = compactionOffer;
|
|
534
|
+
$[105] = controls.compact;
|
|
535
|
+
$[106] = scope;
|
|
536
|
+
$[107] = t40;
|
|
520
537
|
} else {
|
|
521
|
-
|
|
538
|
+
t40 = $[107];
|
|
522
539
|
}
|
|
523
|
-
let
|
|
524
|
-
if ($[
|
|
525
|
-
|
|
540
|
+
let t41;
|
|
541
|
+
if ($[108] !== menus) {
|
|
542
|
+
t41 = /*#__PURE__*/_jsx(ComposerMenu, {
|
|
526
543
|
menus: menus
|
|
527
544
|
});
|
|
528
|
-
$[
|
|
529
|
-
$[
|
|
545
|
+
$[108] = menus;
|
|
546
|
+
$[109] = t41;
|
|
530
547
|
} else {
|
|
531
|
-
|
|
548
|
+
t41 = $[109];
|
|
532
549
|
}
|
|
533
|
-
let
|
|
534
|
-
if ($[
|
|
535
|
-
|
|
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
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
559
|
+
$[110] = chatId;
|
|
560
|
+
$[111] = info.queuePaused;
|
|
561
|
+
$[112] = queue;
|
|
562
|
+
$[113] = takeBack;
|
|
563
|
+
$[114] = takingBack;
|
|
564
|
+
$[115] = t42;
|
|
548
565
|
} else {
|
|
549
|
-
|
|
566
|
+
t42 = $[115];
|
|
550
567
|
}
|
|
551
|
-
let
|
|
552
|
-
if ($[
|
|
553
|
-
|
|
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
|
-
$[
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
} else {
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
let
|
|
571
|
-
if ($[
|
|
572
|
-
|
|
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
|
-
$[
|
|
577
|
-
$[
|
|
578
|
-
$[
|
|
593
|
+
$[123] = box.removeAttachment;
|
|
594
|
+
$[124] = draft.attachments;
|
|
595
|
+
$[125] = t44;
|
|
579
596
|
} else {
|
|
580
|
-
|
|
597
|
+
t44 = $[125];
|
|
581
598
|
}
|
|
582
|
-
const
|
|
583
|
-
let
|
|
584
|
-
if ($[
|
|
585
|
-
|
|
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
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
609
|
+
$[126] = box;
|
|
610
|
+
$[127] = history;
|
|
611
|
+
$[128] = hold;
|
|
612
|
+
$[129] = menus;
|
|
613
|
+
$[130] = t46;
|
|
597
614
|
} else {
|
|
598
|
-
|
|
615
|
+
t46 = $[130];
|
|
599
616
|
}
|
|
600
|
-
let
|
|
601
|
-
if ($[
|
|
602
|
-
|
|
617
|
+
let t47;
|
|
618
|
+
if ($[131] !== hold || $[132] !== menus) {
|
|
619
|
+
t47 = () => {
|
|
603
620
|
menus.close();
|
|
604
621
|
hold.release("blur");
|
|
605
622
|
};
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
623
|
+
$[131] = hold;
|
|
624
|
+
$[132] = menus;
|
|
625
|
+
$[133] = t47;
|
|
609
626
|
} else {
|
|
610
|
-
|
|
627
|
+
t47 = $[133];
|
|
611
628
|
}
|
|
612
|
-
let
|
|
613
|
-
if ($[
|
|
614
|
-
|
|
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:
|
|
637
|
+
disabled: t45,
|
|
621
638
|
tabbable: focused,
|
|
622
639
|
extensions: editorExtensions,
|
|
623
640
|
aria: menus.inputAria,
|
|
624
|
-
onChange:
|
|
641
|
+
onChange: t46,
|
|
625
642
|
onSelectionChange: menus.trackTriggers,
|
|
626
|
-
onBlur:
|
|
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
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
$[
|
|
635
|
-
$[
|
|
636
|
-
$[
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
$[
|
|
646
|
-
$[
|
|
647
|
-
} else {
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
let
|
|
651
|
-
if ($[
|
|
652
|
-
|
|
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
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
674
|
+
$[149] = notice.notice;
|
|
675
|
+
$[150] = notice.tone;
|
|
676
|
+
$[151] = t49;
|
|
660
677
|
} else {
|
|
661
|
-
|
|
678
|
+
t49 = $[151];
|
|
662
679
|
}
|
|
663
|
-
const
|
|
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
|
|
669
|
-
const
|
|
670
|
-
const
|
|
671
|
-
const
|
|
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 ($[
|
|
683
|
-
t55 =
|
|
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] =
|
|
693
|
+
$[153] = sendKey;
|
|
694
|
+
$[154] = t55;
|
|
697
695
|
} else {
|
|
698
|
-
|
|
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 ($[
|
|
702
|
-
t59 =
|
|
703
|
-
|
|
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:
|
|
722
|
+
text: t59,
|
|
706
723
|
provider: info.provider,
|
|
707
724
|
selection: info.selection,
|
|
708
725
|
runtimeMode: info.runtimeMode
|
|
709
726
|
};
|
|
710
|
-
$[
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
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
|
-
|
|
735
|
+
t60 = $[166];
|
|
719
736
|
}
|
|
720
|
-
let
|
|
721
|
-
if ($[
|
|
722
|
-
|
|
723
|
-
visible:
|
|
724
|
-
disabled:
|
|
725
|
-
label:
|
|
726
|
-
kbd:
|
|
727
|
-
onSend:
|
|
728
|
-
onContinue:
|
|
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:
|
|
747
|
+
draft: t60
|
|
731
748
|
};
|
|
732
|
-
$[
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
741
|
-
} else {
|
|
742
|
-
|
|
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
|
|
745
|
-
if ($[
|
|
746
|
-
|
|
761
|
+
let t62;
|
|
762
|
+
if ($[176] !== files) {
|
|
763
|
+
t62 = picked => {
|
|
747
764
|
files.addFiles(picked);
|
|
748
765
|
inputRef.current?.focus();
|
|
749
766
|
};
|
|
750
|
-
$[
|
|
751
|
-
$[
|
|
767
|
+
$[176] = files;
|
|
768
|
+
$[177] = t62;
|
|
752
769
|
} else {
|
|
753
|
-
|
|
770
|
+
t62 = $[177];
|
|
754
771
|
}
|
|
755
|
-
let
|
|
756
|
-
if ($[
|
|
757
|
-
|
|
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
|
-
$[
|
|
763
|
-
$[
|
|
779
|
+
$[178] = writable;
|
|
780
|
+
$[179] = t63;
|
|
764
781
|
} else {
|
|
765
|
-
|
|
782
|
+
t63 = $[179];
|
|
766
783
|
}
|
|
767
|
-
let
|
|
768
|
-
if ($[
|
|
769
|
-
|
|
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:
|
|
791
|
+
attachable: t51,
|
|
775
792
|
controls: controls,
|
|
776
|
-
send:
|
|
793
|
+
send: t61,
|
|
777
794
|
dictationToolbar: setDictationToolbar,
|
|
778
|
-
onFiles:
|
|
795
|
+
onFiles: t62,
|
|
779
796
|
onRestore: restoreStashed,
|
|
780
|
-
insert:
|
|
797
|
+
insert: t63
|
|
781
798
|
});
|
|
782
|
-
$[
|
|
783
|
-
$[
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
786
|
-
$[
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
789
|
-
$[
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
794
|
-
$[
|
|
795
|
-
} else {
|
|
796
|
-
|
|
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
|
|
799
|
-
if ($[
|
|
800
|
-
|
|
801
|
-
className:
|
|
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: [
|
|
821
|
+
children: [t37, t39, t40, t41, t42, t43, t44, t48, t49, t50, t64]
|
|
805
822
|
});
|
|
806
|
-
$[
|
|
807
|
-
$[
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
$[
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
$[
|
|
815
|
-
$[
|
|
816
|
-
$[
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
$[
|
|
820
|
-
$[
|
|
821
|
-
} else {
|
|
822
|
-
|
|
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
|
|
825
|
-
if ($[
|
|
826
|
-
|
|
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:
|
|
833
|
-
denyReason:
|
|
834
|
-
onAllAnswered:
|
|
849
|
+
hasDraft: t32,
|
|
850
|
+
denyReason: t33,
|
|
851
|
+
onAllAnswered: t34,
|
|
835
852
|
hold: hold,
|
|
836
|
-
children:
|
|
853
|
+
children: t65
|
|
837
854
|
});
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
$[
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
$[
|
|
850
|
-
} else {
|
|
851
|
-
|
|
852
|
-
}
|
|
853
|
-
let
|
|
854
|
-
if ($[
|
|
855
|
-
|
|
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:
|
|
875
|
+
children: [t31, t66]
|
|
859
876
|
});
|
|
860
|
-
$[
|
|
861
|
-
$[
|
|
862
|
-
$[
|
|
863
|
-
$[
|
|
877
|
+
$[220] = files.dropTarget;
|
|
878
|
+
$[221] = t29;
|
|
879
|
+
$[222] = t31;
|
|
880
|
+
$[223] = t66;
|
|
881
|
+
$[224] = t67;
|
|
864
882
|
} else {
|
|
865
|
-
|
|
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 ($[
|
|
878
|
-
t69 = t("composer.clear.
|
|
879
|
-
$[
|
|
880
|
-
$[
|
|
887
|
+
if ($[225] !== t) {
|
|
888
|
+
t69 = t("composer.clear.title");
|
|
889
|
+
$[225] = t;
|
|
890
|
+
$[226] = t69;
|
|
881
891
|
} else {
|
|
882
|
-
t69 = $[
|
|
892
|
+
t69 = $[226];
|
|
883
893
|
}
|
|
884
894
|
let t70;
|
|
885
|
-
if ($[
|
|
886
|
-
t70 = t("composer.clear.
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
895
|
+
if ($[227] !== t) {
|
|
896
|
+
t70 = t("composer.clear.description");
|
|
897
|
+
$[227] = t;
|
|
898
|
+
$[228] = t70;
|
|
889
899
|
} else {
|
|
890
|
-
t70 = $[
|
|
900
|
+
t70 = $[228];
|
|
891
901
|
}
|
|
892
902
|
let t71;
|
|
893
|
-
if ($[
|
|
894
|
-
t71 = t("composer.
|
|
895
|
-
$[
|
|
896
|
-
$[
|
|
903
|
+
if ($[229] !== t) {
|
|
904
|
+
t71 = t("composer.clear.confirm");
|
|
905
|
+
$[229] = t;
|
|
906
|
+
$[230] = t71;
|
|
897
907
|
} else {
|
|
898
|
-
t71 = $[
|
|
908
|
+
t71 = $[230];
|
|
899
909
|
}
|
|
900
910
|
let t72;
|
|
901
|
-
if ($[
|
|
902
|
-
t72 =
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
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:
|
|
926
|
+
fallbackMessage: t72,
|
|
909
927
|
onConfirm: controls.forceClearThread,
|
|
910
928
|
onOpenChange: controls.cancelClear
|
|
911
929
|
});
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
914
|
-
$[
|
|
915
|
-
$[
|
|
916
|
-
$[
|
|
917
|
-
$[
|
|
918
|
-
$[
|
|
919
|
-
$[
|
|
920
|
-
} else {
|
|
921
|
-
|
|
922
|
-
}
|
|
923
|
-
let
|
|
924
|
-
if ($[
|
|
925
|
-
|
|
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,
|
|
945
|
+
children: [t26, t27, t67, t73]
|
|
928
946
|
});
|
|
929
|
-
$[
|
|
930
|
-
$[
|
|
931
|
-
$[
|
|
932
|
-
$[
|
|
933
|
-
$[
|
|
947
|
+
$[241] = t26;
|
|
948
|
+
$[242] = t27;
|
|
949
|
+
$[243] = t67;
|
|
950
|
+
$[244] = t73;
|
|
951
|
+
$[245] = t74;
|
|
934
952
|
} else {
|
|
935
|
-
|
|
953
|
+
t74 = $[245];
|
|
936
954
|
}
|
|
937
|
-
return
|
|
955
|
+
return t74;
|
|
938
956
|
}
|
|
939
957
|
function _temp4(event) {
|
|
940
958
|
event.currentTarget.toggleAttribute("data-text-cursor", surfacePartOf(event.target, event.currentTarget) !== "action");
|