@flamingo-stack/openframe-frontend-core 0.0.767 → 0.0.769
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-REJMFXGD.cjs → chunk-2MND64QJ.cjs} +46 -46
- package/dist/{chunk-BXMDLQUA.cjs → chunk-2TS3FEPQ.cjs} +4 -4
- package/dist/{chunk-KHISVNNH.cjs → chunk-3AZZFTT6.cjs} +6 -6
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-GJ5DHDFQ.cjs → chunk-5HWBW7WU.cjs} +12 -12
- package/dist/{chunk-IKXUJUXC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-NO2DEFAP.cjs → chunk-BIHMMGRP.cjs} +80 -80
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-I7A5MPXA.cjs → chunk-D45Q3WEP.cjs} +3 -3
- package/dist/{chunk-WEPIWJGR.cjs → chunk-DEJB5WHZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-XIXR6BHI.cjs → chunk-EZTHTSWZ.cjs} +44 -44
- package/dist/{chunk-UHDBMKJB.cjs → chunk-GGORS7G6.cjs} +13 -13
- package/dist/{chunk-FZB4RMRK.cjs → chunk-HQF62LAU.cjs} +33 -33
- package/dist/{chunk-JTSUAHDL.cjs → chunk-HY6BCZH7.cjs} +4 -2
- package/dist/{chunk-MNIMYGFR.cjs → chunk-IEPWXEA6.cjs} +31 -31
- package/dist/{chunk-FVH53QZJ.cjs → chunk-L5WSNX4H.cjs} +517 -550
- package/dist/{chunk-MPTMT773.cjs → chunk-LJT2KRE2.cjs} +14 -14
- package/dist/{chunk-NBVZIHGS.cjs → chunk-MYA6NR2C.cjs} +2 -2
- package/dist/{chunk-ZV45VS6K.cjs → chunk-MZLWB5AH.cjs} +35 -44
- package/dist/{chunk-GQ7RGD4Y.cjs → chunk-QC47HVA4.cjs} +76 -76
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-TPOLNGOW.cjs → chunk-SV6K7ZLA.cjs} +41 -41
- package/dist/{chunk-JBJVUQVH.cjs → chunk-UBPSA3RM.cjs} +87 -87
- package/dist/{chunk-7TJVYRHR.cjs → chunk-UIXWG2IW.cjs} +24 -24
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-7ZU3AVEX.cjs → chunk-VVBRYOSI.cjs} +19 -19
- package/dist/{chunk-M2UU3CWX.cjs → chunk-YTPEJIAO.cjs} +5 -5
- package/dist/{chunk-RMUSPTJN.cjs → chunk-ZVNL5OK6.cjs} +5 -5
- package/dist/{chunk-YL6ZB2SR.cjs → chunk-ZXFOMNI5.cjs} +183 -183
- package/dist/{cloud-tenants-WXK5RDSY.cjs → cloud-tenants-3BEIT4LX.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.d.ts +1 -1
- package/dist/components/case-studies/index.d.ts.map +1 -1
- package/dist/components/case-studies/index.js +5 -1
- package/dist/components/chat/entity-cards/campaign-card-admin.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +9 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/command-box.js +2 -19
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/features/paths-display.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.js +1 -10
- package/dist/components/features/remote-session/remote-session-keep-modals.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-keep-modals.js +1 -1
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +9 -1
- package/dist/components/index.cjs +74 -74
- package/dist/components/interactive-wrapper.d.ts.map +1 -1
- package/dist/components/interactive-wrapper.js +7 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +8 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +73 -73
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +24 -24
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/results-count.d.ts.map +1 -1
- package/dist/components/results-count.js +2 -2
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +17 -9
- package/dist/components/ui/cursor-pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row-count.js +1 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +16 -3
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +7 -21
- package/dist/components/ui/incident-feed.d.ts +1 -1
- package/dist/components/ui/incident-feed.d.ts.map +1 -1
- package/dist/components/ui/incident-feed.js +1 -7
- package/dist/components/ui/index.cjs +13 -13
- package/dist/components/ui/leader-row.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.js +4 -13
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.js +5 -1
- package/dist/components/ui/status-line.d.ts.map +1 -1
- package/dist/components/ui/status-line.js +1 -7
- package/dist/components/ui/strip-card.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/{devices-UHHHTCJF.cjs → devices-ZCOK24D4.cjs} +14 -14
- package/dist/{embeddable-chat-YL6ZSTDJ.cjs → embeddable-chat-BXEK3SPJ.cjs} +83 -83
- package/dist/index.cjs +20 -18
- package/dist/{knowledge-TJKHM7W4.cjs → knowledge-W47QGTEK.cjs} +14 -14
- package/dist/{logs-B3KCCMPE.cjs → logs-3DMPE2TM.cjs} +21 -21
- package/dist/{policies-ZTUIXSYZ.cjs → policies-UWHW765K.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-WVORQV7V.cjs} +7 -7
- package/dist/{scripts-FIFAHBS6.cjs → scripts-BH7V2ZC4.cjs} +20 -20
- package/dist/{software-update-62PLASQU.cjs → software-update-W6AAGJ2H.cjs} +17 -17
- package/dist/{tickets-board-G3WBH4SV.cjs → tickets-board-YT25IX3O.cjs} +8 -8
- package/dist/utils/format.d.ts +13 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +4 -2
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/package.json +1 -1
- package/src/components/case-studies/entity-quotes-panel.tsx +18 -18
- package/src/components/case-studies/index.ts +8 -1
- package/src/components/chat/entity-cards/campaign-card-admin.tsx +1 -3
- package/src/components/chat/entity-cards/investor-update-card.tsx +6 -1
- package/src/components/chat/hooks/use-ask-prompts.ts +1 -2
- package/src/components/features/cards-strip.tsx +3 -2
- package/src/components/features/command-box.tsx +2 -11
- package/src/components/features/paths-display.tsx +4 -1
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +1 -6
- package/src/components/features/remote-session/remote-session-keep-modals.tsx +2 -1
- package/src/components/icon-display.tsx +6 -1
- package/src/components/interactive-wrapper.tsx +4 -1
- package/src/components/layout/page-heading.tsx +15 -3
- package/src/components/meeting-scheduler/directory.tsx +2 -1
- package/src/components/results-count.tsx +3 -2
- package/src/components/ui/avatar-stack.tsx +5 -1
- package/src/components/ui/button/button-styles.ts +0 -1
- package/src/components/ui/cursor-pagination.tsx +8 -1
- package/src/components/ui/data-table/data-table-row-count.tsx +1 -1
- package/src/components/ui/date-picker.tsx +41 -14
- package/src/components/ui/feature-card.tsx +2 -10
- package/src/components/ui/feature-list.tsx +2 -8
- package/src/components/ui/incident-feed.tsx +2 -13
- package/src/components/ui/leader-row.tsx +0 -1
- package/src/components/ui/product-screen-frame.tsx +1 -6
- package/src/components/ui/status-badge.tsx +5 -1
- package/src/components/ui/status-line.tsx +1 -4
- package/src/components/ui/strip-card.tsx +1 -3
- package/src/components/ui/tag.tsx +3 -1
- package/src/utils/format.ts +16 -4
- package/src/utils/index.ts +1 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkEHJE3UWZcjs = require('./chunk-EHJE3UWZ.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkRNLRS4IDcjs = require('./chunk-RNLRS4ID.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunkRNLRS4IDcjs = require('./chunk-RNLRS4ID.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunk5QP3K2CEcjs = require('./chunk-5QP3K2CE.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -315,11 +315,11 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
315
315
|
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
319
319
|
|
|
320
320
|
|
|
321
321
|
|
|
322
|
-
var
|
|
322
|
+
var _chunkVFUMM6JCcjs = require('./chunk-VFUMM6JC.cjs');
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
|
|
@@ -328,7 +328,7 @@ var _chunkAAECWUNVcjs = require('./chunk-AAECWUNV.cjs');
|
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
331
|
-
var
|
|
331
|
+
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -3344,7 +3344,7 @@ function chatListensForAskAiOpens() {
|
|
|
3344
3344
|
|
|
3345
3345
|
// src/components/chat/chat-appearance-context.tsx
|
|
3346
3346
|
|
|
3347
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3347
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunk5QP3K2CEcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3348
3348
|
function useChatAppearance() {
|
|
3349
3349
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3350
3350
|
}
|
|
@@ -3383,7 +3383,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3383
3383
|
...props
|
|
3384
3384
|
}, ref) => {
|
|
3385
3385
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3386
|
-
const isV2 = useChatAppearance() ===
|
|
3386
|
+
const isV2 = useChatAppearance() === _chunk5QP3K2CEcjs.CHAT_APPEARANCE.V2;
|
|
3387
3387
|
const handleApprove = async () => {
|
|
3388
3388
|
setIsProcessing(true);
|
|
3389
3389
|
try {
|
|
@@ -3406,7 +3406,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3406
3406
|
{
|
|
3407
3407
|
ref,
|
|
3408
3408
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
3409
|
-
|
|
3409
|
+
_chunkEHJE3UWZcjs.CHAT_BLOCK_CLASS,
|
|
3410
3410
|
// v2: the thread owns the space below the card.
|
|
3411
3411
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3412
3412
|
className
|
|
@@ -3414,7 +3414,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3414
3414
|
...props,
|
|
3415
3415
|
children: [
|
|
3416
3416
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _49 => _49.explanation, 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]) || "Approval required" }),
|
|
3417
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3417
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalWaitingLine, {}),
|
|
3418
3418
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3419
3419
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3420
3420
|
_chunkTF5D5MNOcjs.Button,
|
|
@@ -3446,14 +3446,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3446
3446
|
children: "Reject"
|
|
3447
3447
|
}
|
|
3448
3448
|
)
|
|
3449
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3449
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3450
3450
|
]
|
|
3451
3451
|
}
|
|
3452
3452
|
);
|
|
3453
3453
|
}
|
|
3454
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk65VVJSQZcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3454
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk65VVJSQZcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkEHJE3UWZcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3455
3455
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3456
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3456
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalWaitingLine, {}),
|
|
3457
3457
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3458
3458
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3459
3459
|
_chunkTF5D5MNOcjs.Button,
|
|
@@ -3485,7 +3485,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3485
3485
|
children: "Reject"
|
|
3486
3486
|
}
|
|
3487
3487
|
)
|
|
3488
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3488
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3489
3489
|
] });
|
|
3490
3490
|
}
|
|
3491
3491
|
);
|
|
@@ -3515,7 +3515,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3515
3515
|
|
|
3516
3516
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3517
3517
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3518
|
-
const isV2 = useChatAppearance() ===
|
|
3518
|
+
const isV2 = useChatAppearance() === _chunk5QP3K2CEcjs.CHAT_APPEARANCE.V2;
|
|
3519
3519
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3520
3520
|
"div",
|
|
3521
3521
|
{
|
|
@@ -3531,7 +3531,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3531
3531
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3532
3532
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3533
3533
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3534
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3534
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunk5QP3K2CEcjs.formatTime.call(void 0, timestamp) })
|
|
3535
3535
|
] }),
|
|
3536
3536
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3537
3537
|
] })
|
|
@@ -3646,7 +3646,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3646
3646
|
AiAssistantInfo,
|
|
3647
3647
|
{
|
|
3648
3648
|
ref,
|
|
3649
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3649
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3650
3650
|
title: "Technician Joined",
|
|
3651
3651
|
body: `You're now chatting with ${joined}.`,
|
|
3652
3652
|
timestamp,
|
|
@@ -3730,7 +3730,7 @@ var thoughtMdClasses = [
|
|
|
3730
3730
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3731
3731
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3732
3732
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3733
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3733
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, {
|
|
3734
3734
|
expanded,
|
|
3735
3735
|
collapsedHeight: 19,
|
|
3736
3736
|
disableTransition: isStreaming
|
|
@@ -3745,7 +3745,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3745
3745
|
setExpanded(!expanded);
|
|
3746
3746
|
}
|
|
3747
3747
|
};
|
|
3748
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
3748
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk65VVJSQZcjs.cn.call(void 0, _chunkEHJE3UWZcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3749
3749
|
"div",
|
|
3750
3750
|
{
|
|
3751
3751
|
role: "button",
|
|
@@ -3763,7 +3763,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3763
3763
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3764
3764
|
] }),
|
|
3765
3765
|
/* @__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: _chunk65VVJSQZcjs.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" }) }) }),
|
|
3766
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3766
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ExpandChevron, { expanded }) })
|
|
3767
3767
|
]
|
|
3768
3768
|
}
|
|
3769
3769
|
) });
|
|
@@ -3906,7 +3906,7 @@ function renderQuickActionIcon(icon) {
|
|
|
3906
3906
|
if (!spec.name && !spec.url) return void 0;
|
|
3907
3907
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
3908
3908
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
3909
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3909
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
3910
3910
|
}
|
|
3911
3911
|
function composeChipLabel(label, lozenge) {
|
|
3912
3912
|
if (!lozenge) return label;
|
|
@@ -3940,7 +3940,7 @@ function QuickActionChipSkeleton({
|
|
|
3940
3940
|
}) {
|
|
3941
3941
|
const question = variant === "question";
|
|
3942
3942
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3943
|
-
|
|
3943
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
3944
3944
|
{
|
|
3945
3945
|
variant: "outline",
|
|
3946
3946
|
size: question ? "sentence" : size,
|
|
@@ -3984,7 +3984,7 @@ function QuickActionChipButton({
|
|
|
3984
3984
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
3985
3985
|
const tagSize = question ? "sentence" : size;
|
|
3986
3986
|
if (!interactive) {
|
|
3987
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3987
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.Tag, { variant: tagVariant, size: tagSize, icon: resolvedIcon, label: resolvedLabel, className });
|
|
3988
3988
|
}
|
|
3989
3989
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3990
3990
|
"button",
|
|
@@ -4003,7 +4003,7 @@ function QuickActionChipButton({
|
|
|
4003
4003
|
className
|
|
4004
4004
|
),
|
|
4005
4005
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4006
|
-
|
|
4006
|
+
_chunkHY6BCZH7cjs.Tag,
|
|
4007
4007
|
{
|
|
4008
4008
|
variant: tagVariant,
|
|
4009
4009
|
size: tagSize,
|
|
@@ -4075,9 +4075,9 @@ var iconTint = {
|
|
|
4075
4075
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4076
4076
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4077
4077
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4078
|
-
const { innerRef, containerStyle } =
|
|
4078
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded });
|
|
4079
4079
|
const hasDetails = Boolean(details);
|
|
4080
|
-
const isV2 = useChatAppearance() ===
|
|
4080
|
+
const isV2 = useChatAppearance() === _chunk5QP3K2CEcjs.CHAT_APPEARANCE.V2;
|
|
4081
4081
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4082
4082
|
"div",
|
|
4083
4083
|
{
|
|
@@ -4114,7 +4114,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4114
4114
|
children: title
|
|
4115
4115
|
}
|
|
4116
4116
|
),
|
|
4117
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4117
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ExpandChevron, { expanded })
|
|
4118
4118
|
]
|
|
4119
4119
|
}
|
|
4120
4120
|
),
|
|
@@ -4158,7 +4158,7 @@ function MspOrganizationCard({
|
|
|
4158
4158
|
className
|
|
4159
4159
|
),
|
|
4160
4160
|
children: [
|
|
4161
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4161
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
4162
4162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4163
4163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
4164
4164
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -4179,7 +4179,7 @@ function MspOrganizationCard({
|
|
|
4179
4179
|
className
|
|
4180
4180
|
),
|
|
4181
4181
|
children: [
|
|
4182
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4182
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4183
4183
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4184
4184
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
4185
4185
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4313,7 +4313,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4313
4313
|
] })
|
|
4314
4314
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4315
4315
|
userIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4316
|
-
|
|
4316
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
4317
4317
|
{
|
|
4318
4318
|
src: userAvatar,
|
|
4319
4319
|
alt: userName,
|
|
@@ -4389,9 +4389,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4389
4389
|
)
|
|
4390
4390
|
] }),
|
|
4391
4391
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4392
|
-
|
|
4392
|
+
_chunkEHJE3UWZcjs.TicketStatusTag,
|
|
4393
4393
|
{
|
|
4394
|
-
...
|
|
4394
|
+
..._chunkEHJE3UWZcjs.resolveStatusTagProps.call(void 0, {
|
|
4395
4395
|
status: ticketInfo.status,
|
|
4396
4396
|
statusKind: ticketInfo.statusKind,
|
|
4397
4397
|
statusName: ticketInfo.statusName,
|
|
@@ -4949,11 +4949,11 @@ var remarkMentionChips = () => {
|
|
|
4949
4949
|
// src/components/chat/tool-execution-display.tsx
|
|
4950
4950
|
|
|
4951
4951
|
|
|
4952
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4952
|
+
var COMMAND_BODY_KEYS = new Set(_chunkEHJE3UWZcjs.COMMAND_BODY_ARG_KEYS);
|
|
4953
4953
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4954
4954
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4955
4955
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4956
|
-
const { innerRef, containerStyle } =
|
|
4956
|
+
const { innerRef, containerStyle } = _chunkEHJE3UWZcjs.useCollapsible.call(void 0, { expanded });
|
|
4957
4957
|
const isClient = assistantType === "fae";
|
|
4958
4958
|
const isClientView = variant === "client";
|
|
4959
4959
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4996,7 +4996,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4996
4996
|
}
|
|
4997
4997
|
),
|
|
4998
4998
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4999
|
-
!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,
|
|
4999
|
+
!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, _chunkEHJE3UWZcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5000
5000
|
] });
|
|
5001
5001
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5002
5002
|
"div",
|
|
@@ -5006,7 +5006,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5006
5006
|
// The command running block keeps its bordered box in both chats
|
|
5007
5007
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5008
5008
|
"flex w-full flex-col overflow-hidden",
|
|
5009
|
-
|
|
5009
|
+
_chunkEHJE3UWZcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5010
5010
|
className
|
|
5011
5011
|
),
|
|
5012
5012
|
...props,
|
|
@@ -5017,7 +5017,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5017
5017
|
// It reads as a card: what was done, then one status line under it.
|
|
5018
5018
|
/* @__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: [
|
|
5019
5019
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5020
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5021
5021
|
] })
|
|
5022
5022
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5023
5023
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5030,9 +5030,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5030
5030
|
}
|
|
5031
5031
|
) : /* @__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 }),
|
|
5032
5032
|
/* @__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: [
|
|
5033
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5033
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.ArgRow, { argKey: key, value }, key)),
|
|
5034
5034
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5035
|
-
|
|
5035
|
+
_chunkEHJE3UWZcjs.ResultBlock,
|
|
5036
5036
|
{
|
|
5037
5037
|
result: message.result,
|
|
5038
5038
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5086,8 +5086,8 @@ var remarkStripCitations = () => {
|
|
|
5086
5086
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5087
5087
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5088
5088
|
function formatMessageTimestamp(timestamp) {
|
|
5089
|
-
const time =
|
|
5090
|
-
return
|
|
5089
|
+
const time = _chunk5QP3K2CEcjs.formatTime.call(void 0, timestamp);
|
|
5090
|
+
return _chunkEHJE3UWZcjs.isToday.call(void 0, timestamp) ? time : `${_chunk5QP3K2CEcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5091
5091
|
}
|
|
5092
5092
|
function normalizeContent(content) {
|
|
5093
5093
|
if (typeof content === "string") {
|
|
@@ -5142,7 +5142,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5142
5142
|
const isError = role === "error";
|
|
5143
5143
|
const inheritedAppearance = useChatAppearance();
|
|
5144
5144
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5145
|
-
const isV2 = appearance ===
|
|
5145
|
+
const isV2 = appearance === _chunk5QP3K2CEcjs.CHAT_APPEARANCE.V2;
|
|
5146
5146
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5147
5147
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5148
5148
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5328,9 +5328,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5328
5328
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5329
5329
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk65VVJSQZcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
5330
5330
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5331
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk65VVJSQZcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk65VVJSQZcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5332
5332
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5333
|
-
|
|
5333
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
5334
5334
|
{
|
|
5335
5335
|
src: avatar || void 0,
|
|
5336
5336
|
alt: displayName,
|
|
@@ -5411,7 +5411,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5411
5411
|
);
|
|
5412
5412
|
} else if (segment.type === "approval_batch") {
|
|
5413
5413
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5414
|
-
|
|
5414
|
+
_chunkEHJE3UWZcjs.ApprovalBatchMessage,
|
|
5415
5415
|
{
|
|
5416
5416
|
data: segment.data,
|
|
5417
5417
|
status: segment.status,
|
|
@@ -5672,7 +5672,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5672
5672
|
assistantType,
|
|
5673
5673
|
approvalVariant,
|
|
5674
5674
|
selfAuthorType,
|
|
5675
|
-
appearance =
|
|
5675
|
+
appearance = _chunk5QP3K2CEcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5676
5676
|
assistantIcon,
|
|
5677
5677
|
pendingApprovals,
|
|
5678
5678
|
hasNextPage,
|
|
@@ -6707,7 +6707,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6707
6707
|
|
|
6708
6708
|
[Attached: ${safeName}](${url})`;
|
|
6709
6709
|
}
|
|
6710
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6710
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk4EJU462Ocjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6711
6711
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6712
6712
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6713
6713
|
"gm"
|
|
@@ -7654,7 +7654,7 @@ function MingoChatHistoryRow({
|
|
|
7654
7654
|
hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
|
|
7655
7655
|
),
|
|
7656
7656
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7657
|
-
|
|
7657
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
7658
7658
|
{
|
|
7659
7659
|
variant: "round",
|
|
7660
7660
|
sizePx: 24,
|
|
@@ -7862,7 +7862,7 @@ function MingoWelcome({
|
|
|
7862
7862
|
onScroll: updateScrollFade,
|
|
7863
7863
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7864
7864
|
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: [
|
|
7865
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7865
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7866
7866
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7867
7867
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7868
7868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7984,8 +7984,8 @@ function GuideWelcome({
|
|
|
7984
7984
|
icon && (icon.name || icon.url) ? (
|
|
7985
7985
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7986
7986
|
// match the default Mingo mark (48px).
|
|
7987
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7988
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7987
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7988
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7989
7989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7990
7990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7991
7991
|
subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-5 w-3/4 max-w-80 rounded-sm" }) }) : null
|
|
@@ -8187,9 +8187,9 @@ function MingoArchiveList({
|
|
|
8187
8187
|
title: dialog.title || "Untitled Chat",
|
|
8188
8188
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _177 => _177(dialog.id)]),
|
|
8189
8189
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8190
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8190
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkEHJE3UWZcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8191
8191
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8192
|
-
|
|
8192
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
8193
8193
|
{
|
|
8194
8194
|
variant: "round",
|
|
8195
8195
|
sizePx: 24,
|
|
@@ -8276,7 +8276,7 @@ function MingoChatHeader({
|
|
|
8276
8276
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8277
8277
|
] }),
|
|
8278
8278
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8279
|
-
|
|
8279
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
8280
8280
|
{
|
|
8281
8281
|
variant: "round",
|
|
8282
8282
|
sizePx: 32,
|
|
@@ -8552,7 +8552,7 @@ function MingoChatRail({
|
|
|
8552
8552
|
"data-accent": "mingo",
|
|
8553
8553
|
"aria-label": "Mingo chats",
|
|
8554
8554
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8555
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8555
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8556
8556
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8557
8557
|
_chunkTF5D5MNOcjs.Button,
|
|
8558
8558
|
{
|
|
@@ -8832,8 +8832,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8832
8832
|
const save = () => {
|
|
8833
8833
|
if (canSave) onSave(name.trim());
|
|
8834
8834
|
};
|
|
8835
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8836
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8835
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8836
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8837
8837
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8838
8838
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8839
8839
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8850,27 +8850,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8850
8850
|
}
|
|
8851
8851
|
)
|
|
8852
8852
|
] }),
|
|
8853
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8853
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
8854
8854
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8855
8855
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8856
8856
|
] })
|
|
8857
8857
|
] });
|
|
8858
8858
|
}
|
|
8859
8859
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8860
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8861
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8860
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8862
8862
|
/* @__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." }),
|
|
8863
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8863
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
8864
8864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8865
8865
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8866
8866
|
] })
|
|
8867
8867
|
] });
|
|
8868
8868
|
}
|
|
8869
8869
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8870
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8871
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8870
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8871
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QP3K2CEcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8872
8872
|
/* @__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." }),
|
|
8873
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8873
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5QP3K2CEcjs.ModalFooter, { children: [
|
|
8874
8874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8875
8875
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8876
8876
|
] })
|
|
@@ -9043,7 +9043,7 @@ function ChatPanelHeader({
|
|
|
9043
9043
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
9044
9044
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
9045
9045
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9046
|
-
|
|
9046
|
+
_chunkHY6BCZH7cjs.SquareAvatar,
|
|
9047
9047
|
{
|
|
9048
9048
|
variant: "round",
|
|
9049
9049
|
sizePx: 32,
|
|
@@ -9201,8 +9201,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9201
9201
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9202
9202
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9203
9203
|
status === "sniffing" && "Checking the file",
|
|
9204
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9205
|
-
status === "ready" &&
|
|
9204
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkHY6BCZH7cjs.formatFileSize.call(void 0, file.size)}`,
|
|
9205
|
+
status === "ready" && _chunkHY6BCZH7cjs.formatFileSize.call(void 0, file.size),
|
|
9206
9206
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9207
9207
|
] })
|
|
9208
9208
|
] }),
|
|
@@ -9450,7 +9450,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9450
9450
|
}, ref) => {
|
|
9451
9451
|
const icon = getProviderIcon(provider);
|
|
9452
9452
|
const name = displayName || modelName;
|
|
9453
|
-
const isV2 = useChatAppearance() ===
|
|
9453
|
+
const isV2 = useChatAppearance() === _chunk5QP3K2CEcjs.CHAT_APPEARANCE.V2;
|
|
9454
9454
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9455
9455
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk65VVJSQZcjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", "text-h6", className), ...props, children: [
|
|
9456
9456
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9579,7 +9579,7 @@ function ChatComposer({
|
|
|
9579
9579
|
}, [entityTypes]);
|
|
9580
9580
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9581
9581
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9582
|
-
|
|
9582
|
+
_chunk5QP3K2CEcjs.ChatInput,
|
|
9583
9583
|
{
|
|
9584
9584
|
ref: inputRef,
|
|
9585
9585
|
onSend,
|
|
@@ -9739,16 +9739,16 @@ function ChatArchivePage(props) {
|
|
|
9739
9739
|
|
|
9740
9740
|
// src/components/chat/utils/execute-navigation.ts
|
|
9741
9741
|
function isForeignOriginHref(href) {
|
|
9742
|
-
return /^https?:\/\//i.test(href) && !
|
|
9742
|
+
return /^https?:\/\//i.test(href) && !_chunk4EJU462Ocjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9743
9743
|
}
|
|
9744
9744
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9745
|
-
const isNewTab = runtime ?
|
|
9745
|
+
const isNewTab = runtime ? _chunk4EJU462Ocjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9746
9746
|
if (isNewTab) {
|
|
9747
9747
|
if (_optionalChain([runtime, 'optionalAccess', _203 => _203.navigation, 'access', _204 => _204.openExternal])) runtime.navigation.openExternal(href);
|
|
9748
|
-
else window.open(href, "_blank",
|
|
9748
|
+
else window.open(href, "_blank", _chunk4EJU462Ocjs.NEW_TAB_FEATURES);
|
|
9749
9749
|
return;
|
|
9750
9750
|
}
|
|
9751
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9751
|
+
const target = isForeignOriginHref(href) ? href : _chunk4EJU462Ocjs.stripSameOriginToPath.call(void 0, href);
|
|
9752
9752
|
if (target.includes("#") && _chunkXXJL5GY3cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkXXJL5GY3cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9753
9753
|
return;
|
|
9754
9754
|
}
|
|
@@ -9799,8 +9799,8 @@ function useNavLinkViaRuntime({
|
|
|
9799
9799
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9800
9800
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9801
9801
|
const panel = useChatPanel();
|
|
9802
|
-
const resolvedHref =
|
|
9803
|
-
const isNewTab =
|
|
9802
|
+
const resolvedHref = _chunk4EJU462Ocjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9803
|
+
const isNewTab = _chunk4EJU462Ocjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9804
9804
|
const onClick = (e) => {
|
|
9805
9805
|
_optionalChain([onClickProp, 'optionalCall', _208 => _208(e)]);
|
|
9806
9806
|
if (e.defaultPrevented) return;
|
|
@@ -9814,7 +9814,7 @@ function useNavLinkViaRuntime({
|
|
|
9814
9814
|
});
|
|
9815
9815
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
|
|
9816
9816
|
};
|
|
9817
|
-
const attrs =
|
|
9817
|
+
const attrs = _chunk4EJU462Ocjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9818
9818
|
return {
|
|
9819
9819
|
href: resolvedHref,
|
|
9820
9820
|
...attrs,
|
|
@@ -9959,7 +9959,7 @@ function UserDisplay({
|
|
|
9959
9959
|
compact = false,
|
|
9960
9960
|
className
|
|
9961
9961
|
}) {
|
|
9962
|
-
const avatarSrc =
|
|
9962
|
+
const avatarSrc = _chunk4EJU462Ocjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9963
9963
|
if (_chunkXFRBEXQNcjs.useLoadingScope.call(void 0, )) {
|
|
9964
9964
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9965
9965
|
UserDisplaySkeleton,
|
|
@@ -9973,7 +9973,7 @@ function UserDisplay({
|
|
|
9973
9973
|
);
|
|
9974
9974
|
}
|
|
9975
9975
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
|
|
9976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9976
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
|
|
9977
9977
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9978
9978
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk65VVJSQZcjs.cn.call(void 0, "truncate text-ods-text-primary", compact ? "text-h6" : "text-h4"), children: name }),
|
|
9979
9979
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
@@ -9988,7 +9988,7 @@ function UserDisplaySkeleton({
|
|
|
9988
9988
|
className
|
|
9989
9989
|
}) {
|
|
9990
9990
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
|
|
9991
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHY6BCZH7cjs.SquareAvatarSkeleton, { sizePx: size, variant: shape }),
|
|
9992
9992
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
|
|
9993
9993
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
|
|
9994
9994
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
@@ -10423,7 +10423,7 @@ function CardsStrip(props) {
|
|
|
10423
10423
|
}
|
|
10424
10424
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10425
10425
|
};
|
|
10426
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10426
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk4EJU462Ocjs.SECTION_HEADING_CLASS} break-words`, children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) });
|
|
10427
10427
|
if (items.length === 0) {
|
|
10428
10428
|
if (!inScope || !skeleton) return null;
|
|
10429
10429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10613,7 +10613,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10613
10613
|
);
|
|
10614
10614
|
function VideoBitesStrip({
|
|
10615
10615
|
bites,
|
|
10616
|
-
title =
|
|
10616
|
+
title = _chunk4EJU462Ocjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10617
10617
|
showTitle = true,
|
|
10618
10618
|
filterPublished = true,
|
|
10619
10619
|
profile = null,
|
|
@@ -10626,7 +10626,7 @@ function VideoBitesStrip({
|
|
|
10626
10626
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10627
10627
|
showChevrons = true,
|
|
10628
10628
|
onBiteNavigate,
|
|
10629
|
-
sortComparator =
|
|
10629
|
+
sortComparator = _chunk4EJU462Ocjs.sortBitesByCreatedAtDesc,
|
|
10630
10630
|
skeletonCount,
|
|
10631
10631
|
className
|
|
10632
10632
|
}) {
|
|
@@ -10729,7 +10729,7 @@ function VideoBiteCardSkeleton({
|
|
|
10729
10729
|
function VideoBitesStripSkeleton({
|
|
10730
10730
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
10731
10731
|
aspect = "9:16",
|
|
10732
|
-
title =
|
|
10732
|
+
title = _chunk4EJU462Ocjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10733
10733
|
showTitle = true,
|
|
10734
10734
|
headerSlot,
|
|
10735
10735
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10861,7 +10861,7 @@ function VideoBiteCard({
|
|
|
10861
10861
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
10862
10862
|
children: [
|
|
10863
10863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10864
|
-
|
|
10864
|
+
_chunk4EJU462Ocjs.VideoHoverPreviewSurface,
|
|
10865
10865
|
{
|
|
10866
10866
|
url: bite.url,
|
|
10867
10867
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10933,7 +10933,7 @@ function EntityVideoSection({
|
|
|
10933
10933
|
title = "Video",
|
|
10934
10934
|
videoSummary,
|
|
10935
10935
|
videoBites,
|
|
10936
|
-
bitesTitle =
|
|
10936
|
+
bitesTitle = _chunk4EJU462Ocjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10937
10937
|
filterPublishedBites = true,
|
|
10938
10938
|
bitesProfile = null,
|
|
10939
10939
|
bitesHref,
|
|
@@ -10968,7 +10968,7 @@ function EntityVideoSection({
|
|
|
10968
10968
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
10969
10969
|
] }),
|
|
10970
10970
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10971
|
-
|
|
10971
|
+
_chunk4EJU462Ocjs.Video,
|
|
10972
10972
|
{
|
|
10973
10973
|
kind: fullVideoKind,
|
|
10974
10974
|
url: fullVideoUrl,
|
|
@@ -10980,7 +10980,7 @@ function EntityVideoSection({
|
|
|
10980
10980
|
}
|
|
10981
10981
|
) }),
|
|
10982
10982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10983
|
-
|
|
10983
|
+
_chunk4EJU462Ocjs.Video,
|
|
10984
10984
|
{
|
|
10985
10985
|
url: highlightVideoUrl,
|
|
10986
10986
|
poster: highlightVideoThumbnail,
|
|
@@ -10989,7 +10989,7 @@ function EntityVideoSection({
|
|
|
10989
10989
|
}
|
|
10990
10990
|
) })
|
|
10991
10991
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10992
|
-
|
|
10992
|
+
_chunk4EJU462Ocjs.Video,
|
|
10993
10993
|
{
|
|
10994
10994
|
kind: fullVideoKind,
|
|
10995
10995
|
url: fullVideoUrl,
|
|
@@ -11000,7 +11000,7 @@ function EntityVideoSection({
|
|
|
11000
11000
|
priority
|
|
11001
11001
|
}
|
|
11002
11002
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11003
|
-
|
|
11003
|
+
_chunk4EJU462Ocjs.Video,
|
|
11004
11004
|
{
|
|
11005
11005
|
url: highlightVideoUrl,
|
|
11006
11006
|
poster: highlightVideoThumbnail,
|
|
@@ -11010,7 +11010,7 @@ function EntityVideoSection({
|
|
|
11010
11010
|
}
|
|
11011
11011
|
) : null),
|
|
11012
11012
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
11013
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
11013
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk4EJU462Ocjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
11014
11014
|
/* @__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 }) })
|
|
11015
11015
|
] }),
|
|
11016
11016
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11029,13 +11029,13 @@ function EntityVideoSection({
|
|
|
11029
11029
|
] });
|
|
11030
11030
|
}
|
|
11031
11031
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
11032
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11032
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.VideoSkeleton, { layout: "centered", className });
|
|
11033
11033
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk65VVJSQZcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
|
|
11034
11034
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
11035
11035
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
11036
11036
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11037
11037
|
] }),
|
|
11038
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11038
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.VideoSkeleton, { layout: "centered" }) })
|
|
11039
11039
|
] });
|
|
11040
11040
|
}
|
|
11041
11041
|
|
|
@@ -11082,7 +11082,7 @@ function designDocPeople(doc) {
|
|
|
11082
11082
|
return people;
|
|
11083
11083
|
}
|
|
11084
11084
|
function designDocMetaLine(doc) {
|
|
11085
|
-
return [_optionalChain([doc, 'access', _244 => _244.author, 'optionalAccess', _245 => _245.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
11085
|
+
return [_optionalChain([doc, 'access', _244 => _244.author, 'optionalAccess', _245 => _245.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunk4EJU462Ocjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
11086
11086
|
}
|
|
11087
11087
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
11088
11088
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -11092,27 +11092,27 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunkXFRBEXQNcjs.TE
|
|
|
11092
11092
|
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunkXFRBEXQNcjs.TEXT_LINES_MIN[3]}`;
|
|
11093
11093
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
11094
11094
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
11095
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
11095
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, _chunk4EJU462Ocjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
11096
11096
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
11097
11097
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
11098
11098
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
11099
11099
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
11100
11100
|
] }),
|
|
11101
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11101
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadgeSkeleton, { variant: "button", className: "hidden md:inline-flex" })
|
|
11102
11102
|
] }),
|
|
11103
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadgeSkeleton, { variant: "button" }) }),
|
|
11104
11104
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
11105
11105
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11106
11106
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
11107
11107
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
|
|
11108
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11108
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFUMM6JCcjs.AvatarStackSkeleton, { count: 1, size: "xs", className: "shrink-0" })
|
|
11109
11109
|
] })
|
|
11110
11110
|
] });
|
|
11111
11111
|
}
|
|
11112
11112
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
11113
11113
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
11114
11114
|
const people = designDocPeople(doc);
|
|
11115
|
-
const link =
|
|
11115
|
+
const link = _chunk4EJU462Ocjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
11116
11116
|
if (_chunkXFRBEXQNcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
11117
11117
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11118
11118
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -11121,7 +11121,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11121
11121
|
/* @__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) }) })
|
|
11122
11122
|
] }),
|
|
11123
11123
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11124
|
-
|
|
11124
|
+
_chunk4EJU462Ocjs.StatusBadge,
|
|
11125
11125
|
{
|
|
11126
11126
|
text: readiness.label,
|
|
11127
11127
|
colorScheme: readiness.scheme,
|
|
@@ -11131,15 +11131,15 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11131
11131
|
}
|
|
11132
11132
|
)
|
|
11133
11133
|
] }),
|
|
11134
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11134
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
11135
11135
|
/* @__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 || "" }) }),
|
|
11136
11136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11137
11137
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
11138
11138
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
11139
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11139
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFUMM6JCcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
11140
11140
|
] })
|
|
11141
11141
|
] });
|
|
11142
|
-
const outer = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
11142
|
+
const outer = _chunk65VVJSQZcjs.cn.call(void 0, _chunk4EJU462Ocjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
11143
11143
|
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 });
|
|
11144
11144
|
}
|
|
11145
11145
|
|
|
@@ -11247,7 +11247,7 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11247
11247
|
if (_chunkXFRBEXQNcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
|
|
11248
11248
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11249
11249
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11250
|
-
const dateText =
|
|
11250
|
+
const dateText = _chunkHY6BCZH7cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11251
11251
|
const idLabel = formatActivityId(item.id, kind);
|
|
11252
11252
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11253
11253
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11281,26 +11281,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11281
11281
|
metaParts.push(
|
|
11282
11282
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11283
11283
|
);
|
|
11284
|
-
const href =
|
|
11284
|
+
const href = _chunk4EJU462Ocjs.safeHref.call(void 0, item.url);
|
|
11285
11285
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11287
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11288
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11286
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11287
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11288
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk4EJU462Ocjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11289
11289
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11291
11291
|
] }),
|
|
11292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11292
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11293
11293
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11294
11294
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11295
11295
|
] }, i)) }) }),
|
|
11296
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11296
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk4EJU462Ocjs.COMPACT_CARD_SUMMARY, children: _chunk4EJU462Ocjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11297
11297
|
] }),
|
|
11298
11298
|
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
|
|
11299
11299
|
] });
|
|
11300
11300
|
if (anchorProps) {
|
|
11301
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11301
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk4EJU462Ocjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11302
11302
|
}
|
|
11303
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11303
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk4EJU462Ocjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk4EJU462Ocjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11304
11304
|
}
|
|
11305
11305
|
function GitHubActivityCardSkeleton({
|
|
11306
11306
|
variant = "compact",
|
|
@@ -11308,7 +11308,7 @@ function GitHubActivityCardSkeleton({
|
|
|
11308
11308
|
}) {
|
|
11309
11309
|
if (variant === "row") {
|
|
11310
11310
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11311
|
-
|
|
11311
|
+
_chunk4EJU462Ocjs.ActivityRowSkeleton,
|
|
11312
11312
|
{
|
|
11313
11313
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
11314
11314
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
@@ -11319,7 +11319,7 @@ function GitHubActivityCardSkeleton({
|
|
|
11319
11319
|
}
|
|
11320
11320
|
);
|
|
11321
11321
|
}
|
|
11322
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11322
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
11323
11323
|
}
|
|
11324
11324
|
|
|
11325
11325
|
// src/utils/url-fix.ts
|
|
@@ -11401,7 +11401,7 @@ function VendorIcon({
|
|
|
11401
11401
|
}) {
|
|
11402
11402
|
const loading = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
11403
11403
|
const logoUrl = getVendorLogo(vendor);
|
|
11404
|
-
const logoSrc =
|
|
11404
|
+
const logoSrc = _chunk4EJU462Ocjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11405
11405
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11406
11406
|
const containerClasses = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
11407
11407
|
sizeClasses[size],
|
|
@@ -11444,8 +11444,8 @@ function useChatCardItem(type, id) {
|
|
|
11444
11444
|
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url);
|
|
11445
11445
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11446
11446
|
const data = await res.json();
|
|
11447
|
-
const items =
|
|
11448
|
-
const match = items.find((it) =>
|
|
11447
|
+
const items = _chunk4EJU462Ocjs.extractCardItems.call(void 0, type, data);
|
|
11448
|
+
const match = items.find((it) => _chunk4EJU462Ocjs.extractItemId.call(void 0, type, it) === id);
|
|
11449
11449
|
return _nullishCoalesce(match, () => ( null));
|
|
11450
11450
|
},
|
|
11451
11451
|
enabled: !!url && id.length > 0,
|
|
@@ -11487,7 +11487,7 @@ var TRAILING_BUTTON_CLASS = "flex w-[56px] shrink-0 items-center justify-center
|
|
|
11487
11487
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11488
11488
|
if (imageSrc) {
|
|
11489
11489
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11490
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children:
|
|
11490
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunkHY6BCZH7cjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11491
11491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11492
11492
|
_chunkE76ONBKFcjs.next_image_default,
|
|
11493
11493
|
{
|
|
@@ -11556,7 +11556,7 @@ function MingoInfoCard({
|
|
|
11556
11556
|
status ? (
|
|
11557
11557
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11558
11558
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
11559
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk65VVJSQZcjs.cn.call(void 0, _chunkHY6BCZH7cjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
|
|
11560
11560
|
) : null
|
|
11561
11561
|
] });
|
|
11562
11562
|
const contentClass = _chunk65VVJSQZcjs.cn.call(void 0,
|
|
@@ -11647,7 +11647,7 @@ function resolveFetchedCardHref({
|
|
|
11647
11647
|
composeContentUrl
|
|
11648
11648
|
}) {
|
|
11649
11649
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11650
|
-
const canonicalType =
|
|
11650
|
+
const canonicalType = _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11651
11651
|
return composeContentUrl({
|
|
11652
11652
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11653
11653
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11697,16 +11697,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11697
11697
|
if (docTarget) {
|
|
11698
11698
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11699
11699
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11700
|
-
href = _nullishCoalesce(
|
|
11700
|
+
href = _nullishCoalesce(_chunk4EJU462Ocjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11701
11701
|
targetPlatform = docTarget.platform;
|
|
11702
11702
|
} else if (ctx.chipBasePlatform) {
|
|
11703
11703
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11704
|
-
href = _nullishCoalesce(
|
|
11704
|
+
href = _nullishCoalesce(_chunk4EJU462Ocjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11705
11705
|
targetPlatform = ctx.chipBasePlatform;
|
|
11706
11706
|
} else if (ctx.baseRoute) {
|
|
11707
11707
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11708
11708
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11709
|
-
href = _nullishCoalesce(
|
|
11709
|
+
href = _nullishCoalesce(_chunk4EJU462Ocjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11710
11710
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11711
11711
|
}
|
|
11712
11712
|
}
|
|
@@ -11715,15 +11715,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11715
11715
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11716
11716
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11717
11717
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11718
|
-
type:
|
|
11718
|
+
type: _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11719
11719
|
identifier: idValue,
|
|
11720
11720
|
externalUrl: row.externalUrl,
|
|
11721
11721
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11722
11722
|
});
|
|
11723
|
-
href = composed.href ? _nullishCoalesce(
|
|
11723
|
+
href = composed.href ? _nullishCoalesce(_chunk4EJU462Ocjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11724
11724
|
targetPlatform = composed.targetPlatform;
|
|
11725
11725
|
} else if (row.externalUrl) {
|
|
11726
|
-
href = _nullishCoalesce(
|
|
11726
|
+
href = _nullishCoalesce(_chunk4EJU462Ocjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11727
11727
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11728
11728
|
}
|
|
11729
11729
|
const documentType = row.documentType;
|
|
@@ -11790,7 +11790,7 @@ function resolveCardDestination({
|
|
|
11790
11790
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _259 => _259.fallbackHref, 'optionalCall', _260 => _260(item)]), () => ( null)),
|
|
11791
11791
|
allowComposed: !entry.noComposedHref
|
|
11792
11792
|
});
|
|
11793
|
-
const url = choice ? _nullishCoalesce(
|
|
11793
|
+
const url = choice ? _nullishCoalesce(_chunk4EJU462Ocjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11794
11794
|
if (choice && url) {
|
|
11795
11795
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11796
11796
|
}
|
|
@@ -11803,11 +11803,11 @@ function resolveCardDestination({
|
|
|
11803
11803
|
|
|
11804
11804
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11805
11805
|
const label = entityLabel || "Item";
|
|
11806
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11807
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11808
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11809
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11810
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11806
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk4EJU462Ocjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11807
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11808
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk4EJU462Ocjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11809
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk4EJU462Ocjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11810
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk4EJU462Ocjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11811
11811
|
label,
|
|
11812
11812
|
" deleted",
|
|
11813
11813
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11853,7 +11853,7 @@ function GitHubChatCard({
|
|
|
11853
11853
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11854
11854
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11855
11855
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11856
|
-
const dateText =
|
|
11856
|
+
const dateText = _chunkHY6BCZH7cjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11857
11857
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11858
11858
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11859
11859
|
MingoInfoCard,
|
|
@@ -11862,7 +11862,7 @@ function GitHubChatCard({
|
|
|
11862
11862
|
description,
|
|
11863
11863
|
icon: githubKindIcon(kind),
|
|
11864
11864
|
status,
|
|
11865
|
-
anchorProps:
|
|
11865
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11866
11866
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11867
11867
|
menuAriaLabel: "Activity actions"
|
|
11868
11868
|
}
|
|
@@ -12009,7 +12009,7 @@ function HubspotTicketChatCard({
|
|
|
12009
12009
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12010
12010
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
12011
12011
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
12012
|
-
anchorProps:
|
|
12012
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12013
12013
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12014
12014
|
label: "Open Ticket Details",
|
|
12015
12015
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -12032,7 +12032,7 @@ function FaqChatCard({
|
|
|
12032
12032
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12033
12033
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
12034
12034
|
status: { label: statusLabel, variant: "grey" },
|
|
12035
|
-
anchorProps:
|
|
12035
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12036
12036
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12037
12037
|
menuAriaLabel: "FAQ actions"
|
|
12038
12038
|
}
|
|
@@ -12052,7 +12052,7 @@ function SlackChatCard({
|
|
|
12052
12052
|
title,
|
|
12053
12053
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12054
12054
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
12055
|
-
anchorProps:
|
|
12055
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12056
12056
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12057
12057
|
menuAriaLabel: "Message actions"
|
|
12058
12058
|
}
|
|
@@ -12070,7 +12070,7 @@ function GlyphChatCard({
|
|
|
12070
12070
|
title: chatRef.title,
|
|
12071
12071
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12072
12072
|
icon,
|
|
12073
|
-
anchorProps:
|
|
12073
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12074
12074
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12075
12075
|
menuAriaLabel: "Card actions"
|
|
12076
12076
|
}
|
|
@@ -12088,20 +12088,20 @@ function TrustCenterChatCard({
|
|
|
12088
12088
|
}) {
|
|
12089
12089
|
const raw2 = _optionalChain([item, 'optionalAccess', _284 => _284.frameworks]);
|
|
12090
12090
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
12091
|
-
const summary =
|
|
12091
|
+
const summary = _chunk4EJU462Ocjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12092
12092
|
const leadFramework = frameworks[0];
|
|
12093
12093
|
const lead = leadFramework ? {
|
|
12094
|
-
label:
|
|
12095
|
-
color:
|
|
12094
|
+
label: _chunk4EJU462Ocjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
12095
|
+
color: _chunk4EJU462Ocjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
12096
12096
|
} : void 0;
|
|
12097
12097
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12098
12098
|
MingoInfoCard,
|
|
12099
12099
|
{
|
|
12100
|
-
title:
|
|
12101
|
-
description: summary ||
|
|
12100
|
+
title: _chunk4EJU462Ocjs.TRUST_CENTER_TITLE,
|
|
12101
|
+
description: summary || _chunk4EJU462Ocjs.TRUST_CENTER_TAGLINE,
|
|
12102
12102
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
12103
12103
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
12104
|
-
anchorProps:
|
|
12104
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12105
12105
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12106
12106
|
label: "View trust center",
|
|
12107
12107
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12123,7 +12123,7 @@ function DataRoomDocChatCard({
|
|
|
12123
12123
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12124
12124
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12125
12125
|
status: { label: badgeText, variant: "grey" },
|
|
12126
|
-
anchorProps:
|
|
12126
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12127
12127
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12128
12128
|
menuAriaLabel: "Document actions"
|
|
12129
12129
|
}
|
|
@@ -12142,7 +12142,7 @@ function GenericFinancialChatCard({
|
|
|
12142
12142
|
title: chatRef.title,
|
|
12143
12143
|
description: subtitle,
|
|
12144
12144
|
icon,
|
|
12145
|
-
anchorProps:
|
|
12145
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12146
12146
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12147
12147
|
menuAriaLabel: "Document actions"
|
|
12148
12148
|
}
|
|
@@ -12228,7 +12228,7 @@ function CampaignChatCard({
|
|
|
12228
12228
|
}) {
|
|
12229
12229
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _290 => _290.goals])) ? item.goals.length : 0;
|
|
12230
12230
|
const meta = [
|
|
12231
|
-
_optionalChain([item, 'optionalAccess', _291 => _291.start_date]) ?
|
|
12231
|
+
_optionalChain([item, 'optionalAccess', _291 => _291.start_date]) ? _chunk4EJU462Ocjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12232
12232
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12233
12233
|
"Marketing campaign"
|
|
12234
12234
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12270,7 +12270,7 @@ function EntityMingoCard({
|
|
|
12270
12270
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12271
12271
|
icon: fallbackIcon,
|
|
12272
12272
|
status,
|
|
12273
|
-
anchorProps:
|
|
12273
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12274
12274
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12275
12275
|
menuAriaLabel
|
|
12276
12276
|
}
|
|
@@ -12282,7 +12282,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12282
12282
|
function statusPill(status) {
|
|
12283
12283
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12284
12284
|
if (!s) return void 0;
|
|
12285
|
-
const scheme =
|
|
12285
|
+
const scheme = _chunk4EJU462Ocjs.getStatusColorScheme.call(void 0, s);
|
|
12286
12286
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12287
12287
|
return { label: s, variant };
|
|
12288
12288
|
}
|
|
@@ -12373,7 +12373,7 @@ function DesignDocChatCard({
|
|
|
12373
12373
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12374
12374
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12375
12375
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12376
|
-
anchorProps:
|
|
12376
|
+
anchorProps: _chunk4EJU462Ocjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12377
12377
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12378
12378
|
menuAriaLabel: "Design doc actions"
|
|
12379
12379
|
}
|
|
@@ -12391,7 +12391,7 @@ function InvestorUpdateChatCard({
|
|
|
12391
12391
|
EntityMingoCard,
|
|
12392
12392
|
{
|
|
12393
12393
|
title,
|
|
12394
|
-
description: _optionalChain([item, 'optionalAccess', _321 => _321.strategic_update]) || _optionalChain([item, 'optionalAccess', _322 => _322.content]) ||
|
|
12394
|
+
description: _optionalChain([item, 'optionalAccess', _321 => _321.strategic_update]) || _optionalChain([item, 'optionalAccess', _322 => _322.content]) || _chunk4EJU462Ocjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _323 => _323.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_end]), () => ( null))) || void 0,
|
|
12395
12395
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _325 => _325.featured_image]), ogPlaceholder),
|
|
12396
12396
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12397
12397
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12435,7 +12435,7 @@ function ProgramChatCard({
|
|
|
12435
12435
|
discuss
|
|
12436
12436
|
}) {
|
|
12437
12437
|
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 });
|
|
12438
|
-
const { line: meta } =
|
|
12438
|
+
const { line: meta } = _chunk4EJU462Ocjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk4EJU462Ocjs.programMetaFormatters.call(void 0, _chunk4EJU462Ocjs.PROGRAM_META_RENDERERS));
|
|
12439
12439
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12440
12440
|
EntityMingoCard,
|
|
12441
12441
|
{
|
|
@@ -12461,7 +12461,7 @@ function RoadmapChatCard({
|
|
|
12461
12461
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _335 => _335.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12462
12462
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _336 => _336.customItemId]) != null;
|
|
12463
12463
|
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 });
|
|
12464
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12464
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12465
12465
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12466
12466
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12467
12467
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE76ONBKFcjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12527,11 +12527,11 @@ function refText(ref, key) {
|
|
|
12527
12527
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12528
12528
|
}
|
|
12529
12529
|
function VendorGlyph({ title, logoUrl }) {
|
|
12530
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12530
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12531
12531
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12532
12532
|
}
|
|
12533
12533
|
function SitePageGlyph({ iconName }) {
|
|
12534
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12534
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12535
12535
|
}
|
|
12536
12536
|
var GITHUB_CARD_CONFIGS = {
|
|
12537
12537
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12648,7 +12648,7 @@ function programRegistryEntries() {
|
|
|
12648
12648
|
label: cfg.label,
|
|
12649
12649
|
contentRefType: cfg.contentRefType,
|
|
12650
12650
|
bareInline: true,
|
|
12651
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12651
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12652
12652
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12653
12653
|
ProgramChatCard,
|
|
12654
12654
|
{
|
|
@@ -12689,7 +12689,7 @@ function roadmapRegistryEntries() {
|
|
|
12689
12689
|
bareInline: true,
|
|
12690
12690
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12691
12691
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12692
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12692
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12693
12693
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12694
12694
|
RoadmapChatCard,
|
|
12695
12695
|
{
|
|
@@ -12747,12 +12747,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12747
12747
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12748
12748
|
// single matched row. Destination is the public page unless the host
|
|
12749
12749
|
// re-homes the type (`composeContentUrl` override).
|
|
12750
|
-
[
|
|
12750
|
+
[_chunk4EJU462Ocjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12751
12751
|
label: "Trust center",
|
|
12752
12752
|
bareInline: true,
|
|
12753
|
-
contentRefType:
|
|
12753
|
+
contentRefType: _chunk4EJU462Ocjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12754
12754
|
noComposedHref: true,
|
|
12755
|
-
fallbackHref: () =>
|
|
12755
|
+
fallbackHref: () => _chunk4EJU462Ocjs.TRUST_CENTER_PAGE_PATH,
|
|
12756
12756
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12757
12757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12758
12758
|
},
|
|
@@ -12778,7 +12778,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12778
12778
|
label: "Blog post",
|
|
12779
12779
|
contentRefType: "blog_post_existing",
|
|
12780
12780
|
bareInline: true,
|
|
12781
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12781
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.BlogCardSkeleton, { size: "sm" }),
|
|
12782
12782
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12783
12783
|
BlogChatCard,
|
|
12784
12784
|
{
|
|
@@ -12795,7 +12795,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12795
12795
|
label: "Case study",
|
|
12796
12796
|
contentRefType: "case_study",
|
|
12797
12797
|
bareInline: true,
|
|
12798
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12798
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12799
12799
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12800
12800
|
CaseStudyChatCard,
|
|
12801
12801
|
{
|
|
@@ -12820,7 +12820,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12820
12820
|
label: "Customer interview",
|
|
12821
12821
|
contentRefType: "customer_interview",
|
|
12822
12822
|
bareInline: true,
|
|
12823
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12823
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12824
12824
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12825
12825
|
CustomerInterviewChatCard,
|
|
12826
12826
|
{
|
|
@@ -12836,9 +12836,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12836
12836
|
label: "Product release",
|
|
12837
12837
|
contentRefType: "product_release",
|
|
12838
12838
|
bareInline: true,
|
|
12839
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12839
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12840
12840
|
render: (item, chatRef, opts) => {
|
|
12841
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _378 => _378.extras, 'optionalAccess', _379 => _379.buildProductReleaseCardProps]), () => (
|
|
12841
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _378 => _378.extras, 'optionalAccess', _379 => _379.buildProductReleaseCardProps]), () => ( _chunk4EJU462Ocjs.defaultBuildProductReleaseCardProps));
|
|
12842
12842
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12843
12843
|
ProductReleaseChatCard,
|
|
12844
12844
|
{
|
|
@@ -12856,7 +12856,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12856
12856
|
label: "Investor update",
|
|
12857
12857
|
contentRefType: "investor_update",
|
|
12858
12858
|
bareInline: true,
|
|
12859
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12859
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12860
12860
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12861
12861
|
InvestorUpdateChatCard,
|
|
12862
12862
|
{
|
|
@@ -12874,7 +12874,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12874
12874
|
bareInline: true,
|
|
12875
12875
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12876
12876
|
displayAction: true,
|
|
12877
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12877
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12878
12878
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12879
12879
|
OnboardingGuideChatCard,
|
|
12880
12880
|
{
|
|
@@ -12947,7 +12947,7 @@ function ChatCardLoader({
|
|
|
12947
12947
|
entry: fetchEntry,
|
|
12948
12948
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12949
12949
|
composeContentUrl: runtime.composeContentUrl,
|
|
12950
|
-
resolveHref: (href) =>
|
|
12950
|
+
resolveHref: (href) => _chunk4EJU462Ocjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12951
12951
|
});
|
|
12952
12952
|
const hrefResolvedChatRef = {
|
|
12953
12953
|
...chatRef,
|
|
@@ -12958,12 +12958,12 @@ function ChatCardLoader({
|
|
|
12958
12958
|
};
|
|
12959
12959
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12960
12960
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12961
|
-
const isNewTab =
|
|
12961
|
+
const isNewTab = _chunk4EJU462Ocjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12962
12962
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12963
12963
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12964
12964
|
const discuss = discussFn ? {
|
|
12965
12965
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12966
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12966
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHJE3UWZcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12967
12967
|
run: () => discussFn(finalChatRef)
|
|
12968
12968
|
} : void 0;
|
|
12969
12969
|
const renderOpts = {
|
|
@@ -13072,12 +13072,12 @@ function makeBatchDedupKey(item) {
|
|
|
13072
13072
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
13073
13073
|
}
|
|
13074
13074
|
function getChatTypeMessageType(chatType) {
|
|
13075
|
-
return chatType ===
|
|
13075
|
+
return chatType === _chunk5QP3K2CEcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
13076
13076
|
}
|
|
13077
13077
|
function useChunkCatchup({
|
|
13078
13078
|
dialogId,
|
|
13079
13079
|
onChunkReceived,
|
|
13080
|
-
chatTypes = [
|
|
13080
|
+
chatTypes = [_chunk5QP3K2CEcjs.CHAT_TYPE.CLIENT],
|
|
13081
13081
|
fetchChunks
|
|
13082
13082
|
}) {
|
|
13083
13083
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -14038,7 +14038,7 @@ function useChatAttachmentImageGallery() {
|
|
|
14038
14038
|
return () => root.removeEventListener("click", onClick);
|
|
14039
14039
|
}, [viewUrlPrefix]);
|
|
14040
14040
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14041
|
-
|
|
14041
|
+
_chunk4EJU462Ocjs.ImageGalleryModal,
|
|
14042
14042
|
{
|
|
14043
14043
|
images: state.images,
|
|
14044
14044
|
isOpen: state.isOpen,
|
|
@@ -15200,7 +15200,7 @@ function nullableText(value) {
|
|
|
15200
15200
|
}
|
|
15201
15201
|
function httpsUrl(value) {
|
|
15202
15202
|
const candidate = text(value);
|
|
15203
|
-
if (!candidate ||
|
|
15203
|
+
if (!candidate || _chunk4EJU462Ocjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15204
15204
|
try {
|
|
15205
15205
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15206
15206
|
} catch (e17) {
|
|
@@ -15784,7 +15784,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15784
15784
|
const status = approvalStatuses[requestId] || "pending";
|
|
15785
15785
|
if (!displayInline(approvalType)) {
|
|
15786
15786
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15787
|
-
const summary = required ?
|
|
15787
|
+
const summary = required ? _chunkEHJE3UWZcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15788
15788
|
pendingEscalated.set(requestId, {
|
|
15789
15789
|
command: summary,
|
|
15790
15790
|
explanation: _optionalChain([required, 'optionalAccess', _534 => _534.toolExplanation]),
|
|
@@ -15817,7 +15817,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15817
15817
|
if (!call.requiresApproval) continue;
|
|
15818
15818
|
segments = accumulator.addApprovalRequest(
|
|
15819
15819
|
requestId,
|
|
15820
|
-
|
|
15820
|
+
_chunkEHJE3UWZcjs.getCommandText.call(void 0, call),
|
|
15821
15821
|
call.toolExplanation,
|
|
15822
15822
|
approvalType,
|
|
15823
15823
|
status,
|
|
@@ -15896,7 +15896,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15896
15896
|
if (!call.requiresApproval) continue;
|
|
15897
15897
|
segments = accumulator.addApprovalRequest(
|
|
15898
15898
|
requestId,
|
|
15899
|
-
|
|
15899
|
+
_chunkEHJE3UWZcjs.getCommandText.call(void 0, call),
|
|
15900
15900
|
call.toolExplanation,
|
|
15901
15901
|
escalatedData.approvalType,
|
|
15902
15902
|
status
|
|
@@ -18194,12 +18194,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18194
18194
|
|
|
18195
18195
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18196
18196
|
function getOwnerDisplayName(owner) {
|
|
18197
|
-
if (_optionalChain([owner, 'optionalAccess', _612 => _612.type]) ===
|
|
18197
|
+
if (_optionalChain([owner, 'optionalAccess', _612 => _612.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18198
18198
|
const { firstName, lastName } = owner.user;
|
|
18199
18199
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18200
18200
|
if (name) return name;
|
|
18201
18201
|
}
|
|
18202
|
-
return _optionalChain([owner, 'optionalAccess', _613 => _613.type]) ===
|
|
18202
|
+
return _optionalChain([owner, 'optionalAccess', _613 => _613.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18203
18203
|
}
|
|
18204
18204
|
function getOwnerAvatar(owner) {
|
|
18205
18205
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _614 => _614.user, 'optionalAccess', _615 => _615.image, 'optionalAccess', _616 => _616.imageUrl]), () => ( void 0));
|
|
@@ -18462,7 +18462,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18462
18462
|
if (!call.requiresApproval) continue;
|
|
18463
18463
|
accumulator.addApprovalRequest(
|
|
18464
18464
|
event.requestId,
|
|
18465
|
-
|
|
18465
|
+
_chunkEHJE3UWZcjs.getCommandText.call(void 0, call),
|
|
18466
18466
|
call.toolExplanation,
|
|
18467
18467
|
approvalType,
|
|
18468
18468
|
status,
|
|
@@ -18523,7 +18523,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18523
18523
|
if (!call.requiresApproval) continue;
|
|
18524
18524
|
accumulator.addApprovalRequest(
|
|
18525
18525
|
requestId,
|
|
18526
|
-
|
|
18526
|
+
_chunkEHJE3UWZcjs.getCommandText.call(void 0, call),
|
|
18527
18527
|
call.toolExplanation,
|
|
18528
18528
|
escalatedData.approvalType,
|
|
18529
18529
|
status
|
|
@@ -18631,10 +18631,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18631
18631
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18632
18632
|
return;
|
|
18633
18633
|
}
|
|
18634
|
-
const isUserMessage = _optionalChain([msg, 'access', _629 => _629.owner, 'optionalAccess', _630 => _630.type]) ===
|
|
18634
|
+
const isUserMessage = _optionalChain([msg, 'access', _629 => _629.owner, 'optionalAccess', _630 => _630.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.ADMIN;
|
|
18635
18635
|
if (isUserMessage) {
|
|
18636
18636
|
flushAssistantMessage();
|
|
18637
|
-
const userAuthorType = _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) ===
|
|
18637
|
+
const userAuthorType = _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18638
18638
|
messageDataArray.forEach((data) => {
|
|
18639
18639
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18640
18640
|
const rawContext = data.contextItems;
|
|
@@ -18685,7 +18685,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18685
18685
|
});
|
|
18686
18686
|
const nextMsg = messages[index + 1];
|
|
18687
18687
|
const isLastMessage = index === messages.length - 1;
|
|
18688
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _637 => _637.owner, 'optionalAccess', _638 => _638.type]) ===
|
|
18688
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _637 => _637.owner, 'optionalAccess', _638 => _638.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) === _chunk5QP3K2CEcjs.OWNER_TYPE.ADMIN);
|
|
18689
18689
|
if (isLastMessage || nextIsFromUser) {
|
|
18690
18690
|
flushAssistantMessage();
|
|
18691
18691
|
}
|