@adecore/agents-react 0.54.15 → 0.55.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.
- package/dist/agents/AgentModelLabel.d.ts +5 -0
- package/dist/agents/AgentModelLabel.js +32 -7
- package/dist/chat/account-choice.d.ts +1 -0
- package/dist/chat/account-choice.js +13 -4
- package/dist/chat/mentions.d.ts +24 -2
- package/dist/chat/mentions.js +84 -10
- package/dist/chat/subagent-list.d.ts +0 -1
- package/dist/chat/subagent-list.js +1 -9
- package/dist/chat/tag-suggestions.d.ts +22 -0
- package/dist/chat/tag-suggestions.js +71 -0
- package/dist/chat/ui/Composer.js +489 -447
- package/dist/chat/ui/ComposerInput.d.ts +1 -0
- package/dist/chat/ui/ComposerInput.js +9 -1
- package/dist/chat/ui/Markdown.js +41 -25
- package/dist/chat/ui/NamedChip.d.ts +5 -0
- package/dist/chat/ui/NamedChip.js +118 -0
- package/dist/chat/ui/Pickers.d.ts +0 -4
- package/dist/chat/ui/Pickers.js +1 -141
- package/dist/chat/ui/PromptEditor.js +2 -1
- package/dist/chat/ui/ReferenceChip.d.ts +3 -2
- package/dist/chat/ui/ReferenceChip.js +58 -36
- package/dist/chat/ui/RunSettings.d.ts +3 -2
- package/dist/chat/ui/RunSettings.js +386 -361
- package/dist/chat/ui/SubagentInfo.js +98 -114
- package/dist/chat/ui/SubagentTimeline.js +65 -43
- package/dist/chat/ui/Timeline.js +14 -8
- package/dist/chat/ui/chip-clipboard.js +10 -0
- package/dist/chat/ui/composer/ComposerControls.d.ts +6 -1
- package/dist/chat/ui/composer/ComposerControls.js +171 -158
- package/dist/chat/ui/composer/ComposerMenu.js +187 -55
- package/dist/chat/ui/composer/ComposerPlusMenu.d.ts +18 -0
- package/dist/chat/ui/composer/ComposerPlusMenu.js +400 -0
- package/dist/chat/ui/composer/ComposerStatusLine.d.ts +4 -0
- package/dist/chat/ui/composer/ComposerStatusLine.js +239 -0
- package/dist/chat/ui/composer/chips.d.ts +2 -0
- package/dist/chat/ui/composer/chips.js +66 -5
- package/dist/chat/ui/composer/insert.d.ts +1 -0
- package/dist/chat/ui/composer/insert.js +24 -0
- package/dist/chat/ui/composer/use-composer-menus.js +34 -17
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +10 -2
- package/dist/chat/ui/composer/use-prompt-menus.js +290 -202
- package/dist/chat/ui/covered-bottom.d.ts +1 -0
- package/dist/chat/ui/covered-bottom.js +6 -0
- package/dist/chat/ui/named-chip-look.d.ts +14 -0
- package/dist/chat/ui/named-chip-look.js +72 -0
- package/dist/chat/ui/rehype-chips.js +13 -2
- package/dist/host-hooks.d.ts +2 -1
- package/dist/host-hooks.js +6 -0
- package/dist/host.d.ts +17 -0
- package/dist/index.d.ts +1 -1
- package/dist/locales/en/agent-chat.d.ts +14 -2
- package/dist/locales/en/agent-chat.js +16 -4
- package/dist/locales/nl/agent-chat.d.ts +14 -2
- package/dist/locales/nl/agent-chat.js +16 -4
- package/dist/state/chats.d.ts +1 -0
- package/dist/state/chats.js +45 -0
- package/package.json +9 -9
- package/src/agents/AgentModelLabel.tsx +10 -1
- package/src/chat/account-choice.ts +8 -0
- package/src/chat/mentions.ts +110 -13
- package/src/chat/subagent-list.ts +1 -14
- package/src/chat/tag-suggestions.ts +121 -0
- package/src/chat/ui/Composer.tsx +24 -12
- package/src/chat/ui/ComposerInput.tsx +13 -1
- package/src/chat/ui/Markdown.tsx +5 -0
- package/src/chat/ui/NamedChip.tsx +34 -0
- package/src/chat/ui/Pickers.tsx +1 -51
- package/src/chat/ui/PromptEditor.tsx +7 -1
- package/src/chat/ui/ReferenceChip.tsx +15 -4
- package/src/chat/ui/RunSettings.tsx +51 -29
- package/src/chat/ui/SubagentInfo.tsx +17 -17
- package/src/chat/ui/SubagentTimeline.tsx +7 -2
- package/src/chat/ui/Timeline.tsx +11 -5
- package/src/chat/ui/chip-clipboard.ts +8 -1
- package/src/chat/ui/composer/ComposerControls.tsx +24 -17
- package/src/chat/ui/composer/ComposerMenu.tsx +83 -15
- package/src/chat/ui/composer/ComposerPlusMenu.tsx +158 -0
- package/src/chat/ui/composer/ComposerStatusLine.tsx +94 -0
- package/src/chat/ui/composer/chips.ts +78 -7
- package/src/chat/ui/composer/insert.ts +12 -0
- package/src/chat/ui/composer/use-composer-menus.ts +5 -2
- package/src/chat/ui/composer/use-prompt-menus.ts +55 -10
- package/src/chat/ui/covered-bottom.ts +7 -0
- package/src/chat/ui/named-chip-look.ts +64 -0
- package/src/chat/ui/rehype-chips.ts +17 -2
- package/src/host-hooks.ts +11 -1
- package/src/host.ts +29 -0
- package/src/index.ts +2 -0
- package/src/locales/en/agent-chat.ts +16 -4
- package/src/locales/nl/agent-chat.ts +16 -4
- package/src/state/chats.ts +26 -0
package/dist/chat/ui/Composer.js
CHANGED
|
@@ -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(
|
|
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] !==
|
|
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] =
|
|
297
|
-
$[46] =
|
|
298
|
-
$[47] =
|
|
299
|
-
$[48] =
|
|
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 = $[
|
|
300
|
+
t16 = $[48];
|
|
305
301
|
}
|
|
306
|
-
const
|
|
302
|
+
const sigils = t16;
|
|
307
303
|
let t17;
|
|
308
|
-
if ($[
|
|
309
|
-
t17 =
|
|
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
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
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
|
-
|
|
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 ($[
|
|
334
|
-
t19 =
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
339
|
+
if ($[60] !== t18) {
|
|
340
|
+
t19 = [t18, LEAVE_DROPS_TO_THE_CARD];
|
|
341
|
+
$[60] = t18;
|
|
342
|
+
$[61] = t19;
|
|
337
343
|
} else {
|
|
338
|
-
t19 = $[
|
|
344
|
+
t19 = $[61];
|
|
339
345
|
}
|
|
340
|
-
const
|
|
346
|
+
const editorExtensions = t19;
|
|
341
347
|
let t20;
|
|
342
|
-
if ($[
|
|
343
|
-
t20 =
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
348
|
+
if ($[62] !== chatId) {
|
|
349
|
+
t20 = () => timelineAtEnd(chatId);
|
|
350
|
+
$[62] = chatId;
|
|
351
|
+
$[63] = t20;
|
|
346
352
|
} else {
|
|
347
|
-
t20 = $[
|
|
353
|
+
t20 = $[63];
|
|
348
354
|
}
|
|
349
|
-
const
|
|
355
|
+
const atEnd = useSyncExternalStore(subscribeTimelineEnd, t20, _temp3);
|
|
350
356
|
let t21;
|
|
351
|
-
if ($[
|
|
352
|
-
t21 =
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
357
|
+
if ($[64] !== info.queue) {
|
|
358
|
+
t21 = info.queue ?? [];
|
|
359
|
+
$[64] = info.queue;
|
|
360
|
+
$[65] = t21;
|
|
355
361
|
} else {
|
|
356
|
-
t21 = $[
|
|
362
|
+
t21 = $[65];
|
|
357
363
|
}
|
|
358
|
-
const
|
|
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
|
-
|
|
362
|
-
|
|
375
|
+
let t24;
|
|
376
|
+
if ($[68] !== focused) {
|
|
377
|
+
t23 = () => {
|
|
363
378
|
if (focused) {
|
|
364
379
|
inputRef.current?.focus();
|
|
365
380
|
}
|
|
366
381
|
};
|
|
367
|
-
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
382
|
+
t24 = [focused];
|
|
383
|
+
$[68] = focused;
|
|
384
|
+
$[69] = t23;
|
|
385
|
+
$[70] = t24;
|
|
371
386
|
} else {
|
|
372
|
-
|
|
373
|
-
|
|
387
|
+
t23 = $[69];
|
|
388
|
+
t24 = $[70];
|
|
374
389
|
}
|
|
375
|
-
useEffect(
|
|
376
|
-
let
|
|
377
|
-
if ($[
|
|
378
|
-
|
|
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
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
} else {
|
|
400
|
-
|
|
401
|
-
}
|
|
402
|
-
const onKeyDown =
|
|
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
|
|
405
|
-
if ($[
|
|
406
|
-
|
|
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
|
-
$[
|
|
414
|
-
$[
|
|
428
|
+
$[81] = writable;
|
|
429
|
+
$[82] = t26;
|
|
415
430
|
} else {
|
|
416
|
-
|
|
431
|
+
t26 = $[82];
|
|
417
432
|
}
|
|
418
|
-
const pressSurface =
|
|
419
|
-
const
|
|
420
|
-
let
|
|
421
|
-
if ($[
|
|
422
|
-
|
|
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
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
454
|
+
$[83] = atEnd;
|
|
455
|
+
$[84] = chatId;
|
|
456
|
+
$[85] = readOnly;
|
|
457
|
+
$[86] = t;
|
|
458
|
+
$[87] = t28;
|
|
444
459
|
} else {
|
|
445
|
-
|
|
460
|
+
t28 = $[87];
|
|
446
461
|
}
|
|
447
|
-
let
|
|
448
|
-
if ($[
|
|
449
|
-
|
|
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
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
468
|
+
$[88] = chatId;
|
|
469
|
+
$[89] = workflowPill;
|
|
470
|
+
$[90] = t29;
|
|
456
471
|
} else {
|
|
457
|
-
|
|
472
|
+
t29 = $[90];
|
|
458
473
|
}
|
|
459
|
-
const
|
|
460
|
-
let
|
|
461
|
-
if ($[
|
|
462
|
-
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
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
|
-
|
|
481
|
+
t31 = $[92];
|
|
467
482
|
}
|
|
468
|
-
const
|
|
469
|
-
let
|
|
470
|
-
if ($[
|
|
471
|
-
|
|
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
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
492
|
+
$[93] = chatId;
|
|
493
|
+
$[94] = focused;
|
|
494
|
+
$[95] = host.ComposerHeaderSlot;
|
|
495
|
+
$[96] = scope.id;
|
|
496
|
+
$[97] = writable;
|
|
497
|
+
$[98] = t33;
|
|
483
498
|
} else {
|
|
484
|
-
|
|
499
|
+
t33 = $[98];
|
|
485
500
|
}
|
|
486
501
|
const T0 = PromptComposer;
|
|
487
|
-
const
|
|
488
|
-
const
|
|
489
|
-
let
|
|
490
|
-
if ($[
|
|
491
|
-
|
|
492
|
-
$[
|
|
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
|
-
|
|
509
|
+
t36 = $[99];
|
|
504
510
|
}
|
|
511
|
+
const t37 = writable && "data-[text-cursor]:cursor-text";
|
|
505
512
|
let t38;
|
|
506
|
-
if ($[
|
|
507
|
-
t38 =
|
|
508
|
-
|
|
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
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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
|
-
|
|
530
|
+
t39 = $[104];
|
|
531
531
|
}
|
|
532
|
+
const t40 = capabilities?.goals;
|
|
532
533
|
let t41;
|
|
533
|
-
if ($[
|
|
534
|
-
t41 =
|
|
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
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
555
|
+
$[109] = chatId;
|
|
556
|
+
$[110] = compactionOffer;
|
|
557
|
+
$[111] = controls.compact;
|
|
558
|
+
$[112] = scope;
|
|
559
|
+
$[113] = t42;
|
|
545
560
|
} else {
|
|
546
|
-
|
|
561
|
+
t42 = $[113];
|
|
547
562
|
}
|
|
548
|
-
let
|
|
549
|
-
if ($[
|
|
550
|
-
|
|
563
|
+
let t43;
|
|
564
|
+
if ($[114] !== menus) {
|
|
565
|
+
t43 = /*#__PURE__*/_jsx(ComposerMenu, {
|
|
551
566
|
menus: menus
|
|
552
567
|
});
|
|
553
|
-
$[
|
|
554
|
-
$[
|
|
568
|
+
$[114] = menus;
|
|
569
|
+
$[115] = t43;
|
|
555
570
|
} else {
|
|
556
|
-
|
|
571
|
+
t43 = $[115];
|
|
557
572
|
}
|
|
558
|
-
let
|
|
559
|
-
if ($[
|
|
560
|
-
|
|
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
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
$[
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
582
|
+
$[116] = chatId;
|
|
583
|
+
$[117] = info.queuePaused;
|
|
584
|
+
$[118] = queue;
|
|
585
|
+
$[119] = takeBack;
|
|
586
|
+
$[120] = takingBack;
|
|
587
|
+
$[121] = t44;
|
|
573
588
|
} else {
|
|
574
|
-
|
|
589
|
+
t44 = $[121];
|
|
575
590
|
}
|
|
576
|
-
let
|
|
577
|
-
if ($[
|
|
578
|
-
|
|
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
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
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
|
-
|
|
608
|
+
t45 = $[128];
|
|
594
609
|
}
|
|
595
|
-
let
|
|
596
|
-
if ($[
|
|
597
|
-
|
|
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
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
616
|
+
$[129] = box.removeAttachment;
|
|
617
|
+
$[130] = draft.attachments;
|
|
618
|
+
$[131] = t46;
|
|
604
619
|
} else {
|
|
605
|
-
|
|
620
|
+
t46 = $[131];
|
|
606
621
|
}
|
|
607
|
-
const
|
|
608
|
-
let
|
|
609
|
-
if ($[
|
|
610
|
-
|
|
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
|
-
$[
|
|
618
|
-
$[
|
|
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] !==
|
|
639
|
-
t49 =
|
|
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:
|
|
660
|
+
disabled: t47,
|
|
646
661
|
tabbable: focused,
|
|
647
662
|
extensions: editorExtensions,
|
|
648
663
|
aria: menus.inputAria,
|
|
649
|
-
onChange:
|
|
664
|
+
onChange: t48,
|
|
650
665
|
onSelectionChange: menus.trackTriggers,
|
|
651
|
-
onBlur:
|
|
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
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
660
|
-
$[
|
|
661
|
-
$[
|
|
662
|
-
$[
|
|
663
|
-
$[
|
|
664
|
-
$[
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
667
|
-
$[
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
$[
|
|
671
|
-
$[
|
|
672
|
-
} else {
|
|
673
|
-
|
|
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
|
|
676
|
-
if ($[
|
|
677
|
-
|
|
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
|
-
$[
|
|
683
|
-
$[
|
|
684
|
-
$[
|
|
697
|
+
$[155] = notice.notice;
|
|
698
|
+
$[156] = notice.tone;
|
|
699
|
+
$[157] = t51;
|
|
685
700
|
} else {
|
|
686
|
-
|
|
701
|
+
t51 = $[157];
|
|
687
702
|
}
|
|
688
|
-
const
|
|
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
|
|
694
|
-
const
|
|
695
|
-
const
|
|
696
|
-
const
|
|
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] !==
|
|
708
|
-
t57 =
|
|
709
|
-
$[158] =
|
|
710
|
-
$[159] =
|
|
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 = $[
|
|
719
|
+
t57 = $[160];
|
|
713
720
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
|
|
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] !==
|
|
727
|
-
t61 =
|
|
728
|
-
|
|
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:
|
|
745
|
+
text: t61,
|
|
731
746
|
provider: info.provider,
|
|
732
747
|
selection: info.selection,
|
|
733
748
|
runtimeMode: info.runtimeMode
|
|
734
749
|
};
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
741
|
-
$[
|
|
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
|
-
|
|
758
|
+
t62 = $[172];
|
|
744
759
|
}
|
|
745
|
-
let
|
|
746
|
-
if ($[
|
|
747
|
-
|
|
748
|
-
visible:
|
|
749
|
-
disabled:
|
|
750
|
-
label:
|
|
751
|
-
kbd:
|
|
752
|
-
onSend:
|
|
753
|
-
onContinue:
|
|
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:
|
|
770
|
+
draft: t62
|
|
756
771
|
};
|
|
757
|
-
$[
|
|
758
|
-
$[
|
|
759
|
-
$[
|
|
760
|
-
$[
|
|
761
|
-
$[
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
} else {
|
|
767
|
-
|
|
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
|
|
770
|
-
if ($[
|
|
771
|
-
|
|
784
|
+
let t64;
|
|
785
|
+
if ($[182] !== files) {
|
|
786
|
+
t64 = picked => {
|
|
772
787
|
files.addFiles(picked);
|
|
773
788
|
inputRef.current?.focus();
|
|
774
789
|
};
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
790
|
+
$[182] = files;
|
|
791
|
+
$[183] = t64;
|
|
777
792
|
} else {
|
|
778
|
-
|
|
793
|
+
t64 = $[183];
|
|
779
794
|
}
|
|
780
|
-
let
|
|
781
|
-
|
|
782
|
-
|
|
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
|
-
$[
|
|
788
|
-
$[
|
|
808
|
+
$[184] = writable;
|
|
809
|
+
$[185] = t65;
|
|
810
|
+
$[186] = t66;
|
|
789
811
|
} else {
|
|
790
|
-
|
|
812
|
+
t65 = $[185];
|
|
813
|
+
t66 = $[186];
|
|
791
814
|
}
|
|
792
|
-
let
|
|
793
|
-
if ($[
|
|
794
|
-
|
|
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:
|
|
822
|
+
attachable: t53,
|
|
823
|
+
emptyDraft: empty,
|
|
824
|
+
sigils: sigils,
|
|
800
825
|
controls: controls,
|
|
801
|
-
send:
|
|
826
|
+
send: t63,
|
|
802
827
|
dictationToolbar: setDictationToolbar,
|
|
803
|
-
onFiles:
|
|
828
|
+
onFiles: t64,
|
|
804
829
|
onRestore: restoreStashed,
|
|
805
|
-
|
|
830
|
+
onStash: toggleStash,
|
|
831
|
+
onSigil: t65,
|
|
832
|
+
insert: t66
|
|
806
833
|
});
|
|
807
|
-
$[
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
$[
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
$[
|
|
815
|
-
$[
|
|
816
|
-
$[
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
$[
|
|
820
|
-
|
|
821
|
-
|
|
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
|
|
824
|
-
if ($[
|
|
825
|
-
|
|
826
|
-
className:
|
|
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: [
|
|
860
|
+
children: [t39, t41, t42, t43, t44, t45, t46, t50, t51, t52, t67]
|
|
830
861
|
});
|
|
831
|
-
$[
|
|
832
|
-
$[
|
|
833
|
-
$[
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
} else {
|
|
847
|
-
|
|
848
|
-
}
|
|
849
|
-
let
|
|
850
|
-
if ($[
|
|
851
|
-
|
|
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:
|
|
858
|
-
denyReason:
|
|
859
|
-
onAllAnswered:
|
|
888
|
+
hasDraft: t34,
|
|
889
|
+
denyReason: t35,
|
|
890
|
+
onAllAnswered: t36,
|
|
860
891
|
hold: hold,
|
|
861
|
-
children:
|
|
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
|
-
$[
|
|
886
|
-
$[
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
889
|
-
$[
|
|
890
|
-
|
|
891
|
-
|
|
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 ($[
|
|
896
|
-
t70 =
|
|
897
|
-
|
|
898
|
-
|
|
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 = $[
|
|
922
|
+
t70 = $[235];
|
|
901
923
|
}
|
|
902
924
|
let t71;
|
|
903
|
-
if ($[
|
|
904
|
-
t71 =
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
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
|
-
|
|
932
|
+
t71 = $[237];
|
|
917
933
|
}
|
|
934
|
+
const t72 = controls.confirmClear;
|
|
918
935
|
let t73;
|
|
919
|
-
if ($[
|
|
920
|
-
t73 = t("composer.
|
|
921
|
-
$[
|
|
922
|
-
$[
|
|
936
|
+
if ($[238] !== t) {
|
|
937
|
+
t73 = t("composer.clear.title");
|
|
938
|
+
$[238] = t;
|
|
939
|
+
$[239] = t73;
|
|
923
940
|
} else {
|
|
924
|
-
t73 = $[
|
|
941
|
+
t73 = $[239];
|
|
925
942
|
}
|
|
926
943
|
let t74;
|
|
927
|
-
if ($[
|
|
928
|
-
t74 =
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
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:
|
|
975
|
+
fallbackMessage: t76,
|
|
935
976
|
onConfirm: controls.forceClearThread,
|
|
936
977
|
onOpenChange: controls.cancelClear
|
|
937
978
|
});
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
$[
|
|
941
|
-
$[
|
|
942
|
-
$[
|
|
943
|
-
$[
|
|
944
|
-
$[
|
|
945
|
-
$[
|
|
946
|
-
} else {
|
|
947
|
-
|
|
948
|
-
}
|
|
949
|
-
let
|
|
950
|
-
if ($[
|
|
951
|
-
|
|
952
|
-
className:
|
|
953
|
-
children: [
|
|
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
|
-
$[
|
|
956
|
-
$[
|
|
957
|
-
$[
|
|
958
|
-
$[
|
|
959
|
-
$[
|
|
996
|
+
$[254] = t28;
|
|
997
|
+
$[255] = t29;
|
|
998
|
+
$[256] = t70;
|
|
999
|
+
$[257] = t71;
|
|
1000
|
+
$[258] = t77;
|
|
1001
|
+
$[259] = t78;
|
|
960
1002
|
} else {
|
|
961
|
-
|
|
1003
|
+
t78 = $[259];
|
|
962
1004
|
}
|
|
963
|
-
return
|
|
1005
|
+
return t78;
|
|
964
1006
|
}
|
|
965
1007
|
function _temp4(event) {
|
|
966
1008
|
event.currentTarget.toggleAttribute("data-text-cursor", surfacePartOf(event.target, event.currentTarget) !== "action");
|