@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.812
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/{case-study-card-AMINZROX.cjs → case-study-card-3XLKCGLV.cjs} +5 -5
- package/dist/{chunk-VXMPVDOS.cjs → chunk-2IZHRVKD.cjs} +24 -24
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-ACCZCRXT.cjs → chunk-4ZTGCCNI.cjs} +11 -11
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-PCVY63WQ.cjs → chunk-7HNZHENA.cjs} +13 -13
- package/dist/{chunk-OQDPZOGC.cjs → chunk-7Q2PFKU3.cjs} +4 -4
- package/dist/{chunk-NZSWROGM.cjs → chunk-7TBXHZLB.cjs} +2 -2
- package/dist/{chunk-Q7QYAINS.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-CUDJP7R7.cjs} +11 -11
- package/dist/{chunk-O32RLIN4.cjs → chunk-D2EPUQ35.cjs} +4 -4
- package/dist/{chunk-WX5WDSKV.cjs → chunk-D322VUSH.cjs} +498 -498
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-DA2TWDGJ.cjs} +6 -6
- package/dist/{chunk-ZW25QUJK.cjs → chunk-E64HJMY6.cjs} +11 -11
- package/dist/{chunk-IQLXO6EI.cjs → chunk-EPMAMFQE.cjs} +89 -89
- package/dist/{chunk-66J7ZSI5.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-TKK66KHU.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-JMRO7CK2.cjs} +21 -21
- package/dist/{chunk-CPP2APON.cjs → chunk-K7IX2NAG.cjs} +78 -78
- package/dist/{chunk-R55KNVPR.cjs → chunk-NEDFRRLM.cjs} +47 -47
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-CB77J5L7.cjs → chunk-PQ76VC2P.cjs} +187 -187
- package/dist/{chunk-XLEWM5X5.cjs → chunk-RSLLS6C4.cjs} +41 -41
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-SC3I3YWM.cjs} +17 -17
- package/dist/{chunk-J6C7F63P.cjs → chunk-TCMUVY3M.cjs} +87 -87
- package/dist/{chunk-PMOMZSCX.cjs → chunk-TS4PKCG3.cjs} +2 -2
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-VEN6MGNX.cjs} +33 -33
- package/dist/{chunk-MDBOYMCW.cjs → chunk-VPYGK4AV.cjs} +15 -15
- package/dist/{chunk-UP3TLY2V.cjs → chunk-VT2ACO3Z.cjs} +129 -129
- package/dist/{chunk-243TS7YL.cjs → chunk-VYLBW6ZV.cjs} +18 -18
- package/dist/{chunk-FK2WFU7R.cjs → chunk-WFJDKP2Q.cjs} +4 -4
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-ERLMCSGF.cjs → chunk-ZFUNSXSH.cjs} +4 -4
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-CW3I7AIM.cjs} +17 -17
- package/dist/components/case-studies/index.cjs +33 -33
- package/dist/components/chat/index.cjs +13 -13
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +18 -18
- package/dist/components/docs/index.cjs +21 -21
- package/dist/components/embeds/index.cjs +18 -18
- package/dist/components/faq/index.cjs +19 -19
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +17 -17
- package/dist/components/help-center-pages/index.cjs +118 -118
- package/dist/components/index.cjs +75 -75
- package/dist/components/meeting-scheduler/index.cjs +109 -63
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +20 -20
- package/dist/components/onboarding-guides/index.cjs +20 -20
- package/dist/components/product-demo/index.cjs +28 -28
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +24 -24
- package/dist/components/ui/index.cjs +17 -17
- package/dist/{devices-H5Y4DBVC.cjs → devices-KKRAB4Q2.cjs} +18 -18
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-5UO66U4F.cjs} +81 -81
- package/dist/hooks/index.cjs +6 -6
- package/dist/index.cjs +22 -22
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-Z2PTGBA3.cjs} +18 -18
- package/dist/{logs-OL7ETVK6.cjs → logs-6T5VK2TY.cjs} +25 -25
- package/dist/{policies-BCECWQ3F.cjs → policies-JPIC5YDE.cjs} +21 -21
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-VBVUMIUP.cjs} +6 -6
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BSYJJFBQ.cjs} +24 -24
- package/dist/{software-update-U5ESXRG5.cjs → software-update-KVEYYORC.cjs} +21 -21
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-YRZ54JJS.cjs} +10 -10
- package/dist/utils/index.cjs +4 -0
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkE64HJMY6cjs = require('./chunk-E64HJMY6.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
@@ -38,7 +38,7 @@ var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk7TBXHZLBcjs = require('./chunk-7TBXHZLB.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -254,7 +254,7 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
254
254
|
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
255
255
|
|
|
256
256
|
|
|
257
|
-
var
|
|
257
|
+
var _chunk4IU462LRcjs = require('./chunk-4IU462LR.cjs');
|
|
258
258
|
|
|
259
259
|
|
|
260
260
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -298,7 +298,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
298
298
|
|
|
299
299
|
|
|
300
300
|
|
|
301
|
-
var
|
|
301
|
+
var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
302
302
|
|
|
303
303
|
|
|
304
304
|
|
|
@@ -327,7 +327,7 @@ var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
|
|
330
|
-
var
|
|
330
|
+
var _chunkSC3I3YWMcjs = require('./chunk-SC3I3YWM.cjs');
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
var _chunk5QLDHPPUcjs = require('./chunk-5QLDHPPU.cjs');
|
|
@@ -356,7 +356,7 @@ var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
var
|
|
359
|
+
var _chunk5DBW6ERFcjs = require('./chunk-5DBW6ERF.cjs');
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
|
|
@@ -1231,7 +1231,7 @@ var MarkdownContentImage = ({ src, alt }) => {
|
|
|
1231
1231
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
1232
1232
|
width: 400,
|
|
1233
1233
|
height: 400,
|
|
1234
|
-
sizes:
|
|
1234
|
+
sizes: _chunk5DBW6ERFcjs.IMAGE_SLOT.inline,
|
|
1235
1235
|
className: "h-auto max-h-[400px] w-auto max-w-full rounded-lg object-contain",
|
|
1236
1236
|
style: { width: "auto", height: "auto" }
|
|
1237
1237
|
}
|
|
@@ -3479,7 +3479,7 @@ function onAskAiIntent(run) {
|
|
|
3479
3479
|
|
|
3480
3480
|
// src/components/chat/chat-appearance-context.tsx
|
|
3481
3481
|
|
|
3482
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3482
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunk7TBXHZLBcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3483
3483
|
function useChatAppearance() {
|
|
3484
3484
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3485
3485
|
}
|
|
@@ -3518,7 +3518,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3518
3518
|
...props
|
|
3519
3519
|
}, ref) => {
|
|
3520
3520
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3521
|
-
const isV2 = useChatAppearance() ===
|
|
3521
|
+
const isV2 = useChatAppearance() === _chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2;
|
|
3522
3522
|
const handleApprove = async () => {
|
|
3523
3523
|
setIsProcessing(true);
|
|
3524
3524
|
try {
|
|
@@ -3541,7 +3541,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3541
3541
|
{
|
|
3542
3542
|
ref,
|
|
3543
3543
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3544
|
-
|
|
3544
|
+
_chunkE64HJMY6cjs.CHAT_BLOCK_CLASS,
|
|
3545
3545
|
// v2: the thread owns the space below the card.
|
|
3546
3546
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3547
3547
|
className
|
|
@@ -3549,7 +3549,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3549
3549
|
...props,
|
|
3550
3550
|
children: [
|
|
3551
3551
|
/* @__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" }),
|
|
3552
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ApprovalWaitingLine, {}),
|
|
3553
3553
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3554
3554
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3555
3555
|
_chunkAHBTZ7DNcjs.Button,
|
|
@@ -3581,14 +3581,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3581
3581
|
children: "Reject"
|
|
3582
3582
|
}
|
|
3583
3583
|
)
|
|
3584
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3584
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3585
3585
|
]
|
|
3586
3586
|
}
|
|
3587
3587
|
);
|
|
3588
3588
|
}
|
|
3589
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3589
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkE64HJMY6cjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3590
3590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3591
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3591
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ApprovalWaitingLine, {}),
|
|
3592
3592
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3593
3593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3594
3594
|
_chunkAHBTZ7DNcjs.Button,
|
|
@@ -3620,7 +3620,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3620
3620
|
children: "Reject"
|
|
3621
3621
|
}
|
|
3622
3622
|
)
|
|
3623
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3623
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3624
3624
|
] });
|
|
3625
3625
|
}
|
|
3626
3626
|
);
|
|
@@ -3650,7 +3650,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3650
3650
|
|
|
3651
3651
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3652
3652
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3653
|
-
const isV2 = useChatAppearance() ===
|
|
3653
|
+
const isV2 = useChatAppearance() === _chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2;
|
|
3654
3654
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3655
3655
|
"div",
|
|
3656
3656
|
{
|
|
@@ -3666,7 +3666,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3666
3666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3667
3667
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3668
3668
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3669
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3669
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunk7TBXHZLBcjs.formatTime.call(void 0, timestamp) })
|
|
3670
3670
|
] }),
|
|
3671
3671
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3672
3672
|
] })
|
|
@@ -3865,7 +3865,7 @@ var thoughtMdClasses = [
|
|
|
3865
3865
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3866
3866
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3867
3867
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3868
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3868
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkE64HJMY6cjs.useCollapsible.call(void 0, {
|
|
3869
3869
|
expanded,
|
|
3870
3870
|
collapsedHeight: 19,
|
|
3871
3871
|
disableTransition: isStreaming
|
|
@@ -3880,7 +3880,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3880
3880
|
setExpanded(!expanded);
|
|
3881
3881
|
}
|
|
3882
3882
|
};
|
|
3883
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
3883
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkE64HJMY6cjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3884
3884
|
"div",
|
|
3885
3885
|
{
|
|
3886
3886
|
role: "button",
|
|
@@ -3898,7 +3898,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3898
3898
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3899
3899
|
] }),
|
|
3900
3900
|
/* @__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: _chunk7JWFMAQBcjs.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" }) }) }),
|
|
3901
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3901
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ExpandChevron, { expanded }) })
|
|
3902
3902
|
]
|
|
3903
3903
|
}
|
|
3904
3904
|
) });
|
|
@@ -4037,7 +4037,7 @@ function renderQuickActionIcon(icon) {
|
|
|
4037
4037
|
if (!spec.name && !spec.url) return void 0;
|
|
4038
4038
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
4039
4039
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
4040
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4040
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
4041
4041
|
}
|
|
4042
4042
|
function composeChipLabel(label, lozenge) {
|
|
4043
4043
|
if (!lozenge) return label;
|
|
@@ -4239,9 +4239,9 @@ var iconTint = {
|
|
|
4239
4239
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4240
4240
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4241
4241
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4242
|
-
const { innerRef, containerStyle } =
|
|
4242
|
+
const { innerRef, containerStyle } = _chunkE64HJMY6cjs.useCollapsible.call(void 0, { expanded });
|
|
4243
4243
|
const hasDetails = Boolean(details);
|
|
4244
|
-
const isV2 = useChatAppearance() ===
|
|
4244
|
+
const isV2 = useChatAppearance() === _chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2;
|
|
4245
4245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4246
4246
|
"div",
|
|
4247
4247
|
{
|
|
@@ -4275,7 +4275,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4275
4275
|
children: title
|
|
4276
4276
|
}
|
|
4277
4277
|
),
|
|
4278
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4278
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ExpandChevron, { expanded })
|
|
4279
4279
|
]
|
|
4280
4280
|
}
|
|
4281
4281
|
),
|
|
@@ -4524,9 +4524,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4524
4524
|
)
|
|
4525
4525
|
] }),
|
|
4526
4526
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4527
|
-
|
|
4527
|
+
_chunkE64HJMY6cjs.TicketStatusTag,
|
|
4528
4528
|
{
|
|
4529
|
-
...
|
|
4529
|
+
..._chunkE64HJMY6cjs.resolveStatusTagProps.call(void 0, {
|
|
4530
4530
|
status: ticketInfo.status,
|
|
4531
4531
|
statusKind: ticketInfo.statusKind,
|
|
4532
4532
|
statusName: ticketInfo.statusName,
|
|
@@ -5129,11 +5129,11 @@ var remarkMentionChips = () => {
|
|
|
5129
5129
|
// src/components/chat/tool-execution-display.tsx
|
|
5130
5130
|
|
|
5131
5131
|
|
|
5132
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5132
|
+
var COMMAND_BODY_KEYS = new Set(_chunkE64HJMY6cjs.COMMAND_BODY_ARG_KEYS);
|
|
5133
5133
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5134
5134
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5135
5135
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5136
|
-
const { innerRef, containerStyle } =
|
|
5136
|
+
const { innerRef, containerStyle } = _chunkE64HJMY6cjs.useCollapsible.call(void 0, { expanded });
|
|
5137
5137
|
const isClient = assistantType === "fae";
|
|
5138
5138
|
const isClientView = variant === "client";
|
|
5139
5139
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5164,7 +5164,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5164
5164
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
5165
5165
|
const statusLabel = _optionalChain([message, 'access', _86 => _86.statusLabel, 'optionalAccess', _87 => _87.trim, 'call', _88 => _88()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
5166
5166
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5167
|
-
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5167
|
+
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4IU462LRcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
5168
5168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5169
5169
|
"div",
|
|
5170
5170
|
{
|
|
@@ -5176,7 +5176,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5176
5176
|
}
|
|
5177
5177
|
),
|
|
5178
5178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
5179
|
-
!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,
|
|
5179
|
+
!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, _chunkE64HJMY6cjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5180
5180
|
] });
|
|
5181
5181
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5182
5182
|
"div",
|
|
@@ -5186,7 +5186,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5186
5186
|
// The command running block keeps its bordered box in both chats
|
|
5187
5187
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5188
5188
|
"flex w-full flex-col overflow-hidden",
|
|
5189
|
-
|
|
5189
|
+
_chunkE64HJMY6cjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5190
5190
|
className
|
|
5191
5191
|
),
|
|
5192
5192
|
...props,
|
|
@@ -5197,14 +5197,14 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5197
5197
|
// It reads as a card: what was done, then one status line under it.
|
|
5198
5198
|
/* @__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: [
|
|
5199
5199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5200
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5200
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5201
5201
|
] })
|
|
5202
5202
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5203
5203
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.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 }),
|
|
5204
5204
|
/* @__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: [
|
|
5205
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5205
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.ArgRow, { argKey: key, value }, key)),
|
|
5206
5206
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5207
|
-
|
|
5207
|
+
_chunkE64HJMY6cjs.ResultBlock,
|
|
5208
5208
|
{
|
|
5209
5209
|
result: message.result,
|
|
5210
5210
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5236,8 +5236,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
5236
5236
|
|
|
5237
5237
|
// src/components/chat/chat-message-layout.ts
|
|
5238
5238
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
5239
|
-
[
|
|
5240
|
-
[
|
|
5239
|
+
[_chunk7TBXHZLBcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
5240
|
+
[_chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
5241
5241
|
};
|
|
5242
5242
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
5243
5243
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -5278,8 +5278,8 @@ var remarkStripCitations = () => {
|
|
|
5278
5278
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5279
5279
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5280
5280
|
function formatMessageTimestamp(timestamp) {
|
|
5281
|
-
const time =
|
|
5282
|
-
return
|
|
5281
|
+
const time = _chunk7TBXHZLBcjs.formatTime.call(void 0, timestamp);
|
|
5282
|
+
return _chunkE64HJMY6cjs.isToday.call(void 0, timestamp) ? time : `${_chunk7TBXHZLBcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5283
5283
|
}
|
|
5284
5284
|
function normalizeContent(content) {
|
|
5285
5285
|
if (typeof content === "string") {
|
|
@@ -5335,7 +5335,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5335
5335
|
const isError = role === "error";
|
|
5336
5336
|
const inheritedAppearance = useChatAppearance();
|
|
5337
5337
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5338
|
-
const isV2 = appearance ===
|
|
5338
|
+
const isV2 = appearance === _chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2;
|
|
5339
5339
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5340
5340
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5341
5341
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5523,7 +5523,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5523
5523
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5524
5524
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
5525
5525
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5526
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5527
5527
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5528
5528
|
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
5529
5529
|
{
|
|
@@ -5541,7 +5541,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5541
5541
|
"div",
|
|
5542
5542
|
{
|
|
5543
5543
|
ref,
|
|
5544
|
-
className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
5544
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2], className),
|
|
5545
5545
|
...props,
|
|
5546
5546
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
5547
5547
|
}
|
|
@@ -5553,7 +5553,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5553
5553
|
ref,
|
|
5554
5554
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
5555
5555
|
"relative",
|
|
5556
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
5556
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2 : _chunk7TBXHZLBcjs.CHAT_APPEARANCE.CLASSIC],
|
|
5557
5557
|
className
|
|
5558
5558
|
),
|
|
5559
5559
|
...props,
|
|
@@ -5610,7 +5610,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5610
5610
|
);
|
|
5611
5611
|
} else if (segment.type === "approval_batch") {
|
|
5612
5612
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5613
|
-
|
|
5613
|
+
_chunkE64HJMY6cjs.ApprovalBatchMessage,
|
|
5614
5614
|
{
|
|
5615
5615
|
data: segment.data,
|
|
5616
5616
|
status: segment.status,
|
|
@@ -5884,7 +5884,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5884
5884
|
approvalVariant,
|
|
5885
5885
|
selfAuthorType,
|
|
5886
5886
|
nameEveryTurn,
|
|
5887
|
-
appearance =
|
|
5887
|
+
appearance = _chunk7TBXHZLBcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5888
5888
|
assistantIcon,
|
|
5889
5889
|
pendingApprovals,
|
|
5890
5890
|
hasNextPage,
|
|
@@ -6922,7 +6922,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6922
6922
|
|
|
6923
6923
|
[Attached: ${safeName}](${url})`;
|
|
6924
6924
|
}
|
|
6925
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6925
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkVT2ACO3Zcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6926
6926
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6927
6927
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6928
6928
|
"gm"
|
|
@@ -7761,7 +7761,7 @@ function MingoChatHistoryRow({
|
|
|
7761
7761
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
7762
7762
|
),
|
|
7763
7763
|
children: [
|
|
7764
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className:
|
|
7764
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: _chunk7TBXHZLBcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunk7TBXHZLBcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
7765
7765
|
!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,
|
|
7766
7766
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7767
7767
|
"span",
|
|
@@ -7887,7 +7887,7 @@ function MingoChatHistory({
|
|
|
7887
7887
|
const isLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
7888
7888
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
7889
7889
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _169 => _169.trim, 'call', _170 => _170()]);
|
|
7890
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
7890
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk7TBXHZLBcjs.useScrollFade.call(void 0, );
|
|
7891
7891
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
7892
7892
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
7893
7893
|
const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
|
|
@@ -7952,8 +7952,8 @@ function MingoChatHistory({
|
|
|
7952
7952
|
]
|
|
7953
7953
|
}
|
|
7954
7954
|
),
|
|
7955
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7956
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7955
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
7956
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
7957
7957
|
] }) });
|
|
7958
7958
|
}
|
|
7959
7959
|
|
|
@@ -8009,7 +8009,7 @@ function MingoWelcome({
|
|
|
8009
8009
|
} catch (e8) {
|
|
8010
8010
|
}
|
|
8011
8011
|
}, [promoStorage, promoStorageKey]);
|
|
8012
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8012
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk7TBXHZLBcjs.useScrollFade.call(void 0, );
|
|
8013
8013
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
8014
8014
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8015
8015
|
"div",
|
|
@@ -8041,7 +8041,7 @@ function MingoWelcome({
|
|
|
8041
8041
|
onScroll: updateScrollFade,
|
|
8042
8042
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8043
8043
|
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: [
|
|
8044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8045
8045
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8046
8046
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8047
8047
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8049,8 +8049,8 @@ function MingoWelcome({
|
|
|
8049
8049
|
] })
|
|
8050
8050
|
}
|
|
8051
8051
|
),
|
|
8052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8053
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8053
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8054
8054
|
] }) })))),
|
|
8055
8055
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
8056
8056
|
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: [
|
|
@@ -8130,7 +8130,7 @@ function GuideWelcome({
|
|
|
8130
8130
|
children,
|
|
8131
8131
|
className
|
|
8132
8132
|
}) {
|
|
8133
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8133
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk7TBXHZLBcjs.useScrollFade.call(void 0, );
|
|
8134
8134
|
const subtitleIsLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
|
|
8135
8135
|
const chipItems = _react.useMemo.call(void 0,
|
|
8136
8136
|
() => quickActions.map((action) => ({
|
|
@@ -8166,8 +8166,8 @@ function GuideWelcome({
|
|
|
8166
8166
|
icon && (icon.name || icon.url) ? (
|
|
8167
8167
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
8168
8168
|
// match the default Mingo mark (48px).
|
|
8169
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8170
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
8170
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8171
8171
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8172
8172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
8173
8173
|
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.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
|
|
@@ -8177,8 +8177,8 @@ function GuideWelcome({
|
|
|
8177
8177
|
]
|
|
8178
8178
|
}
|
|
8179
8179
|
),
|
|
8180
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8181
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8180
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8181
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8182
8182
|
] }),
|
|
8183
8183
|
quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8184
8184
|
QuickActionWall,
|
|
@@ -8262,15 +8262,15 @@ function MingoArchiveList({
|
|
|
8262
8262
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
8263
8263
|
children: [
|
|
8264
8264
|
/* @__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" }),
|
|
8265
|
-
/* @__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,
|
|
8265
|
+
/* @__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, _chunk7TBXHZLBcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8266
8266
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8267
|
-
|
|
8267
|
+
_chunk7TBXHZLBcjs.ChatListItem,
|
|
8268
8268
|
{
|
|
8269
8269
|
"data-loading-item": true,
|
|
8270
8270
|
title: dialog.title || "Untitled Chat",
|
|
8271
8271
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _181 => _181(dialog.id)]),
|
|
8272
8272
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8273
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8273
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkE64HJMY6cjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8274
8274
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8275
8275
|
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
8276
8276
|
{
|
|
@@ -8575,7 +8575,7 @@ function MingoChatRail({
|
|
|
8575
8575
|
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
|
|
8576
8576
|
] });
|
|
8577
8577
|
} else if (loading) {
|
|
8578
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8578
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
8579
8579
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
8580
8580
|
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,
|
|
8581
8581
|
ChatListEmptyState,
|
|
@@ -8587,7 +8587,7 @@ function MingoChatRail({
|
|
|
8587
8587
|
);
|
|
8588
8588
|
} else {
|
|
8589
8589
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8590
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8590
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
8591
8591
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8592
8592
|
MingoChatRailRow,
|
|
8593
8593
|
{
|
|
@@ -8609,13 +8609,13 @@ function MingoChatRail({
|
|
|
8609
8609
|
] });
|
|
8610
8610
|
}
|
|
8611
8611
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8612
|
-
|
|
8612
|
+
_chunk7TBXHZLBcjs.ChatNavSidebar,
|
|
8613
8613
|
{
|
|
8614
8614
|
className,
|
|
8615
8615
|
"data-accent": "mingo",
|
|
8616
8616
|
"aria-label": "Mingo chats",
|
|
8617
8617
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8618
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8618
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8619
8619
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8620
8620
|
_chunkAHBTZ7DNcjs.Button,
|
|
8621
8621
|
{
|
|
@@ -8668,7 +8668,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8668
8668
|
const title = dialog.title || "Untitled Chat";
|
|
8669
8669
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
8670
8670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8671
|
-
|
|
8671
|
+
_chunk7TBXHZLBcjs.ChatListItem,
|
|
8672
8672
|
{
|
|
8673
8673
|
active,
|
|
8674
8674
|
title,
|
|
@@ -8891,8 +8891,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8891
8891
|
const save = () => {
|
|
8892
8892
|
if (canSave) onSave(name.trim());
|
|
8893
8893
|
};
|
|
8894
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8895
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8894
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8895
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8896
8896
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8897
8897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
8898
8898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8909,27 +8909,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
)
|
|
8911
8911
|
] }),
|
|
8912
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8912
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
8913
8913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8914
8914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
8915
8915
|
] })
|
|
8916
8916
|
] });
|
|
8917
8917
|
}
|
|
8918
8918
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8919
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8920
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8919
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8920
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8921
8921
|
/* @__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." }),
|
|
8922
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8922
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
8923
8923
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8924
8924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
8925
8925
|
] })
|
|
8926
8926
|
] });
|
|
8927
8927
|
}
|
|
8928
8928
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8929
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8930
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8929
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8930
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7TBXHZLBcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8931
8931
|
/* @__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." }),
|
|
8932
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8932
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7TBXHZLBcjs.ModalFooter, { children: [
|
|
8933
8933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
8934
8934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
8935
8935
|
] })
|
|
@@ -9528,7 +9528,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9528
9528
|
const isLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
9529
9529
|
const icon = getProviderIcon(provider);
|
|
9530
9530
|
const name = displayName || modelName;
|
|
9531
|
-
const isV2 = useChatAppearance() ===
|
|
9531
|
+
const isV2 = useChatAppearance() === _chunk7TBXHZLBcjs.CHAT_APPEARANCE.V2;
|
|
9532
9532
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9533
9533
|
if (isLoading) {
|
|
9534
9534
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
|
|
@@ -9657,7 +9657,7 @@ function ChatComposer({
|
|
|
9657
9657
|
}, [entityTypes]);
|
|
9658
9658
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9659
9659
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9660
|
-
|
|
9660
|
+
_chunk7TBXHZLBcjs.ChatInput,
|
|
9661
9661
|
{
|
|
9662
9662
|
ref: inputRef,
|
|
9663
9663
|
onSend,
|
|
@@ -9828,16 +9828,16 @@ function ChatArchivePage(props) {
|
|
|
9828
9828
|
|
|
9829
9829
|
// src/components/chat/utils/execute-navigation.ts
|
|
9830
9830
|
function isForeignOriginHref(href) {
|
|
9831
|
-
return /^https?:\/\//i.test(href) && !
|
|
9831
|
+
return /^https?:\/\//i.test(href) && !_chunkSC3I3YWMcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9832
9832
|
}
|
|
9833
9833
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9834
|
-
const isNewTab = runtime ?
|
|
9834
|
+
const isNewTab = runtime ? _chunkSC3I3YWMcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9835
9835
|
if (isNewTab) {
|
|
9836
9836
|
if (_optionalChain([runtime, 'optionalAccess', _207 => _207.navigation, 'access', _208 => _208.openExternal])) runtime.navigation.openExternal(href);
|
|
9837
|
-
else window.open(href, "_blank",
|
|
9837
|
+
else window.open(href, "_blank", _chunkVT2ACO3Zcjs.NEW_TAB_FEATURES);
|
|
9838
9838
|
return;
|
|
9839
9839
|
}
|
|
9840
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9840
|
+
const target = isForeignOriginHref(href) ? href : _chunkVT2ACO3Zcjs.stripSameOriginToPath.call(void 0, href);
|
|
9841
9841
|
if (target.includes("#") && _chunkCNTBGJA7cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9842
9842
|
return;
|
|
9843
9843
|
}
|
|
@@ -9888,8 +9888,8 @@ function useNavLinkViaRuntime({
|
|
|
9888
9888
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9889
9889
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9890
9890
|
const panel = useChatPanel();
|
|
9891
|
-
const resolvedHref =
|
|
9892
|
-
const isNewTab =
|
|
9891
|
+
const resolvedHref = _chunkVT2ACO3Zcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9892
|
+
const isNewTab = _chunkSC3I3YWMcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9893
9893
|
const onClick = (e) => {
|
|
9894
9894
|
_optionalChain([onClickProp, 'optionalCall', _212 => _212(e)]);
|
|
9895
9895
|
if (e.defaultPrevented) return;
|
|
@@ -9903,7 +9903,7 @@ function useNavLinkViaRuntime({
|
|
|
9903
9903
|
});
|
|
9904
9904
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _213 => _213.closeChat])) panel.closeChat();
|
|
9905
9905
|
};
|
|
9906
|
-
const attrs =
|
|
9906
|
+
const attrs = _chunkSC3I3YWMcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9907
9907
|
return {
|
|
9908
9908
|
href: resolvedHref,
|
|
9909
9909
|
...attrs,
|
|
@@ -10048,7 +10048,7 @@ function UserDisplay({
|
|
|
10048
10048
|
compact = false,
|
|
10049
10049
|
className
|
|
10050
10050
|
}) {
|
|
10051
|
-
const avatarSrc =
|
|
10051
|
+
const avatarSrc = _chunkVT2ACO3Zcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
10052
10052
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) {
|
|
10053
10053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10054
10054
|
UserDisplaySkeleton,
|
|
@@ -10516,7 +10516,7 @@ function CardsStrip(props) {
|
|
|
10516
10516
|
}
|
|
10517
10517
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10518
10518
|
};
|
|
10519
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10519
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkVT2ACO3Zcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkVT2ACO3Zcjs.accentSentenceMarks.call(void 0, title) });
|
|
10520
10520
|
if (items.length === 0) {
|
|
10521
10521
|
if (!inScope || !skeleton) return null;
|
|
10522
10522
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10706,7 +10706,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10706
10706
|
);
|
|
10707
10707
|
function VideoBitesStrip({
|
|
10708
10708
|
bites,
|
|
10709
|
-
title =
|
|
10709
|
+
title = _chunkSC3I3YWMcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10710
10710
|
showTitle = true,
|
|
10711
10711
|
filterPublished = true,
|
|
10712
10712
|
profile = null,
|
|
@@ -10719,7 +10719,7 @@ function VideoBitesStrip({
|
|
|
10719
10719
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10720
10720
|
showChevrons = true,
|
|
10721
10721
|
onBiteNavigate,
|
|
10722
|
-
sortComparator =
|
|
10722
|
+
sortComparator = _chunkSC3I3YWMcjs.sortBitesByCreatedAtDesc,
|
|
10723
10723
|
skeletonCount,
|
|
10724
10724
|
className
|
|
10725
10725
|
}) {
|
|
@@ -10817,7 +10817,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10817
10817
|
function VideoBitesStripSkeleton({
|
|
10818
10818
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
10819
10819
|
aspect = "9:16",
|
|
10820
|
-
title =
|
|
10820
|
+
title = _chunkSC3I3YWMcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10821
10821
|
showTitle = true,
|
|
10822
10822
|
headerSlot,
|
|
10823
10823
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10949,7 +10949,7 @@ function VideoBiteCard({
|
|
|
10949
10949
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10950
10950
|
children: [
|
|
10951
10951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10952
|
-
|
|
10952
|
+
_chunkSC3I3YWMcjs.VideoHoverPreviewSurface,
|
|
10953
10953
|
{
|
|
10954
10954
|
url: bite.url,
|
|
10955
10955
|
posterUrl: bite.thumbnail_url,
|
|
@@ -11021,7 +11021,7 @@ function EntityVideoSection({
|
|
|
11021
11021
|
title = "Video",
|
|
11022
11022
|
videoSummary,
|
|
11023
11023
|
videoBites,
|
|
11024
|
-
bitesTitle =
|
|
11024
|
+
bitesTitle = _chunkSC3I3YWMcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
11025
11025
|
filterPublishedBites = true,
|
|
11026
11026
|
bitesProfile = null,
|
|
11027
11027
|
bitesHref,
|
|
@@ -11056,7 +11056,7 @@ function EntityVideoSection({
|
|
|
11056
11056
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11057
11057
|
] }),
|
|
11058
11058
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11059
|
-
|
|
11059
|
+
_chunkSC3I3YWMcjs.Video,
|
|
11060
11060
|
{
|
|
11061
11061
|
kind: fullVideoKind,
|
|
11062
11062
|
url: fullVideoUrl,
|
|
@@ -11068,7 +11068,7 @@ function EntityVideoSection({
|
|
|
11068
11068
|
}
|
|
11069
11069
|
) }),
|
|
11070
11070
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11071
|
-
|
|
11071
|
+
_chunkSC3I3YWMcjs.Video,
|
|
11072
11072
|
{
|
|
11073
11073
|
url: highlightVideoUrl,
|
|
11074
11074
|
poster: highlightVideoThumbnail,
|
|
@@ -11077,7 +11077,7 @@ function EntityVideoSection({
|
|
|
11077
11077
|
}
|
|
11078
11078
|
) })
|
|
11079
11079
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11080
|
-
|
|
11080
|
+
_chunkSC3I3YWMcjs.Video,
|
|
11081
11081
|
{
|
|
11082
11082
|
kind: fullVideoKind,
|
|
11083
11083
|
url: fullVideoUrl,
|
|
@@ -11088,7 +11088,7 @@ function EntityVideoSection({
|
|
|
11088
11088
|
priority
|
|
11089
11089
|
}
|
|
11090
11090
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11091
|
-
|
|
11091
|
+
_chunkSC3I3YWMcjs.Video,
|
|
11092
11092
|
{
|
|
11093
11093
|
url: highlightVideoUrl,
|
|
11094
11094
|
poster: highlightVideoThumbnail,
|
|
@@ -11098,7 +11098,7 @@ function EntityVideoSection({
|
|
|
11098
11098
|
}
|
|
11099
11099
|
) : null),
|
|
11100
11100
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
11101
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
11101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkVT2ACO3Zcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
11102
11102
|
/* @__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 }) })
|
|
11103
11103
|
] }),
|
|
11104
11104
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11117,13 +11117,13 @@ function EntityVideoSection({
|
|
|
11117
11117
|
] });
|
|
11118
11118
|
}
|
|
11119
11119
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
11120
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11120
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
11121
11121
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
|
|
11122
11122
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
11123
11123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
11124
11124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11125
11125
|
] }),
|
|
11126
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
11127
11127
|
] });
|
|
11128
11128
|
}
|
|
11129
11129
|
|
|
@@ -11170,7 +11170,7 @@ function designDocPeople(doc) {
|
|
|
11170
11170
|
return people;
|
|
11171
11171
|
}
|
|
11172
11172
|
function designDocMetaLine(doc) {
|
|
11173
|
-
return [_optionalChain([doc, 'access', _248 => _248.author, 'optionalAccess', _249 => _249.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
11173
|
+
return [_optionalChain([doc, 'access', _248 => _248.author, 'optionalAccess', _249 => _249.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkVT2ACO3Zcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
11174
11174
|
}
|
|
11175
11175
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
11176
11176
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -11180,15 +11180,15 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk4WIJI4AKcjs.TE
|
|
|
11180
11180
|
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk4WIJI4AKcjs.TEXT_LINES_MIN[3]}`;
|
|
11181
11181
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
11182
11182
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
11183
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
11183
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkSC3I3YWMcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
11184
11184
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
11185
11185
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
11186
11186
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
11187
11187
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
11188
11188
|
] }),
|
|
11189
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
11190
11190
|
] }),
|
|
11191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11191
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
11192
11192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
11193
11193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11194
11194
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -11200,7 +11200,7 @@ function DesignDocCardSkeleton({ className } = {}) {
|
|
|
11200
11200
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
11201
11201
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
11202
11202
|
const people = designDocPeople(doc);
|
|
11203
|
-
const link =
|
|
11203
|
+
const link = _chunkSC3I3YWMcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
11204
11204
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
11205
11205
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11206
11206
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -11209,7 +11209,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11209
11209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
11210
11210
|
] }),
|
|
11211
11211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11212
|
-
|
|
11212
|
+
_chunkSC3I3YWMcjs.StatusBadge,
|
|
11213
11213
|
{
|
|
11214
11214
|
text: readiness.label,
|
|
11215
11215
|
colorScheme: readiness.scheme,
|
|
@@ -11219,7 +11219,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11219
11219
|
}
|
|
11220
11220
|
)
|
|
11221
11221
|
] }),
|
|
11222
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11222
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
11223
11223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
11224
11224
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11225
11225
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -11227,7 +11227,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11227
11227
|
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLDHPPUcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
11228
11228
|
] })
|
|
11229
11229
|
] });
|
|
11230
|
-
const outer = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
11230
|
+
const outer = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkSC3I3YWMcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
11231
11231
|
return link ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: link, target, rel, className: outer, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: outer, children: body });
|
|
11232
11232
|
}
|
|
11233
11233
|
|
|
@@ -11369,26 +11369,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11369
11369
|
metaParts.push(
|
|
11370
11370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11371
11371
|
);
|
|
11372
|
-
const href =
|
|
11372
|
+
const href = _chunkSC3I3YWMcjs.safeHref.call(void 0, item.url);
|
|
11373
11373
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11374
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11375
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11376
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11375
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11376
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkSC3I3YWMcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11377
11377
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11378
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11379
11379
|
] }),
|
|
11380
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11380
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11381
11381
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11382
11382
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11383
11383
|
] }, i)) }) }),
|
|
11384
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_SUMMARY, children: _chunkSC3I3YWMcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11385
11385
|
] }),
|
|
11386
11386
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
11387
11387
|
] });
|
|
11388
11388
|
if (anchorProps) {
|
|
11389
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11389
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkSC3I3YWMcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11390
11390
|
}
|
|
11391
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11391
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkSC3I3YWMcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkSC3I3YWMcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11392
11392
|
}
|
|
11393
11393
|
function GitHubActivityCardSkeleton({
|
|
11394
11394
|
variant = "compact",
|
|
@@ -11396,7 +11396,7 @@ function GitHubActivityCardSkeleton({
|
|
|
11396
11396
|
}) {
|
|
11397
11397
|
if (variant === "row") {
|
|
11398
11398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11399
|
-
|
|
11399
|
+
_chunkSC3I3YWMcjs.ActivityRowSkeleton,
|
|
11400
11400
|
{
|
|
11401
11401
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
11402
11402
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
@@ -11407,7 +11407,7 @@ function GitHubActivityCardSkeleton({
|
|
|
11407
11407
|
}
|
|
11408
11408
|
);
|
|
11409
11409
|
}
|
|
11410
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11410
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
11411
11411
|
}
|
|
11412
11412
|
|
|
11413
11413
|
// src/utils/url-fix.ts
|
|
@@ -11463,7 +11463,7 @@ function VendorIcon({
|
|
|
11463
11463
|
...props
|
|
11464
11464
|
}) {
|
|
11465
11465
|
const logoUrl = getVendorLogo(vendor);
|
|
11466
|
-
const logoSrc =
|
|
11466
|
+
const logoSrc = _chunkVT2ACO3Zcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11467
11467
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11468
11468
|
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
11469
11469
|
{
|
|
@@ -11497,8 +11497,8 @@ function useChatCardItem(type, id) {
|
|
|
11497
11497
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
11498
11498
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11499
11499
|
const data = await res.json();
|
|
11500
|
-
const items =
|
|
11501
|
-
const match = items.find((it) =>
|
|
11500
|
+
const items = _chunkVT2ACO3Zcjs.extractCardItems.call(void 0, type, data);
|
|
11501
|
+
const match = items.find((it) => _chunkVT2ACO3Zcjs.extractItemId.call(void 0, type, it) === id);
|
|
11502
11502
|
return _nullishCoalesce(match, () => ( null));
|
|
11503
11503
|
},
|
|
11504
11504
|
enabled: !!url && id.length > 0,
|
|
@@ -11704,7 +11704,7 @@ function resolveFetchedCardHref({
|
|
|
11704
11704
|
composeContentUrl
|
|
11705
11705
|
}) {
|
|
11706
11706
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11707
|
-
const canonicalType =
|
|
11707
|
+
const canonicalType = _chunkVT2ACO3Zcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11708
11708
|
return composeContentUrl({
|
|
11709
11709
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11710
11710
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11734,7 +11734,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11734
11734
|
}
|
|
11735
11735
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11736
11736
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11737
|
-
const icon = iconName ?
|
|
11737
|
+
const icon = iconName ? _chunk5DBW6ERFcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11738
11738
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11739
11739
|
return { icon, iconLabel };
|
|
11740
11740
|
}
|
|
@@ -11754,16 +11754,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11754
11754
|
if (docTarget) {
|
|
11755
11755
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11756
11756
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11757
|
-
href = _nullishCoalesce(
|
|
11757
|
+
href = _nullishCoalesce(_chunkSC3I3YWMcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11758
11758
|
targetPlatform = docTarget.platform;
|
|
11759
11759
|
} else if (ctx.chipBasePlatform) {
|
|
11760
11760
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11761
|
-
href = _nullishCoalesce(
|
|
11761
|
+
href = _nullishCoalesce(_chunkSC3I3YWMcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11762
11762
|
targetPlatform = ctx.chipBasePlatform;
|
|
11763
11763
|
} else if (ctx.baseRoute) {
|
|
11764
11764
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11765
11765
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11766
|
-
href = _nullishCoalesce(
|
|
11766
|
+
href = _nullishCoalesce(_chunkSC3I3YWMcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11767
11767
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11768
11768
|
}
|
|
11769
11769
|
}
|
|
@@ -11772,15 +11772,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11772
11772
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11773
11773
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11774
11774
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11775
|
-
type:
|
|
11775
|
+
type: _chunkVT2ACO3Zcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11776
11776
|
identifier: idValue,
|
|
11777
11777
|
externalUrl: row.externalUrl,
|
|
11778
11778
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11779
11779
|
});
|
|
11780
|
-
href = composed.href ? _nullishCoalesce(
|
|
11780
|
+
href = composed.href ? _nullishCoalesce(_chunkSC3I3YWMcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11781
11781
|
targetPlatform = composed.targetPlatform;
|
|
11782
11782
|
} else if (row.externalUrl) {
|
|
11783
|
-
href = _nullishCoalesce(
|
|
11783
|
+
href = _nullishCoalesce(_chunkSC3I3YWMcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11784
11784
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11785
11785
|
}
|
|
11786
11786
|
const documentType = row.documentType;
|
|
@@ -11847,7 +11847,7 @@ function resolveCardDestination({
|
|
|
11847
11847
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11848
11848
|
allowComposed: !entry.noComposedHref
|
|
11849
11849
|
});
|
|
11850
|
-
const url = choice ? _nullishCoalesce(
|
|
11850
|
+
const url = choice ? _nullishCoalesce(_chunkSC3I3YWMcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11851
11851
|
if (choice && url) {
|
|
11852
11852
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11853
11853
|
}
|
|
@@ -11860,11 +11860,11 @@ function resolveCardDestination({
|
|
|
11860
11860
|
|
|
11861
11861
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11862
11862
|
const label = entityLabel || "Item";
|
|
11863
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11865
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11866
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11867
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11863
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkSC3I3YWMcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11864
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11865
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkSC3I3YWMcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11867
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkSC3I3YWMcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11868
11868
|
label,
|
|
11869
11869
|
" deleted",
|
|
11870
11870
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11919,7 +11919,7 @@ function GitHubChatCard({
|
|
|
11919
11919
|
description,
|
|
11920
11920
|
icon: githubKindIcon(kind),
|
|
11921
11921
|
status,
|
|
11922
|
-
anchorProps:
|
|
11922
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11923
11923
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11924
11924
|
menuAriaLabel: "Activity actions"
|
|
11925
11925
|
}
|
|
@@ -12066,7 +12066,7 @@ function HubspotTicketChatCard({
|
|
|
12066
12066
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12067
12067
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
12068
12068
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
12069
|
-
anchorProps:
|
|
12069
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12070
12070
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12071
12071
|
label: "Open Ticket Details",
|
|
12072
12072
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -12089,7 +12089,7 @@ function FaqChatCard({
|
|
|
12089
12089
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12090
12090
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
12091
12091
|
status: { label: statusLabel, variant: "grey" },
|
|
12092
|
-
anchorProps:
|
|
12092
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12093
12093
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12094
12094
|
menuAriaLabel: "FAQ actions"
|
|
12095
12095
|
}
|
|
@@ -12109,7 +12109,7 @@ function SlackChatCard({
|
|
|
12109
12109
|
title,
|
|
12110
12110
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12111
12111
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
12112
|
-
anchorProps:
|
|
12112
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12113
12113
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12114
12114
|
menuAriaLabel: "Message actions"
|
|
12115
12115
|
}
|
|
@@ -12127,7 +12127,7 @@ function GlyphChatCard({
|
|
|
12127
12127
|
title: chatRef.title,
|
|
12128
12128
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12129
12129
|
icon,
|
|
12130
|
-
anchorProps:
|
|
12130
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12131
12131
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12132
12132
|
menuAriaLabel: "Card actions"
|
|
12133
12133
|
}
|
|
@@ -12145,20 +12145,20 @@ function TrustCenterChatCard({
|
|
|
12145
12145
|
}) {
|
|
12146
12146
|
const raw2 = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
12147
12147
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
12148
|
-
const summary =
|
|
12148
|
+
const summary = _chunkVT2ACO3Zcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12149
12149
|
const leadFramework = frameworks[0];
|
|
12150
12150
|
const lead = leadFramework ? {
|
|
12151
|
-
label:
|
|
12152
|
-
color:
|
|
12151
|
+
label: _chunkVT2ACO3Zcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
12152
|
+
color: _chunkVT2ACO3Zcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
12153
12153
|
} : void 0;
|
|
12154
12154
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12155
12155
|
MingoInfoCard,
|
|
12156
12156
|
{
|
|
12157
|
-
title:
|
|
12158
|
-
description: summary ||
|
|
12157
|
+
title: _chunkVT2ACO3Zcjs.TRUST_CENTER_TITLE,
|
|
12158
|
+
description: summary || _chunkVT2ACO3Zcjs.TRUST_CENTER_TAGLINE,
|
|
12159
12159
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
12160
12160
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
12161
|
-
anchorProps:
|
|
12161
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12162
12162
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12163
12163
|
label: "View trust center",
|
|
12164
12164
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12180,7 +12180,7 @@ function DataRoomDocChatCard({
|
|
|
12180
12180
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12181
12181
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12182
12182
|
status: { label: badgeText, variant: "grey" },
|
|
12183
|
-
anchorProps:
|
|
12183
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12184
12184
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12185
12185
|
menuAriaLabel: "Document actions"
|
|
12186
12186
|
}
|
|
@@ -12199,7 +12199,7 @@ function GenericFinancialChatCard({
|
|
|
12199
12199
|
title: chatRef.title,
|
|
12200
12200
|
description: subtitle,
|
|
12201
12201
|
icon,
|
|
12202
|
-
anchorProps:
|
|
12202
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12203
12203
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12204
12204
|
menuAriaLabel: "Document actions"
|
|
12205
12205
|
}
|
|
@@ -12285,7 +12285,7 @@ function CampaignChatCard({
|
|
|
12285
12285
|
}) {
|
|
12286
12286
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12287
12287
|
const meta = [
|
|
12288
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12288
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunkVT2ACO3Zcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12289
12289
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12290
12290
|
"Marketing campaign"
|
|
12291
12291
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12324,7 +12324,7 @@ function EntityMingoCard({
|
|
|
12324
12324
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12325
12325
|
icon: fallbackIcon,
|
|
12326
12326
|
status,
|
|
12327
|
-
anchorProps:
|
|
12327
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12328
12328
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12329
12329
|
menuAriaLabel
|
|
12330
12330
|
}
|
|
@@ -12336,7 +12336,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12336
12336
|
function statusPill(status) {
|
|
12337
12337
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12338
12338
|
if (!s) return void 0;
|
|
12339
|
-
const scheme =
|
|
12339
|
+
const scheme = _chunkVT2ACO3Zcjs.getStatusColorScheme.call(void 0, s);
|
|
12340
12340
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12341
12341
|
return { label: s, variant };
|
|
12342
12342
|
}
|
|
@@ -12427,7 +12427,7 @@ function DesignDocChatCard({
|
|
|
12427
12427
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12428
12428
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12429
12429
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12430
|
-
anchorProps:
|
|
12430
|
+
anchorProps: _chunkSC3I3YWMcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12431
12431
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12432
12432
|
menuAriaLabel: "Design doc actions"
|
|
12433
12433
|
}
|
|
@@ -12445,7 +12445,7 @@ function InvestorUpdateChatCard({
|
|
|
12445
12445
|
EntityMingoCard,
|
|
12446
12446
|
{
|
|
12447
12447
|
title,
|
|
12448
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12448
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunkVT2ACO3Zcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_end]), () => ( null))) || void 0,
|
|
12449
12449
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12450
12450
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12451
12451
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12489,7 +12489,7 @@ function ProgramChatCard({
|
|
|
12489
12489
|
discuss
|
|
12490
12490
|
}) {
|
|
12491
12491
|
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 });
|
|
12492
|
-
const { line: meta } =
|
|
12492
|
+
const { line: meta } = _chunkVT2ACO3Zcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkVT2ACO3Zcjs.programMetaFormatters.call(void 0, _chunkVT2ACO3Zcjs.PROGRAM_META_RENDERERS));
|
|
12493
12493
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12494
12494
|
EntityMingoCard,
|
|
12495
12495
|
{
|
|
@@ -12515,7 +12515,7 @@ function RoadmapChatCard({
|
|
|
12515
12515
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12516
12516
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12517
12517
|
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 });
|
|
12518
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12518
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12519
12519
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12520
12520
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12521
12521
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12524,8 +12524,8 @@ function RoadmapChatCard({
|
|
|
12524
12524
|
src: logoUrl,
|
|
12525
12525
|
alt: "",
|
|
12526
12526
|
className: "size-6 object-contain",
|
|
12527
|
-
width:
|
|
12528
|
-
height:
|
|
12527
|
+
width: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.glyph,
|
|
12528
|
+
height: _chunk5DBW6ERFcjs.IMAGE_FIXED_PX.glyph,
|
|
12529
12529
|
unoptimized: true
|
|
12530
12530
|
}
|
|
12531
12531
|
)
|
|
@@ -12591,11 +12591,11 @@ function refText(ref, key) {
|
|
|
12591
12591
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12592
12592
|
}
|
|
12593
12593
|
function VendorGlyph({ title, logoUrl }) {
|
|
12594
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12594
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12595
12595
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12596
12596
|
}
|
|
12597
12597
|
function SitePageGlyph({ iconName }) {
|
|
12598
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12598
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12599
12599
|
}
|
|
12600
12600
|
var GITHUB_CARD_CONFIGS = {
|
|
12601
12601
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12712,7 +12712,7 @@ function programRegistryEntries() {
|
|
|
12712
12712
|
label: cfg.label,
|
|
12713
12713
|
contentRefType: cfg.contentRefType,
|
|
12714
12714
|
bareInline: true,
|
|
12715
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12715
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12716
12716
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12717
12717
|
ProgramChatCard,
|
|
12718
12718
|
{
|
|
@@ -12753,7 +12753,7 @@ function roadmapRegistryEntries() {
|
|
|
12753
12753
|
bareInline: true,
|
|
12754
12754
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12755
12755
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12756
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12756
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12757
12757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12758
12758
|
RoadmapChatCard,
|
|
12759
12759
|
{
|
|
@@ -12811,12 +12811,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12811
12811
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12812
12812
|
// single matched row. Destination is the public page unless the host
|
|
12813
12813
|
// re-homes the type (`composeContentUrl` override).
|
|
12814
|
-
[
|
|
12814
|
+
[_chunkVT2ACO3Zcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12815
12815
|
label: "Trust center",
|
|
12816
12816
|
bareInline: true,
|
|
12817
|
-
contentRefType:
|
|
12817
|
+
contentRefType: _chunkVT2ACO3Zcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12818
12818
|
noComposedHref: true,
|
|
12819
|
-
fallbackHref: () =>
|
|
12819
|
+
fallbackHref: () => _chunkVT2ACO3Zcjs.TRUST_CENTER_PAGE_PATH,
|
|
12820
12820
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12821
12821
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12822
12822
|
},
|
|
@@ -12842,7 +12842,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12842
12842
|
label: "Blog post",
|
|
12843
12843
|
contentRefType: "blog_post_existing",
|
|
12844
12844
|
bareInline: true,
|
|
12845
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12845
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.BlogCard, { loading: true, size: "sm" }),
|
|
12846
12846
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12847
12847
|
BlogChatCard,
|
|
12848
12848
|
{
|
|
@@ -12859,7 +12859,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12859
12859
|
label: "Case study",
|
|
12860
12860
|
contentRefType: "case_study",
|
|
12861
12861
|
bareInline: true,
|
|
12862
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12862
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSC3I3YWMcjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
12863
12863
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12864
12864
|
CaseStudyChatCard,
|
|
12865
12865
|
{
|
|
@@ -12884,7 +12884,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12884
12884
|
label: "Customer interview",
|
|
12885
12885
|
contentRefType: "customer_interview",
|
|
12886
12886
|
bareInline: true,
|
|
12887
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12887
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12888
12888
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12889
12889
|
CustomerInterviewChatCard,
|
|
12890
12890
|
{
|
|
@@ -12900,9 +12900,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12900
12900
|
label: "Product release",
|
|
12901
12901
|
contentRefType: "product_release",
|
|
12902
12902
|
bareInline: true,
|
|
12903
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12903
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12904
12904
|
render: (item, chatRef, opts) => {
|
|
12905
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12905
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunkVT2ACO3Zcjs.defaultBuildProductReleaseCardProps));
|
|
12906
12906
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12907
12907
|
ProductReleaseChatCard,
|
|
12908
12908
|
{
|
|
@@ -12920,7 +12920,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12920
12920
|
label: "Investor update",
|
|
12921
12921
|
contentRefType: "investor_update",
|
|
12922
12922
|
bareInline: true,
|
|
12923
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12923
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12924
12924
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12925
12925
|
InvestorUpdateChatCard,
|
|
12926
12926
|
{
|
|
@@ -12938,7 +12938,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12938
12938
|
bareInline: true,
|
|
12939
12939
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12940
12940
|
displayAction: true,
|
|
12941
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12941
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVT2ACO3Zcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12942
12942
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12943
12943
|
OnboardingGuideChatCard,
|
|
12944
12944
|
{
|
|
@@ -13011,7 +13011,7 @@ function ChatCardLoader({
|
|
|
13011
13011
|
entry: fetchEntry,
|
|
13012
13012
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
13013
13013
|
composeContentUrl: runtime.composeContentUrl,
|
|
13014
|
-
resolveHref: (href) =>
|
|
13014
|
+
resolveHref: (href) => _chunkVT2ACO3Zcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
13015
13015
|
});
|
|
13016
13016
|
const hrefResolvedChatRef = {
|
|
13017
13017
|
...chatRef,
|
|
@@ -13022,12 +13022,12 @@ function ChatCardLoader({
|
|
|
13022
13022
|
};
|
|
13023
13023
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
13024
13024
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
13025
|
-
const isNewTab =
|
|
13025
|
+
const isNewTab = _chunkSC3I3YWMcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
13026
13026
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
13027
13027
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
13028
13028
|
const discuss = discussFn ? {
|
|
13029
13029
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
13030
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13030
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
13031
13031
|
run: () => discussFn(finalChatRef)
|
|
13032
13032
|
} : void 0;
|
|
13033
13033
|
const renderOpts = {
|
|
@@ -13137,12 +13137,12 @@ function makeBatchDedupKey(item) {
|
|
|
13137
13137
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
13138
13138
|
}
|
|
13139
13139
|
function getChatTypeMessageType(chatType) {
|
|
13140
|
-
return chatType ===
|
|
13140
|
+
return chatType === _chunk7TBXHZLBcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
13141
13141
|
}
|
|
13142
13142
|
function useChunkCatchup({
|
|
13143
13143
|
dialogId,
|
|
13144
13144
|
onChunkReceived,
|
|
13145
|
-
chatTypes = [
|
|
13145
|
+
chatTypes = [_chunk7TBXHZLBcjs.CHAT_TYPE.CLIENT],
|
|
13146
13146
|
fetchChunks
|
|
13147
13147
|
}) {
|
|
13148
13148
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -14103,7 +14103,7 @@ function useChatAttachmentImageGallery() {
|
|
|
14103
14103
|
return () => root.removeEventListener("click", onClick);
|
|
14104
14104
|
}, [viewUrlPrefix]);
|
|
14105
14105
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14106
|
-
|
|
14106
|
+
_chunkVT2ACO3Zcjs.ImageGalleryModal,
|
|
14107
14107
|
{
|
|
14108
14108
|
images: state.images,
|
|
14109
14109
|
isOpen: state.isOpen,
|
|
@@ -15265,7 +15265,7 @@ function nullableText(value) {
|
|
|
15265
15265
|
}
|
|
15266
15266
|
function httpsUrl(value) {
|
|
15267
15267
|
const candidate = text(value);
|
|
15268
|
-
if (!candidate ||
|
|
15268
|
+
if (!candidate || _chunkSC3I3YWMcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15269
15269
|
try {
|
|
15270
15270
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15271
15271
|
} catch (e18) {
|
|
@@ -15849,7 +15849,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15849
15849
|
const status = approvalStatuses[requestId] || "pending";
|
|
15850
15850
|
if (!displayInline(approvalType)) {
|
|
15851
15851
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15852
|
-
const summary = required ?
|
|
15852
|
+
const summary = required ? _chunkE64HJMY6cjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15853
15853
|
pendingEscalated.set(requestId, {
|
|
15854
15854
|
command: summary,
|
|
15855
15855
|
explanation: _optionalChain([required, 'optionalAccess', _535 => _535.toolExplanation]),
|
|
@@ -15882,7 +15882,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15882
15882
|
if (!call.requiresApproval) continue;
|
|
15883
15883
|
segments = accumulator.addApprovalRequest(
|
|
15884
15884
|
requestId,
|
|
15885
|
-
|
|
15885
|
+
_chunkE64HJMY6cjs.getCommandText.call(void 0, call),
|
|
15886
15886
|
call.toolExplanation,
|
|
15887
15887
|
approvalType,
|
|
15888
15888
|
status,
|
|
@@ -15961,7 +15961,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15961
15961
|
if (!call.requiresApproval) continue;
|
|
15962
15962
|
segments = accumulator.addApprovalRequest(
|
|
15963
15963
|
requestId,
|
|
15964
|
-
|
|
15964
|
+
_chunkE64HJMY6cjs.getCommandText.call(void 0, call),
|
|
15965
15965
|
call.toolExplanation,
|
|
15966
15966
|
escalatedData.approvalType,
|
|
15967
15967
|
status
|
|
@@ -18259,12 +18259,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18259
18259
|
|
|
18260
18260
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18261
18261
|
function getOwnerDisplayName(owner) {
|
|
18262
|
-
if (_optionalChain([owner, 'optionalAccess', _613 => _613.type]) ===
|
|
18262
|
+
if (_optionalChain([owner, 'optionalAccess', _613 => _613.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18263
18263
|
const { firstName, lastName } = owner.user;
|
|
18264
18264
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18265
18265
|
if (name) return name;
|
|
18266
18266
|
}
|
|
18267
|
-
return _optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18267
|
+
return _optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18268
18268
|
}
|
|
18269
18269
|
function getOwnerAvatar(owner) {
|
|
18270
18270
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _615 => _615.user, 'optionalAccess', _616 => _616.image, 'optionalAccess', _617 => _617.imageUrl]), () => ( void 0));
|
|
@@ -18527,7 +18527,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18527
18527
|
if (!call.requiresApproval) continue;
|
|
18528
18528
|
accumulator.addApprovalRequest(
|
|
18529
18529
|
event.requestId,
|
|
18530
|
-
|
|
18530
|
+
_chunkE64HJMY6cjs.getCommandText.call(void 0, call),
|
|
18531
18531
|
call.toolExplanation,
|
|
18532
18532
|
approvalType,
|
|
18533
18533
|
status,
|
|
@@ -18588,7 +18588,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18588
18588
|
if (!call.requiresApproval) continue;
|
|
18589
18589
|
accumulator.addApprovalRequest(
|
|
18590
18590
|
requestId,
|
|
18591
|
-
|
|
18591
|
+
_chunkE64HJMY6cjs.getCommandText.call(void 0, call),
|
|
18592
18592
|
call.toolExplanation,
|
|
18593
18593
|
escalatedData.approvalType,
|
|
18594
18594
|
status
|
|
@@ -18696,10 +18696,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18696
18696
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18697
18697
|
return;
|
|
18698
18698
|
}
|
|
18699
|
-
const isUserMessage = _optionalChain([msg, 'access', _630 => _630.owner, 'optionalAccess', _631 => _631.type]) ===
|
|
18699
|
+
const isUserMessage = _optionalChain([msg, 'access', _630 => _630.owner, 'optionalAccess', _631 => _631.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _632 => _632.owner, 'optionalAccess', _633 => _633.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.ADMIN;
|
|
18700
18700
|
if (isUserMessage) {
|
|
18701
18701
|
flushAssistantMessage();
|
|
18702
|
-
const userAuthorType = _optionalChain([msg, 'access', _634 => _634.owner, 'optionalAccess', _635 => _635.type]) ===
|
|
18702
|
+
const userAuthorType = _optionalChain([msg, 'access', _634 => _634.owner, 'optionalAccess', _635 => _635.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18703
18703
|
messageDataArray.forEach((data) => {
|
|
18704
18704
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18705
18705
|
const rawContext = data.contextItems;
|
|
@@ -18750,7 +18750,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18750
18750
|
});
|
|
18751
18751
|
const nextMsg = messages[index + 1];
|
|
18752
18752
|
const isLastMessage = index === messages.length - 1;
|
|
18753
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _638 => _638.owner, 'optionalAccess', _639 => _639.type]) ===
|
|
18753
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _638 => _638.owner, 'optionalAccess', _639 => _639.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _640 => _640.owner, 'optionalAccess', _641 => _641.type]) === _chunk7TBXHZLBcjs.OWNER_TYPE.ADMIN);
|
|
18754
18754
|
if (isLastMessage || nextIsFromUser) {
|
|
18755
18755
|
flushAssistantMessage();
|
|
18756
18756
|
}
|