@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.830
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/build/export-map.json +1 -1
- package/dist/{chunk-DU6AF77X.cjs → chunk-2BGLALP5.cjs} +14 -14
- package/dist/{chunk-MFYSV7DE.cjs → chunk-56EP4QM2.cjs} +24 -24
- package/dist/{chunk-IHRMX3X6.cjs → chunk-5KSPG3TV.cjs} +357 -357
- package/dist/{chunk-UO6F6LLI.cjs → chunk-5LED4QHZ.cjs} +508 -451
- package/dist/{chunk-IMDYB77M.cjs → chunk-CAGQAMJ6.cjs} +21 -21
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-D2LXFMZI.cjs} +22 -22
- package/dist/{chunk-LNXRTVOY.cjs → chunk-DUGOOTER.cjs} +11 -11
- package/dist/{chunk-R3PKAIX3.cjs → chunk-E6W4YDPS.cjs} +2 -2
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-FFFN4IY2.cjs} +5 -5
- package/dist/{chunk-THPAGFT6.cjs → chunk-HYCMMECU.cjs} +44 -44
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-HYGWRUEM.cjs} +3 -3
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-M75723HD.cjs} +8 -8
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-PUXYAHH3.cjs} +3 -3
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-QTLWU6FY.cjs} +5 -5
- package/dist/{chunk-HMC2IWV4.cjs → chunk-RRPID7Z7.cjs} +6 -6
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-SAW7V7CU.cjs} +13 -13
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-TUMSVFVS.cjs} +4 -4
- package/dist/{chunk-DWSU35QQ.cjs → chunk-ULF4ZOUM.cjs} +57 -57
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-WCCE4WF3.cjs} +50 -50
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-WWDNLMB7.cjs} +16 -16
- package/dist/{chunk-PRZAEPGG.cjs → chunk-WZYBUJJG.cjs} +41 -41
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-X425BGXS.cjs} +2 -2
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-4KQQPXPM.cjs} +9 -9
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +9 -5
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/contact/index.cjs +10 -10
- package/dist/components/docs/index.cjs +13 -13
- package/dist/components/embeds/index.cjs +10 -10
- package/dist/components/faq/index.cjs +11 -11
- package/dist/components/features/index.cjs +9 -9
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +47 -43
- package/dist/components/meeting-scheduler/index.cjs +41 -41
- package/dist/components/navigation/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +13 -9
- package/dist/{devices-AW6BERJF.cjs → devices-H6C4NMIY.cjs} +10 -10
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-KUESE7P6.cjs} +104 -97
- package/dist/index.cjs +17 -13
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-O6IBO5Y5.cjs} +10 -10
- package/dist/{logs-CYA7H4KM.cjs → logs-Y2UCF24Z.cjs} +16 -16
- package/dist/{policies-M6QSFL5G.cjs → policies-J6O3RLJT.cjs} +13 -13
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-RVTFWSU4.cjs} +5 -5
- package/dist/{scripts-Y46ECDDP.cjs → scripts-N67MM4T2.cjs} +16 -16
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-HB7F6KNG.cjs} +13 -13
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-2K3PBCNW.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/ui/actions-menu.tsx +35 -1
|
@@ -36,7 +36,7 @@ var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkQTLWU6FYcjs = require('./chunk-QTLWU6FY.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ var _chunk3B6ZE4EZcjs = require('./chunk-3B6ZE4EZ.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
@@ -3598,7 +3598,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3598
3598
|
{
|
|
3599
3599
|
ref,
|
|
3600
3600
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3601
|
-
|
|
3601
|
+
_chunkQTLWU6FYcjs.CHAT_BLOCK_CLASS,
|
|
3602
3602
|
// v2: the thread owns the space below the card.
|
|
3603
3603
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3604
3604
|
className
|
|
@@ -3606,7 +3606,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3606
3606
|
...props,
|
|
3607
3607
|
children: [
|
|
3608
3608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _51 => _51.explanation, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]) || "Approval required" }),
|
|
3609
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3609
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalWaitingLine, {}),
|
|
3610
3610
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3611
3611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3612
3612
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3638,14 +3638,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3638
3638
|
children: "Reject"
|
|
3639
3639
|
}
|
|
3640
3640
|
)
|
|
3641
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3641
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3642
3642
|
]
|
|
3643
3643
|
}
|
|
3644
3644
|
);
|
|
3645
3645
|
}
|
|
3646
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3646
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkQTLWU6FYcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3647
3647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3648
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3648
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalWaitingLine, {}),
|
|
3649
3649
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3650
3650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3651
3651
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3677,7 +3677,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3677
3677
|
children: "Reject"
|
|
3678
3678
|
}
|
|
3679
3679
|
)
|
|
3680
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3680
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3681
3681
|
] });
|
|
3682
3682
|
}
|
|
3683
3683
|
);
|
|
@@ -4569,7 +4569,7 @@ var thoughtMdClasses = [
|
|
|
4569
4569
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
4570
4570
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
4571
4571
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4572
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
4572
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, {
|
|
4573
4573
|
expanded,
|
|
4574
4574
|
collapsedHeight: 19,
|
|
4575
4575
|
disableTransition: isStreaming
|
|
@@ -4584,7 +4584,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4584
4584
|
setExpanded(!expanded);
|
|
4585
4585
|
}
|
|
4586
4586
|
};
|
|
4587
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4587
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkQTLWU6FYcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4588
4588
|
"div",
|
|
4589
4589
|
{
|
|
4590
4590
|
role: "button",
|
|
@@ -4602,7 +4602,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4602
4602
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEP5KAT6cjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
4603
4603
|
] }),
|
|
4604
4604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk63A4GZMBcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: escapeThinkingTags(text2), textSize: "compact" }) }) }),
|
|
4605
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4605
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded }) })
|
|
4606
4606
|
]
|
|
4607
4607
|
}
|
|
4608
4608
|
) });
|
|
@@ -4765,12 +4765,17 @@ function composeChipLabel(label, lozenge) {
|
|
|
4765
4765
|
label
|
|
4766
4766
|
] });
|
|
4767
4767
|
}
|
|
4768
|
+
var FILL_TAG_CLASS = "h-14 w-full min-w-0 justify-start text-left";
|
|
4769
|
+
function fillLabel(label) {
|
|
4770
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-normal [overflow-wrap:anywhere]", children: label });
|
|
4771
|
+
}
|
|
4768
4772
|
function QuickActionChipSkeleton({
|
|
4769
4773
|
labelCh = 16,
|
|
4770
4774
|
icon = true,
|
|
4771
4775
|
lozenge = false,
|
|
4772
4776
|
size = "default",
|
|
4773
4777
|
variant = "outline",
|
|
4778
|
+
fill = false,
|
|
4774
4779
|
className,
|
|
4775
4780
|
...props
|
|
4776
4781
|
}) {
|
|
@@ -4780,8 +4785,8 @@ function QuickActionChipSkeleton({
|
|
|
4780
4785
|
{
|
|
4781
4786
|
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
4782
4787
|
variant: "outline",
|
|
4783
|
-
size: question ? "sentence" : size,
|
|
4784
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", className),
|
|
4788
|
+
size: question || fill ? "sentence" : size,
|
|
4789
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", fill && FILL_TAG_CLASS, className),
|
|
4785
4790
|
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: size === "large" ? "block size-5" : "block size-4" }) : void 0,
|
|
4786
4791
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4787
4792
|
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: "mr-2 inline-block h-[16px] w-[26px] translate-y-[2px]" }),
|
|
@@ -4814,6 +4819,7 @@ function QuickActionChipButton({
|
|
|
4814
4819
|
className,
|
|
4815
4820
|
loading: loadingProp = false,
|
|
4816
4821
|
labelCh,
|
|
4822
|
+
fill = false,
|
|
4817
4823
|
...props
|
|
4818
4824
|
}) {
|
|
4819
4825
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
@@ -4828,16 +4834,18 @@ function QuickActionChipButton({
|
|
|
4828
4834
|
lozenge: !!lozenge,
|
|
4829
4835
|
size,
|
|
4830
4836
|
variant: variant === "question" ? "question" : "outline",
|
|
4831
|
-
|
|
4837
|
+
fill,
|
|
4838
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, fill && "w-full", className)
|
|
4832
4839
|
}
|
|
4833
4840
|
);
|
|
4834
4841
|
const themedIcon = theme && isQuickActionIconSpec(icon) && !icon.accent ? { ...icon, accent: theme.accent } : icon;
|
|
4835
4842
|
const resolvedLozenge = lozenge === true ? _optionalChain([theme, 'optionalAccess', _78 => _78.lozenge]) : lozenge === false ? void 0 : lozenge;
|
|
4836
4843
|
const resolvedIcon = renderQuickActionIcon(themedIcon);
|
|
4837
|
-
const
|
|
4844
|
+
const composedLabel = composeChipLabel(label, resolvedLozenge);
|
|
4845
|
+
const resolvedLabel = fill ? fillLabel(composedLabel) : composedLabel;
|
|
4838
4846
|
const question = variant === "question";
|
|
4839
4847
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
4840
|
-
const tagSize = question ? "sentence" : size;
|
|
4848
|
+
const tagSize = question || fill ? "sentence" : size;
|
|
4841
4849
|
if (!interactive) {
|
|
4842
4850
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4843
4851
|
_chunkGRHF5SWLcjs.Tag,
|
|
@@ -4847,7 +4855,7 @@ function QuickActionChipButton({
|
|
|
4847
4855
|
size: tagSize,
|
|
4848
4856
|
icon: resolvedIcon,
|
|
4849
4857
|
label: resolvedLabel,
|
|
4850
|
-
className
|
|
4858
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, fill && FILL_TAG_CLASS, className)
|
|
4851
4859
|
}
|
|
4852
4860
|
);
|
|
4853
4861
|
}
|
|
@@ -4865,7 +4873,7 @@ function QuickActionChipButton({
|
|
|
4865
4873
|
"aria-pressed": selected || void 0,
|
|
4866
4874
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4867
4875
|
// A question may be longer than a narrow column: it shrinks and clips there, read from its start.
|
|
4868
|
-
question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
|
|
4876
|
+
fill ? "w-full min-w-0" : question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
|
|
4869
4877
|
className
|
|
4870
4878
|
),
|
|
4871
4879
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4875,7 +4883,7 @@ function QuickActionChipButton({
|
|
|
4875
4883
|
size: tagSize,
|
|
4876
4884
|
icon: resolvedIcon,
|
|
4877
4885
|
label: resolvedLabel,
|
|
4878
|
-
className: question ? "max-w-full" : void 0
|
|
4886
|
+
className: fill ? FILL_TAG_CLASS : question ? "max-w-full" : void 0
|
|
4879
4887
|
}
|
|
4880
4888
|
)
|
|
4881
4889
|
}
|
|
@@ -4886,6 +4894,7 @@ function QuickActionChipFromData({
|
|
|
4886
4894
|
defaultTheme,
|
|
4887
4895
|
defaultLozenge,
|
|
4888
4896
|
interactive = true,
|
|
4897
|
+
fill,
|
|
4889
4898
|
className,
|
|
4890
4899
|
...props
|
|
4891
4900
|
}) {
|
|
@@ -4904,6 +4913,7 @@ function QuickActionChipFromData({
|
|
|
4904
4913
|
onHoverStart: chip.onHoverStart,
|
|
4905
4914
|
onHoverEnd: chip.onHoverEnd,
|
|
4906
4915
|
interactive,
|
|
4916
|
+
fill,
|
|
4907
4917
|
className
|
|
4908
4918
|
}
|
|
4909
4919
|
);
|
|
@@ -4943,7 +4953,7 @@ var iconTint = {
|
|
|
4943
4953
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4944
4954
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4945
4955
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4946
|
-
const { innerRef, containerStyle } =
|
|
4956
|
+
const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded });
|
|
4947
4957
|
const hasDetails = Boolean(details);
|
|
4948
4958
|
const isV2 = useChatAppearance() === _chunkIBD2FPSXcjs.CHAT_APPEARANCE.V2;
|
|
4949
4959
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -4979,7 +4989,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4979
4989
|
children: title
|
|
4980
4990
|
}
|
|
4981
4991
|
),
|
|
4982
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4992
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded })
|
|
4983
4993
|
]
|
|
4984
4994
|
}
|
|
4985
4995
|
),
|
|
@@ -5228,9 +5238,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5228
5238
|
)
|
|
5229
5239
|
] }),
|
|
5230
5240
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5231
|
-
|
|
5241
|
+
_chunkQTLWU6FYcjs.TicketStatusTag,
|
|
5232
5242
|
{
|
|
5233
|
-
...
|
|
5243
|
+
..._chunkQTLWU6FYcjs.resolveStatusTagProps.call(void 0, {
|
|
5234
5244
|
status: ticketInfo.status,
|
|
5235
5245
|
statusKind: ticketInfo.statusKind,
|
|
5236
5246
|
statusName: ticketInfo.statusName,
|
|
@@ -5869,11 +5879,11 @@ var remarkMentionChips = () => {
|
|
|
5869
5879
|
// src/components/chat/tool-execution-display.tsx
|
|
5870
5880
|
|
|
5871
5881
|
|
|
5872
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5882
|
+
var COMMAND_BODY_KEYS = new Set(_chunkQTLWU6FYcjs.COMMAND_BODY_ARG_KEYS);
|
|
5873
5883
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5874
5884
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5875
5885
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5876
|
-
const { innerRef, containerStyle } =
|
|
5886
|
+
const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded });
|
|
5877
5887
|
const isClient = assistantType === "fae";
|
|
5878
5888
|
const isClientView = variant === "client";
|
|
5879
5889
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5916,7 +5926,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5916
5926
|
}
|
|
5917
5927
|
),
|
|
5918
5928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
5919
|
-
!isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5929
|
+
!isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5920
5930
|
] });
|
|
5921
5931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5922
5932
|
"div",
|
|
@@ -5926,7 +5936,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5926
5936
|
// The command running block keeps its bordered box in both chats
|
|
5927
5937
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5928
5938
|
"flex w-full flex-col overflow-hidden",
|
|
5929
|
-
|
|
5939
|
+
_chunkQTLWU6FYcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5930
5940
|
className
|
|
5931
5941
|
),
|
|
5932
5942
|
...props,
|
|
@@ -5937,7 +5947,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5937
5947
|
// It reads as a card: what was done, then one status line under it.
|
|
5938
5948
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left", children: [
|
|
5939
5949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5941
5951
|
] })
|
|
5942
5952
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5943
5953
|
hasBody ? (
|
|
@@ -5956,9 +5966,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5956
5966
|
)
|
|
5957
5967
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-start gap-[var(--spacing-system-xs)] p-[var(--spacing-system-s)] text-left", children: headerContent }),
|
|
5958
5968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: hasBody && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start gap-0 border-t border-ods-border p-[var(--spacing-system-sf)] text-h6", children: [
|
|
5959
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5969
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ArgRow, { argKey: key, value }, key)),
|
|
5960
5970
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5961
|
-
|
|
5971
|
+
_chunkQTLWU6FYcjs.ResultBlock,
|
|
5962
5972
|
{
|
|
5963
5973
|
result: message.result,
|
|
5964
5974
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -6065,7 +6075,7 @@ var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+
|
|
|
6065
6075
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
6066
6076
|
function formatMessageTimestamp(timestamp) {
|
|
6067
6077
|
const time = _chunkIBD2FPSXcjs.formatTime.call(void 0, timestamp);
|
|
6068
|
-
return
|
|
6078
|
+
return _chunkQTLWU6FYcjs.isToday.call(void 0, timestamp) ? time : `${_chunkIBD2FPSXcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
6069
6079
|
}
|
|
6070
6080
|
function normalizeContent(content) {
|
|
6071
6081
|
if (typeof content === "string") {
|
|
@@ -6309,7 +6319,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6309
6319
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
6310
6320
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
6311
6321
|
// An agent with no picture shows its packaged mark, never initials.
|
|
6312
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
6313
6323
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6314
6324
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
6315
6325
|
{
|
|
@@ -6396,7 +6406,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6396
6406
|
);
|
|
6397
6407
|
} else if (segment.type === "approval_batch") {
|
|
6398
6408
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6399
|
-
|
|
6409
|
+
_chunkQTLWU6FYcjs.ApprovalBatchMessage,
|
|
6400
6410
|
{
|
|
6401
6411
|
data: segment.data,
|
|
6402
6412
|
status: segment.status,
|
|
@@ -7024,7 +7034,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
7024
7034
|
const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _135 => _135[lastSegments.length - 1]]);
|
|
7025
7035
|
const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
|
|
7026
7036
|
const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
|
|
7027
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7037
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
7028
7038
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
7029
7039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7030
7040
|
"div",
|
|
@@ -8237,39 +8247,127 @@ function QuickActionWall({
|
|
|
8237
8247
|
);
|
|
8238
8248
|
}
|
|
8239
8249
|
|
|
8250
|
+
// src/components/page-topic-label.tsx
|
|
8251
|
+
|
|
8252
|
+
function PageTopicLabel({ className }) {
|
|
8253
|
+
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
8254
|
+
if (!topic) return null;
|
|
8255
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8256
|
+
"p",
|
|
8257
|
+
{
|
|
8258
|
+
"data-page-topic": topic,
|
|
8259
|
+
title: "Page topic",
|
|
8260
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "leading-none text-ods-text-muted opacity-60 text-badge", className),
|
|
8261
|
+
children: topic
|
|
8262
|
+
}
|
|
8263
|
+
);
|
|
8264
|
+
}
|
|
8265
|
+
|
|
8240
8266
|
// src/components/chat/mingo-quick-action-wall.tsx
|
|
8241
8267
|
|
|
8268
|
+
var QUICK_ACTION_SET_SLOTS = 4;
|
|
8269
|
+
function QuickActionSet({
|
|
8270
|
+
chips,
|
|
8271
|
+
theme,
|
|
8272
|
+
loading: loadingProp = false,
|
|
8273
|
+
label = "Quick actions",
|
|
8274
|
+
showTopic: showTopicProp,
|
|
8275
|
+
className
|
|
8276
|
+
}) {
|
|
8277
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
8278
|
+
const topicStamp = _chunkIX2E3AN7cjs.usePageTopicStamp.call(void 0, );
|
|
8279
|
+
const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
|
|
8280
|
+
const overflows = chips.length > QUICK_ACTION_SET_SLOTS;
|
|
8281
|
+
const shown = overflows ? chips.slice(0, QUICK_ACTION_SET_SLOTS - 1) : chips;
|
|
8282
|
+
const rest = overflows ? chips.slice(QUICK_ACTION_SET_SLOTS - 1) : [];
|
|
8283
|
+
const empty = loading ? 0 : QUICK_ACTION_SET_SLOTS - shown.length - (overflows ? 1 : 0);
|
|
8284
|
+
const moreItems = rest.map((chip) => {
|
|
8285
|
+
const icon = theme && isQuickActionIconSpec(chip.icon) && !chip.icon.accent ? { ...chip.icon, accent: theme.accent } : chip.icon;
|
|
8286
|
+
return { id: chip.id, label: chip.label, icon: renderQuickActionIcon(icon), onClick: chip.onSelect };
|
|
8287
|
+
});
|
|
8288
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8289
|
+
"div",
|
|
8290
|
+
{
|
|
8291
|
+
role: "group",
|
|
8292
|
+
"aria-label": label,
|
|
8293
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] @container", className),
|
|
8294
|
+
children: [
|
|
8295
|
+
showTopic && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTopicLabel, { className: "text-right" }),
|
|
8296
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: QUICK_ACTION_SET_SLOTS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8297
|
+
QuickActionChipButton,
|
|
8298
|
+
{
|
|
8299
|
+
loading: true,
|
|
8300
|
+
fill: true,
|
|
8301
|
+
label: "",
|
|
8302
|
+
icon: true,
|
|
8303
|
+
labelCh: WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length],
|
|
8304
|
+
"data-loading-item": true
|
|
8305
|
+
}
|
|
8306
|
+
) }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8307
|
+
shown.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipFromData, { chip, defaultTheme: theme, fill: true, "data-loading-item": true }) }, chip.id)),
|
|
8308
|
+
overflows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8309
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
8310
|
+
{
|
|
8311
|
+
groups: [{ items: moreItems }],
|
|
8312
|
+
align: "end",
|
|
8313
|
+
side: "top",
|
|
8314
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8315
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8316
|
+
{
|
|
8317
|
+
variant: "card",
|
|
8318
|
+
type: "button",
|
|
8319
|
+
"aria-label": `More quick actions (${rest.length})`,
|
|
8320
|
+
className: "w-full min-w-0",
|
|
8321
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8322
|
+
QuickActionChipButton,
|
|
8323
|
+
{
|
|
8324
|
+
interactive: false,
|
|
8325
|
+
fill: true,
|
|
8326
|
+
label: `More (${rest.length})`,
|
|
8327
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 16 })
|
|
8328
|
+
}
|
|
8329
|
+
)
|
|
8330
|
+
}
|
|
8331
|
+
)
|
|
8332
|
+
}
|
|
8333
|
+
) }),
|
|
8334
|
+
Array.from({ length: empty }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { unused: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipButton, { loading: true, fill: true, label: "", icon: true }) }, `empty-${i}`))
|
|
8335
|
+
] }) })
|
|
8336
|
+
]
|
|
8337
|
+
}
|
|
8338
|
+
);
|
|
8339
|
+
}
|
|
8340
|
+
function Slot({ unused = false, children }) {
|
|
8341
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8342
|
+
"div",
|
|
8343
|
+
{
|
|
8344
|
+
"data-testid": "quick-action-slot",
|
|
8345
|
+
"aria-hidden": unused || void 0,
|
|
8346
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0", unused && "invisible"),
|
|
8347
|
+
children
|
|
8348
|
+
}
|
|
8349
|
+
);
|
|
8350
|
+
}
|
|
8242
8351
|
function MingoQuickActionWall({
|
|
8243
8352
|
quickActions,
|
|
8244
|
-
onQuickActionHover,
|
|
8245
|
-
onQuickActionHoverEnd,
|
|
8246
|
-
agentSlug = "mingo",
|
|
8247
8353
|
loading = false,
|
|
8354
|
+
showTopic,
|
|
8248
8355
|
className
|
|
8249
8356
|
}) {
|
|
8250
8357
|
if (quickActions.length === 0 && !loading) return null;
|
|
8251
8358
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8252
|
-
|
|
8359
|
+
QuickActionSet,
|
|
8253
8360
|
{
|
|
8254
8361
|
chips: quickActions.map((action) => ({
|
|
8255
8362
|
id: action.id,
|
|
8256
8363
|
label: action.label,
|
|
8257
8364
|
icon: action.icon,
|
|
8258
8365
|
variant: action.variant,
|
|
8259
|
-
onSelect: action.onClick
|
|
8260
|
-
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _155 => _155(action)]),
|
|
8261
|
-
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _156 => _156()])
|
|
8366
|
+
onSelect: action.onClick
|
|
8262
8367
|
})),
|
|
8263
|
-
agentSlug,
|
|
8264
8368
|
loading,
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
dragScroll: true,
|
|
8268
|
-
fade: ["left", "right"],
|
|
8269
|
-
fadeSize: { left: 32 },
|
|
8270
|
-
fadeColor: "var(--color-bg)",
|
|
8271
|
-
copyGap: "var(--spacing-system-xxs)",
|
|
8272
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "max-h-44 shrink-0", className)
|
|
8369
|
+
showTopic,
|
|
8370
|
+
className
|
|
8273
8371
|
}
|
|
8274
8372
|
);
|
|
8275
8373
|
}
|
|
@@ -8368,11 +8466,11 @@ var MINGO_DIALOG_STATUS_GLYPHS = {
|
|
|
8368
8466
|
};
|
|
8369
8467
|
function dialogOwnedByOther(dialog, ownedByOther, currentUserId) {
|
|
8370
8468
|
if (ownedByOther) return ownedByOther(dialog);
|
|
8371
|
-
const ownerId = _optionalChain([dialog, 'access',
|
|
8469
|
+
const ownerId = _optionalChain([dialog, 'access', _155 => _155.owner, 'optionalAccess', _156 => _156.id]);
|
|
8372
8470
|
return !!currentUserId && !!ownerId && ownerId !== currentUserId;
|
|
8373
8471
|
}
|
|
8374
8472
|
function mingoDialogStatusOf(dialog, statusOf) {
|
|
8375
|
-
return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall',
|
|
8473
|
+
return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _157 => _157(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
|
|
8376
8474
|
}
|
|
8377
8475
|
function ChatListLoadError({ onRetry, className }) {
|
|
8378
8476
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col items-center gap-[var(--spacing-system-m)] text-center", className), children: [
|
|
@@ -8410,7 +8508,7 @@ function useLoadMoreSentinel({
|
|
|
8410
8508
|
threshold: 0.1
|
|
8411
8509
|
};
|
|
8412
8510
|
const observer = new IntersectionObserver(([entry]) => {
|
|
8413
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
8511
|
+
if (_optionalChain([entry, 'optionalAccess', _158 => _158.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _159 => _159.current, 'optionalCall', _160 => _160()]);
|
|
8414
8512
|
}, options);
|
|
8415
8513
|
observer.observe(sentinel);
|
|
8416
8514
|
return () => observer.disconnect();
|
|
@@ -8503,11 +8601,11 @@ function MingoChatHistoryRow({
|
|
|
8503
8601
|
...props
|
|
8504
8602
|
}) {
|
|
8505
8603
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
|
|
8506
|
-
const title = _optionalChain([dialog, 'optionalAccess',
|
|
8507
|
-
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess',
|
|
8604
|
+
const title = _optionalChain([dialog, 'optionalAccess', _161 => _161.title]) || "Untitled Chat";
|
|
8605
|
+
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _162 => _162.unreadMessagesCount]), () => ( 0));
|
|
8508
8606
|
const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
|
|
8509
|
-
const owner = _optionalChain([dialog, 'optionalAccess',
|
|
8510
|
-
const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess',
|
|
8607
|
+
const owner = _optionalChain([dialog, 'optionalAccess', _163 => _163.owner]);
|
|
8608
|
+
const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _164 => _164.name]) || _optionalChain([owner, 'optionalAccess', _165 => _165.avatarUrl]));
|
|
8511
8609
|
const [menuOpen, setMenuOpen] = _react.useState.call(void 0, false);
|
|
8512
8610
|
const menuItems = dialog ? chatDialogMenuItems({
|
|
8513
8611
|
onCopyLink: onRequestCopyLink && (() => onRequestCopyLink(dialog)),
|
|
@@ -8515,7 +8613,7 @@ function MingoChatHistoryRow({
|
|
|
8515
8613
|
onCompact: onRequestCompact && (() => onRequestCompact(dialog)),
|
|
8516
8614
|
onArchive: onRequestArchive && (() => onRequestArchive(dialog))
|
|
8517
8615
|
}) : [];
|
|
8518
|
-
const select = () => dialog && _optionalChain([onSelect, 'optionalCall',
|
|
8616
|
+
const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _166 => _166(dialog.id)]);
|
|
8519
8617
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8520
8618
|
"div",
|
|
8521
8619
|
{
|
|
@@ -8583,7 +8681,7 @@ function MingoChatHistoryRow({
|
|
|
8583
8681
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
8584
8682
|
),
|
|
8585
8683
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8586
|
-
|
|
8684
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
8587
8685
|
{
|
|
8588
8686
|
triggerAriaLabel: "Chat actions",
|
|
8589
8687
|
groups: [{ items: menuItems }],
|
|
@@ -8613,7 +8711,7 @@ function MingoChatHistoryRow({
|
|
|
8613
8711
|
"span",
|
|
8614
8712
|
{
|
|
8615
8713
|
onClick: select,
|
|
8616
|
-
title: _optionalChain([owner, 'optionalAccess',
|
|
8714
|
+
title: _optionalChain([owner, 'optionalAccess', _167 => _167.name]) || void 0,
|
|
8617
8715
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8618
8716
|
"absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
|
|
8619
8717
|
hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
|
|
@@ -8623,9 +8721,9 @@ function MingoChatHistoryRow({
|
|
|
8623
8721
|
{
|
|
8624
8722
|
variant: "round",
|
|
8625
8723
|
sizePx: 24,
|
|
8626
|
-
src: _optionalChain([owner, 'optionalAccess',
|
|
8627
|
-
alt: _optionalChain([owner, 'optionalAccess',
|
|
8628
|
-
fallback: _optionalChain([owner, 'optionalAccess',
|
|
8724
|
+
src: _optionalChain([owner, 'optionalAccess', _168 => _168.avatarUrl]) || void 0,
|
|
8725
|
+
alt: _optionalChain([owner, 'optionalAccess', _169 => _169.name]) || void 0,
|
|
8726
|
+
fallback: _optionalChain([owner, 'optionalAccess', _170 => _170.name]) || void 0,
|
|
8629
8727
|
initialsClassName: "text-[10px] text-ods-text-secondary"
|
|
8630
8728
|
}
|
|
8631
8729
|
)
|
|
@@ -8675,7 +8773,7 @@ function MingoChatHistory({
|
|
|
8675
8773
|
}) {
|
|
8676
8774
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
8677
8775
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
8678
|
-
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess',
|
|
8776
|
+
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _171 => _171.trim, 'call', _172 => _172()]);
|
|
8679
8777
|
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkIBD2FPSXcjs.useScrollFade.call(void 0, );
|
|
8680
8778
|
const onScroll = loadMore === "scroll";
|
|
8681
8779
|
const sentinelRef = useLoadMoreSentinel({
|
|
@@ -8761,8 +8859,6 @@ function MingoWelcome({
|
|
|
8761
8859
|
promoStorageKey = DEFAULT_PROMO_STORAGE_KEY,
|
|
8762
8860
|
promoStorage = "local",
|
|
8763
8861
|
quickActions,
|
|
8764
|
-
onQuickActionHover,
|
|
8765
|
-
onQuickActionHoverEnd,
|
|
8766
8862
|
hasExistingChats = false,
|
|
8767
8863
|
dialogHistory,
|
|
8768
8864
|
isLoadingHistory = false,
|
|
@@ -8770,7 +8866,7 @@ function MingoWelcome({
|
|
|
8770
8866
|
loadError = false,
|
|
8771
8867
|
onRetry,
|
|
8772
8868
|
onStartGuideChat,
|
|
8773
|
-
|
|
8869
|
+
quickActionsLoading = false,
|
|
8774
8870
|
className
|
|
8775
8871
|
}) {
|
|
8776
8872
|
const heading = _nullishCoalesce(title, () => ( "Hey, I'm Mingo"));
|
|
@@ -8828,7 +8924,7 @@ function MingoWelcome({
|
|
|
8828
8924
|
onScroll: updateScrollFade,
|
|
8829
8925
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8830
8926
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-l)] px-[var(--spacing-system-l)] py-[var(--spacing-system-xxl)] text-center", children: [
|
|
8831
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8927
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8832
8928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8833
8929
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8834
8930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8859,7 +8955,7 @@ function MingoWelcome({
|
|
|
8859
8955
|
}
|
|
8860
8956
|
)
|
|
8861
8957
|
] }),
|
|
8862
|
-
(onStartGuideChat || quickActions && quickActions.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--
|
|
8958
|
+
(onStartGuideChat || quickActions && quickActions.length > 0 || quickActionsLoading) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
8863
8959
|
onStartGuideChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8864
8960
|
QuickActionChipButton,
|
|
8865
8961
|
{
|
|
@@ -8870,13 +8966,11 @@ function MingoWelcome({
|
|
|
8870
8966
|
className: "self-start"
|
|
8871
8967
|
}
|
|
8872
8968
|
),
|
|
8873
|
-
|
|
8969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8874
8970
|
MingoQuickActionWall,
|
|
8875
8971
|
{
|
|
8876
|
-
quickActions,
|
|
8877
|
-
|
|
8878
|
-
onQuickActionHoverEnd,
|
|
8879
|
-
agentSlug
|
|
8972
|
+
quickActions: _nullishCoalesce(quickActions, () => ( [])),
|
|
8973
|
+
loading: quickActionsLoading && !_optionalChain([quickActions, 'optionalAccess', _173 => _173.length])
|
|
8880
8974
|
}
|
|
8881
8975
|
)
|
|
8882
8976
|
] })
|
|
@@ -8886,22 +8980,6 @@ function MingoWelcome({
|
|
|
8886
8980
|
);
|
|
8887
8981
|
}
|
|
8888
8982
|
|
|
8889
|
-
// src/components/page-topic-label.tsx
|
|
8890
|
-
|
|
8891
|
-
function PageTopicLabel({ className }) {
|
|
8892
|
-
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
8893
|
-
if (!topic) return null;
|
|
8894
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8895
|
-
"p",
|
|
8896
|
-
{
|
|
8897
|
-
"data-page-topic": topic,
|
|
8898
|
-
title: "Page topic",
|
|
8899
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "leading-none text-ods-text-muted opacity-60 text-badge", className),
|
|
8900
|
-
children: topic
|
|
8901
|
-
}
|
|
8902
|
-
);
|
|
8903
|
-
}
|
|
8904
|
-
|
|
8905
8983
|
// src/components/chat/guide-welcome.tsx
|
|
8906
8984
|
|
|
8907
8985
|
|
|
@@ -8915,14 +8993,9 @@ function GuideWelcome({
|
|
|
8915
8993
|
quickActionsLoading = false,
|
|
8916
8994
|
showTopic: showTopicProp,
|
|
8917
8995
|
onQuickAction,
|
|
8918
|
-
onQuickActionHover,
|
|
8919
|
-
onQuickActionHoverEnd,
|
|
8920
|
-
agentSlug,
|
|
8921
8996
|
children,
|
|
8922
8997
|
className
|
|
8923
8998
|
}) {
|
|
8924
|
-
const topicStamp = _chunkIX2E3AN7cjs.usePageTopicStamp.call(void 0, );
|
|
8925
|
-
const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
|
|
8926
8999
|
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkIBD2FPSXcjs.useScrollFade.call(void 0, );
|
|
8927
9000
|
const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
8928
9001
|
const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
|
|
@@ -8942,11 +9015,9 @@ function GuideWelcome({
|
|
|
8942
9015
|
props: action.iconProps,
|
|
8943
9016
|
accent: _nullishCoalesce(_nullishCoalesce(action.accent, () => ( accentFromIdentityIcon(icon))), () => ( "cyan"))
|
|
8944
9017
|
},
|
|
8945
|
-
onSelect: () => _optionalChain([onQuickAction, 'optionalCall',
|
|
8946
|
-
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _176 => _176(action)]),
|
|
8947
|
-
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _177 => _177()])
|
|
9018
|
+
onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _174 => _174(action)])
|
|
8948
9019
|
})),
|
|
8949
|
-
[quickActions, icon, onQuickAction
|
|
9020
|
+
[quickActions, icon, onQuickAction]
|
|
8950
9021
|
);
|
|
8951
9022
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: [
|
|
8952
9023
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
@@ -8962,7 +9033,7 @@ function GuideWelcome({
|
|
|
8962
9033
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
8963
9034
|
// match the default Mingo mark (48px).
|
|
8964
9035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
8965
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9036
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8966
9037
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8967
9038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
8968
9039
|
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4 max-w-80" }) }) : subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : null
|
|
@@ -8975,23 +9046,7 @@ function GuideWelcome({
|
|
|
8975
9046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBD2FPSXcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8976
9047
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIBD2FPSXcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8977
9048
|
] }),
|
|
8978
|
-
|
|
8979
|
-
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8980
|
-
QuickActionWall,
|
|
8981
|
-
{
|
|
8982
|
-
chips: chipItems,
|
|
8983
|
-
loading: chipsAreLoading,
|
|
8984
|
-
agentSlug,
|
|
8985
|
-
rows: 4,
|
|
8986
|
-
pauseOnHover: true,
|
|
8987
|
-
dragScroll: true,
|
|
8988
|
-
fade: ["left", "right"],
|
|
8989
|
-
fadeSize: { left: 32 },
|
|
8990
|
-
fadeColor: "var(--color-bg)",
|
|
8991
|
-
copyGap: "var(--spacing-system-xxs)",
|
|
8992
|
-
className: "max-h-44 shrink-0"
|
|
8993
|
-
}
|
|
8994
|
-
)
|
|
9049
|
+
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
|
|
8995
9050
|
] });
|
|
8996
9051
|
}
|
|
8997
9052
|
|
|
@@ -9010,9 +9065,9 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
9010
9065
|
children: [
|
|
9011
9066
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
|
|
9012
9067
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
|
|
9013
|
-
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9014
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9068
|
+
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
9069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "bare", size: "icon-inline", type: "button", "aria-label": "About Guide Mode", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16, className: "text-ods-text-on-accent" }) }) }),
|
|
9070
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
|
|
9016
9071
|
] }) })
|
|
9017
9072
|
]
|
|
9018
9073
|
}
|
|
@@ -9045,7 +9100,7 @@ function MingoArchiveList({
|
|
|
9045
9100
|
if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
|
|
9046
9101
|
const observer = new IntersectionObserver(
|
|
9047
9102
|
([entry]) => {
|
|
9048
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
9103
|
+
if (_optionalChain([entry, 'optionalAccess', _175 => _175.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177()]);
|
|
9049
9104
|
},
|
|
9050
9105
|
{ rootMargin: "120px", threshold: 0.1 }
|
|
9051
9106
|
);
|
|
@@ -9065,9 +9120,9 @@ function MingoArchiveList({
|
|
|
9065
9120
|
{
|
|
9066
9121
|
"data-loading-item": true,
|
|
9067
9122
|
title: dialog.title || "Untitled Chat",
|
|
9068
|
-
onClick: () => _optionalChain([onSelectDialog, 'optionalCall',
|
|
9123
|
+
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _178 => _178(dialog.id)]),
|
|
9069
9124
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
9070
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
9125
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkQTLWU6FYcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
9071
9126
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9072
9127
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
9073
9128
|
{
|
|
@@ -9173,8 +9228,8 @@ function MingoChatHeader({
|
|
|
9173
9228
|
ChatHeaderRenameField,
|
|
9174
9229
|
{
|
|
9175
9230
|
initialValue: title,
|
|
9176
|
-
onSubmit: (value) => _optionalChain([onRenameSubmit, 'optionalCall',
|
|
9177
|
-
onCancel: () => _optionalChain([onRenameCancel, 'optionalCall',
|
|
9231
|
+
onSubmit: (value) => _optionalChain([onRenameSubmit, 'optionalCall', _179 => _179(value)]),
|
|
9232
|
+
onCancel: () => _optionalChain([onRenameCancel, 'optionalCall', _180 => _180()])
|
|
9178
9233
|
},
|
|
9179
9234
|
title
|
|
9180
9235
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3", isPage && "min-w-0"), children: title });
|
|
@@ -9215,7 +9270,7 @@ function MingoChatHeader({
|
|
|
9215
9270
|
] }),
|
|
9216
9271
|
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
9217
9272
|
menuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9218
|
-
|
|
9273
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
9219
9274
|
{
|
|
9220
9275
|
triggerAriaLabel: "Chat actions",
|
|
9221
9276
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -9264,7 +9319,7 @@ function ChatHeaderSearchField({
|
|
|
9264
9319
|
const finishCollapse = _react.useCallback.call(void 0, () => {
|
|
9265
9320
|
if (collapsedRef.current) return;
|
|
9266
9321
|
collapsedRef.current = true;
|
|
9267
|
-
_optionalChain([onCollapse, 'optionalCall',
|
|
9322
|
+
_optionalChain([onCollapse, 'optionalCall', _181 => _181()]);
|
|
9268
9323
|
}, [onCollapse]);
|
|
9269
9324
|
const beginCollapse = _react.useCallback.call(void 0, () => {
|
|
9270
9325
|
setExiting(true);
|
|
@@ -9436,7 +9491,7 @@ function SearchInput({
|
|
|
9436
9491
|
if (!showHiddenTags) return void 0;
|
|
9437
9492
|
const handleClick = (e) => {
|
|
9438
9493
|
const target = e.target;
|
|
9439
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
9494
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _182 => _182.current, 'optionalAccess', _183 => _183.contains, 'call', _184 => _184(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _185 => _185.current, 'optionalAccess', _186 => _186.contains, 'call', _187 => _187(target)])) {
|
|
9440
9495
|
setShowHiddenTags(false);
|
|
9441
9496
|
}
|
|
9442
9497
|
};
|
|
@@ -9447,7 +9502,7 @@ function SearchInput({
|
|
|
9447
9502
|
const popup = hiddenTagsPopupRef.current;
|
|
9448
9503
|
const badge = badgeRef.current;
|
|
9449
9504
|
if (!popup || !badge) return;
|
|
9450
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
9505
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _188 => _188.current, 'optionalAccess', _189 => _189.getBoundingClientRect, 'call', _190 => _190(), 'access', _191 => _191.left]), () => ( 0));
|
|
9451
9506
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
9452
9507
|
});
|
|
9453
9508
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -9482,7 +9537,7 @@ function SearchInput({
|
|
|
9482
9537
|
} else {
|
|
9483
9538
|
setInternalValue(newVal);
|
|
9484
9539
|
}
|
|
9485
|
-
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
9540
|
+
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _192 => _192("")]);
|
|
9486
9541
|
if (!isOpen) setIsOpen(true);
|
|
9487
9542
|
setHighlightedIndex(-1);
|
|
9488
9543
|
};
|
|
@@ -9494,11 +9549,11 @@ function SearchInput({
|
|
|
9494
9549
|
} else {
|
|
9495
9550
|
setInternalValue("");
|
|
9496
9551
|
}
|
|
9497
|
-
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
9498
|
-
_optionalChain([inputRef, 'access',
|
|
9552
|
+
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _193 => _193("")]);
|
|
9553
|
+
_optionalChain([inputRef, 'access', _194 => _194.current, 'optionalAccess', _195 => _195.focus, 'call', _196 => _196()]);
|
|
9499
9554
|
};
|
|
9500
9555
|
const handleResultClick = (result, e) => {
|
|
9501
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
9556
|
+
_optionalChain([onResultSelect, 'optionalCall', _197 => _197(
|
|
9502
9557
|
result,
|
|
9503
9558
|
e ? {
|
|
9504
9559
|
metaKey: e.metaKey,
|
|
@@ -9526,7 +9581,7 @@ function SearchInput({
|
|
|
9526
9581
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
9527
9582
|
handleResultClick(flatResults[highlightedIndex]);
|
|
9528
9583
|
} else {
|
|
9529
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
9584
|
+
_optionalChain([onSubmit, 'optionalCall', _198 => _198(currentValue)]);
|
|
9530
9585
|
}
|
|
9531
9586
|
break;
|
|
9532
9587
|
case "Escape":
|
|
@@ -9611,7 +9666,7 @@ function SearchInput({
|
|
|
9611
9666
|
),
|
|
9612
9667
|
onClick: () => {
|
|
9613
9668
|
if (disabled) return;
|
|
9614
|
-
_optionalChain([inputRef, 'access',
|
|
9669
|
+
_optionalChain([inputRef, 'access', _199 => _199.current, 'optionalAccess', _200 => _200.focus, 'call', _201 => _201()]);
|
|
9615
9670
|
setIsOpen(true);
|
|
9616
9671
|
},
|
|
9617
9672
|
children: [
|
|
@@ -9696,10 +9751,10 @@ function SearchInput({
|
|
|
9696
9751
|
collisionPadding: { bottom: keyboardPadding },
|
|
9697
9752
|
onOpenAutoFocus: (e) => {
|
|
9698
9753
|
e.preventDefault();
|
|
9699
|
-
_optionalChain([inputRef, 'access',
|
|
9754
|
+
_optionalChain([inputRef, 'access', _202 => _202.current, 'optionalAccess', _203 => _203.focus, 'call', _204 => _204()]);
|
|
9700
9755
|
},
|
|
9701
9756
|
onInteractOutside: (e) => {
|
|
9702
|
-
if (_optionalChain([containerRef, 'access',
|
|
9757
|
+
if (_optionalChain([containerRef, 'access', _205 => _205.current, 'optionalAccess', _206 => _206.contains, 'call', _207 => _207(e.target)])) {
|
|
9703
9758
|
e.preventDefault();
|
|
9704
9759
|
}
|
|
9705
9760
|
},
|
|
@@ -9716,7 +9771,7 @@ function SearchInput({
|
|
|
9716
9771
|
ref: hiddenTagsPopupRef,
|
|
9717
9772
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
9718
9773
|
onRemove: (removedTag) => {
|
|
9719
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
9774
|
+
_optionalChain([onFilterRemove, 'optionalCall', _208 => _208(removedTag)]);
|
|
9720
9775
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
9721
9776
|
}
|
|
9722
9777
|
}
|
|
@@ -9814,7 +9869,7 @@ function HistoryList({
|
|
|
9814
9869
|
);
|
|
9815
9870
|
}
|
|
9816
9871
|
const groups = groupDialogsByDay(dialogs);
|
|
9817
|
-
const draftInToday = !!draftTitle && _optionalChain([groups, 'access',
|
|
9872
|
+
const draftInToday = !!draftTitle && _optionalChain([groups, 'access', _209 => _209[0], 'optionalAccess', _210 => _210.key]) === "today";
|
|
9818
9873
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
9819
9874
|
draftTitle && !draftInToday && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DayGroup, { label: "Today", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionRow, { title: draftTitle, active: true }) }),
|
|
9820
9875
|
groups.map((group, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DayGroup, { label: group.label, children: [
|
|
@@ -9826,10 +9881,10 @@ function HistoryList({
|
|
|
9826
9881
|
title: dialog.title || UNTITLED,
|
|
9827
9882
|
active: dialog.id === activeDialogId,
|
|
9828
9883
|
status: mingoDialogStatusOf(dialog, statusOf),
|
|
9829
|
-
ownerName: dialogOwnedByOther(dialog, ownedByOther, currentUserId) ? _optionalChain([dialog, 'access',
|
|
9830
|
-
ownerAvatarUrl: _optionalChain([dialog, 'access',
|
|
9884
|
+
ownerName: dialogOwnedByOther(dialog, ownedByOther, currentUserId) ? _optionalChain([dialog, 'access', _211 => _211.owner, 'optionalAccess', _212 => _212.name]) || void 0 : void 0,
|
|
9885
|
+
ownerAvatarUrl: _optionalChain([dialog, 'access', _213 => _213.owner, 'optionalAccess', _214 => _214.avatarUrl]) || void 0,
|
|
9831
9886
|
onSelect,
|
|
9832
|
-
menuItems: _optionalChain([menuFor, 'optionalCall',
|
|
9887
|
+
menuItems: _optionalChain([menuFor, 'optionalCall', _215 => _215(dialog)])
|
|
9833
9888
|
},
|
|
9834
9889
|
dialog.id
|
|
9835
9890
|
))
|
|
@@ -9887,7 +9942,7 @@ function MingoChatHistorySection({
|
|
|
9887
9942
|
defaultProp: false,
|
|
9888
9943
|
onChange: onSearchOpenChange
|
|
9889
9944
|
});
|
|
9890
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
9945
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _216 => _216.trim, 'call', _217 => _217()]);
|
|
9891
9946
|
const showSearch = searchOpen && !!onSearchChange;
|
|
9892
9947
|
const shortcut = visitor.known ? _chunkW4VEDSAXcjs.shortcutLabel.call(void 0, visitor.os, "K") : null;
|
|
9893
9948
|
const listProps = {
|
|
@@ -9938,7 +9993,7 @@ function MingoChatHistorySection({
|
|
|
9938
9993
|
onClick: () => onScopeChange("all")
|
|
9939
9994
|
}
|
|
9940
9995
|
] : [];
|
|
9941
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9996
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: [
|
|
9942
9997
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9943
9998
|
"section",
|
|
9944
9999
|
{
|
|
@@ -9947,8 +10002,8 @@ function MingoChatHistorySection({
|
|
|
9947
10002
|
children: [
|
|
9948
10003
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)] px-[var(--spacing-system-xs)]", children: [
|
|
9949
10004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { id: captionId, className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h5", children: "Chat history" }),
|
|
9950
|
-
onSearchChange && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10005
|
+
onSearchChange && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
10006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9952
10007
|
_chunkFCZAUK4Dcjs.Button,
|
|
9953
10008
|
{
|
|
9954
10009
|
variant: "transparent",
|
|
@@ -9960,16 +10015,16 @@ function MingoChatHistorySection({
|
|
|
9960
10015
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 20 })
|
|
9961
10016
|
}
|
|
9962
10017
|
) }),
|
|
9963
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: shortcut ? `Search chats \xB7 ${shortcut}` : "Search chats" })
|
|
9964
10019
|
] }),
|
|
9965
|
-
scopeMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10020
|
+
scopeMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
9966
10021
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9967
|
-
|
|
10022
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
9968
10023
|
{
|
|
9969
10024
|
triggerAriaLabel: "Filter chats",
|
|
9970
10025
|
groups: [{ items: scopeMenu }],
|
|
9971
10026
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
9972
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10027
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9973
10028
|
_chunkFCZAUK4Dcjs.Button,
|
|
9974
10029
|
{
|
|
9975
10030
|
variant: "transparent",
|
|
@@ -9981,19 +10036,19 @@ function MingoChatHistorySection({
|
|
|
9981
10036
|
) })
|
|
9982
10037
|
}
|
|
9983
10038
|
),
|
|
9984
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: scope === "all" ? "Showing all chats" : "Showing my chats" })
|
|
9985
10040
|
] }),
|
|
9986
|
-
moreMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10041
|
+
moreMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
9987
10042
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9988
|
-
|
|
10043
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
9989
10044
|
{
|
|
9990
10045
|
triggerAriaLabel: "More",
|
|
9991
10046
|
groups: [{ items: moreMenu }],
|
|
9992
10047
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
9993
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10048
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "transparent", size: "icon", "aria-label": "More", className: ICON_BUTTON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 20 }) }) })
|
|
9994
10049
|
}
|
|
9995
10050
|
),
|
|
9996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10051
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: "More" })
|
|
9997
10052
|
] })
|
|
9998
10053
|
] }),
|
|
9999
10054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10042,11 +10097,11 @@ function MingoChatSearchModal({
|
|
|
10042
10097
|
HistoryList,
|
|
10043
10098
|
{
|
|
10044
10099
|
...listProps,
|
|
10045
|
-
hasSearch: !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10100
|
+
hasSearch: !!_optionalChain([searchQuery, 'optionalAccess', _218 => _218.trim, 'call', _219 => _219()]),
|
|
10046
10101
|
onSelect: (id) => {
|
|
10047
10102
|
onOpenChange(false);
|
|
10048
|
-
if (_optionalChain([searchQuery, 'optionalAccess',
|
|
10049
|
-
_optionalChain([onSelectDialog, 'optionalCall',
|
|
10103
|
+
if (_optionalChain([searchQuery, 'optionalAccess', _220 => _220.trim, 'call', _221 => _221()])) onSearchChange("");
|
|
10104
|
+
_optionalChain([onSelectDialog, 'optionalCall', _222 => _222(id)]);
|
|
10050
10105
|
}
|
|
10051
10106
|
}
|
|
10052
10107
|
) }),
|
|
@@ -10069,7 +10124,7 @@ function SearchModalContent({ initialValue, onSearchChange, onClose, children })
|
|
|
10069
10124
|
onSearchChange(debounced);
|
|
10070
10125
|
}, [debounced, onSearchChange]);
|
|
10071
10126
|
_react.useEffect.call(void 0, () => {
|
|
10072
|
-
const frame = requestAnimationFrame(() => _optionalChain([fieldRef, 'access',
|
|
10127
|
+
const frame = requestAnimationFrame(() => _optionalChain([fieldRef, 'access', _223 => _223.current, 'optionalAccess', _224 => _224.querySelector, 'call', _225 => _225("input"), 'optionalAccess', _226 => _226.focus, 'call', _227 => _227()]));
|
|
10073
10128
|
return () => cancelAnimationFrame(frame);
|
|
10074
10129
|
}, []);
|
|
10075
10130
|
const close = () => {
|
|
@@ -10138,7 +10193,7 @@ function SectionRow({
|
|
|
10138
10193
|
active,
|
|
10139
10194
|
title,
|
|
10140
10195
|
tabIndex: dialog ? void 0 : -1,
|
|
10141
|
-
onClick: dialog ? () => _optionalChain([onSelect, 'optionalCall',
|
|
10196
|
+
onClick: dialog ? () => _optionalChain([onSelect, 'optionalCall', _228 => _228(dialog.id)]) : void 0,
|
|
10142
10197
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
10143
10198
|
"transition-colors duration-150",
|
|
10144
10199
|
!active && "hover:bg-ods-bg-hover",
|
|
@@ -10183,7 +10238,7 @@ function SectionRow({
|
|
|
10183
10238
|
menuOpen ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 group-has-[:focus-visible]/row:opacity-100"
|
|
10184
10239
|
),
|
|
10185
10240
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10186
|
-
|
|
10241
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10187
10242
|
{
|
|
10188
10243
|
triggerAriaLabel: `Actions for ${title}`,
|
|
10189
10244
|
groups: [{ items: menuItems }],
|
|
@@ -10248,10 +10303,10 @@ function MingoChatRailPanel({
|
|
|
10248
10303
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
10249
10304
|
const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
|
|
10250
10305
|
prop: searchOpenProp,
|
|
10251
|
-
defaultProp: !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10306
|
+
defaultProp: !!_optionalChain([searchQuery, 'optionalAccess', _229 => _229.trim, 'call', _230 => _230()]),
|
|
10252
10307
|
onChange: onSearchOpenChange
|
|
10253
10308
|
});
|
|
10254
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10309
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _231 => _231.trim, 'call', _232 => _232()]);
|
|
10255
10310
|
const items = [];
|
|
10256
10311
|
if (onNewChat) items.push({ id: "new", label: "Start New Chat", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZPN2P7Ucjs.ChatPlusIcon, {}), onClick: onNewChat });
|
|
10257
10312
|
if (onOpenArchive) {
|
|
@@ -10340,7 +10395,7 @@ function MingoChatRailPanel({
|
|
|
10340
10395
|
"data-accent": "mingo",
|
|
10341
10396
|
"aria-label": "Mingo chats",
|
|
10342
10397
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
10343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
10344
10399
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10345
10400
|
_chunkFCZAUK4Dcjs.Button,
|
|
10346
10401
|
{
|
|
@@ -10356,7 +10411,7 @@ function MingoChatRailPanel({
|
|
|
10356
10411
|
items,
|
|
10357
10412
|
sectionLabel: "Your Current Chats",
|
|
10358
10413
|
sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10359
|
-
|
|
10414
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10360
10415
|
{
|
|
10361
10416
|
triggerAriaLabel: "Chat list options",
|
|
10362
10417
|
groups: [{ items: listMenu }],
|
|
@@ -10397,7 +10452,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10397
10452
|
{
|
|
10398
10453
|
active,
|
|
10399
10454
|
title,
|
|
10400
|
-
onClick: () => _optionalChain([onSelect, 'optionalCall',
|
|
10455
|
+
onClick: () => _optionalChain([onSelect, 'optionalCall', _233 => _233(dialog.id)]),
|
|
10401
10456
|
className: _chunk63A4GZMBcjs.cn.call(void 0, hasMenu && "pr-10"),
|
|
10402
10457
|
trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10403
10458
|
"span",
|
|
@@ -10419,7 +10474,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10419
10474
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
10420
10475
|
),
|
|
10421
10476
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10422
|
-
|
|
10477
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10423
10478
|
{
|
|
10424
10479
|
triggerAriaLabel: `Actions for ${title}`,
|
|
10425
10480
|
groups: [{ items: menuItems }],
|
|
@@ -10455,7 +10510,7 @@ function TabSelector({
|
|
|
10455
10510
|
scrollable = false,
|
|
10456
10511
|
className
|
|
10457
10512
|
}) {
|
|
10458
|
-
const flush =
|
|
10513
|
+
const flush = _chunkYJZ7R3W5cjs.useIsInActionsMenuHeader.call(void 0, );
|
|
10459
10514
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10460
10515
|
"div",
|
|
10461
10516
|
{
|
|
@@ -10529,7 +10584,7 @@ function MingoHistoryRail({
|
|
|
10529
10584
|
className
|
|
10530
10585
|
}) {
|
|
10531
10586
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
10532
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10587
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _234 => _234.trim, 'call', _235 => _235()]);
|
|
10533
10588
|
const hasList = dialogs.length > 0 || hasSearch;
|
|
10534
10589
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10535
10590
|
"div",
|
|
@@ -10671,7 +10726,7 @@ function ChatDialogModals({
|
|
|
10671
10726
|
RenameChatModal,
|
|
10672
10727
|
{
|
|
10673
10728
|
isOpen: renameTarget != null,
|
|
10674
|
-
initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess',
|
|
10729
|
+
initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _236 => _236.title]), () => ( "")),
|
|
10675
10730
|
onClose: () => setRenameTarget(null),
|
|
10676
10731
|
onSave: onConfirmRename
|
|
10677
10732
|
}
|
|
@@ -10735,7 +10790,7 @@ function ChatPanelHeaderMobile({
|
|
|
10735
10790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
|
|
10736
10791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-ods-text-primary text-h2", title, children: title }) }),
|
|
10737
10792
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10738
|
-
|
|
10793
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10739
10794
|
{
|
|
10740
10795
|
groups: [{ items: menuItems }],
|
|
10741
10796
|
triggerAriaLabel: "Chat actions",
|
|
@@ -10838,7 +10893,7 @@ function ChatPanelHeader({
|
|
|
10838
10893
|
] }),
|
|
10839
10894
|
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
10840
10895
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10841
|
-
|
|
10896
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10842
10897
|
{
|
|
10843
10898
|
triggerAriaLabel: "Chat actions",
|
|
10844
10899
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -10895,7 +10950,7 @@ function ChatAttachmentAddButton({
|
|
|
10895
10950
|
const canAddMore = slotsAvailable > 0 && !disabled;
|
|
10896
10951
|
const handlePick = () => {
|
|
10897
10952
|
if (!canAddMore) return;
|
|
10898
|
-
_optionalChain([fileInputRef, 'access',
|
|
10953
|
+
_optionalChain([fileInputRef, 'access', _237 => _237.current, 'optionalAccess', _238 => _238.click, 'call', _239 => _239()]);
|
|
10899
10954
|
};
|
|
10900
10955
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10901
10956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11061,7 +11116,7 @@ function ChatContextMemoryBar({
|
|
|
11061
11116
|
_react.useEffect.call(void 0, () => {
|
|
11062
11117
|
if (!open) return void 0;
|
|
11063
11118
|
const onOutside = (e) => {
|
|
11064
|
-
if (_optionalChain([rootRef, 'access',
|
|
11119
|
+
if (_optionalChain([rootRef, 'access', _240 => _240.current, 'optionalAccess', _241 => _241.contains, 'call', _242 => _242(e.target)])) return;
|
|
11065
11120
|
setOpen(false);
|
|
11066
11121
|
};
|
|
11067
11122
|
document.addEventListener("mousedown", onOutside, true);
|
|
@@ -11282,20 +11337,20 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11282
11337
|
// Neither: the same two spans the row always had.
|
|
11283
11338
|
labelContent
|
|
11284
11339
|
);
|
|
11285
|
-
const labelWithTooltip = modelTooltip ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11340
|
+
const labelWithTooltip = modelTooltip ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
11341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: label }),
|
|
11342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", align: "start", children: modelTooltip })
|
|
11288
11343
|
] }) }) : label;
|
|
11289
11344
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, "text-ods-text-secondary", className), ...props, children: [
|
|
11290
11345
|
labelWithTooltip,
|
|
11291
|
-
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11346
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
11347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "ml-auto opacity-70 text-h6", children: [
|
|
11293
11348
|
usedTokens != null ? formatCount(usedTokens) : "\u2014",
|
|
11294
11349
|
isV2 ? " / " : "/",
|
|
11295
11350
|
formatCount(contextWindow),
|
|
11296
11351
|
" context budget"
|
|
11297
11352
|
] }) }),
|
|
11298
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11353
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", align: "end", children: CONTEXT_BUDGET_HINT })
|
|
11299
11354
|
] }) })
|
|
11300
11355
|
] });
|
|
11301
11356
|
if (!hasAnyBreakdownRow(breakdown)) return inline;
|
|
@@ -11405,7 +11460,7 @@ function ChatComposer({
|
|
|
11405
11460
|
const locked = lock != null;
|
|
11406
11461
|
const selected = _nullishCoalesce(selectedContextItems, () => ( []));
|
|
11407
11462
|
const memory = _nullishCoalesce(contextMemoryItems, () => ( []));
|
|
11408
|
-
const entityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
11463
|
+
const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _243 => _243.entityTypes]);
|
|
11409
11464
|
const iconByType = _react.useMemo.call(void 0, () => {
|
|
11410
11465
|
const map = /* @__PURE__ */ new Map();
|
|
11411
11466
|
for (const t of _nullishCoalesce(entityTypes, () => ( []))) map.set(t.type, t.icon);
|
|
@@ -11413,7 +11468,7 @@ function ChatComposer({
|
|
|
11413
11468
|
}, [entityTypes]);
|
|
11414
11469
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
11415
11470
|
const menu = menuItems && menuItems.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11416
|
-
|
|
11471
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
11417
11472
|
{
|
|
11418
11473
|
triggerAriaLabel: "Composer actions",
|
|
11419
11474
|
side: "top",
|
|
@@ -11447,7 +11502,7 @@ function ChatComposer({
|
|
|
11447
11502
|
sending,
|
|
11448
11503
|
placeholder,
|
|
11449
11504
|
disabled: locked,
|
|
11450
|
-
disabledPlaceholder: _optionalChain([lock, 'optionalAccess',
|
|
11505
|
+
disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _244 => _244.placeholder]),
|
|
11451
11506
|
previewText,
|
|
11452
11507
|
fullWidth: true,
|
|
11453
11508
|
className: "px-0",
|
|
@@ -11461,7 +11516,7 @@ function ChatComposer({
|
|
|
11461
11516
|
startIcon: contextEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11462
11517
|
ChatComposerPlusMenu,
|
|
11463
11518
|
{
|
|
11464
|
-
onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall',
|
|
11519
|
+
onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _245 => _245()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _246 => _246()]),
|
|
11465
11520
|
open: contextPickerOpen,
|
|
11466
11521
|
disabled: attachmentsDisabled || locked,
|
|
11467
11522
|
dropdown: contextPicker ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11470,8 +11525,8 @@ function ChatComposer({
|
|
|
11470
11525
|
open: contextPickerOpen,
|
|
11471
11526
|
config: contextPicker,
|
|
11472
11527
|
selectedItems: selected,
|
|
11473
|
-
onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall',
|
|
11474
|
-
onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall',
|
|
11528
|
+
onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _247 => _247(item)]),
|
|
11529
|
+
onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _248 => _248()]),
|
|
11475
11530
|
mentionQuery
|
|
11476
11531
|
}
|
|
11477
11532
|
) : void 0
|
|
@@ -11643,10 +11698,10 @@ function useNavLinkViaRuntime({
|
|
|
11643
11698
|
const { href: resolvedHref, isNewTab } = useNavLinkTarget(_nullishCoalesce(href, () => ( "")), targetPlatform, openIn);
|
|
11644
11699
|
if (href == null) return null;
|
|
11645
11700
|
const onClick = (e) => {
|
|
11646
|
-
_optionalChain([onClickProp, 'optionalCall',
|
|
11701
|
+
_optionalChain([onClickProp, 'optionalCall', _249 => _249(e)]);
|
|
11647
11702
|
if (e.defaultPrevented) return;
|
|
11648
11703
|
const handled = _chunkW4VEDSAXcjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
|
|
11649
|
-
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
11704
|
+
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _250 => _250.closeChat])) panel.closeChat();
|
|
11650
11705
|
};
|
|
11651
11706
|
return { href: resolvedHref, ..._chunkDAKGX2WFcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
|
|
11652
11707
|
}
|
|
@@ -11787,11 +11842,11 @@ var DEFAULT_CAPTIONS_PATH = "/api/captions";
|
|
|
11787
11842
|
function getCaptionsUrl(entityType, entityId, srtContent, options) {
|
|
11788
11843
|
if (!srtContent) return void 0;
|
|
11789
11844
|
const hash = `${srtContent.length}-${srtContent.slice(0, 8).replace(/\s/g, "")}`;
|
|
11790
|
-
const variant = _optionalChain([options, 'optionalAccess',
|
|
11845
|
+
const variant = _optionalChain([options, 'optionalAccess', _251 => _251.variant]) ? `&variant=${options.variant}` : "";
|
|
11791
11846
|
return `${DEFAULT_CAPTIONS_PATH}/${entityType}/${entityId}?v=${hash}${variant}`;
|
|
11792
11847
|
}
|
|
11793
11848
|
function resolveCaptionsBase(endpoints) {
|
|
11794
|
-
return _optionalChain([endpoints, 'optionalAccess',
|
|
11849
|
+
return _optionalChain([endpoints, 'optionalAccess', _252 => _252.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
|
|
11795
11850
|
}
|
|
11796
11851
|
function rebaseCaptionsUrl(endpoints, url) {
|
|
11797
11852
|
if (!url || !url.startsWith(`${DEFAULT_CAPTIONS_PATH}/`)) return url;
|
|
@@ -11826,7 +11881,7 @@ function captionsEntityTypeForDocType(docType) {
|
|
|
11826
11881
|
// src/components/features/use-captions.ts
|
|
11827
11882
|
|
|
11828
11883
|
function useCaptions() {
|
|
11829
|
-
const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess',
|
|
11884
|
+
const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _253 => _253.endpoints]), () => ( null));
|
|
11830
11885
|
return _react.useMemo.call(void 0,
|
|
11831
11886
|
() => ({
|
|
11832
11887
|
forEntity: (entityType, entity) => getEntityCaptionUrls(endpoints, entityType, entity),
|
|
@@ -12130,9 +12185,9 @@ function CardsStrip(props) {
|
|
|
12130
12185
|
const p = hoverPointerRef.current;
|
|
12131
12186
|
if (!p.inside) return;
|
|
12132
12187
|
const el = typeof document !== "undefined" ? document.elementFromPoint(p.x, p.y) : null;
|
|
12133
|
-
const cardEl = _optionalChain([el, 'optionalAccess',
|
|
12134
|
-
const scoped = cardEl && _optionalChain([scrollerRef, 'access',
|
|
12135
|
-
const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess',
|
|
12188
|
+
const cardEl = _optionalChain([el, 'optionalAccess', _254 => _254.closest, 'optionalCall', _255 => _255("[data-strip-card-key]")]);
|
|
12189
|
+
const scoped = cardEl && _optionalChain([scrollerRef, 'access', _256 => _256.current, 'optionalAccess', _257 => _257.contains, 'call', _258 => _258(cardEl)]) ? cardEl : null;
|
|
12190
|
+
const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _259 => _259.getAttribute, 'call', _260 => _260("data-strip-card-key")]), () => ( null));
|
|
12136
12191
|
const current = activeKeyRef.current;
|
|
12137
12192
|
if (key === current) return;
|
|
12138
12193
|
if (current !== null) deactivate(current);
|
|
@@ -12170,7 +12225,7 @@ function CardsStrip(props) {
|
|
|
12170
12225
|
}, [syncHoverToPointer]);
|
|
12171
12226
|
const seamBuffer = _react.useCallback.call(void 0, () => {
|
|
12172
12227
|
const half = singleCopyWidthRef.current;
|
|
12173
|
-
const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access',
|
|
12228
|
+
const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _261 => _261.current, 'optionalAccess', _262 => _262.clientWidth]), () => ( 0));
|
|
12174
12229
|
return Math.max(0, Math.min(200, half / 4, half - viewport - TRACK_GAP_PX - 1));
|
|
12175
12230
|
}, []);
|
|
12176
12231
|
const mirror = _react.useCallback.call(void 0,
|
|
@@ -12194,7 +12249,7 @@ function CardsStrip(props) {
|
|
|
12194
12249
|
const scroller = scrollerRef.current;
|
|
12195
12250
|
if (scroller) scroller.scrollLeft = mirror(pos);
|
|
12196
12251
|
},
|
|
12197
|
-
readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access',
|
|
12252
|
+
readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _263 => _263.current, 'optionalAccess', _264 => _264.scrollLeft]), () => ( 0))),
|
|
12198
12253
|
onAfterFrame: syncHoverIfScrolled
|
|
12199
12254
|
});
|
|
12200
12255
|
const [mountedIdx, setMountedIdx] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
@@ -12242,11 +12297,11 @@ function CardsStrip(props) {
|
|
|
12242
12297
|
fn = (el) => {
|
|
12243
12298
|
if (!el) return void 0;
|
|
12244
12299
|
cardElIdxRef.current.set(el, idx);
|
|
12245
|
-
_optionalChain([cardObserverRef, 'access',
|
|
12300
|
+
_optionalChain([cardObserverRef, 'access', _265 => _265.current, 'optionalAccess', _266 => _266.observe, 'call', _267 => _267(el)]);
|
|
12246
12301
|
return () => {
|
|
12247
12302
|
cardElIdxRef.current.delete(el);
|
|
12248
12303
|
cardElNearRef.current.delete(el);
|
|
12249
|
-
_optionalChain([cardObserverRef, 'access',
|
|
12304
|
+
_optionalChain([cardObserverRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.unobserve, 'call', _270 => _270(el)]);
|
|
12250
12305
|
};
|
|
12251
12306
|
};
|
|
12252
12307
|
cardRefFns.set(idx, fn);
|
|
@@ -12265,7 +12320,7 @@ function CardsStrip(props) {
|
|
|
12265
12320
|
const track = trackRef.current;
|
|
12266
12321
|
if (!scroller || !track) return;
|
|
12267
12322
|
const firstCard = track.firstElementChild;
|
|
12268
|
-
const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess',
|
|
12323
|
+
const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _271 => _271.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
|
|
12269
12324
|
chevronSuppressUntilRef.current = performance.now() + CHEVRON_SUPPRESS_MS;
|
|
12270
12325
|
if (marqueeActiveRef.current) {
|
|
12271
12326
|
glideBy((reverse ? -dir : dir) * step);
|
|
@@ -12346,7 +12401,7 @@ function CardsStrip(props) {
|
|
|
12346
12401
|
{
|
|
12347
12402
|
ref: (node) => {
|
|
12348
12403
|
wrapperRef.current = node;
|
|
12349
|
-
_optionalChain([rootRef, 'optionalCall',
|
|
12404
|
+
_optionalChain([rootRef, 'optionalCall', _272 => _272(node)]);
|
|
12350
12405
|
},
|
|
12351
12406
|
className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
|
|
12352
12407
|
children: [
|
|
@@ -12530,7 +12585,7 @@ function VideoBitesStrip({
|
|
|
12530
12585
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
12531
12586
|
return filtered.sort(sortComparator);
|
|
12532
12587
|
}, [bites, filterPublished, sortComparator]);
|
|
12533
|
-
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access',
|
|
12588
|
+
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _273 => _273[0], 'optionalAccess', _274 => _274.url]) || null });
|
|
12534
12589
|
if (inScope) {
|
|
12535
12590
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12536
12591
|
VideoBitesStripSkeleton,
|
|
@@ -12671,8 +12726,8 @@ function VideoBiteCard({
|
|
|
12671
12726
|
const controlled = active !== void 0;
|
|
12672
12727
|
const [selfActive, setSelfActive] = _react.useState.call(void 0, false);
|
|
12673
12728
|
const isActive = controlled ? !!active : selfActive;
|
|
12674
|
-
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall',
|
|
12675
|
-
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall',
|
|
12729
|
+
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _275 => _275(key)]) : setSelfActive(true);
|
|
12730
|
+
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _276 => _276(key)]) : setSelfActive(false);
|
|
12676
12731
|
const titleInputRef = _react.useRef.call(void 0, null);
|
|
12677
12732
|
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
12678
12733
|
const el = titleInputRef.current;
|
|
@@ -12682,7 +12737,7 @@ function VideoBiteCard({
|
|
|
12682
12737
|
});
|
|
12683
12738
|
const navigate = () => {
|
|
12684
12739
|
if (bite.onNavigate) bite.onNavigate();
|
|
12685
|
-
else _optionalChain([onBiteNavigate, 'optionalCall',
|
|
12740
|
+
else _optionalChain([onBiteNavigate, 'optionalCall', _277 => _277(bite, index)]);
|
|
12686
12741
|
};
|
|
12687
12742
|
const handlePointerEnter = () => {
|
|
12688
12743
|
if (!isTouch) activate();
|
|
@@ -12707,9 +12762,9 @@ function VideoBiteCard({
|
|
|
12707
12762
|
placeholder: "Title (optional)",
|
|
12708
12763
|
"aria-label": "Bite title",
|
|
12709
12764
|
rows: 1,
|
|
12710
|
-
onChange: (e) => _optionalChain([onTitleChange, 'optionalCall',
|
|
12765
|
+
onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _278 => _278(e.target.value)]),
|
|
12711
12766
|
ref: titleInputRef,
|
|
12712
|
-
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall',
|
|
12767
|
+
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _279 => _279(e.target.value)]),
|
|
12713
12768
|
onClick: (e) => e.stopPropagation(),
|
|
12714
12769
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
12715
12770
|
titleClass,
|
|
@@ -12786,7 +12841,7 @@ function VideoBiteCard({
|
|
|
12786
12841
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12787
12842
|
"div",
|
|
12788
12843
|
{
|
|
12789
|
-
ref: (node) => _optionalChain([rootRef, 'optionalCall',
|
|
12844
|
+
ref: (node) => _optionalChain([rootRef, 'optionalCall', _280 => _280(node)]),
|
|
12790
12845
|
"aria-hidden": isClone || void 0,
|
|
12791
12846
|
"data-strip-card-key": key,
|
|
12792
12847
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
@@ -12843,8 +12898,8 @@ function EntityVideoSection({
|
|
|
12843
12898
|
const hasHighlight = !!highlightVideoUrl;
|
|
12844
12899
|
const hasVideo = hasFullVideo || hasHighlight;
|
|
12845
12900
|
const derivedCaptions = captionsEntity ? captions.forEntityId(captionsEntity.type, captionsEntity.id) : null;
|
|
12846
|
-
const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess',
|
|
12847
|
-
const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess',
|
|
12901
|
+
const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _281 => _281.captionsUrl])));
|
|
12902
|
+
const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _282 => _282.highlightCaptionsUrl])));
|
|
12848
12903
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityVideoSectionSkeleton, { tabs: skeletonTabs });
|
|
12849
12904
|
if (!hasVideo && !videoSummary && (!videoBites || videoBites.length === 0)) {
|
|
12850
12905
|
return null;
|
|
@@ -12966,18 +13021,18 @@ function pick(...values) {
|
|
|
12966
13021
|
return void 0;
|
|
12967
13022
|
}
|
|
12968
13023
|
function videoFromItem(item, chatRef) {
|
|
12969
|
-
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
13024
|
+
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _283 => _283.metadata]), () => ( {}));
|
|
12970
13025
|
const out = {};
|
|
12971
|
-
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess',
|
|
12972
|
-
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess',
|
|
12973
|
-
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess',
|
|
13026
|
+
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _284 => _284.custom_video_url]), _optionalChain([item, 'optionalAccess', _285 => _285.main_video_url]));
|
|
13027
|
+
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _286 => _286.youtube_url]), _optionalChain([item, 'optionalAccess', _287 => _287.testimonial_video_url]));
|
|
13028
|
+
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _288 => _288.highlight_video_url]));
|
|
12974
13029
|
const videoPoster = pick(
|
|
12975
13030
|
m.videoPoster,
|
|
12976
|
-
_optionalChain([item, 'optionalAccess',
|
|
12977
|
-
_optionalChain([item, 'optionalAccess',
|
|
12978
|
-
_optionalChain([item, 'optionalAccess',
|
|
13031
|
+
_optionalChain([item, 'optionalAccess', _289 => _289.main_video_thumbnail]),
|
|
13032
|
+
_optionalChain([item, 'optionalAccess', _290 => _290.highlight_video_thumbnail]),
|
|
13033
|
+
_optionalChain([item, 'optionalAccess', _291 => _291.featured_image])
|
|
12979
13034
|
);
|
|
12980
|
-
const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess',
|
|
13035
|
+
const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _292 => _292.highlight_video_thumbnail]));
|
|
12981
13036
|
if (videoUrl) out.videoUrl = videoUrl;
|
|
12982
13037
|
if (youtubeUrl) out.youtubeUrl = youtubeUrl;
|
|
12983
13038
|
if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
|
|
@@ -13017,11 +13072,11 @@ function ChatCardDisclosureButton({
|
|
|
13017
13072
|
{
|
|
13018
13073
|
label,
|
|
13019
13074
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
|
|
13020
|
-
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13075
|
+
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
13021
13076
|
onClick: (e) => {
|
|
13022
13077
|
e.preventDefault();
|
|
13023
13078
|
e.stopPropagation();
|
|
13024
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
13079
|
+
_optionalChain([onToggle, 'optionalCall', _293 => _293()]);
|
|
13025
13080
|
},
|
|
13026
13081
|
ariaExpanded: open,
|
|
13027
13082
|
ariaLabel: title ? `${label}: ${title}` : label,
|
|
@@ -13031,7 +13086,7 @@ function ChatCardDisclosureButton({
|
|
|
13031
13086
|
);
|
|
13032
13087
|
}
|
|
13033
13088
|
function DisclosurePanel({ open, children }) {
|
|
13034
|
-
const { innerRef, containerStyle } =
|
|
13089
|
+
const { innerRef, containerStyle } = _chunkQTLWU6FYcjs.useCollapsible.call(void 0, { expanded: open });
|
|
13035
13090
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children }) });
|
|
13036
13091
|
}
|
|
13037
13092
|
function useChatCardDisclosure(kind, chatRef, { reserve = false } = {}) {
|
|
@@ -13070,7 +13125,7 @@ function ChatCardDisclosureRow({
|
|
|
13070
13125
|
|
|
13071
13126
|
function designDocPeople(doc) {
|
|
13072
13127
|
const people = [];
|
|
13073
|
-
if (_optionalChain([doc, 'access',
|
|
13128
|
+
if (_optionalChain([doc, 'access', _294 => _294.author, 'optionalAccess', _295 => _295.full_name]))
|
|
13074
13129
|
people.push({
|
|
13075
13130
|
key: `dri-${_nullishCoalesce(doc.author.id, () => ( doc.author.full_name))}`,
|
|
13076
13131
|
name: doc.author.full_name,
|
|
@@ -13083,7 +13138,7 @@ function designDocPeople(doc) {
|
|
|
13083
13138
|
return people;
|
|
13084
13139
|
}
|
|
13085
13140
|
function designDocMetaLine(doc) {
|
|
13086
|
-
return [_optionalChain([doc, 'access',
|
|
13141
|
+
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkFMSAN6SRcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
13087
13142
|
}
|
|
13088
13143
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
13089
13144
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -13352,8 +13407,8 @@ function getVendorLogo(vendor) {
|
|
|
13352
13407
|
if (vendor.logo) {
|
|
13353
13408
|
return fixSupabaseStorageUrl(vendor.logo);
|
|
13354
13409
|
}
|
|
13355
|
-
const logoMedia = _optionalChain([vendor, 'access',
|
|
13356
|
-
if (_optionalChain([logoMedia, 'optionalAccess',
|
|
13410
|
+
const logoMedia = _optionalChain([vendor, 'access', _298 => _298.vendor_media, 'optionalAccess', _299 => _299.find, 'call', _300 => _300((m) => m.media_type === "logo")]);
|
|
13411
|
+
if (_optionalChain([logoMedia, 'optionalAccess', _301 => _301.media_url])) {
|
|
13357
13412
|
return fixSupabaseStorageUrl(logoMedia.media_url);
|
|
13358
13413
|
}
|
|
13359
13414
|
return null;
|
|
@@ -13553,7 +13608,7 @@ function MingoInfoCard({
|
|
|
13553
13608
|
}
|
|
13554
13609
|
),
|
|
13555
13610
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13556
|
-
|
|
13611
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
13557
13612
|
{
|
|
13558
13613
|
groups: menuGroups,
|
|
13559
13614
|
triggerAriaLabel: menuAriaLabel,
|
|
@@ -13601,7 +13656,7 @@ function pickFetchedCardHref({
|
|
|
13601
13656
|
itemHref,
|
|
13602
13657
|
allowComposed
|
|
13603
13658
|
}) {
|
|
13604
|
-
if (_optionalChain([composed, 'optionalAccess',
|
|
13659
|
+
if (_optionalChain([composed, 'optionalAccess', _302 => _302.hostOverride])) {
|
|
13605
13660
|
return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
|
|
13606
13661
|
}
|
|
13607
13662
|
if (itemHref) return { source: "item", href: itemHref };
|
|
@@ -13708,7 +13763,7 @@ function resolveCardDestination({
|
|
|
13708
13763
|
composeContentUrl,
|
|
13709
13764
|
resolveHref = (href) => href
|
|
13710
13765
|
}) {
|
|
13711
|
-
const refPath = typeof _optionalChain([chatRef, 'access',
|
|
13766
|
+
const refPath = typeof _optionalChain([chatRef, 'access', _303 => _303.metadata, 'optionalAccess', _304 => _304.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
|
|
13712
13767
|
const path = _nullishCoalesce(refPath, () => ( (item ? readFetchedCardPath(item) : null)));
|
|
13713
13768
|
const cta = resolveSourceRowCTA(
|
|
13714
13769
|
{
|
|
@@ -13725,7 +13780,7 @@ function resolveCardDestination({
|
|
|
13725
13780
|
const rowUrl = cta.href ? resolveHref(cta.href) : _nullishCoalesce(chatRef.url, () => ( null));
|
|
13726
13781
|
const rowPlatform = _nullishCoalesce(_nullishCoalesce(cta.targetPlatform, () => ( chatRef.targetPlatform)), () => ( null));
|
|
13727
13782
|
if (rowUrl) return { url: rowUrl, targetPlatform: rowPlatform, path, source: "row" };
|
|
13728
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
13783
|
+
if (_optionalChain([entry, 'optionalAccess', _305 => _305.contentRefType]) && item) {
|
|
13729
13784
|
const choice = pickFetchedCardHref({
|
|
13730
13785
|
composed: resolveFetchedCardHref({
|
|
13731
13786
|
contentRefType: entry.contentRefType,
|
|
@@ -13733,7 +13788,7 @@ function resolveCardDestination({
|
|
|
13733
13788
|
item,
|
|
13734
13789
|
composeContentUrl
|
|
13735
13790
|
}),
|
|
13736
|
-
itemHref: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
13791
|
+
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _306 => _306.fallbackHref, 'optionalCall', _307 => _307(item)]), () => ( null)),
|
|
13737
13792
|
allowComposed: !entry.noComposedHref
|
|
13738
13793
|
});
|
|
13739
13794
|
const url = choice ? _nullishCoalesce(_chunk6GPMVHJNcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
@@ -13827,8 +13882,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
|
|
|
13827
13882
|
if (href) {
|
|
13828
13883
|
items.push({
|
|
13829
13884
|
id: "open-details",
|
|
13830
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
13831
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
13885
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _308 => _308.label]), () => ( "Open Details")),
|
|
13886
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _309 => _309.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
|
|
13832
13887
|
// Main row → open the entity (same tab, soft Link nav).
|
|
13833
13888
|
href,
|
|
13834
13889
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -13905,15 +13960,15 @@ function fetchedItemDisplayRef(item, chatRef) {
|
|
|
13905
13960
|
}
|
|
13906
13961
|
function fetchedFaqDisplayRef(item, chatRef) {
|
|
13907
13962
|
const it = item;
|
|
13908
|
-
const answer = typeof _optionalChain([it, 'optionalAccess',
|
|
13963
|
+
const answer = typeof _optionalChain([it, 'optionalAccess', _310 => _310.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
|
|
13909
13964
|
return {
|
|
13910
13965
|
type: "faq",
|
|
13911
13966
|
id: chatRef.id,
|
|
13912
13967
|
sourceRepo: chatRef.sourceRepo,
|
|
13913
|
-
title: typeof _optionalChain([it, 'optionalAccess',
|
|
13968
|
+
title: typeof _optionalChain([it, 'optionalAccess', _311 => _311.question]) === "string" && it.question ? it.question : chatRef.id,
|
|
13914
13969
|
url: _nullishCoalesce(chatRef.url, () => ( null)),
|
|
13915
13970
|
...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
|
|
13916
|
-
metadata: typeof _optionalChain([it, 'optionalAccess',
|
|
13971
|
+
metadata: typeof _optionalChain([it, 'optionalAccess', _312 => _312.section]) === "string" && it.section ? { section: it.section } : {}
|
|
13917
13972
|
};
|
|
13918
13973
|
}
|
|
13919
13974
|
function HubspotTicketChatCard({
|
|
@@ -13921,8 +13976,8 @@ function HubspotTicketChatCard({
|
|
|
13921
13976
|
isNewTab,
|
|
13922
13977
|
discuss
|
|
13923
13978
|
}) {
|
|
13924
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
13925
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
13979
|
+
const status = typeof _optionalChain([chatRef, 'access', _313 => _313.metadata, 'optionalAccess', _314 => _314.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
13980
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _315 => _315.metadata, 'optionalAccess', _316 => _316.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
13926
13981
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
13927
13982
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13928
13983
|
MingoInfoCard,
|
|
@@ -13945,7 +14000,7 @@ function FaqChatCard({
|
|
|
13945
14000
|
isNewTab,
|
|
13946
14001
|
discuss
|
|
13947
14002
|
}) {
|
|
13948
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
14003
|
+
const section = typeof _optionalChain([chatRef, 'access', _317 => _317.metadata, 'optionalAccess', _318 => _318.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
13949
14004
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
13950
14005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13951
14006
|
MingoInfoCard,
|
|
@@ -13965,7 +14020,7 @@ function SlackChatCard({
|
|
|
13965
14020
|
isNewTab,
|
|
13966
14021
|
discuss
|
|
13967
14022
|
}) {
|
|
13968
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
14023
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _319 => _319.metadata, 'optionalAccess', _320 => _320.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
13969
14024
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
13970
14025
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
13971
14026
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14008,7 +14063,7 @@ function TrustCenterChatCard({
|
|
|
14008
14063
|
isNewTab,
|
|
14009
14064
|
discuss
|
|
14010
14065
|
}) {
|
|
14011
|
-
const raw2 = _optionalChain([item, 'optionalAccess',
|
|
14066
|
+
const raw2 = _optionalChain([item, 'optionalAccess', _321 => _321.frameworks]);
|
|
14012
14067
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
14013
14068
|
const summary = _chunkFMSAN6SRcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
14014
14069
|
const leadFramework = frameworks[0];
|
|
@@ -14057,7 +14112,7 @@ function GenericFinancialChatCard({
|
|
|
14057
14112
|
isNewTab,
|
|
14058
14113
|
discuss
|
|
14059
14114
|
}) {
|
|
14060
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
14115
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _322 => _322.metadata, 'optionalAccess', _323 => _323.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
14061
14116
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14062
14117
|
MingoInfoCard,
|
|
14063
14118
|
{
|
|
@@ -14131,12 +14186,12 @@ function ProductReleaseChatCard({
|
|
|
14131
14186
|
discuss
|
|
14132
14187
|
}) {
|
|
14133
14188
|
const releaseProps = buildProps(item);
|
|
14134
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
14189
|
+
const status = _optionalChain([item, 'optionalAccess', _324 => _324.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
14135
14190
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14136
14191
|
EntityMingoCard,
|
|
14137
14192
|
{
|
|
14138
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14139
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14193
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.title]), () => ( "")),
|
|
14194
|
+
description: _optionalChain([item, 'optionalAccess', _326 => _326.summary]) || releaseProps.formattedDate || void 0,
|
|
14140
14195
|
cover: releaseProps.coverImage || void 0,
|
|
14141
14196
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX5LU4XQNcjs.Rocket02Icon, { size: 24 }),
|
|
14142
14197
|
status,
|
|
@@ -14153,17 +14208,17 @@ function CampaignChatCard({
|
|
|
14153
14208
|
isNewTab,
|
|
14154
14209
|
discuss
|
|
14155
14210
|
}) {
|
|
14156
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
14211
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _327 => _327.goals])) ? item.goals.length : 0;
|
|
14157
14212
|
const meta = [
|
|
14158
|
-
_optionalChain([item, 'optionalAccess',
|
|
14213
|
+
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ? _chunkFMSAN6SRcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
14159
14214
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14160
14215
|
"Marketing campaign"
|
|
14161
14216
|
].filter(Boolean).join(" \xB7 ");
|
|
14162
14217
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14163
14218
|
EntityMingoCard,
|
|
14164
14219
|
{
|
|
14165
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14166
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
14220
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _329 => _329.name]), () => ( "")),
|
|
14221
|
+
description: meta || _optionalChain([item, 'optionalAccess', _330 => _330.description]) || void 0,
|
|
14167
14222
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6OCFDC2Qcjs.Megaphone01Icon, { size: 24 }),
|
|
14168
14223
|
chatRef,
|
|
14169
14224
|
isNewTab,
|
|
@@ -14218,14 +14273,14 @@ function BlogChatCard({
|
|
|
14218
14273
|
hasEmbeddedVideo,
|
|
14219
14274
|
discuss
|
|
14220
14275
|
}) {
|
|
14221
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
14276
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _331 => _331.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _332 => _332.categories, 'access', _333 => _333.find, 'call', _334 => _334((c) => _optionalChain([c, 'optionalAccess', _335 => _335.name])), 'optionalAccess', _336 => _336.name]), () => ( void 0)) : void 0;
|
|
14222
14277
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
14223
14278
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14224
14279
|
EntityMingoCard,
|
|
14225
14280
|
{
|
|
14226
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14227
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14228
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14281
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _337 => _337.title]), () => ( "")),
|
|
14282
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _338 => _338.summary]), () => ( void 0)),
|
|
14283
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _339 => _339.featured_image]), ogPlaceholder),
|
|
14229
14284
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEAPORE6cjs.NewspaperIcon, { size: 24 }),
|
|
14230
14285
|
status,
|
|
14231
14286
|
chatRef,
|
|
@@ -14242,13 +14297,13 @@ function CaseStudyChatCard({
|
|
|
14242
14297
|
ogPlaceholder,
|
|
14243
14298
|
discuss
|
|
14244
14299
|
}) {
|
|
14245
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
14300
|
+
const meta = [_optionalChain([item, 'optionalAccess', _340 => _340.msp, 'optionalAccess', _341 => _341.name]), _optionalChain([item, 'optionalAccess', _342 => _342.user, 'optionalAccess', _343 => _343.full_name])].filter(Boolean).join(" \xB7 ");
|
|
14246
14301
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14247
14302
|
EntityMingoCard,
|
|
14248
14303
|
{
|
|
14249
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14250
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14251
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14304
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _344 => _344.title]), () => ( "")),
|
|
14305
|
+
description: _optionalChain([item, 'optionalAccess', _345 => _345.summary]) || meta || void 0,
|
|
14306
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _346 => _346.featured_image]), ogPlaceholder),
|
|
14252
14307
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44URXY24cjs.TrophyIcon, { size: 24 }),
|
|
14253
14308
|
status: { label: "Case study", variant: "grey" },
|
|
14254
14309
|
chatRef,
|
|
@@ -14265,13 +14320,13 @@ function CustomerInterviewChatCard({
|
|
|
14265
14320
|
ogPlaceholder,
|
|
14266
14321
|
discuss
|
|
14267
14322
|
}) {
|
|
14268
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
14323
|
+
const meta = [_optionalChain([item, 'optionalAccess', _347 => _347.user, 'optionalAccess', _348 => _348.full_name]), _optionalChain([item, 'optionalAccess', _349 => _349.msp, 'optionalAccess', _350 => _350.name])].filter(Boolean).join(" \xB7 ");
|
|
14269
14324
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14270
14325
|
EntityMingoCard,
|
|
14271
14326
|
{
|
|
14272
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14273
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14274
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14327
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _351 => _351.title]), () => ( "")),
|
|
14328
|
+
description: _optionalChain([item, 'optionalAccess', _352 => _352.video_summary]) || meta || void 0,
|
|
14329
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _353 => _353.featured_image]), ogPlaceholder),
|
|
14275
14330
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 }),
|
|
14276
14331
|
status: { label: "Interview", variant: "grey" },
|
|
14277
14332
|
chatRef,
|
|
@@ -14288,12 +14343,12 @@ function DesignDocChatCard({
|
|
|
14288
14343
|
discuss
|
|
14289
14344
|
}) {
|
|
14290
14345
|
const displayRef = fetchedItemDisplayRef(item, chatRef);
|
|
14291
|
-
const doc = _optionalChain([item, 'optionalAccess',
|
|
14346
|
+
const doc = _optionalChain([item, 'optionalAccess', _354 => _354.doc]);
|
|
14292
14347
|
const readiness = doc ? DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)] : null;
|
|
14293
14348
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14294
14349
|
MingoInfoCard,
|
|
14295
14350
|
{
|
|
14296
|
-
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess',
|
|
14351
|
+
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _355 => _355.title]), () => ( displayRef.title)),
|
|
14297
14352
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14298
14353
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14299
14354
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
@@ -14310,13 +14365,13 @@ function InvestorUpdateChatCard({
|
|
|
14310
14365
|
ogPlaceholder,
|
|
14311
14366
|
discuss
|
|
14312
14367
|
}) {
|
|
14313
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
14368
|
+
const title = _optionalChain([item, 'optionalAccess', _356 => _356.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _357 => _357.update_number]), () => ( "?"))}`;
|
|
14314
14369
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14315
14370
|
EntityMingoCard,
|
|
14316
14371
|
{
|
|
14317
14372
|
title,
|
|
14318
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14319
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14373
|
+
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) || _chunkFMSAN6SRcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _360 => _360.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _361 => _361.period_end]), () => ( null))) || void 0,
|
|
14374
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _362 => _362.featured_image]), ogPlaceholder),
|
|
14320
14375
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
14321
14376
|
status: { label: "Investor update", variant: "grey" },
|
|
14322
14377
|
chatRef,
|
|
@@ -14333,12 +14388,12 @@ function OnboardingGuideChatCard({
|
|
|
14333
14388
|
ogPlaceholder,
|
|
14334
14389
|
discuss
|
|
14335
14390
|
}) {
|
|
14336
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
14391
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _363 => _363.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _364 => _364.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _365 => _365.og_image_url]), ogPlaceholder)));
|
|
14337
14392
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14338
14393
|
EntityMingoCard,
|
|
14339
14394
|
{
|
|
14340
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14341
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14395
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _366 => _366.title]), () => ( "")),
|
|
14396
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _367 => _367.summary]), () => ( _optionalChain([item, 'optionalAccess', _368 => _368.description]))), () => ( void 0)),
|
|
14342
14397
|
cover,
|
|
14343
14398
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 24 }),
|
|
14344
14399
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -14363,9 +14418,9 @@ function ProgramChatCard({
|
|
|
14363
14418
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14364
14419
|
EntityMingoCard,
|
|
14365
14420
|
{
|
|
14366
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14367
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
14368
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14421
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _369 => _369.title]), () => ( "")),
|
|
14422
|
+
description: meta || _optionalChain([item, 'optionalAccess', _370 => _370.description]) || void 0,
|
|
14423
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _371 => _371.cover_url]), ogPlaceholder),
|
|
14369
14424
|
fallbackIcon: icon,
|
|
14370
14425
|
status: { label, variant: "grey" },
|
|
14371
14426
|
chatRef,
|
|
@@ -14382,10 +14437,10 @@ function RoadmapChatCard({
|
|
|
14382
14437
|
cardType,
|
|
14383
14438
|
discuss
|
|
14384
14439
|
}) {
|
|
14385
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
14386
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
14440
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _372 => _372.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
14441
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _373 => _373.customItemId]) != null;
|
|
14387
14442
|
const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UIJR4PYcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6DN5HKRWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQDSQKK2cjs.MapIcon, { size: 24 });
|
|
14388
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess',
|
|
14443
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _374 => _374.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
14389
14444
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
14390
14445
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
14391
14446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14406,10 +14461,10 @@ function RoadmapChatCard({
|
|
|
14406
14461
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14407
14462
|
EntityMingoCard,
|
|
14408
14463
|
{
|
|
14409
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14410
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14464
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _375 => _375.title]), () => ( "")),
|
|
14465
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _376 => _376.description]), () => ( void 0)),
|
|
14411
14466
|
fallbackIcon: icon,
|
|
14412
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
14467
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _377 => _377.status])),
|
|
14413
14468
|
chatRef,
|
|
14414
14469
|
isNewTab,
|
|
14415
14470
|
discuss,
|
|
@@ -14425,7 +14480,7 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
14425
14480
|
bareInline: true,
|
|
14426
14481
|
contentRefType: docType,
|
|
14427
14482
|
noComposedHref: true,
|
|
14428
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14483
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _378 => _378.url]), () => ( null)),
|
|
14429
14484
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14430
14485
|
render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
|
|
14431
14486
|
};
|
|
@@ -14457,7 +14512,7 @@ function financialRegistryEntries() {
|
|
|
14457
14512
|
);
|
|
14458
14513
|
}
|
|
14459
14514
|
function refText(ref, key) {
|
|
14460
|
-
const value = _optionalChain([ref, 'optionalAccess',
|
|
14515
|
+
const value = _optionalChain([ref, 'optionalAccess', _379 => _379[key]]);
|
|
14461
14516
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
14462
14517
|
}
|
|
14463
14518
|
function VendorGlyph({ title, logoUrl }) {
|
|
@@ -14503,7 +14558,7 @@ var REF_GLYPH_CARD_CONFIGS = {
|
|
|
14503
14558
|
// rate. A glyph card; it opens the pricing page.
|
|
14504
14559
|
openframe_price: { label: "OpenFrame price" },
|
|
14505
14560
|
// A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
|
|
14506
|
-
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess',
|
|
14561
|
+
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _380 => _380.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
|
|
14507
14562
|
};
|
|
14508
14563
|
function sourceGlyph(docType) {
|
|
14509
14564
|
const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
|
|
@@ -14522,8 +14577,8 @@ function refGlyphRegistryEntries() {
|
|
|
14522
14577
|
title: displayRef.title,
|
|
14523
14578
|
description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14524
14579
|
cover: entityCover(
|
|
14525
|
-
_optionalChain([displayRef, 'access',
|
|
14526
|
-
_nullishCoalesce(_optionalChain([opts, 'access',
|
|
14580
|
+
_optionalChain([displayRef, 'access', _381 => _381.metadata, 'optionalAccess', _382 => _382.videoPoster]),
|
|
14581
|
+
_nullishCoalesce(_optionalChain([opts, 'access', _383 => _383.extras, 'optionalAccess', _384 => _384.buildOgPlaceholderUrl, 'optionalCall', _385 => _385(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
|
|
14527
14582
|
),
|
|
14528
14583
|
fallbackIcon: glyph(displayRef),
|
|
14529
14584
|
status: { label: cfg.label, variant: "grey" },
|
|
@@ -14538,9 +14593,9 @@ function refGlyphRegistryEntries() {
|
|
|
14538
14593
|
}
|
|
14539
14594
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
14540
14595
|
const it = item;
|
|
14541
|
-
const title = typeof _optionalChain([it, 'optionalAccess',
|
|
14542
|
-
const author = typeof _optionalChain([it, 'optionalAccess',
|
|
14543
|
-
const summary = typeof _optionalChain([it, 'optionalAccess',
|
|
14596
|
+
const title = typeof _optionalChain([it, 'optionalAccess', _386 => _386.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
|
|
14597
|
+
const author = typeof _optionalChain([it, 'optionalAccess', _387 => _387.author, 'optionalAccess', _388 => _388.full_name]) === "string" ? it.author.full_name.trim() : "";
|
|
14598
|
+
const summary = typeof _optionalChain([it, 'optionalAccess', _389 => _389.summary]) === "string" ? it.summary.trim() : "";
|
|
14544
14599
|
const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
|
|
14545
14600
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
14546
14601
|
}
|
|
@@ -14603,7 +14658,7 @@ function programRegistryEntries() {
|
|
|
14603
14658
|
discuss: opts.discuss,
|
|
14604
14659
|
configKey: cfg.configKey,
|
|
14605
14660
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
14606
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14661
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _390 => _390.extras, 'optionalAccess', _391 => _391.buildOgPlaceholderUrl, 'optionalCall', _392 => _392(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _393 => _393.title]), () => ( "")))]), () => ( null))
|
|
14607
14662
|
}
|
|
14608
14663
|
)
|
|
14609
14664
|
}));
|
|
@@ -14624,7 +14679,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
14624
14679
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
14625
14680
|
// task id post-fetch (the refs frame used to carry it).
|
|
14626
14681
|
noComposedHref: true,
|
|
14627
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
14682
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _394 => _394.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
14628
14683
|
}
|
|
14629
14684
|
};
|
|
14630
14685
|
function roadmapRegistryEntries() {
|
|
@@ -14666,8 +14721,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14666
14721
|
DeletedDataCard,
|
|
14667
14722
|
{
|
|
14668
14723
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
14669
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
14670
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
14724
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _395 => _395.metadata, 'optionalAccess', _396 => _396.entity_label]), () => ( null)),
|
|
14725
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _397 => _397.metadata, 'optionalAccess', _398 => _398.recovery_note]), () => ( null))
|
|
14671
14726
|
}
|
|
14672
14727
|
)
|
|
14673
14728
|
},
|
|
@@ -14684,7 +14739,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14684
14739
|
bareInline: true,
|
|
14685
14740
|
contentRefType: "faq",
|
|
14686
14741
|
noComposedHref: true,
|
|
14687
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
14742
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _399 => _399.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
14688
14743
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14689
14744
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14690
14745
|
},
|
|
@@ -14731,8 +14786,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14731
14786
|
chatRef,
|
|
14732
14787
|
isNewTab: opts.isNewTab,
|
|
14733
14788
|
discuss: opts.discuss,
|
|
14734
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14735
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
14789
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _400 => _400.extras, 'optionalAccess', _401 => _401.buildOgPlaceholderUrl, 'optionalCall', _402 => _402(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _403 => _403.title]), () => ( "")))]), () => ( null)),
|
|
14790
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _404 => _404.metadata, 'optionalAccess', _405 => _405.hasEmbeddedVideo]) === true
|
|
14736
14791
|
}
|
|
14737
14792
|
)
|
|
14738
14793
|
},
|
|
@@ -14749,7 +14804,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14749
14804
|
chatRef,
|
|
14750
14805
|
isNewTab: opts.isNewTab,
|
|
14751
14806
|
discuss: opts.discuss,
|
|
14752
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14807
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _406 => _406.extras, 'optionalAccess', _407 => _407.buildOgPlaceholderUrl, 'optionalCall', _408 => _408(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.title]), () => ( "")))]), () => ( null))
|
|
14753
14808
|
}
|
|
14754
14809
|
)
|
|
14755
14810
|
},
|
|
@@ -14758,7 +14813,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14758
14813
|
contentRefType: "design_doc",
|
|
14759
14814
|
bareInline: true,
|
|
14760
14815
|
noComposedHref: true,
|
|
14761
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14816
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.url]), () => ( null)),
|
|
14762
14817
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14763
14818
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14764
14819
|
},
|
|
@@ -14775,7 +14830,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14775
14830
|
chatRef,
|
|
14776
14831
|
isNewTab: opts.isNewTab,
|
|
14777
14832
|
discuss: opts.discuss,
|
|
14778
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14833
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _411 => _411.extras, 'optionalAccess', _412 => _412.buildOgPlaceholderUrl, 'optionalCall', _413 => _413(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _414 => _414.title]), () => ( "")))]), () => ( null))
|
|
14779
14834
|
}
|
|
14780
14835
|
)
|
|
14781
14836
|
},
|
|
@@ -14786,7 +14841,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14786
14841
|
bareInline: true,
|
|
14787
14842
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
14788
14843
|
render: (item, chatRef, opts) => {
|
|
14789
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14844
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => ( _chunkFMSAN6SRcjs.defaultBuildProductReleaseCardProps));
|
|
14790
14845
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14791
14846
|
ProductReleaseChatCard,
|
|
14792
14847
|
{
|
|
@@ -14813,7 +14868,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14813
14868
|
chatRef,
|
|
14814
14869
|
isNewTab: opts.isNewTab,
|
|
14815
14870
|
discuss: opts.discuss,
|
|
14816
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14871
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _417 => _417.extras, 'optionalAccess', _418 => _418.buildOgPlaceholderUrl, 'optionalCall', _419 => _419(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _420 => _420.title]), () => ( "")))]), () => ( null))
|
|
14817
14872
|
}
|
|
14818
14873
|
)
|
|
14819
14874
|
},
|
|
@@ -14832,7 +14887,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14832
14887
|
chatRef,
|
|
14833
14888
|
isNewTab: opts.isNewTab,
|
|
14834
14889
|
discuss: opts.discuss,
|
|
14835
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14890
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _421 => _421.extras, 'optionalAccess', _422 => _422.buildOgPlaceholderUrl, 'optionalCall', _423 => _423(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _424 => _424.title]), () => ( "")))]), () => ( null))
|
|
14836
14891
|
}
|
|
14837
14892
|
)
|
|
14838
14893
|
},
|
|
@@ -14843,13 +14898,13 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14843
14898
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14844
14899
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
14845
14900
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
14846
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
14901
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _425 => _425.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
|
|
14847
14902
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14848
14903
|
},
|
|
14849
14904
|
...roadmapRegistryEntries()
|
|
14850
14905
|
};
|
|
14851
14906
|
function chatCardLabel(docType) {
|
|
14852
|
-
return _optionalChain([CHAT_CARD_REGISTRY, 'access',
|
|
14907
|
+
return _optionalChain([CHAT_CARD_REGISTRY, 'access', _426 => _426[docType], 'optionalAccess', _427 => _427.label]);
|
|
14853
14908
|
}
|
|
14854
14909
|
function ChatCardNavWrap({
|
|
14855
14910
|
href,
|
|
@@ -14865,13 +14920,13 @@ function ChatCardNavWrap({
|
|
|
14865
14920
|
if (!href) return;
|
|
14866
14921
|
const targetEl = e.target;
|
|
14867
14922
|
const host = e.currentTarget;
|
|
14868
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
14869
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
14870
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
14923
|
+
if (!_optionalChain([host, 'optionalAccess', _428 => _428.contains, 'call', _429 => _429(targetEl)])) return;
|
|
14924
|
+
if (_optionalChain([targetEl, 'optionalAccess', _430 => _430.closest, 'optionalCall', _431 => _431("button")])) return;
|
|
14925
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _432 => _432.closest, 'optionalCall', _433 => _433("a")])) return;
|
|
14871
14926
|
const handled = _chunkW4VEDSAXcjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
|
|
14872
14927
|
if (!handled) return;
|
|
14873
14928
|
e.stopPropagation();
|
|
14874
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
14929
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _434 => _434.closeChat])) panel.closeChat();
|
|
14875
14930
|
};
|
|
14876
14931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
14877
14932
|
}
|
|
@@ -14896,7 +14951,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14896
14951
|
const entry = CHAT_CARD_REGISTRY[chatRef.type];
|
|
14897
14952
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
14898
14953
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
14899
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
14954
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _435 => _435.contentRefType]), () => ( "")),
|
|
14900
14955
|
fetchEntry ? chatRef.id : ""
|
|
14901
14956
|
);
|
|
14902
14957
|
if (!entry) return null;
|
|
@@ -14923,7 +14978,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14923
14978
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
14924
14979
|
const discuss = discussFn ? {
|
|
14925
14980
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
14926
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14981
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTLWU6FYcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
14927
14982
|
run: () => discussFn(finalChatRef)
|
|
14928
14983
|
} : void 0;
|
|
14929
14984
|
const renderOpts = {
|
|
@@ -14931,7 +14986,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14931
14986
|
isNewTab,
|
|
14932
14987
|
discuss
|
|
14933
14988
|
};
|
|
14934
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
14989
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _436 => _436.metadata, 'optionalAccess', _437 => _437.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
14935
14990
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14936
14991
|
ChatCardNavWrap,
|
|
14937
14992
|
{
|
|
@@ -14963,7 +15018,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14963
15018
|
}
|
|
14964
15019
|
if (isLoading) {
|
|
14965
15020
|
return finish(
|
|
14966
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
15021
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'access', _438 => _438.skeleton, 'optionalCall', _439 => _439()]), () => ( null)),
|
|
14967
15022
|
entry.disclosure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatCardDisclosureButton, { kind: entry.disclosure, loading: true }) : void 0,
|
|
14968
15023
|
true
|
|
14969
15024
|
);
|
|
@@ -14977,7 +15032,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14977
15032
|
}
|
|
14978
15033
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not found" });
|
|
14979
15034
|
}
|
|
14980
|
-
const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call',
|
|
15035
|
+
const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _440 => _440(item, finalChatRef), 'optionalAccess', _441 => _441.kind])));
|
|
14981
15036
|
if (kind) {
|
|
14982
15037
|
const content = CHAT_CARD_DISCLOSURES[kind].fromItem(item, finalChatRef);
|
|
14983
15038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15248,7 +15303,7 @@ function useChunkCatchup({
|
|
|
15248
15303
|
if (catchupRun.current === run) {
|
|
15249
15304
|
if (currentDialogId !== dialogIdRef.current) {
|
|
15250
15305
|
catchupRun.current = null;
|
|
15251
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
15306
|
+
if (_optionalChain([pendingCatchupRef, 'access', _442 => _442.current, 'optionalAccess', _443 => _443.dialogId]) === currentDialogId) {
|
|
15252
15307
|
pendingCatchupRef.current = null;
|
|
15253
15308
|
}
|
|
15254
15309
|
} else {
|
|
@@ -15259,7 +15314,7 @@ function useChunkCatchup({
|
|
|
15259
15314
|
if (pending.dialogId === currentDialogId) {
|
|
15260
15315
|
rearmForQueuedCatchup();
|
|
15261
15316
|
try {
|
|
15262
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
15317
|
+
await _optionalChain([catchUpChunksRef, 'access', _444 => _444.current, 'optionalCall', _445 => _445(pending.fromSequenceId)]);
|
|
15263
15318
|
} catch (rerunError) {
|
|
15264
15319
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
15265
15320
|
}
|
|
@@ -15410,20 +15465,20 @@ function useNatsDialogSubscription({
|
|
|
15410
15465
|
const tearDownSubscriptions = () => {
|
|
15411
15466
|
subscriptionRefs.current.forEach((sub) => {
|
|
15412
15467
|
try {
|
|
15413
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15468
|
+
_optionalChain([sub, 'optionalAccess', _446 => _446.unsubscribe, 'call', _447 => _447()]);
|
|
15414
15469
|
} catch (e11) {
|
|
15415
15470
|
}
|
|
15416
15471
|
});
|
|
15417
15472
|
subscriptionRefs.current.clear();
|
|
15418
15473
|
lastSubscribedDialogIdRef.current = null;
|
|
15419
|
-
_optionalChain([abortControllerRef, 'access',
|
|
15474
|
+
_optionalChain([abortControllerRef, 'access', _448 => _448.current, 'optionalAccess', _449 => _449.abort, 'call', _450 => _450()]);
|
|
15420
15475
|
abortControllerRef.current = null;
|
|
15421
15476
|
};
|
|
15422
15477
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
15423
15478
|
const lifecycle = _chunkQDB2JO55cjs.startConnectionLifecycle.call(void 0, {
|
|
15424
15479
|
conn: sharedConn,
|
|
15425
15480
|
wsUrl,
|
|
15426
|
-
onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access',
|
|
15481
|
+
onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _451 => _451.current, 'optionalCall', _452 => _452(ctx)]),
|
|
15427
15482
|
backoff: reconnectionBackoffRef.current,
|
|
15428
15483
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
15429
15484
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -15434,7 +15489,7 @@ function useNatsDialogSubscription({
|
|
|
15434
15489
|
setReconnectionCount((c) => c + 1);
|
|
15435
15490
|
}
|
|
15436
15491
|
hadConnectionBeforeRef.current = true;
|
|
15437
|
-
_optionalChain([onConnectRef, 'access',
|
|
15492
|
+
_optionalChain([onConnectRef, 'access', _453 => _453.current, 'optionalCall', _454 => _454()]);
|
|
15438
15493
|
}
|
|
15439
15494
|
if (status === "error") {
|
|
15440
15495
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -15444,7 +15499,7 @@ function useNatsDialogSubscription({
|
|
|
15444
15499
|
setIsConnected(false);
|
|
15445
15500
|
setIsSubscribed(false);
|
|
15446
15501
|
tearDownSubscriptions();
|
|
15447
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
15502
|
+
_optionalChain([onDisconnectRef, 'access', _455 => _455.current, 'optionalCall', _456 => _456()]);
|
|
15448
15503
|
}
|
|
15449
15504
|
}
|
|
15450
15505
|
});
|
|
@@ -15475,13 +15530,13 @@ function useNatsDialogSubscription({
|
|
|
15475
15530
|
setIsSubscribed(false);
|
|
15476
15531
|
subscriptionRefs.current.forEach((sub) => {
|
|
15477
15532
|
try {
|
|
15478
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15533
|
+
_optionalChain([sub, 'optionalAccess', _457 => _457.unsubscribe, 'call', _458 => _458()]);
|
|
15479
15534
|
} catch (e12) {
|
|
15480
15535
|
}
|
|
15481
15536
|
});
|
|
15482
15537
|
subscriptionRefs.current.clear();
|
|
15483
15538
|
lastSubscribedDialogIdRef.current = null;
|
|
15484
|
-
_optionalChain([abortControllerRef, 'access',
|
|
15539
|
+
_optionalChain([abortControllerRef, 'access', _459 => _459.current, 'optionalAccess', _460 => _460.abort, 'call', _461 => _461()]);
|
|
15485
15540
|
abortControllerRef.current = null;
|
|
15486
15541
|
}
|
|
15487
15542
|
return void 0;
|
|
@@ -15493,12 +15548,12 @@ function useNatsDialogSubscription({
|
|
|
15493
15548
|
if (subscriptionRefs.current.size > 0) {
|
|
15494
15549
|
subscriptionRefs.current.forEach((sub) => {
|
|
15495
15550
|
try {
|
|
15496
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15551
|
+
_optionalChain([sub, 'optionalAccess', _462 => _462.unsubscribe, 'call', _463 => _463()]);
|
|
15497
15552
|
} catch (e13) {
|
|
15498
15553
|
}
|
|
15499
15554
|
});
|
|
15500
15555
|
subscriptionRefs.current.clear();
|
|
15501
|
-
_optionalChain([abortControllerRef, 'access',
|
|
15556
|
+
_optionalChain([abortControllerRef, 'access', _464 => _464.current, 'optionalAccess', _465 => _465.abort, 'call', _466 => _466()]);
|
|
15502
15557
|
}
|
|
15503
15558
|
abortControllerRef.current = new AbortController();
|
|
15504
15559
|
const abort = abortControllerRef.current;
|
|
@@ -15528,7 +15583,7 @@ function useNatsDialogSubscription({
|
|
|
15528
15583
|
});
|
|
15529
15584
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
15530
15585
|
setIsSubscribed(true);
|
|
15531
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
15586
|
+
_optionalChain([onSubscribedRef, 'access', _467 => _467.current, 'optionalCall', _468 => _468()]);
|
|
15532
15587
|
};
|
|
15533
15588
|
if (isConnectedRef.current) {
|
|
15534
15589
|
createSubscriptions();
|
|
@@ -15539,7 +15594,7 @@ function useNatsDialogSubscription({
|
|
|
15539
15594
|
abort.abort();
|
|
15540
15595
|
subscriptions.forEach((sub) => {
|
|
15541
15596
|
try {
|
|
15542
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15597
|
+
_optionalChain([sub, 'optionalAccess', _469 => _469.unsubscribe, 'call', _470 => _470()]);
|
|
15543
15598
|
} catch (e15) {
|
|
15544
15599
|
}
|
|
15545
15600
|
});
|
|
@@ -15578,7 +15633,7 @@ function useNatsDialogSubscription({
|
|
|
15578
15633
|
});
|
|
15579
15634
|
lastSubscribedDialogIdRef.current = currentDialogId;
|
|
15580
15635
|
setIsSubscribed(true);
|
|
15581
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
15636
|
+
_optionalChain([onSubscribedRef, 'access', _471 => _471.current, 'optionalCall', _472 => _472()]);
|
|
15582
15637
|
} else if (subscriptionRefs.current.size > 0) {
|
|
15583
15638
|
setIsSubscribed(true);
|
|
15584
15639
|
}
|
|
@@ -15586,10 +15641,10 @@ function useNatsDialogSubscription({
|
|
|
15586
15641
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
15587
15642
|
}
|
|
15588
15643
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
15589
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
15644
|
+
const path = _optionalChain([options, 'optionalAccess', _473 => _473.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
15590
15645
|
const u = new URL(path, apiBaseUrl);
|
|
15591
15646
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
15592
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
15647
|
+
if (_optionalChain([options, 'optionalAccess', _474 => _474.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _475 => _475.token])) {
|
|
15593
15648
|
u.searchParams.set("authorization", options.token);
|
|
15594
15649
|
}
|
|
15595
15650
|
return u.toString();
|
|
@@ -15607,7 +15662,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
15607
15662
|
const data = await res.json();
|
|
15608
15663
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
15609
15664
|
} catch (err) {
|
|
15610
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
15665
|
+
if (_optionalChain([err, 'optionalAccess', _476 => _476.name]) === "AbortError") throw err;
|
|
15611
15666
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
15612
15667
|
return [];
|
|
15613
15668
|
}
|
|
@@ -15615,8 +15670,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
15615
15670
|
var NO_COMMANDS = [];
|
|
15616
15671
|
function useSlashCommands(prefix, commandsUrl) {
|
|
15617
15672
|
const [answered, setAnswered] = _react.useState.call(void 0, null);
|
|
15618
|
-
const commands = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
15619
|
-
const loading = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
15673
|
+
const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _477 => _477.prefix]) === prefix ? answered.commands : NO_COMMANDS;
|
|
15674
|
+
const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _478 => _478.prefix]) !== prefix;
|
|
15620
15675
|
_react.useEffect.call(void 0, () => {
|
|
15621
15676
|
if (prefix == null) return void 0;
|
|
15622
15677
|
let cancelled = false;
|
|
@@ -15626,7 +15681,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
15626
15681
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
15627
15682
|
if (!cancelled) setAnswered({ prefix, commands: next });
|
|
15628
15683
|
} catch (err) {
|
|
15629
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
15684
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _479 => _479.name]) !== "AbortError") {
|
|
15630
15685
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
15631
15686
|
setAnswered({ prefix, commands: NO_COMMANDS });
|
|
15632
15687
|
}
|
|
@@ -15649,7 +15704,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
15649
15704
|
const query = _reactquery.useQuery.call(void 0, {
|
|
15650
15705
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
15651
15706
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
15652
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
15707
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.enabled]), () => ( true)),
|
|
15653
15708
|
staleTime: Infinity,
|
|
15654
15709
|
gcTime: Infinity,
|
|
15655
15710
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -15688,15 +15743,15 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
15688
15743
|
}
|
|
15689
15744
|
const data = await res.json();
|
|
15690
15745
|
return {
|
|
15691
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15692
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15693
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15694
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15695
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15696
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15746
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _481 => _481.name]), () => ( null)),
|
|
15747
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _482 => _482.icon]), () => ( null)),
|
|
15748
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _483 => _483.greeting]), () => ( null)),
|
|
15749
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _484 => _484.enabledRagTableIds]), () => ( [])),
|
|
15750
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _485 => _485.quickActions]), () => ( [])),
|
|
15751
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _486 => _486.suggestedQueries]), () => ( []))
|
|
15697
15752
|
};
|
|
15698
15753
|
} catch (err) {
|
|
15699
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
15754
|
+
if (_optionalChain([err, 'optionalAccess', _487 => _487.name]) === "AbortError") throw err;
|
|
15700
15755
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
15701
15756
|
return EMPTY_STATE_FALLBACK;
|
|
15702
15757
|
}
|
|
@@ -15706,7 +15761,7 @@ function emptyStateUrlForTopic(emptyStateUrl, topic) {
|
|
|
15706
15761
|
return `${emptyStateUrl}${emptyStateUrl.includes("?") ? "&" : "?"}${new URLSearchParams({ topic }).toString()}`;
|
|
15707
15762
|
}
|
|
15708
15763
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
15709
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
15764
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _488 => _488.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
15710
15765
|
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
15711
15766
|
const url = emptyStateUrl ? emptyStateUrlForTopic(emptyStateUrl, topic) : void 0;
|
|
15712
15767
|
const query = _reactquery.useQuery.call(void 0, {
|
|
@@ -15737,7 +15792,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
15737
15792
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
15738
15793
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
15739
15794
|
return new Promise((resolve, reject) => {
|
|
15740
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
15795
|
+
if (_optionalChain([signal, 'optionalAccess', _489 => _489.aborted])) {
|
|
15741
15796
|
reject(new Error("Upload cancelled"));
|
|
15742
15797
|
return;
|
|
15743
15798
|
}
|
|
@@ -15779,7 +15834,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
15779
15834
|
const handleSignalAbort = () => {
|
|
15780
15835
|
xhr.abort();
|
|
15781
15836
|
};
|
|
15782
|
-
_optionalChain([signal, 'optionalAccess',
|
|
15837
|
+
_optionalChain([signal, 'optionalAccess', _490 => _490.addEventListener, 'call', _491 => _491("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
|
|
15783
15838
|
xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
|
|
15784
15839
|
xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
|
|
15785
15840
|
xhr.addEventListener("error", handleError, { signal: listeners.signal });
|
|
@@ -15823,10 +15878,10 @@ function useChatAttachments() {
|
|
|
15823
15878
|
try {
|
|
15824
15879
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
15825
15880
|
} catch (err) {
|
|
15826
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15881
|
+
if (_optionalChain([ctrl, 'optionalAccess', _492 => _492.signal, 'access', _493 => _493.aborted])) return;
|
|
15827
15882
|
throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
|
|
15828
15883
|
}
|
|
15829
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15884
|
+
if (_optionalChain([ctrl, 'optionalAccess', _494 => _494.signal, 'access', _495 => _495.aborted])) return;
|
|
15830
15885
|
if (!sniffed) {
|
|
15831
15886
|
throw new Error("Unrecognized file format");
|
|
15832
15887
|
}
|
|
@@ -15840,7 +15895,7 @@ function useChatAttachments() {
|
|
|
15840
15895
|
const urlResp = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
15841
15896
|
method: "POST",
|
|
15842
15897
|
headers: { "Content-Type": "application/json" },
|
|
15843
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
15898
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _496 => _496.signal]),
|
|
15844
15899
|
body: JSON.stringify({
|
|
15845
15900
|
fileName: att.file.name,
|
|
15846
15901
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -15869,9 +15924,9 @@ function useChatAttachments() {
|
|
|
15869
15924
|
(pct) => {
|
|
15870
15925
|
updateOne(att.id, { progress: pct });
|
|
15871
15926
|
},
|
|
15872
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
15927
|
+
_optionalChain([ctrl, 'optionalAccess', _497 => _497.signal])
|
|
15873
15928
|
);
|
|
15874
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15929
|
+
if (_optionalChain([ctrl, 'optionalAccess', _498 => _498.signal, 'access', _499 => _499.aborted])) return;
|
|
15875
15930
|
updateOne(att.id, {
|
|
15876
15931
|
status: "ready",
|
|
15877
15932
|
progress: 100,
|
|
@@ -15879,7 +15934,7 @@ function useChatAttachments() {
|
|
|
15879
15934
|
viewToken: mintData.viewToken
|
|
15880
15935
|
});
|
|
15881
15936
|
} catch (err) {
|
|
15882
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15937
|
+
if (_optionalChain([ctrl, 'optionalAccess', _500 => _500.signal, 'access', _501 => _501.aborted])) return;
|
|
15883
15938
|
const message = err instanceof Error ? err.message : String(err);
|
|
15884
15939
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
|
|
15885
15940
|
} finally {
|
|
@@ -16028,11 +16083,11 @@ var ANON_DEFAULTS = {
|
|
|
16028
16083
|
function useResolveChatIdentity(enabled) {
|
|
16029
16084
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
16030
16085
|
const url = runtime.endpoints.identityUrl;
|
|
16031
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
16086
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _502 => _502.email]), () => ( null));
|
|
16032
16087
|
const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
|
|
16033
16088
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
16034
|
-
const data = _optionalChain([resolved, 'optionalAccess',
|
|
16035
|
-
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess',
|
|
16089
|
+
const data = _optionalChain([resolved, 'optionalAccess', _503 => _503.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
|
|
16090
|
+
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _504 => _504.key]) !== requestKey;
|
|
16036
16091
|
_react.useEffect.call(void 0, () => {
|
|
16037
16092
|
if (requestKey === null) return void 0;
|
|
16038
16093
|
let cancelled = false;
|
|
@@ -16154,9 +16209,9 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
|
|
|
16154
16209
|
role: "user",
|
|
16155
16210
|
content: content.question,
|
|
16156
16211
|
timestamp: new Date(at),
|
|
16157
|
-
name: _optionalChain([user, 'optionalAccess',
|
|
16158
|
-
avatar: _optionalChain([user, 'optionalAccess',
|
|
16159
|
-
authorType: _optionalChain([user, 'optionalAccess',
|
|
16212
|
+
name: _optionalChain([user, 'optionalAccess', _505 => _505.name]),
|
|
16213
|
+
avatar: _optionalChain([user, 'optionalAccess', _506 => _506.avatar]),
|
|
16214
|
+
authorType: _optionalChain([user, 'optionalAccess', _507 => _507.authorType])
|
|
16160
16215
|
},
|
|
16161
16216
|
{
|
|
16162
16217
|
id: `${id}-answer`,
|
|
@@ -16167,10 +16222,10 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
|
|
|
16167
16222
|
],
|
|
16168
16223
|
// A millisecond after the question, so the pair keeps its order.
|
|
16169
16224
|
timestamp: new Date(at + 1),
|
|
16170
|
-
name: _optionalChain([assistant, 'optionalAccess',
|
|
16171
|
-
avatar: _optionalChain([assistant, 'optionalAccess',
|
|
16172
|
-
authorType: _optionalChain([assistant, 'optionalAccess',
|
|
16173
|
-
assistantType: _optionalChain([assistant, 'optionalAccess',
|
|
16225
|
+
name: _optionalChain([assistant, 'optionalAccess', _508 => _508.name]),
|
|
16226
|
+
avatar: _optionalChain([assistant, 'optionalAccess', _509 => _509.avatar]),
|
|
16227
|
+
authorType: _optionalChain([assistant, 'optionalAccess', _510 => _510.authorType]),
|
|
16228
|
+
assistantType: _optionalChain([assistant, 'optionalAccess', _511 => _511.assistantType])
|
|
16174
16229
|
}
|
|
16175
16230
|
];
|
|
16176
16231
|
}
|
|
@@ -16186,8 +16241,8 @@ function mergeByTime(thread, local) {
|
|
|
16186
16241
|
const out = [];
|
|
16187
16242
|
let next = 0;
|
|
16188
16243
|
for (const message of thread) {
|
|
16189
|
-
const at = _optionalChain([message, 'access',
|
|
16190
|
-
while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access',
|
|
16244
|
+
const at = _optionalChain([message, 'access', _512 => _512.timestamp, 'optionalAccess', _513 => _513.getTime, 'call', _514 => _514()]);
|
|
16245
|
+
while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _515 => _515[next], 'access', _516 => _516.timestamp, 'optionalAccess', _517 => _517.getTime, 'call', _518 => _518()]), () => ( 0))) < at) {
|
|
16191
16246
|
out.push(local[next]);
|
|
16192
16247
|
next += 1;
|
|
16193
16248
|
}
|
|
@@ -16272,9 +16327,9 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
16272
16327
|
for (const seg of segments) {
|
|
16273
16328
|
const tail = merged[merged.length - 1];
|
|
16274
16329
|
const key = upsertKey(seg);
|
|
16275
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
16330
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _519 => _519.type]) === "text") {
|
|
16276
16331
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
16277
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
16332
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _520 => _520.type]) === "thinking") {
|
|
16278
16333
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
16279
16334
|
} else if (key) {
|
|
16280
16335
|
let idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -16315,7 +16370,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
16315
16370
|
}
|
|
16316
16371
|
if (s.type !== "approval_batch") return s;
|
|
16317
16372
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
16318
|
-
const hasRow = _optionalChain([s, 'access',
|
|
16373
|
+
const hasRow = _optionalChain([s, 'access', _521 => _521.data, 'access', _522 => _522.toolCalls, 'optionalAccess', _523 => _523.some, 'call', _524 => _524((c) => c.toolExecutionRequestId === requestId)]);
|
|
16319
16374
|
if (!isAnchor && !hasRow) return s;
|
|
16320
16375
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
16321
16376
|
const nextExecutions = hasRow ? {
|
|
@@ -16337,8 +16392,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
16337
16392
|
};
|
|
16338
16393
|
}
|
|
16339
16394
|
function nextBatchExecution(prevExec, toolData) {
|
|
16340
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
16341
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
16395
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _525 => _525.status]) === "done") return null;
|
|
16396
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _526 => _526.result]), success: _optionalChain([prevExec, 'optionalAccess', _527 => _527.success]) };
|
|
16342
16397
|
}
|
|
16343
16398
|
function withBatchExecution(seg, execId, state) {
|
|
16344
16399
|
return {
|
|
@@ -16355,11 +16410,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
16355
16410
|
}
|
|
16356
16411
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
16357
16412
|
return mapSegments(prev, (s) => {
|
|
16358
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
16413
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _528 => _528.data, 'access', _529 => _529.toolCalls, 'optionalAccess', _530 => _530.some, 'call', _531 => _531((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
16359
16414
|
return s;
|
|
16360
16415
|
}
|
|
16361
|
-
const existing = _optionalChain([s, 'access',
|
|
16362
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
16416
|
+
const existing = _optionalChain([s, 'access', _532 => _532.data, 'access', _533 => _533.executions, 'optionalAccess', _534 => _534[rowRequestId]]);
|
|
16417
|
+
if (_optionalChain([existing, 'optionalAccess', _535 => _535.status]) === "done") return s;
|
|
16363
16418
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
16364
16419
|
});
|
|
16365
16420
|
}
|
|
@@ -16395,7 +16450,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
16395
16450
|
for (let j = message.segments.length - 1; j >= 0; j--) {
|
|
16396
16451
|
const seg = message.segments[j];
|
|
16397
16452
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
16398
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
16453
|
+
const prevExec = _optionalChain([seg, 'access', _536 => _536.data, 'access', _537 => _537.executions, 'optionalAccess', _538 => _538[execId]]);
|
|
16399
16454
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
16400
16455
|
if (nextExec === null) return prev;
|
|
16401
16456
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -16568,9 +16623,9 @@ var MessageSegmentAccumulator = class {
|
|
|
16568
16623
|
type: "tool_execution",
|
|
16569
16624
|
data: {
|
|
16570
16625
|
...toolData,
|
|
16571
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
16572
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
16573
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
16626
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _539 => _539.data, 'access', _540 => _540.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _541 => _541.toolTitle]))),
|
|
16627
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _542 => _542.data, 'access', _543 => _543.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _544 => _544.toolExplanation]))),
|
|
16628
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _545 => _545.parameters])
|
|
16574
16629
|
}
|
|
16575
16630
|
};
|
|
16576
16631
|
if (existingIndex !== -1) {
|
|
@@ -16594,7 +16649,7 @@ var MessageSegmentAccumulator = class {
|
|
|
16594
16649
|
if (seg.type !== "approval_batch") return seg;
|
|
16595
16650
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
16596
16651
|
if (!hasCall) return seg;
|
|
16597
|
-
const prev = _optionalChain([seg, 'access',
|
|
16652
|
+
const prev = _optionalChain([seg, 'access', _546 => _546.data, 'access', _547 => _547.executions, 'optionalAccess', _548 => _548[execId]]);
|
|
16598
16653
|
const next = nextBatchExecution(prev, toolData);
|
|
16599
16654
|
matched = true;
|
|
16600
16655
|
if (next === null) return seg;
|
|
@@ -16728,8 +16783,8 @@ var MessageSegmentAccumulator = class {
|
|
|
16728
16783
|
requestId,
|
|
16729
16784
|
{
|
|
16730
16785
|
...pendingApproval,
|
|
16731
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
16732
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
16786
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _549 => _549.command]) || "",
|
|
16787
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _550 => _550.approvalType]) || approvalType
|
|
16733
16788
|
},
|
|
16734
16789
|
status
|
|
16735
16790
|
);
|
|
@@ -16754,9 +16809,9 @@ var MessageSegmentAccumulator = class {
|
|
|
16754
16809
|
type: "escalation_offer",
|
|
16755
16810
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
16756
16811
|
// not blank the card the PENDING chunk already painted.
|
|
16757
|
-
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess',
|
|
16812
|
+
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _551 => _551.data, 'access', _552 => _552.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _553 => _553.data, 'access', _554 => _554.origin]))) },
|
|
16758
16813
|
status,
|
|
16759
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
16814
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _555 => _555.resolvedByName]))),
|
|
16760
16815
|
onApprove: this.callbacks.onEscalationApprove,
|
|
16761
16816
|
onReject: this.callbacks.onEscalationReject
|
|
16762
16817
|
};
|
|
@@ -17078,7 +17133,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17078
17133
|
let stateCache = null;
|
|
17079
17134
|
function invalidate() {
|
|
17080
17135
|
stateCache = null;
|
|
17081
|
-
_optionalChain([onChange, 'optionalCall',
|
|
17136
|
+
_optionalChain([onChange, 'optionalCall', _556 => _556()]);
|
|
17082
17137
|
}
|
|
17083
17138
|
function getState() {
|
|
17084
17139
|
if (!stateCache) {
|
|
@@ -17094,7 +17149,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17094
17149
|
return stateCache;
|
|
17095
17150
|
}
|
|
17096
17151
|
function emit(name, ...args) {
|
|
17097
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
17152
|
+
_optionalChain([onEffect, 'optionalCall', _557 => _557({ name, args })]);
|
|
17098
17153
|
}
|
|
17099
17154
|
function setMessagesInternal(next) {
|
|
17100
17155
|
if (next !== messages) {
|
|
@@ -17137,12 +17192,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
17137
17192
|
return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
|
|
17138
17193
|
}
|
|
17139
17194
|
function applySegmentsToState(segments, meta) {
|
|
17140
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
17141
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
17195
|
+
const seq = _optionalChain([meta, 'optionalAccess', _558 => _558.streamSeq]);
|
|
17196
|
+
if (_optionalChain([meta, 'optionalAccess', _559 => _559.append]) && meta.isCompacting) {
|
|
17142
17197
|
setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
|
|
17143
17198
|
return;
|
|
17144
17199
|
}
|
|
17145
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
17200
|
+
if (_optionalChain([meta, 'optionalAccess', _560 => _560.append])) {
|
|
17146
17201
|
setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
|
|
17147
17202
|
return;
|
|
17148
17203
|
}
|
|
@@ -17154,7 +17209,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17154
17209
|
adoptTrailingAssistant = false;
|
|
17155
17210
|
const last = messages[messages.length - 1];
|
|
17156
17211
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
17157
|
-
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
17212
|
+
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _561 => _561.segments, 'optionalAccess', _562 => _562.length]), () => ( 0))) > 0 || last.content !== "";
|
|
17158
17213
|
if (!hasContent) return;
|
|
17159
17214
|
setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
|
|
17160
17215
|
}
|
|
@@ -17370,16 +17425,16 @@ function createChatStreamReducer(options = {}) {
|
|
|
17370
17425
|
const status = approvalStatuses[requestId] || "pending";
|
|
17371
17426
|
if (!displayInline(approvalType)) {
|
|
17372
17427
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
17373
|
-
const summary = required ?
|
|
17428
|
+
const summary = required ? _chunkQTLWU6FYcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
17374
17429
|
pendingEscalated.set(requestId, {
|
|
17375
17430
|
command: summary,
|
|
17376
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
17431
|
+
explanation: _optionalChain([required, 'optionalAccess', _563 => _563.toolExplanation]),
|
|
17377
17432
|
approvalType,
|
|
17378
17433
|
toolCalls
|
|
17379
17434
|
});
|
|
17380
17435
|
emit("onEscalatedApproval", requestId, {
|
|
17381
17436
|
command: summary,
|
|
17382
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
17437
|
+
explanation: _optionalChain([required, 'optionalAccess', _564 => _564.toolExplanation]),
|
|
17383
17438
|
approvalType
|
|
17384
17439
|
});
|
|
17385
17440
|
break;
|
|
@@ -17403,7 +17458,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17403
17458
|
if (!call.requiresApproval) continue;
|
|
17404
17459
|
segments = accumulator.addApprovalRequest(
|
|
17405
17460
|
requestId,
|
|
17406
|
-
|
|
17461
|
+
_chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
|
|
17407
17462
|
call.toolExplanation,
|
|
17408
17463
|
approvalType,
|
|
17409
17464
|
status,
|
|
@@ -17482,7 +17537,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17482
17537
|
if (!call.requiresApproval) continue;
|
|
17483
17538
|
segments = accumulator.addApprovalRequest(
|
|
17484
17539
|
requestId,
|
|
17485
|
-
|
|
17540
|
+
_chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
|
|
17486
17541
|
call.toolExplanation,
|
|
17487
17542
|
escalatedData.approvalType,
|
|
17488
17543
|
status
|
|
@@ -17751,7 +17806,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17751
17806
|
const resolveBatch = (status, confirm) => async () => {
|
|
17752
17807
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
17753
17808
|
for (const id of ids) {
|
|
17754
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
17809
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _565 => _565(id)]);
|
|
17755
17810
|
if (ok === false) {
|
|
17756
17811
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
17757
17812
|
}
|
|
@@ -17889,8 +17944,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
17889
17944
|
}
|
|
17890
17945
|
}
|
|
17891
17946
|
}
|
|
17892
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
17893
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
17947
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _566 => _566.resumed]), () => ( messages.length > 0)));
|
|
17948
|
+
if (_optionalChain([extras, 'optionalAccess', _567 => _567.agentBusy])) agentBusyState();
|
|
17894
17949
|
invalidate();
|
|
17895
17950
|
}
|
|
17896
17951
|
return {
|
|
@@ -17975,7 +18030,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17975
18030
|
},
|
|
17976
18031
|
endSseTurn() {
|
|
17977
18032
|
const last = messages[messages.length - 1];
|
|
17978
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
18033
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _568 => _568.segments, 'optionalAccess', _569 => _569.length]), () => ( 0))) === 0 && last.content === "") {
|
|
17979
18034
|
messages = messages.slice(0, -1);
|
|
17980
18035
|
}
|
|
17981
18036
|
sseCurrentText = "";
|
|
@@ -18128,10 +18183,10 @@ function createChatDialogStore(options = {}) {
|
|
|
18128
18183
|
if (onEvict) {
|
|
18129
18184
|
const sep = key.indexOf(KEY_SEP);
|
|
18130
18185
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
18131
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18132
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18133
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18134
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18186
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _570 => _570.state, 'access', _571 => _571.messages]), () => ( EMPTY_STATE.messages)),
|
|
18187
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _572 => _572.state, 'access', _573 => _573.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
18188
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _574 => _574.getLastAppliedSeq, 'call', _575 => _575()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
18189
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _576 => _576.getPendingEchoes, 'call', _577 => _577()]), () => ( EMPTY_PENDING_ECHOES))
|
|
18135
18190
|
});
|
|
18136
18191
|
}
|
|
18137
18192
|
}
|
|
@@ -18141,12 +18196,12 @@ function createChatDialogStore(options = {}) {
|
|
|
18141
18196
|
const key = keyOf(dialogId, side);
|
|
18142
18197
|
let reducer = reducers.get(key);
|
|
18143
18198
|
if (!reducer) {
|
|
18144
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
18199
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _578 => _578(dialogId, side)]), () => ( {}));
|
|
18145
18200
|
const userOnChange = base.onChange;
|
|
18146
18201
|
reducer = createChatStreamReducer({
|
|
18147
18202
|
...base,
|
|
18148
18203
|
onChange: () => {
|
|
18149
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
18204
|
+
_optionalChain([userOnChange, 'optionalCall', _579 => _579()]);
|
|
18150
18205
|
notify();
|
|
18151
18206
|
}
|
|
18152
18207
|
});
|
|
@@ -18191,7 +18246,7 @@ function createChatDialogStore(options = {}) {
|
|
|
18191
18246
|
};
|
|
18192
18247
|
}
|
|
18193
18248
|
function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
18194
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
18249
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _580 => _580.get, 'call', _581 => _581(keyOf(dialogId, side)), 'optionalAccess', _582 => _582.state]), () => ( EMPTY_STATE));
|
|
18195
18250
|
}
|
|
18196
18251
|
function getServerSnapshot2() {
|
|
18197
18252
|
return EMPTY_STATE;
|
|
@@ -18280,7 +18335,7 @@ function createDeltaBatcher({
|
|
|
18280
18335
|
pending = [];
|
|
18281
18336
|
const key = pendingKey;
|
|
18282
18337
|
for (const delta of batch) applyOne(delta, key);
|
|
18283
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
18338
|
+
_optionalChain([onFlushed, 'optionalCall', _583 => _583(batch.length)]);
|
|
18284
18339
|
}
|
|
18285
18340
|
function schedule() {
|
|
18286
18341
|
if (raf !== null || timer !== null) return;
|
|
@@ -18304,7 +18359,7 @@ function createDeltaBatcher({
|
|
|
18304
18359
|
}
|
|
18305
18360
|
if (!isDeltaEvent(event)) return false;
|
|
18306
18361
|
const tail = pending[pending.length - 1];
|
|
18307
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
18362
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _584 => _584.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
18308
18363
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
18309
18364
|
pending[pending.length - 1] = {
|
|
18310
18365
|
...tail,
|
|
@@ -18336,7 +18391,7 @@ function useChatStreamReducer({
|
|
|
18336
18391
|
side = DEFAULT_DIALOG_SIDE,
|
|
18337
18392
|
createReducerOptions
|
|
18338
18393
|
}) {
|
|
18339
|
-
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall',
|
|
18394
|
+
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _585 => _585()]), () => ( {})));
|
|
18340
18395
|
const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
18341
18396
|
const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
18342
18397
|
const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -18381,7 +18436,7 @@ function buildConfirmToolBody(request) {
|
|
|
18381
18436
|
async function readServerErrorMessage(response) {
|
|
18382
18437
|
try {
|
|
18383
18438
|
const body = await response.json();
|
|
18384
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
18439
|
+
if (typeof _optionalChain([body, 'optionalAccess', _586 => _586.error]) === "string" && body.error.length > 0) return body.error;
|
|
18385
18440
|
} catch (e17) {
|
|
18386
18441
|
}
|
|
18387
18442
|
return null;
|
|
@@ -18544,7 +18599,7 @@ function useManagedDialogList({
|
|
|
18544
18599
|
try {
|
|
18545
18600
|
await deleteDialogCallback(id);
|
|
18546
18601
|
removeLocal(id);
|
|
18547
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
18602
|
+
_optionalChain([onDialogRemovedRef, 'access', _587 => _587.current, 'optionalCall', _588 => _588(id, "deleted")]);
|
|
18548
18603
|
} catch (err) {
|
|
18549
18604
|
console.error(`${logTag} deleteDialog failed:`, err);
|
|
18550
18605
|
throw err;
|
|
@@ -18555,7 +18610,7 @@ function useManagedDialogList({
|
|
|
18555
18610
|
const renameDialog = _react.useCallback.call(void 0,
|
|
18556
18611
|
async (id, title) => {
|
|
18557
18612
|
if (!renameDialogCallback) return;
|
|
18558
|
-
const previous = _optionalChain([dialogsRef, 'access',
|
|
18613
|
+
const previous = _optionalChain([dialogsRef, 'access', _589 => _589.current, 'access', _590 => _590.find, 'call', _591 => _591((d) => d.id === id), 'optionalAccess', _592 => _592.title]);
|
|
18559
18614
|
setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
|
|
18560
18615
|
try {
|
|
18561
18616
|
await renameDialogCallback(id, title);
|
|
@@ -18574,7 +18629,7 @@ function useManagedDialogList({
|
|
|
18574
18629
|
try {
|
|
18575
18630
|
await archiveDialogCallback(id);
|
|
18576
18631
|
removeLocal(id);
|
|
18577
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
18632
|
+
_optionalChain([onDialogRemovedRef, 'access', _593 => _593.current, 'optionalCall', _594 => _594(id, "archived")]);
|
|
18578
18633
|
} catch (err) {
|
|
18579
18634
|
console.error(`${logTag} archiveDialog failed:`, err);
|
|
18580
18635
|
throw err;
|
|
@@ -18763,7 +18818,7 @@ var STORAGE_KEY = "conversation";
|
|
|
18763
18818
|
var namespaceFor = (source) => {
|
|
18764
18819
|
const base = `mingo-chat-${source}`;
|
|
18765
18820
|
const auth = _chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, );
|
|
18766
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
18821
|
+
return _optionalChain([auth, 'optionalAccess', _595 => _595.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
18767
18822
|
};
|
|
18768
18823
|
function createChatConversationStorage(source) {
|
|
18769
18824
|
return _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -18836,7 +18891,7 @@ function useChatHistoryHydration({
|
|
|
18836
18891
|
if (cancelled) return;
|
|
18837
18892
|
if (rows.length === 0) {
|
|
18838
18893
|
const found = isRecord(body) ? body.found : void 0;
|
|
18839
|
-
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall',
|
|
18894
|
+
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _596 => _596(conversationId)]);
|
|
18840
18895
|
return;
|
|
18841
18896
|
}
|
|
18842
18897
|
const hydrated = [];
|
|
@@ -18913,7 +18968,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
18913
18968
|
const { active = true } = runtimeOptions;
|
|
18914
18969
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
18915
18970
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
18916
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
18971
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _597 => _597.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
18917
18972
|
const sendMessageRef = _react.useRef.call(void 0,
|
|
18918
18973
|
() => Promise.resolve(true)
|
|
18919
18974
|
);
|
|
@@ -18949,7 +19004,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
18949
19004
|
if (!restoredConversationRef.current) {
|
|
18950
19005
|
restoredConversationRef.current = true;
|
|
18951
19006
|
pruneStaleChatConversationStorage(source);
|
|
18952
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
19007
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _598 => _598.load, 'call', _599 => _599(), 'optionalAccess', _600 => _600.conversationId]), () => ( null));
|
|
18953
19008
|
}
|
|
18954
19009
|
const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
|
|
18955
19010
|
const commitConversationId = _react.useCallback.call(void 0,
|
|
@@ -19040,7 +19095,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19040
19095
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
19041
19096
|
const switchConversation = _react.useCallback.call(void 0,
|
|
19042
19097
|
(id) => {
|
|
19043
|
-
_optionalChain([abortControllerRef, 'access',
|
|
19098
|
+
_optionalChain([abortControllerRef, 'access', _601 => _601.current, 'optionalAccess', _602 => _602.abort, 'call', _603 => _603()]);
|
|
19044
19099
|
flushDeltas();
|
|
19045
19100
|
mutate((r) => r.reset());
|
|
19046
19101
|
hydrationSendCountRef.current = 0;
|
|
@@ -19077,8 +19132,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19077
19132
|
} = useManagedDialogList({
|
|
19078
19133
|
autoLoad: active,
|
|
19079
19134
|
fetchDialogs: fetchActiveDialogs,
|
|
19080
|
-
renameDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
19081
|
-
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
19135
|
+
renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _604 => _604.renameDialog]),
|
|
19136
|
+
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _605 => _605.archiveDialog]),
|
|
19082
19137
|
pageSize: CHAT_HISTORY_PAGE_SIZE,
|
|
19083
19138
|
search: conversationsApi ? dialogSearch : void 0,
|
|
19084
19139
|
logTag: "[useSseChatAdapter]",
|
|
@@ -19142,7 +19197,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19142
19197
|
const serverMessage = await readServerErrorMessage(response);
|
|
19143
19198
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
19144
19199
|
}
|
|
19145
|
-
const reader = _optionalChain([response, 'access',
|
|
19200
|
+
const reader = _optionalChain([response, 'access', _606 => _606.body, 'optionalAccess', _607 => _607.getReader, 'call', _608 => _608()]);
|
|
19146
19201
|
if (!reader) throw new Error("No response body");
|
|
19147
19202
|
const frameDecoder = createSseFrameDecoder();
|
|
19148
19203
|
let finished = false;
|
|
@@ -19171,7 +19226,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19171
19226
|
}
|
|
19172
19227
|
return true;
|
|
19173
19228
|
} catch (err) {
|
|
19174
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
19229
|
+
if (_optionalChain([err, 'optionalAccess', _609 => _609.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
19175
19230
|
return true;
|
|
19176
19231
|
}
|
|
19177
19232
|
flushDeltas();
|
|
@@ -19207,7 +19262,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19207
19262
|
);
|
|
19208
19263
|
sendMessageRef.current = sendMessage;
|
|
19209
19264
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
19210
|
-
_optionalChain([abortControllerRef, 'access',
|
|
19265
|
+
_optionalChain([abortControllerRef, 'access', _610 => _610.current, 'optionalAccess', _611 => _611.abort, 'call', _612 => _612()]);
|
|
19211
19266
|
flushDeltas();
|
|
19212
19267
|
mutate((r) => r.setPhase("idle"));
|
|
19213
19268
|
}, [mutate, flushDeltas]);
|
|
@@ -19243,7 +19298,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19243
19298
|
let sendIdx = -1;
|
|
19244
19299
|
return state.messages.map((m) => {
|
|
19245
19300
|
const segments = m.segments;
|
|
19246
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
19301
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _613 => _613.filter, 'call', _614 => _614((s) => s.type === "text"), 'access', _615 => _615.map, 'call', _616 => _616((s) => s.text), 'access', _617 => _617.join, 'call', _618 => _618("")]), () => ( ""));
|
|
19247
19302
|
let sources2;
|
|
19248
19303
|
let scrollAnchor;
|
|
19249
19304
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -19252,7 +19307,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19252
19307
|
if (m.role === "assistant") {
|
|
19253
19308
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
19254
19309
|
sources2 = sourcesMap.get(lookupIdx);
|
|
19255
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
19310
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _619 => _619.get, 'call', _620 => _620(lookupIdx), 'optionalAccess', _621 => _621.scrollAnchor]), () => ( void 0));
|
|
19256
19311
|
}
|
|
19257
19312
|
return {
|
|
19258
19313
|
id: m.id,
|
|
@@ -19279,7 +19334,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19279
19334
|
);
|
|
19280
19335
|
return;
|
|
19281
19336
|
}
|
|
19282
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
19337
|
+
const refSlug = typeof _optionalChain([reference, 'access', _622 => _622.metadata, 'optionalAccess', _623 => _623.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
19283
19338
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
19284
19339
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
19285
19340
|
const text2 = `/${cmdId} display "${escaped}"`;
|
|
@@ -19325,18 +19380,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19325
19380
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
19326
19381
|
isHydratingHistory,
|
|
19327
19382
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
19328
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19329
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19330
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19383
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _624 => _624.provider]), () => ( null)),
|
|
19384
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _625 => _625.modelLabel]), () => ( null)),
|
|
19385
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _626 => _626.contextWindowMaxTokens]), () => ( null)),
|
|
19331
19386
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
19332
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19387
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _627 => _627.inputTokens]), () => ( null)),
|
|
19333
19388
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
19334
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19389
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _628 => _628.outputTokens]), () => ( null)),
|
|
19335
19390
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
19336
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19391
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _629 => _629.cacheHitRatePct]), () => ( null)),
|
|
19337
19392
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
19338
19393
|
* token counts). null until the trailing usage frame lands. */
|
|
19339
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19394
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _630 => _630.breakdown]), () => ( null)),
|
|
19340
19395
|
// ─── Dialog management ───────────────────────────────────────────────
|
|
19341
19396
|
// With `chatConversationsUrl` the server transcript store IS the dialog
|
|
19342
19397
|
// list (shared `useManagedDialogList`); selecting a row re-hydrates through
|
|
@@ -19410,7 +19465,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
19410
19465
|
}
|
|
19411
19466
|
break;
|
|
19412
19467
|
case "approval_batch": {
|
|
19413
|
-
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access',
|
|
19468
|
+
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _631 => _631.data, 'access', _632 => _632.executions, 'optionalAccess', _633 => _633[c.toolExecutionRequestId], 'optionalAccess', _634 => _634.status]) === "done");
|
|
19414
19469
|
if (segment.status !== "rejected" && !allDone) {
|
|
19415
19470
|
hasIncompleteState = true;
|
|
19416
19471
|
}
|
|
@@ -19474,11 +19529,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
19474
19529
|
function extractIncompleteTailState(messages) {
|
|
19475
19530
|
if (!messages || messages.length === 0) return void 0;
|
|
19476
19531
|
let start = messages.length;
|
|
19477
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
19532
|
+
while (start > 0 && _optionalChain([messages, 'access', _635 => _635[start - 1], 'optionalAccess', _636 => _636.role]) === "assistant") start -= 1;
|
|
19478
19533
|
if (start === messages.length) return void 0;
|
|
19479
19534
|
const segments = [];
|
|
19480
19535
|
for (let i = start; i < messages.length; i += 1) {
|
|
19481
|
-
const content = _optionalChain([messages, 'access',
|
|
19536
|
+
const content = _optionalChain([messages, 'access', _637 => _637[i], 'optionalAccess', _638 => _638.content]);
|
|
19482
19537
|
if (Array.isArray(content)) segments.push(...content);
|
|
19483
19538
|
}
|
|
19484
19539
|
if (segments.length === 0) return void 0;
|
|
@@ -19491,15 +19546,15 @@ function extractIncompleteTailState(messages) {
|
|
|
19491
19546
|
|
|
19492
19547
|
// src/components/chat/utils/process-historical-messages.ts
|
|
19493
19548
|
function getOwnerDisplayName(owner) {
|
|
19494
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
19549
|
+
if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
19495
19550
|
const { firstName, lastName } = owner.user;
|
|
19496
19551
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
19497
19552
|
if (name) return name;
|
|
19498
19553
|
}
|
|
19499
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
19554
|
+
return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
19500
19555
|
}
|
|
19501
19556
|
function getOwnerAvatar(owner) {
|
|
19502
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
19557
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _641 => _641.user, 'optionalAccess', _642 => _642.image, 'optionalAccess', _643 => _643.imageUrl]), () => ( void 0));
|
|
19503
19558
|
}
|
|
19504
19559
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
19505
19560
|
messageDataArray.forEach((data) => {
|
|
@@ -19691,7 +19746,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19691
19746
|
event.offerId,
|
|
19692
19747
|
event.text,
|
|
19693
19748
|
event.origin,
|
|
19694
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
19749
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _644 => _644[event.offerId]]), () => ( "pending"))
|
|
19695
19750
|
);
|
|
19696
19751
|
break;
|
|
19697
19752
|
case "ticket-escalated":
|
|
@@ -19725,7 +19780,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19725
19780
|
);
|
|
19726
19781
|
break;
|
|
19727
19782
|
case "escalation-offer-resolved":
|
|
19728
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
19783
|
+
_optionalChain([offerResolutions, 'optionalAccess', _645 => _645.set, 'call', _646 => _646(event.offerId, {
|
|
19729
19784
|
status: event.status,
|
|
19730
19785
|
resolvedByName: event.resolvedByName
|
|
19731
19786
|
})]);
|
|
@@ -19759,7 +19814,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19759
19814
|
if (!call.requiresApproval) continue;
|
|
19760
19815
|
accumulator.addApprovalRequest(
|
|
19761
19816
|
event.requestId,
|
|
19762
|
-
|
|
19817
|
+
_chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
|
|
19763
19818
|
call.toolExplanation,
|
|
19764
19819
|
approvalType,
|
|
19765
19820
|
status,
|
|
@@ -19789,7 +19844,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19789
19844
|
}
|
|
19790
19845
|
}
|
|
19791
19846
|
} else {
|
|
19792
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19847
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _647 => _647.set, 'call', _648 => _648(event.requestId, {
|
|
19793
19848
|
command: event.command || "",
|
|
19794
19849
|
explanation: event.explanation,
|
|
19795
19850
|
approvalType,
|
|
@@ -19804,8 +19859,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19804
19859
|
const existingStatus = approvalStatuses[requestId];
|
|
19805
19860
|
const status = existingStatus || event.status;
|
|
19806
19861
|
const resolvedByName = event.resolvedByName;
|
|
19807
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19808
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
19862
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _649 => _649.get, 'call', _650 => _650(requestId)]);
|
|
19863
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _651 => _651.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
19809
19864
|
if (batchApprovalsEnabled) {
|
|
19810
19865
|
accumulator.addApprovalBatch(
|
|
19811
19866
|
requestId,
|
|
@@ -19820,14 +19875,14 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19820
19875
|
if (!call.requiresApproval) continue;
|
|
19821
19876
|
accumulator.addApprovalRequest(
|
|
19822
19877
|
requestId,
|
|
19823
|
-
|
|
19878
|
+
_chunkQTLWU6FYcjs.getCommandText.call(void 0, call),
|
|
19824
19879
|
call.toolExplanation,
|
|
19825
19880
|
escalatedData.approvalType,
|
|
19826
19881
|
status
|
|
19827
19882
|
);
|
|
19828
19883
|
}
|
|
19829
19884
|
}
|
|
19830
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19885
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _652 => _652.delete, 'call', _653 => _653(requestId)]);
|
|
19831
19886
|
break;
|
|
19832
19887
|
}
|
|
19833
19888
|
if (escalatedData) {
|
|
@@ -19836,7 +19891,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19836
19891
|
explanation: escalatedData.explanation,
|
|
19837
19892
|
approvalType: escalatedData.approvalType
|
|
19838
19893
|
});
|
|
19839
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19894
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _654 => _654.delete, 'call', _655 => _655(requestId)]);
|
|
19840
19895
|
}
|
|
19841
19896
|
const before = accumulator.getSegments();
|
|
19842
19897
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -19928,14 +19983,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19928
19983
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
19929
19984
|
return;
|
|
19930
19985
|
}
|
|
19931
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
19986
|
+
const isUserMessage = _optionalChain([msg, 'access', _656 => _656.owner, 'optionalAccess', _657 => _657.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _658 => _658.owner, 'optionalAccess', _659 => _659.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN;
|
|
19932
19987
|
if (isUserMessage) {
|
|
19933
19988
|
flushAssistantMessage();
|
|
19934
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
19989
|
+
const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
19935
19990
|
messageDataArray.forEach((data) => {
|
|
19936
19991
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
19937
19992
|
const rawContext = data.contextItems;
|
|
19938
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
19993
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _662 => _662.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _663 => _663.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
19939
19994
|
processedMessages.push({
|
|
19940
19995
|
id: msg.id,
|
|
19941
19996
|
role: "user",
|
|
@@ -19982,7 +20037,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19982
20037
|
});
|
|
19983
20038
|
const nextMsg = messages[index + 1];
|
|
19984
20039
|
const isLastMessage = index === messages.length - 1;
|
|
19985
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
20040
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _664 => _664.owner, 'optionalAccess', _665 => _665.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _666 => _666.owner, 'optionalAccess', _667 => _667.type]) === _chunkIBD2FPSXcjs.OWNER_TYPE.ADMIN);
|
|
19986
20041
|
if (isLastMessage || nextIsFromUser) {
|
|
19987
20042
|
flushAssistantMessage();
|
|
19988
20043
|
}
|
|
@@ -20366,7 +20421,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
20366
20421
|
const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
|
|
20367
20422
|
const sendMessage = _react.useCallback.call(void 0,
|
|
20368
20423
|
async (text2, sendOptions) => {
|
|
20369
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
20424
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _668 => _668.hidden]), () => ( false));
|
|
20370
20425
|
mutate((r) => r.pushOptimisticSend(text2, hidden));
|
|
20371
20426
|
await publishUserMessage(text2, { hidden, dialogId });
|
|
20372
20427
|
},
|
|
@@ -20459,11 +20514,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
20459
20514
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
20460
20515
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
20461
20516
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
20462
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
20463
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
20464
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
20465
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
20466
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
20517
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _669 => _669.provider]), () => ( modelProvider)), () => ( null)),
|
|
20518
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _670 => _670.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
20519
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _671 => _671.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _672 => _672.contextWindowMaxTokens]))), () => ( null)),
|
|
20520
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _673 => _673.inputTokensSize]), () => ( null)),
|
|
20521
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _674 => _674.outputTokensSize]), () => ( null)),
|
|
20467
20522
|
currentCacheHitRatePct: null,
|
|
20468
20523
|
currentUsageBreakdown: null,
|
|
20469
20524
|
// Dialog management
|
|
@@ -20585,7 +20640,7 @@ function useUnifiedChat(options) {
|
|
|
20585
20640
|
[]
|
|
20586
20641
|
);
|
|
20587
20642
|
const displayRefForward = _react.useCallback.call(void 0,
|
|
20588
|
-
(ref) => _optionalChain([activeStateRef, 'access',
|
|
20643
|
+
(ref) => _optionalChain([activeStateRef, 'access', _675 => _675.current, 'access', _676 => _676.displayRef, 'optionalCall', _677 => _677(ref)]),
|
|
20589
20644
|
[]
|
|
20590
20645
|
);
|
|
20591
20646
|
const displayRef = activeState.displayRef ? displayRefForward : void 0;
|
|
@@ -20595,7 +20650,7 @@ function useUnifiedChat(options) {
|
|
|
20595
20650
|
const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
|
|
20596
20651
|
const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
|
|
20597
20652
|
const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
|
|
20598
|
-
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access',
|
|
20653
|
+
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _678 => _678.current, 'access', _679 => _679.setDialogScope, 'optionalCall', _680 => _680(scope)]), []);
|
|
20599
20654
|
const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
|
|
20600
20655
|
const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
|
|
20601
20656
|
const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
|
|
@@ -21104,4 +21159,6 @@ function PanelResizeHandle({
|
|
|
21104
21159
|
|
|
21105
21160
|
|
|
21106
21161
|
|
|
21107
|
-
exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.PageTopicLabel = PageTopicLabel; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|
|
21162
|
+
|
|
21163
|
+
|
|
21164
|
+
exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.PageTopicLabel = PageTopicLabel; exports.QUICK_ACTION_SET_SLOTS = QUICK_ACTION_SET_SLOTS; exports.QuickActionSet = QuickActionSet; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|