@flamingo-stack/openframe-frontend-core 0.0.794 → 0.0.796
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-FYHXMHY6.cjs → chunk-6JCTKXHX.cjs} +13 -13
- package/dist/{chunk-HXL7AUPG.cjs → chunk-6WXP5IKR.cjs} +16 -16
- package/dist/{chunk-6VP5UWZG.cjs → chunk-7SEY3FDF.cjs} +2 -2
- package/dist/{chunk-BFCGOHQG.cjs → chunk-7VU4HHUR.cjs} +32 -32
- package/dist/{chunk-43ZVXQJK.cjs → chunk-CC7NRWRF.cjs} +48 -48
- package/dist/{chunk-72NE4G63.cjs → chunk-CFXCCQ6T.cjs} +2 -2
- package/dist/{chunk-RPC4P7GY.cjs → chunk-F64GLU75.cjs} +33 -33
- package/dist/{chunk-PQIWR4Q2.cjs → chunk-G24OX7AC.cjs} +16 -16
- package/dist/{chunk-7VXMO4XJ.cjs → chunk-GP7NV6BK.cjs} +3 -1
- package/dist/{chunk-6TUI5KQS.cjs → chunk-II4A2RUG.cjs} +41 -41
- package/dist/{chunk-ZCMXBX4Z.cjs → chunk-IONS6HDF.cjs} +5 -5
- package/dist/{chunk-UAZTXYPC.cjs → chunk-JC43ULIC.cjs} +107 -78
- package/dist/{chunk-FYPVCCCV.cjs → chunk-JGURZROB.cjs} +27 -27
- package/dist/{chunk-FOWQ4XTB.cjs → chunk-N3J4U7ML.cjs} +2 -2
- package/dist/{chunk-IJ23KNYI.cjs → chunk-NAJ24ODA.cjs} +4 -4
- package/dist/{chunk-F73DM65J.cjs → chunk-NRAH3M66.cjs} +46 -46
- package/dist/{chunk-3XAFK4WH.cjs → chunk-OKAHKZP2.cjs} +8 -8
- package/dist/{chunk-2KLYMAHF.cjs → chunk-PALMLL5T.cjs} +4 -4
- package/dist/{chunk-CLEZ6TWZ.cjs → chunk-QCN46LDL.cjs} +69 -69
- package/dist/{chunk-YPKAMHYA.cjs → chunk-QMDXG3VF.cjs} +574 -457
- package/dist/{chunk-BIYLAAFI.cjs → chunk-TUD7BV6O.cjs} +9 -9
- package/dist/{chunk-OK467OQJ.cjs → chunk-UYOGZJPE.cjs} +4 -4
- package/dist/{chunk-IQTVKPRG.cjs → chunk-VUP7ZGZS.cjs} +20 -20
- package/dist/{chunk-YYKXX5NA.cjs → chunk-VYXNGADV.cjs} +24 -24
- package/dist/{chunk-A6E5ZNQR.cjs → chunk-W4QITOT7.cjs} +5 -5
- package/dist/{chunk-NGGEYE5R.cjs → chunk-XFJ7BZDJ.cjs} +5 -5
- package/dist/{chunk-U4D4ABXK.cjs → chunk-XVVQJXOA.cjs} +39 -39
- package/dist/{chunk-QDW64E6T.cjs → chunk-Y3IMXLLL.cjs} +143 -143
- package/dist/{chunk-NIW4ETGC.cjs → chunk-YFHKBIZT.cjs} +6 -6
- package/dist/{chunk-KQPU5N7T.cjs → chunk-ZMWSN2BD.cjs} +11 -11
- package/dist/{chunk-ZIMPE7D5.cjs → chunk-ZRME3A2D.cjs} +3 -3
- package/dist/{cloud-tenants-Z3AYAXF5.cjs → cloud-tenants-BQUWLMYY.cjs} +12 -12
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +13 -13
- package/dist/components/docs/index.cjs +16 -16
- package/dist/components/embeds/index.cjs +13 -13
- package/dist/components/faq/index.cjs +14 -14
- package/dist/components/features/index.cjs +12 -12
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/index.cjs +82 -68
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +15 -15
- package/dist/components/onboarding-guides/index.cjs +15 -15
- package/dist/components/product-demo/index.cjs +23 -23
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/shared/roadmap/roadmap-grid.d.ts +6 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +37 -8
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/floating-tooltip.js +3 -1
- package/dist/components/ui/index.cjs +26 -12
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/trendline.d.ts +60 -0
- package/dist/components/ui/trendline.d.ts.map +1 -0
- package/dist/components/ui/trendline.js +121 -0
- package/dist/{devices-P6XQL23S.cjs → devices-BFQOLI3D.cjs} +13 -13
- package/dist/{embeddable-chat-6BNLOSBB.cjs → embeddable-chat-INYF23ST.cjs} +74 -74
- package/dist/index.cjs +31 -17
- package/dist/{knowledge-IU5ORU7U.cjs → knowledge-GGYWTYTP.cjs} +13 -13
- package/dist/{logs-DCFTQVKA.cjs → logs-NO55PTIO.cjs} +20 -20
- package/dist/{policies-ESC6XCVH.cjs → policies-AAFYTVOJ.cjs} +16 -16
- package/dist/{remote-session-4ZNTOLOQ.cjs → remote-session-2CNWLF3P.cjs} +7 -7
- package/dist/{scripts-24PIP2VO.cjs → scripts-H4ECJ65X.cjs} +19 -19
- package/dist/{software-update-47GDTKMI.cjs → software-update-NEEGQBK3.cjs} +16 -16
- package/dist/{tickets-board-X4GHEKPB.cjs → tickets-board-CXYRAMDL.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +38 -9
- package/src/components/ui/floating-tooltip.tsx +4 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/trendline.tsx +221 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkTUD7BV6Ocjs = require('./chunk-TUD7BV6O.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkRKWEFZ6Pcjs = require('./chunk-RKWEFZ6P.cjs');
|
|
@@ -38,7 +38,7 @@ var _chunkRKWEFZ6Pcjs = require('./chunk-RKWEFZ6P.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkIONS6HDFcjs = require('./chunk-IONS6HDF.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -292,7 +292,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
292
292
|
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var _chunkJGURZROBcjs = require('./chunk-JGURZROB.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
@@ -324,7 +324,7 @@ var _chunkFYPVCCCVcjs = require('./chunk-FYPVCCCV.cjs');
|
|
|
324
324
|
var _chunkUN6LC5PKcjs = require('./chunk-UN6LC5PK.cjs');
|
|
325
325
|
|
|
326
326
|
|
|
327
|
-
var
|
|
327
|
+
var _chunkCFXCCQ6Tcjs = require('./chunk-CFXCCQ6T.cjs');
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
@@ -332,7 +332,7 @@ var _chunk72NE4G63cjs = require('./chunk-72NE4G63.cjs');
|
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
|
|
335
|
-
var
|
|
335
|
+
var _chunkGP7NV6BKcjs = require('./chunk-GP7NV6BK.cjs');
|
|
336
336
|
|
|
337
337
|
|
|
338
338
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -3263,7 +3263,7 @@ function onAskAiIntent(run) {
|
|
|
3263
3263
|
|
|
3264
3264
|
// src/components/chat/chat-appearance-context.tsx
|
|
3265
3265
|
|
|
3266
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3266
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkIONS6HDFcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3267
3267
|
function useChatAppearance() {
|
|
3268
3268
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3269
3269
|
}
|
|
@@ -3302,7 +3302,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3302
3302
|
...props
|
|
3303
3303
|
}, ref) => {
|
|
3304
3304
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3305
|
-
const isV2 = useChatAppearance() ===
|
|
3305
|
+
const isV2 = useChatAppearance() === _chunkIONS6HDFcjs.CHAT_APPEARANCE.V2;
|
|
3306
3306
|
const handleApprove = async () => {
|
|
3307
3307
|
setIsProcessing(true);
|
|
3308
3308
|
try {
|
|
@@ -3325,7 +3325,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3325
3325
|
{
|
|
3326
3326
|
ref,
|
|
3327
3327
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
3328
|
-
|
|
3328
|
+
_chunkTUD7BV6Ocjs.CHAT_BLOCK_CLASS,
|
|
3329
3329
|
// v2: the thread owns the space below the card.
|
|
3330
3330
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3331
3331
|
className
|
|
@@ -3333,7 +3333,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3333
3333
|
...props,
|
|
3334
3334
|
children: [
|
|
3335
3335
|
/* @__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', _49 => _49.explanation, 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]) || "Approval required" }),
|
|
3336
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3336
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ApprovalWaitingLine, {}),
|
|
3337
3337
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3338
3338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3339
3339
|
_chunkK7I3YYYUcjs.Button,
|
|
@@ -3365,14 +3365,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3365
3365
|
children: "Reject"
|
|
3366
3366
|
}
|
|
3367
3367
|
)
|
|
3368
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3368
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3369
3369
|
]
|
|
3370
3370
|
}
|
|
3371
3371
|
);
|
|
3372
3372
|
}
|
|
3373
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3373
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkTUD7BV6Ocjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3374
3374
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3375
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3375
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ApprovalWaitingLine, {}),
|
|
3376
3376
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3377
3377
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3378
3378
|
_chunkK7I3YYYUcjs.Button,
|
|
@@ -3404,7 +3404,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3404
3404
|
children: "Reject"
|
|
3405
3405
|
}
|
|
3406
3406
|
)
|
|
3407
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3407
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3408
3408
|
] });
|
|
3409
3409
|
}
|
|
3410
3410
|
);
|
|
@@ -3434,7 +3434,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3434
3434
|
|
|
3435
3435
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3436
3436
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3437
|
-
const isV2 = useChatAppearance() ===
|
|
3437
|
+
const isV2 = useChatAppearance() === _chunkIONS6HDFcjs.CHAT_APPEARANCE.V2;
|
|
3438
3438
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3439
3439
|
"div",
|
|
3440
3440
|
{
|
|
@@ -3450,7 +3450,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3450
3450
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3451
3451
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3452
3452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3453
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3453
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkIONS6HDFcjs.formatTime.call(void 0, timestamp) })
|
|
3454
3454
|
] }),
|
|
3455
3455
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3456
3456
|
] })
|
|
@@ -3565,7 +3565,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3565
3565
|
AiAssistantInfo,
|
|
3566
3566
|
{
|
|
3567
3567
|
ref,
|
|
3568
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3568
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3569
3569
|
title: "Technician Joined",
|
|
3570
3570
|
body: `You're now chatting with ${joined}.`,
|
|
3571
3571
|
timestamp,
|
|
@@ -3649,7 +3649,7 @@ var thoughtMdClasses = [
|
|
|
3649
3649
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3650
3650
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3651
3651
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3652
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3652
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkTUD7BV6Ocjs.useCollapsible.call(void 0, {
|
|
3653
3653
|
expanded,
|
|
3654
3654
|
collapsedHeight: 19,
|
|
3655
3655
|
disableTransition: isStreaming
|
|
@@ -3664,7 +3664,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3664
3664
|
setExpanded(!expanded);
|
|
3665
3665
|
}
|
|
3666
3666
|
};
|
|
3667
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
3667
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkTUD7BV6Ocjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3668
3668
|
"div",
|
|
3669
3669
|
{
|
|
3670
3670
|
role: "button",
|
|
@@ -3682,7 +3682,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3682
3682
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3683
3683
|
] }),
|
|
3684
3684
|
/* @__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: _chunk6YZNUHXTcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: text2, textSize: "compact" }) }) }),
|
|
3685
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3685
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ExpandChevron, { expanded }) })
|
|
3686
3686
|
]
|
|
3687
3687
|
}
|
|
3688
3688
|
) });
|
|
@@ -3856,7 +3856,7 @@ function QuickActionChipSkeleton({
|
|
|
3856
3856
|
}) {
|
|
3857
3857
|
const question = variant === "question";
|
|
3858
3858
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3859
|
-
|
|
3859
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
3860
3860
|
{
|
|
3861
3861
|
..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props),
|
|
3862
3862
|
variant: "outline",
|
|
@@ -3920,7 +3920,7 @@ function QuickActionChipButton({
|
|
|
3920
3920
|
const tagSize = question ? "sentence" : size;
|
|
3921
3921
|
if (!interactive) {
|
|
3922
3922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3923
|
-
|
|
3923
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
3924
3924
|
{
|
|
3925
3925
|
...markers,
|
|
3926
3926
|
variant: tagVariant,
|
|
@@ -3949,7 +3949,7 @@ function QuickActionChipButton({
|
|
|
3949
3949
|
className
|
|
3950
3950
|
),
|
|
3951
3951
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3952
|
-
|
|
3952
|
+
_chunkGP7NV6BKcjs.Tag,
|
|
3953
3953
|
{
|
|
3954
3954
|
variant: tagVariant,
|
|
3955
3955
|
size: tagSize,
|
|
@@ -4023,9 +4023,9 @@ var iconTint = {
|
|
|
4023
4023
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4024
4024
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4025
4025
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4026
|
-
const { innerRef, containerStyle } =
|
|
4026
|
+
const { innerRef, containerStyle } = _chunkTUD7BV6Ocjs.useCollapsible.call(void 0, { expanded });
|
|
4027
4027
|
const hasDetails = Boolean(details);
|
|
4028
|
-
const isV2 = useChatAppearance() ===
|
|
4028
|
+
const isV2 = useChatAppearance() === _chunkIONS6HDFcjs.CHAT_APPEARANCE.V2;
|
|
4029
4029
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4030
4030
|
"div",
|
|
4031
4031
|
{
|
|
@@ -4059,7 +4059,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4059
4059
|
children: title
|
|
4060
4060
|
}
|
|
4061
4061
|
),
|
|
4062
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4062
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ExpandChevron, { expanded })
|
|
4063
4063
|
]
|
|
4064
4064
|
}
|
|
4065
4065
|
),
|
|
@@ -4107,7 +4107,7 @@ function MspOrganizationCard({
|
|
|
4107
4107
|
const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.InertWhileLoading, { children: action }) : action;
|
|
4108
4108
|
if (footer) {
|
|
4109
4109
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, FOOTER_FRAME_CLASS, className), children: [
|
|
4110
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4110
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
4111
4111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TEXT_STACK_CLASS, children: [
|
|
4112
4112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: FOOTER_CAPTION_CLASS, children: FOOTER_CAPTION }),
|
|
4113
4113
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-3/5" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -4116,7 +4116,7 @@ function MspOrganizationCard({
|
|
|
4116
4116
|
] });
|
|
4117
4117
|
}
|
|
4118
4118
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
|
|
4119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4119
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4120
4120
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TEXT_STACK_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4121
4121
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
|
|
4122
4122
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-2/5" })
|
|
@@ -4226,7 +4226,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4226
4226
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
|
|
4227
4227
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4228
4228
|
userIcon && !isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4229
|
-
|
|
4229
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
4230
4230
|
{
|
|
4231
4231
|
loading: isLoading,
|
|
4232
4232
|
src: userAvatar,
|
|
@@ -4308,9 +4308,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4308
4308
|
)
|
|
4309
4309
|
] }),
|
|
4310
4310
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4311
|
-
|
|
4311
|
+
_chunkTUD7BV6Ocjs.TicketStatusTag,
|
|
4312
4312
|
{
|
|
4313
|
-
...
|
|
4313
|
+
..._chunkTUD7BV6Ocjs.resolveStatusTagProps.call(void 0, {
|
|
4314
4314
|
status: ticketInfo.status,
|
|
4315
4315
|
statusKind: ticketInfo.statusKind,
|
|
4316
4316
|
statusName: ticketInfo.statusName,
|
|
@@ -4903,11 +4903,11 @@ var remarkMentionChips = () => {
|
|
|
4903
4903
|
// src/components/chat/tool-execution-display.tsx
|
|
4904
4904
|
|
|
4905
4905
|
|
|
4906
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4906
|
+
var COMMAND_BODY_KEYS = new Set(_chunkTUD7BV6Ocjs.COMMAND_BODY_ARG_KEYS);
|
|
4907
4907
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4908
4908
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4909
4909
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4910
|
-
const { innerRef, containerStyle } =
|
|
4910
|
+
const { innerRef, containerStyle } = _chunkTUD7BV6Ocjs.useCollapsible.call(void 0, { expanded });
|
|
4911
4911
|
const isClient = assistantType === "fae";
|
|
4912
4912
|
const isClientView = variant === "client";
|
|
4913
4913
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4950,7 +4950,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4950
4950
|
}
|
|
4951
4951
|
),
|
|
4952
4952
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4953
|
-
!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,
|
|
4953
|
+
!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, _chunkTUD7BV6Ocjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4954
4954
|
] });
|
|
4955
4955
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4956
4956
|
"div",
|
|
@@ -4960,7 +4960,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4960
4960
|
// The command running block keeps its bordered box in both chats
|
|
4961
4961
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4962
4962
|
"flex w-full flex-col overflow-hidden",
|
|
4963
|
-
|
|
4963
|
+
_chunkTUD7BV6Ocjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4964
4964
|
className
|
|
4965
4965
|
),
|
|
4966
4966
|
...props,
|
|
@@ -4971,14 +4971,14 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4971
4971
|
// It reads as a card: what was done, then one status line under it.
|
|
4972
4972
|
/* @__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: [
|
|
4973
4973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4974
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4974
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4975
4975
|
] })
|
|
4976
4976
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4977
4977
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "row", type: "button", "aria-expanded": expanded, onClick: () => setExpanded((prev) => !prev), children: headerContent }) : /* @__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 }),
|
|
4978
4978
|
/* @__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: [
|
|
4979
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4979
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.ArgRow, { argKey: key, value }, key)),
|
|
4980
4980
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4981
|
-
|
|
4981
|
+
_chunkTUD7BV6Ocjs.ResultBlock,
|
|
4982
4982
|
{
|
|
4983
4983
|
result: message.result,
|
|
4984
4984
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5010,8 +5010,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
5010
5010
|
|
|
5011
5011
|
// src/components/chat/chat-message-layout.ts
|
|
5012
5012
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
5013
|
-
[
|
|
5014
|
-
[
|
|
5013
|
+
[_chunkIONS6HDFcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
5014
|
+
[_chunkIONS6HDFcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
5015
5015
|
};
|
|
5016
5016
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
5017
5017
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -5052,8 +5052,8 @@ var remarkStripCitations = () => {
|
|
|
5052
5052
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5053
5053
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5054
5054
|
function formatMessageTimestamp(timestamp) {
|
|
5055
|
-
const time =
|
|
5056
|
-
return
|
|
5055
|
+
const time = _chunkIONS6HDFcjs.formatTime.call(void 0, timestamp);
|
|
5056
|
+
return _chunkTUD7BV6Ocjs.isToday.call(void 0, timestamp) ? time : `${_chunkIONS6HDFcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5057
5057
|
}
|
|
5058
5058
|
function normalizeContent(content) {
|
|
5059
5059
|
if (typeof content === "string") {
|
|
@@ -5109,7 +5109,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5109
5109
|
const isError = role === "error";
|
|
5110
5110
|
const inheritedAppearance = useChatAppearance();
|
|
5111
5111
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5112
|
-
const isV2 = appearance ===
|
|
5112
|
+
const isV2 = appearance === _chunkIONS6HDFcjs.CHAT_APPEARANCE.V2;
|
|
5113
5113
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5114
5114
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5115
5115
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5297,9 +5297,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5297
5297
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5298
5298
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
5299
5299
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5300
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5301
5301
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5302
|
-
|
|
5302
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
5303
5303
|
{
|
|
5304
5304
|
src: avatar || void 0,
|
|
5305
5305
|
alt: displayName,
|
|
@@ -5315,7 +5315,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5315
5315
|
"div",
|
|
5316
5316
|
{
|
|
5317
5317
|
ref,
|
|
5318
|
-
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
5318
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkIONS6HDFcjs.CHAT_APPEARANCE.V2], className),
|
|
5319
5319
|
...props,
|
|
5320
5320
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
5321
5321
|
}
|
|
@@ -5327,7 +5327,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5327
5327
|
ref,
|
|
5328
5328
|
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
5329
5329
|
"relative",
|
|
5330
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
5330
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkIONS6HDFcjs.CHAT_APPEARANCE.V2 : _chunkIONS6HDFcjs.CHAT_APPEARANCE.CLASSIC],
|
|
5331
5331
|
className
|
|
5332
5332
|
),
|
|
5333
5333
|
...props,
|
|
@@ -5384,7 +5384,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5384
5384
|
);
|
|
5385
5385
|
} else if (segment.type === "approval_batch") {
|
|
5386
5386
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5387
|
-
|
|
5387
|
+
_chunkTUD7BV6Ocjs.ApprovalBatchMessage,
|
|
5388
5388
|
{
|
|
5389
5389
|
data: segment.data,
|
|
5390
5390
|
status: segment.status,
|
|
@@ -5470,7 +5470,7 @@ function ChatMessageSkeleton({
|
|
|
5470
5470
|
const lines = Math.max(1, bodyLines);
|
|
5471
5471
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[appearance], className), ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
|
|
5472
5472
|
(showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
|
|
5473
|
-
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5473
|
+
showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
|
|
5474
5474
|
showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
|
|
5475
5475
|
showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: _chunk6YZNUHXTcjs.cn.call(void 0, "ml-auto", TIME_BAR_CLASS) })
|
|
5476
5476
|
] }),
|
|
@@ -5658,7 +5658,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5658
5658
|
approvalVariant,
|
|
5659
5659
|
selfAuthorType,
|
|
5660
5660
|
nameEveryTurn,
|
|
5661
|
-
appearance =
|
|
5661
|
+
appearance = _chunkIONS6HDFcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5662
5662
|
assistantIcon,
|
|
5663
5663
|
pendingApprovals,
|
|
5664
5664
|
hasNextPage,
|
|
@@ -6696,7 +6696,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6696
6696
|
|
|
6697
6697
|
[Attached: ${safeName}](${url})`;
|
|
6698
6698
|
}
|
|
6699
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6699
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkJGURZROBcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6700
6700
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6701
6701
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6702
6702
|
"gm"
|
|
@@ -7535,7 +7535,7 @@ function MingoChatHistoryRow({
|
|
|
7535
7535
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
7536
7536
|
),
|
|
7537
7537
|
children: [
|
|
7538
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className:
|
|
7538
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: _chunkIONS6HDFcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkIONS6HDFcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
7539
7539
|
!loading && unread > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-8 min-w-8 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xsf)] text-ods-text-on-accent text-h5", children: unread > 99 ? "99+" : unread }) : null,
|
|
7540
7540
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7541
7541
|
"span",
|
|
@@ -7605,7 +7605,7 @@ function MingoChatHistoryRow({
|
|
|
7605
7605
|
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")
|
|
7606
7606
|
),
|
|
7607
7607
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7608
|
-
|
|
7608
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
7609
7609
|
{
|
|
7610
7610
|
variant: "round",
|
|
7611
7611
|
sizePx: 24,
|
|
@@ -7661,7 +7661,7 @@ function MingoChatHistory({
|
|
|
7661
7661
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loading;
|
|
7662
7662
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
7663
7663
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _167 => _167.trim, 'call', _168 => _168()]);
|
|
7664
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
7664
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkIONS6HDFcjs.useScrollFade.call(void 0, );
|
|
7665
7665
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
7666
7666
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
7667
7667
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -7726,8 +7726,8 @@ function MingoChatHistory({
|
|
|
7726
7726
|
]
|
|
7727
7727
|
}
|
|
7728
7728
|
),
|
|
7729
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7729
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
7730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
7731
7731
|
] }) });
|
|
7732
7732
|
}
|
|
7733
7733
|
|
|
@@ -7783,7 +7783,7 @@ function MingoWelcome({
|
|
|
7783
7783
|
} catch (e7) {
|
|
7784
7784
|
}
|
|
7785
7785
|
}, [promoStorage, promoStorageKey]);
|
|
7786
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7786
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkIONS6HDFcjs.useScrollFade.call(void 0, );
|
|
7787
7787
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
7788
7788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7789
7789
|
"div",
|
|
@@ -7815,7 +7815,7 @@ function MingoWelcome({
|
|
|
7815
7815
|
onScroll: updateScrollFade,
|
|
7816
7816
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7817
7817
|
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: [
|
|
7818
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7818
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7819
7819
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7820
7820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7821
7821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7823,8 +7823,8 @@ function MingoWelcome({
|
|
|
7823
7823
|
] })
|
|
7824
7824
|
}
|
|
7825
7825
|
),
|
|
7826
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7827
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7826
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7827
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7828
7828
|
] }) })))),
|
|
7829
7829
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
7830
7830
|
resolvedPromo && !promoDismissed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex shrink-0 items-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)] pr-[var(--spacing-system-xl)]", children: [
|
|
@@ -7904,7 +7904,7 @@ function GuideWelcome({
|
|
|
7904
7904
|
children,
|
|
7905
7905
|
className
|
|
7906
7906
|
}) {
|
|
7907
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
7907
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkIONS6HDFcjs.useScrollFade.call(void 0, );
|
|
7908
7908
|
const subtitleIsLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
|
|
7909
7909
|
const chipItems = _react.useMemo.call(void 0,
|
|
7910
7910
|
() => quickActions.map((action) => ({
|
|
@@ -7941,7 +7941,7 @@ function GuideWelcome({
|
|
|
7941
7941
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7942
7942
|
// match the default Mingo mark (48px).
|
|
7943
7943
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7944
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7944
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7945
7945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7946
7946
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7947
7947
|
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.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
|
|
@@ -7951,8 +7951,8 @@ function GuideWelcome({
|
|
|
7951
7951
|
]
|
|
7952
7952
|
}
|
|
7953
7953
|
),
|
|
7954
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7954
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
7955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
7956
7956
|
] }),
|
|
7957
7957
|
quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7958
7958
|
QuickActionWall,
|
|
@@ -8036,17 +8036,17 @@ function MingoArchiveList({
|
|
|
8036
8036
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
8037
8037
|
children: [
|
|
8038
8038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 px-[var(--spacing-system-xs)] pt-[var(--spacing-system-xs)] text-ods-text-secondary text-h5", children: "Archived Chats" }),
|
|
8039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8040
8040
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8041
|
-
|
|
8041
|
+
_chunkIONS6HDFcjs.ChatListItem,
|
|
8042
8042
|
{
|
|
8043
8043
|
"data-loading-item": true,
|
|
8044
8044
|
title: dialog.title || "Untitled Chat",
|
|
8045
8045
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _179 => _179(dialog.id)]),
|
|
8046
8046
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8047
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8047
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkTUD7BV6Ocjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8048
8048
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8049
|
-
|
|
8049
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
8050
8050
|
{
|
|
8051
8051
|
variant: "round",
|
|
8052
8052
|
sizePx: 24,
|
|
@@ -8110,7 +8110,7 @@ function MingoChatHeader({
|
|
|
8110
8110
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8111
8111
|
] }),
|
|
8112
8112
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8113
|
-
|
|
8113
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
8114
8114
|
{
|
|
8115
8115
|
variant: "round",
|
|
8116
8116
|
sizePx: 32,
|
|
@@ -8349,7 +8349,7 @@ function MingoChatRail({
|
|
|
8349
8349
|
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8350
8350
|
] });
|
|
8351
8351
|
} else if (loading) {
|
|
8352
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8352
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
8353
8353
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
8354
8354
|
list = hasSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h6", children: "No chats found" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8355
8355
|
ChatListEmptyState,
|
|
@@ -8361,7 +8361,7 @@ function MingoChatRail({
|
|
|
8361
8361
|
);
|
|
8362
8362
|
} else {
|
|
8363
8363
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8364
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8364
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
8365
8365
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8366
8366
|
MingoChatRailRow,
|
|
8367
8367
|
{
|
|
@@ -8383,13 +8383,13 @@ function MingoChatRail({
|
|
|
8383
8383
|
] });
|
|
8384
8384
|
}
|
|
8385
8385
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8386
|
-
|
|
8386
|
+
_chunkIONS6HDFcjs.ChatNavSidebar,
|
|
8387
8387
|
{
|
|
8388
8388
|
className,
|
|
8389
8389
|
"data-accent": "mingo",
|
|
8390
8390
|
"aria-label": "Mingo chats",
|
|
8391
8391
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8393
8393
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8394
8394
|
_chunkK7I3YYYUcjs.Button,
|
|
8395
8395
|
{
|
|
@@ -8442,7 +8442,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8442
8442
|
const title = dialog.title || "Untitled Chat";
|
|
8443
8443
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
8444
8444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8445
|
-
|
|
8445
|
+
_chunkIONS6HDFcjs.ChatListItem,
|
|
8446
8446
|
{
|
|
8447
8447
|
active,
|
|
8448
8448
|
title,
|
|
@@ -8665,8 +8665,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8665
8665
|
const save = () => {
|
|
8666
8666
|
if (canSave) onSave(name.trim());
|
|
8667
8667
|
};
|
|
8668
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8669
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8668
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8669
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8670
8670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8671
8671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJRTDBPJTcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
8672
8672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8683,27 +8683,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8683
8683
|
}
|
|
8684
8684
|
)
|
|
8685
8685
|
] }),
|
|
8686
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8686
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
8687
8687
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8688
8688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
8689
8689
|
] })
|
|
8690
8690
|
] });
|
|
8691
8691
|
}
|
|
8692
8692
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8693
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8694
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8693
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8695
8695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be hidden from your current chats." }),
|
|
8696
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8696
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
8697
8697
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8698
8698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
8699
8699
|
] })
|
|
8700
8700
|
] });
|
|
8701
8701
|
}
|
|
8702
8702
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8703
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8704
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8703
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8704
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIONS6HDFcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8705
8705
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be moved back to your current chats." }),
|
|
8706
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8706
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIONS6HDFcjs.ModalFooter, { children: [
|
|
8707
8707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8708
8708
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
8709
8709
|
] })
|
|
@@ -8876,7 +8876,7 @@ function ChatPanelHeader({
|
|
|
8876
8876
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8877
8877
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8878
8878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8879
|
-
|
|
8879
|
+
_chunkGP7NV6BKcjs.SquareAvatar,
|
|
8880
8880
|
{
|
|
8881
8881
|
variant: "round",
|
|
8882
8882
|
sizePx: 32,
|
|
@@ -9044,8 +9044,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9044
9044
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9045
9045
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9046
9046
|
status === "sniffing" && "Checking the file",
|
|
9047
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9048
|
-
status === "ready" &&
|
|
9047
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkGP7NV6BKcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9048
|
+
status === "ready" && _chunkGP7NV6BKcjs.formatFileSize.call(void 0, file.size),
|
|
9049
9049
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9050
9050
|
] })
|
|
9051
9051
|
] }),
|
|
@@ -9297,7 +9297,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9297
9297
|
const isLoading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loading;
|
|
9298
9298
|
const icon = getProviderIcon(provider);
|
|
9299
9299
|
const name = displayName || modelName;
|
|
9300
|
-
const isV2 = useChatAppearance() ===
|
|
9300
|
+
const isV2 = useChatAppearance() === _chunkIONS6HDFcjs.CHAT_APPEARANCE.V2;
|
|
9301
9301
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9302
9302
|
if (isLoading) {
|
|
9303
9303
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk6YZNUHXTcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
|
|
@@ -9425,7 +9425,7 @@ function ChatComposer({
|
|
|
9425
9425
|
}, [entityTypes]);
|
|
9426
9426
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9427
9427
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9428
|
-
|
|
9428
|
+
_chunkIONS6HDFcjs.ChatInput,
|
|
9429
9429
|
{
|
|
9430
9430
|
ref: inputRef,
|
|
9431
9431
|
onSend,
|
|
@@ -9601,10 +9601,10 @@ function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
|
9601
9601
|
const isNewTab = runtime ? _chunkUN6LC5PKcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9602
9602
|
if (isNewTab) {
|
|
9603
9603
|
if (_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.openExternal])) runtime.navigation.openExternal(href);
|
|
9604
|
-
else window.open(href, "_blank",
|
|
9604
|
+
else window.open(href, "_blank", _chunkJGURZROBcjs.NEW_TAB_FEATURES);
|
|
9605
9605
|
return;
|
|
9606
9606
|
}
|
|
9607
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9607
|
+
const target = isForeignOriginHref(href) ? href : _chunkJGURZROBcjs.stripSameOriginToPath.call(void 0, href);
|
|
9608
9608
|
if (target.includes("#") && _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9609
9609
|
return;
|
|
9610
9610
|
}
|
|
@@ -9655,7 +9655,7 @@ function useNavLinkViaRuntime({
|
|
|
9655
9655
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9656
9656
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9657
9657
|
const panel = useChatPanel();
|
|
9658
|
-
const resolvedHref =
|
|
9658
|
+
const resolvedHref = _chunkJGURZROBcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9659
9659
|
const isNewTab = _chunkUN6LC5PKcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9660
9660
|
const onClick = (e) => {
|
|
9661
9661
|
_optionalChain([onClickProp, 'optionalCall', _210 => _210(e)]);
|
|
@@ -9815,7 +9815,7 @@ function UserDisplay({
|
|
|
9815
9815
|
compact = false,
|
|
9816
9816
|
className
|
|
9817
9817
|
}) {
|
|
9818
|
-
const avatarSrc =
|
|
9818
|
+
const avatarSrc = _chunkJGURZROBcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9819
9819
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) {
|
|
9820
9820
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9821
9821
|
UserDisplaySkeleton,
|
|
@@ -9829,7 +9829,7 @@ function UserDisplay({
|
|
|
9829
9829
|
);
|
|
9830
9830
|
}
|
|
9831
9831
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
|
|
9832
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9832
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
|
|
9833
9833
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9834
9834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "truncate text-ods-text-primary", compact ? "text-h6" : "text-h4"), children: name }),
|
|
9835
9835
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -9844,7 +9844,7 @@ function UserDisplaySkeleton({
|
|
|
9844
9844
|
className
|
|
9845
9845
|
}) {
|
|
9846
9846
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
9847
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9847
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGP7NV6BKcjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
|
|
9848
9848
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9849
9849
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
9850
9850
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
@@ -10283,7 +10283,7 @@ function CardsStrip(props) {
|
|
|
10283
10283
|
}
|
|
10284
10284
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10285
10285
|
};
|
|
10286
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10286
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkJGURZROBcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkJGURZROBcjs.accentSentenceMarks.call(void 0, title) });
|
|
10287
10287
|
if (items.length === 0) {
|
|
10288
10288
|
if (!inScope || !skeleton) return null;
|
|
10289
10289
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10865,7 +10865,7 @@ function EntityVideoSection({
|
|
|
10865
10865
|
}
|
|
10866
10866
|
) : null),
|
|
10867
10867
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10868
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkJGURZROBcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10869
10869
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: videoSummary }) })
|
|
10870
10870
|
] }),
|
|
10871
10871
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10937,7 +10937,7 @@ function designDocPeople(doc) {
|
|
|
10937
10937
|
return people;
|
|
10938
10938
|
}
|
|
10939
10939
|
function designDocMetaLine(doc) {
|
|
10940
|
-
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10940
|
+
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkJGURZROBcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10941
10941
|
}
|
|
10942
10942
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
10943
10943
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -10960,7 +10960,7 @@ function DesignDocCardSkeleton({ className } = {}) {
|
|
|
10960
10960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10961
10961
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
10962
10962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
10963
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10963
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
|
|
10964
10964
|
] })
|
|
10965
10965
|
] });
|
|
10966
10966
|
}
|
|
@@ -10991,7 +10991,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10991
10991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10992
10992
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
10993
10993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
10994
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10994
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCFXCCQ6Tcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10995
10995
|
] })
|
|
10996
10996
|
] });
|
|
10997
10997
|
const outer = _chunk6YZNUHXTcjs.cn.call(void 0, _chunkUN6LC5PKcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
@@ -11102,7 +11102,7 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11102
11102
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
|
|
11103
11103
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11104
11104
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11105
|
-
const dateText =
|
|
11105
|
+
const dateText = _chunkGP7NV6BKcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11106
11106
|
const idLabel = formatActivityId(item.id, kind);
|
|
11107
11107
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11108
11108
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11268,7 +11268,7 @@ function VendorIcon({
|
|
|
11268
11268
|
}) {
|
|
11269
11269
|
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
11270
11270
|
const logoUrl = getVendorLogo(vendor);
|
|
11271
|
-
const logoSrc =
|
|
11271
|
+
const logoSrc = _chunkJGURZROBcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11272
11272
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11273
11273
|
const containerClasses = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
11274
11274
|
sizeClasses[size],
|
|
@@ -11312,8 +11312,8 @@ function useChatCardItem(type, id) {
|
|
|
11312
11312
|
const res = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, url);
|
|
11313
11313
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11314
11314
|
const data = await res.json();
|
|
11315
|
-
const items =
|
|
11316
|
-
const match = items.find((it) =>
|
|
11315
|
+
const items = _chunkJGURZROBcjs.extractCardItems.call(void 0, type, data);
|
|
11316
|
+
const match = items.find((it) => _chunkJGURZROBcjs.extractItemId.call(void 0, type, it) === id);
|
|
11317
11317
|
return _nullishCoalesce(match, () => ( null));
|
|
11318
11318
|
},
|
|
11319
11319
|
enabled: !!url && id.length > 0,
|
|
@@ -11355,7 +11355,7 @@ var TRAILING_CELL_LAYOUT = "w-[56px] md:w-[68px]";
|
|
|
11355
11355
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11356
11356
|
if (imageSrc) {
|
|
11357
11357
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children:
|
|
11358
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunkGP7NV6BKcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11359
11359
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11360
11360
|
_chunkDRWPSN3Acjs.next_image_default,
|
|
11361
11361
|
{
|
|
@@ -11427,7 +11427,7 @@ function MingoInfoCard({
|
|
|
11427
11427
|
status ? (
|
|
11428
11428
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11429
11429
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
11430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6YZNUHXTcjs.cn.call(void 0, _chunkGP7NV6BKcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
|
|
11431
11431
|
) : null
|
|
11432
11432
|
] });
|
|
11433
11433
|
const contentClass = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
@@ -11519,7 +11519,7 @@ function resolveFetchedCardHref({
|
|
|
11519
11519
|
composeContentUrl
|
|
11520
11520
|
}) {
|
|
11521
11521
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11522
|
-
const canonicalType =
|
|
11522
|
+
const canonicalType = _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11523
11523
|
return composeContentUrl({
|
|
11524
11524
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11525
11525
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11587,7 +11587,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11587
11587
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11588
11588
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11589
11589
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11590
|
-
type:
|
|
11590
|
+
type: _chunkJGURZROBcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11591
11591
|
identifier: idValue,
|
|
11592
11592
|
externalUrl: row.externalUrl,
|
|
11593
11593
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
@@ -11725,7 +11725,7 @@ function GitHubChatCard({
|
|
|
11725
11725
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11726
11726
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11727
11727
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11728
|
-
const dateText =
|
|
11728
|
+
const dateText = _chunkGP7NV6BKcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11729
11729
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11730
11730
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11731
11731
|
MingoInfoCard,
|
|
@@ -11960,17 +11960,17 @@ function TrustCenterChatCard({
|
|
|
11960
11960
|
}) {
|
|
11961
11961
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11962
11962
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11963
|
-
const summary =
|
|
11963
|
+
const summary = _chunkJGURZROBcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11964
11964
|
const leadFramework = frameworks[0];
|
|
11965
11965
|
const lead = leadFramework ? {
|
|
11966
|
-
label:
|
|
11967
|
-
color:
|
|
11966
|
+
label: _chunkJGURZROBcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11967
|
+
color: _chunkJGURZROBcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11968
11968
|
} : void 0;
|
|
11969
11969
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11970
11970
|
MingoInfoCard,
|
|
11971
11971
|
{
|
|
11972
|
-
title:
|
|
11973
|
-
description: summary ||
|
|
11972
|
+
title: _chunkJGURZROBcjs.TRUST_CENTER_TITLE,
|
|
11973
|
+
description: summary || _chunkJGURZROBcjs.TRUST_CENTER_TAGLINE,
|
|
11974
11974
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11975
11975
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11976
11976
|
anchorProps: _chunkUN6LC5PKcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
@@ -12100,7 +12100,7 @@ function CampaignChatCard({
|
|
|
12100
12100
|
}) {
|
|
12101
12101
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12102
12102
|
const meta = [
|
|
12103
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12103
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunkJGURZROBcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12104
12104
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12105
12105
|
"Marketing campaign"
|
|
12106
12106
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12151,7 +12151,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12151
12151
|
function statusPill(status) {
|
|
12152
12152
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12153
12153
|
if (!s) return void 0;
|
|
12154
|
-
const scheme =
|
|
12154
|
+
const scheme = _chunkJGURZROBcjs.getStatusColorScheme.call(void 0, s);
|
|
12155
12155
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12156
12156
|
return { label: s, variant };
|
|
12157
12157
|
}
|
|
@@ -12260,7 +12260,7 @@ function InvestorUpdateChatCard({
|
|
|
12260
12260
|
EntityMingoCard,
|
|
12261
12261
|
{
|
|
12262
12262
|
title,
|
|
12263
|
-
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) ||
|
|
12263
|
+
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunkJGURZROBcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
|
|
12264
12264
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12265
12265
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12266
12266
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12304,7 +12304,7 @@ function ProgramChatCard({
|
|
|
12304
12304
|
discuss
|
|
12305
12305
|
}) {
|
|
12306
12306
|
const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZ6NU2C2cjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM4KPLFFAcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 });
|
|
12307
|
-
const { line: meta } =
|
|
12307
|
+
const { line: meta } = _chunkJGURZROBcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkJGURZROBcjs.programMetaFormatters.call(void 0, _chunkJGURZROBcjs.PROGRAM_META_RENDERERS));
|
|
12308
12308
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12309
12309
|
EntityMingoCard,
|
|
12310
12310
|
{
|
|
@@ -12330,7 +12330,7 @@ function RoadmapChatCard({
|
|
|
12330
12330
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12331
12331
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12332
12332
|
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 });
|
|
12333
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12333
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12334
12334
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12335
12335
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12336
12336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDRWPSN3Acjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12517,7 +12517,7 @@ function programRegistryEntries() {
|
|
|
12517
12517
|
label: cfg.label,
|
|
12518
12518
|
contentRefType: cfg.contentRefType,
|
|
12519
12519
|
bareInline: true,
|
|
12520
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12520
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12521
12521
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12522
12522
|
ProgramChatCard,
|
|
12523
12523
|
{
|
|
@@ -12558,7 +12558,7 @@ function roadmapRegistryEntries() {
|
|
|
12558
12558
|
bareInline: true,
|
|
12559
12559
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12560
12560
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12561
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12561
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12562
12562
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12563
12563
|
RoadmapChatCard,
|
|
12564
12564
|
{
|
|
@@ -12616,12 +12616,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12616
12616
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12617
12617
|
// single matched row. Destination is the public page unless the host
|
|
12618
12618
|
// re-homes the type (`composeContentUrl` override).
|
|
12619
|
-
[
|
|
12619
|
+
[_chunkJGURZROBcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12620
12620
|
label: "Trust center",
|
|
12621
12621
|
bareInline: true,
|
|
12622
|
-
contentRefType:
|
|
12622
|
+
contentRefType: _chunkJGURZROBcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12623
12623
|
noComposedHref: true,
|
|
12624
|
-
fallbackHref: () =>
|
|
12624
|
+
fallbackHref: () => _chunkJGURZROBcjs.TRUST_CENTER_PAGE_PATH,
|
|
12625
12625
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12626
12626
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12627
12627
|
},
|
|
@@ -12647,7 +12647,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12647
12647
|
label: "Blog post",
|
|
12648
12648
|
contentRefType: "blog_post_existing",
|
|
12649
12649
|
bareInline: true,
|
|
12650
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12650
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.BlogCard, { loading: true, size: "sm" }),
|
|
12651
12651
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12652
12652
|
BlogChatCard,
|
|
12653
12653
|
{
|
|
@@ -12689,7 +12689,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12689
12689
|
label: "Customer interview",
|
|
12690
12690
|
contentRefType: "customer_interview",
|
|
12691
12691
|
bareInline: true,
|
|
12692
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12692
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12693
12693
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12694
12694
|
CustomerInterviewChatCard,
|
|
12695
12695
|
{
|
|
@@ -12705,9 +12705,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12705
12705
|
label: "Product release",
|
|
12706
12706
|
contentRefType: "product_release",
|
|
12707
12707
|
bareInline: true,
|
|
12708
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12708
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12709
12709
|
render: (item, chatRef, opts) => {
|
|
12710
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => (
|
|
12710
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunkJGURZROBcjs.defaultBuildProductReleaseCardProps));
|
|
12711
12711
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12712
12712
|
ProductReleaseChatCard,
|
|
12713
12713
|
{
|
|
@@ -12725,7 +12725,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12725
12725
|
label: "Investor update",
|
|
12726
12726
|
contentRefType: "investor_update",
|
|
12727
12727
|
bareInline: true,
|
|
12728
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12728
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12729
12729
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12730
12730
|
InvestorUpdateChatCard,
|
|
12731
12731
|
{
|
|
@@ -12743,7 +12743,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12743
12743
|
bareInline: true,
|
|
12744
12744
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12745
12745
|
displayAction: true,
|
|
12746
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12746
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12747
12747
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12748
12748
|
OnboardingGuideChatCard,
|
|
12749
12749
|
{
|
|
@@ -12816,7 +12816,7 @@ function ChatCardLoader({
|
|
|
12816
12816
|
entry: fetchEntry,
|
|
12817
12817
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12818
12818
|
composeContentUrl: runtime.composeContentUrl,
|
|
12819
|
-
resolveHref: (href) =>
|
|
12819
|
+
resolveHref: (href) => _chunkJGURZROBcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12820
12820
|
});
|
|
12821
12821
|
const hrefResolvedChatRef = {
|
|
12822
12822
|
...chatRef,
|
|
@@ -12832,7 +12832,7 @@ function ChatCardLoader({
|
|
|
12832
12832
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12833
12833
|
const discuss = discussFn ? {
|
|
12834
12834
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12835
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12835
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUD7BV6Ocjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12836
12836
|
run: () => discussFn(finalChatRef)
|
|
12837
12837
|
} : void 0;
|
|
12838
12838
|
const renderOpts = {
|
|
@@ -12941,12 +12941,12 @@ function makeBatchDedupKey(item) {
|
|
|
12941
12941
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12942
12942
|
}
|
|
12943
12943
|
function getChatTypeMessageType(chatType) {
|
|
12944
|
-
return chatType ===
|
|
12944
|
+
return chatType === _chunkIONS6HDFcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12945
12945
|
}
|
|
12946
12946
|
function useChunkCatchup({
|
|
12947
12947
|
dialogId,
|
|
12948
12948
|
onChunkReceived,
|
|
12949
|
-
chatTypes = [
|
|
12949
|
+
chatTypes = [_chunkIONS6HDFcjs.CHAT_TYPE.CLIENT],
|
|
12950
12950
|
fetchChunks
|
|
12951
12951
|
}) {
|
|
12952
12952
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13907,7 +13907,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13907
13907
|
return () => root.removeEventListener("click", onClick);
|
|
13908
13908
|
}, [viewUrlPrefix]);
|
|
13909
13909
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13910
|
-
|
|
13910
|
+
_chunkJGURZROBcjs.ImageGalleryModal,
|
|
13911
13911
|
{
|
|
13912
13912
|
images: state.images,
|
|
13913
13913
|
isOpen: state.isOpen,
|
|
@@ -15653,7 +15653,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15653
15653
|
const status = approvalStatuses[requestId] || "pending";
|
|
15654
15654
|
if (!displayInline(approvalType)) {
|
|
15655
15655
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15656
|
-
const summary = required ?
|
|
15656
|
+
const summary = required ? _chunkTUD7BV6Ocjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15657
15657
|
pendingEscalated.set(requestId, {
|
|
15658
15658
|
command: summary,
|
|
15659
15659
|
explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
|
|
@@ -15686,7 +15686,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15686
15686
|
if (!call.requiresApproval) continue;
|
|
15687
15687
|
segments = accumulator.addApprovalRequest(
|
|
15688
15688
|
requestId,
|
|
15689
|
-
|
|
15689
|
+
_chunkTUD7BV6Ocjs.getCommandText.call(void 0, call),
|
|
15690
15690
|
call.toolExplanation,
|
|
15691
15691
|
approvalType,
|
|
15692
15692
|
status,
|
|
@@ -15765,7 +15765,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15765
15765
|
if (!call.requiresApproval) continue;
|
|
15766
15766
|
segments = accumulator.addApprovalRequest(
|
|
15767
15767
|
requestId,
|
|
15768
|
-
|
|
15768
|
+
_chunkTUD7BV6Ocjs.getCommandText.call(void 0, call),
|
|
15769
15769
|
call.toolExplanation,
|
|
15770
15770
|
escalatedData.approvalType,
|
|
15771
15771
|
status
|
|
@@ -18063,12 +18063,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18063
18063
|
|
|
18064
18064
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18065
18065
|
function getOwnerDisplayName(owner) {
|
|
18066
|
-
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18066
|
+
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18067
18067
|
const { firstName, lastName } = owner.user;
|
|
18068
18068
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18069
18069
|
if (name) return name;
|
|
18070
18070
|
}
|
|
18071
|
-
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) ===
|
|
18071
|
+
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18072
18072
|
}
|
|
18073
18073
|
function getOwnerAvatar(owner) {
|
|
18074
18074
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
|
|
@@ -18331,7 +18331,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18331
18331
|
if (!call.requiresApproval) continue;
|
|
18332
18332
|
accumulator.addApprovalRequest(
|
|
18333
18333
|
event.requestId,
|
|
18334
|
-
|
|
18334
|
+
_chunkTUD7BV6Ocjs.getCommandText.call(void 0, call),
|
|
18335
18335
|
call.toolExplanation,
|
|
18336
18336
|
approvalType,
|
|
18337
18337
|
status,
|
|
@@ -18392,7 +18392,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18392
18392
|
if (!call.requiresApproval) continue;
|
|
18393
18393
|
accumulator.addApprovalRequest(
|
|
18394
18394
|
requestId,
|
|
18395
|
-
|
|
18395
|
+
_chunkTUD7BV6Ocjs.getCommandText.call(void 0, call),
|
|
18396
18396
|
call.toolExplanation,
|
|
18397
18397
|
escalatedData.approvalType,
|
|
18398
18398
|
status
|
|
@@ -18500,10 +18500,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18500
18500
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18501
18501
|
return;
|
|
18502
18502
|
}
|
|
18503
|
-
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) ===
|
|
18503
|
+
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.ADMIN;
|
|
18504
18504
|
if (isUserMessage) {
|
|
18505
18505
|
flushAssistantMessage();
|
|
18506
|
-
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) ===
|
|
18506
|
+
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18507
18507
|
messageDataArray.forEach((data) => {
|
|
18508
18508
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18509
18509
|
const rawContext = data.contextItems;
|
|
@@ -18554,7 +18554,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18554
18554
|
});
|
|
18555
18555
|
const nextMsg = messages[index + 1];
|
|
18556
18556
|
const isLastMessage = index === messages.length - 1;
|
|
18557
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) ===
|
|
18557
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunkIONS6HDFcjs.OWNER_TYPE.ADMIN);
|
|
18558
18558
|
if (isLastMessage || nextIsFromUser) {
|
|
18559
18559
|
flushAssistantMessage();
|
|
18560
18560
|
}
|