@flamingo-stack/openframe-frontend-core 0.0.745 → 0.0.746
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-LJ46XYYP.cjs → chunk-2ZVNXD74.cjs} +24 -24
- package/dist/{chunk-75BF7YJR.cjs → chunk-3AUTORMB.cjs} +13 -13
- package/dist/{chunk-FNIFUCXU.cjs → chunk-3KVB5FQZ.cjs} +5 -5
- package/dist/{chunk-HMSCUL4R.cjs → chunk-3OAACQQG.cjs} +4 -4
- package/dist/{chunk-RIGSZEXS.cjs → chunk-5X3F2KL7.cjs} +90 -90
- package/dist/{chunk-M4FKV2U5.cjs → chunk-7AKFKPBV.cjs} +12 -12
- package/dist/{chunk-4N7KGOBS.cjs → chunk-B24U6KNJ.cjs} +3 -3
- package/dist/{chunk-7KHQHYXL.cjs → chunk-DJ4YDVBF.cjs} +18 -18
- package/dist/{chunk-NFINQ7IZ.cjs → chunk-FAN73OTP.cjs} +6 -6
- package/dist/{chunk-QES5NV4T.cjs → chunk-GPSHFEF2.cjs} +645 -635
- package/dist/{chunk-GOTEXQZN.cjs → chunk-GSFANY2L.cjs} +80 -80
- package/dist/{chunk-URVIPSAJ.cjs → chunk-HNLI4OU5.cjs} +14 -14
- package/dist/{chunk-6IQDQQ56.cjs → chunk-IRKUFXVV.cjs} +38 -38
- package/dist/{chunk-ABLUMGCI.cjs → chunk-JHQNUWFM.cjs} +83 -33
- package/dist/{chunk-4A6OF4HI.cjs → chunk-KVPSV4ZI.cjs} +44 -44
- package/dist/{chunk-UY6A6TEY.cjs → chunk-L2IQESTQ.cjs} +2 -2
- package/dist/{chunk-YIOWV7LS.cjs → chunk-NZMQIAQC.cjs} +2 -2
- package/dist/{chunk-YJRMCFX3.cjs → chunk-O4J4NIMB.cjs} +7 -7
- package/dist/{chunk-GAGNKWOC.cjs → chunk-OWABNVDV.cjs} +2 -2
- package/dist/{chunk-PM5ELQBL.cjs → chunk-PLBJ3XVC.cjs} +32 -32
- package/dist/{chunk-OWGLRE74.cjs → chunk-PSIKUDUV.cjs} +8 -8
- package/dist/{chunk-3LX5AGZO.cjs → chunk-SDDZHPVK.cjs} +24 -24
- package/dist/{chunk-GQ2TRIOV.cjs → chunk-SLODGX6D.cjs} +35 -35
- package/dist/{chunk-DJO7YMT3.cjs → chunk-TILK7SC4.cjs} +194 -194
- package/dist/{chunk-U2O5YQRP.cjs → chunk-U6XWGK53.cjs} +33 -33
- package/dist/{chunk-JGZEHBBD.cjs → chunk-VZGCSVH7.cjs} +10 -10
- package/dist/{chunk-GEEKJ7SH.cjs → chunk-X4Y74M5K.cjs} +74 -74
- package/dist/{chunk-HVR7DPAY.cjs → chunk-XQJOYPPN.cjs} +4 -4
- package/dist/{chunk-7PQOZLVP.cjs → chunk-YKF66VQY.cjs} +20 -20
- package/dist/{chunk-5TCIRWHL.cjs → chunk-YRULLK7N.cjs} +5 -5
- package/dist/{cloud-tenants-DECPWIYQ.cjs → cloud-tenants-OKUFSNPW.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +25 -25
- 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/index.cjs +13 -13
- package/dist/components/help-center-pages/index.cjs +116 -116
- package/dist/components/index.cjs +119 -125
- package/dist/components/meeting-scheduler/index.cjs +63 -63
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/filter-checkbox-item.d.ts +8 -2
- package/dist/components/ui/filter-checkbox-item.d.ts.map +1 -1
- package/dist/components/ui/filter-checkbox-item.js +14 -4
- package/dist/components/ui/index.cjs +13 -13
- package/dist/components/unified-filter-logic.js +1 -1
- package/dist/components/vendor-tag.d.ts +12 -0
- package/dist/components/vendor-tag.d.ts.map +1 -1
- package/dist/components/vendor-tag.js +50 -47
- package/dist/{devices-HJKDRWQX.cjs → devices-URCDMYFU.cjs} +14 -14
- package/dist/{embeddable-chat-3SKFBO2P.cjs → embeddable-chat-B35GB5B6.cjs} +80 -80
- package/dist/index.cjs +20 -18
- package/dist/{knowledge-NH2CGY2C.cjs → knowledge-5MW2PREQ.cjs} +14 -14
- package/dist/{logs-KZYIDYQK.cjs → logs-LJJK5CK4.cjs} +21 -21
- package/dist/{policies-UAVTPIKM.cjs → policies-6TCEWQYG.cjs} +17 -17
- package/dist/{remote-session-N4PJB5FW.cjs → remote-session-IYT4LWJC.cjs} +7 -7
- package/dist/{scripts-FRPY43KU.cjs → scripts-ABB2P6PT.cjs} +20 -20
- package/dist/{software-update-AEJJNLX5.cjs → software-update-4427ZRMO.cjs} +17 -17
- package/dist/{tickets-board-O753S4ZB.cjs → tickets-board-4MT6ZB4F.cjs} +8 -8
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +2 -3
- package/dist/utils/index.cjs +74 -24
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +8 -6
- package/dist/utils/vendor-classification.d.ts +43 -17
- package/dist/utils/vendor-classification.d.ts.map +1 -1
- package/dist/utils/vendor-classification.js +73 -22
- package/package.json +1 -1
- package/src/components/ui/filter-checkbox-item.tsx +21 -5
- package/src/components/unified-filter-logic.tsx +1 -1
- package/src/components/vendor-tag.tsx +73 -69
- package/src/utils/format.ts +2 -3
- package/src/utils/index.ts +7 -5
- package/src/utils/vendor-classification.ts +113 -34
- package/dist/utils/format-text-stub.d.ts +0 -5
- package/dist/utils/format-text-stub.d.ts.map +0 -1
- package/dist/utils/format-text-stub.js +0 -20
- package/src/utils/format-text-stub.ts +0 -17
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkPSIKUDUVcjs = require('./chunk-PSIKUDUV.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkYRULLK7Ncjs = require('./chunk-YRULLK7N.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -315,10 +315,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
315
315
|
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var _chunk2ZVNXD74cjs = require('./chunk-2ZVNXD74.cjs');
|
|
319
319
|
|
|
320
320
|
|
|
321
|
-
var
|
|
321
|
+
var _chunkL2IQESTQcjs = require('./chunk-L2IQESTQ.cjs');
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
|
|
@@ -326,7 +326,7 @@ var _chunkUY6A6TEYcjs = require('./chunk-UY6A6TEY.cjs');
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
var
|
|
329
|
+
var _chunkJHQNUWFMcjs = require('./chunk-JHQNUWFM.cjs');
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -3244,7 +3244,7 @@ function chatListensForAskAiOpens() {
|
|
|
3244
3244
|
|
|
3245
3245
|
// src/components/chat/chat-appearance-context.tsx
|
|
3246
3246
|
|
|
3247
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3247
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkYRULLK7Ncjs.CHAT_APPEARANCE.CLASSIC);
|
|
3248
3248
|
function useChatAppearance() {
|
|
3249
3249
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3250
3250
|
}
|
|
@@ -3283,7 +3283,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3283
3283
|
...props
|
|
3284
3284
|
}, ref) => {
|
|
3285
3285
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3286
|
-
const isV2 = useChatAppearance() ===
|
|
3286
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
3287
3287
|
const handleApprove = async () => {
|
|
3288
3288
|
setIsProcessing(true);
|
|
3289
3289
|
try {
|
|
@@ -3306,7 +3306,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3306
3306
|
{
|
|
3307
3307
|
ref,
|
|
3308
3308
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3309
|
-
|
|
3309
|
+
_chunkPSIKUDUVcjs.CHAT_BLOCK_CLASS,
|
|
3310
3310
|
// v2: the thread owns the space below the card.
|
|
3311
3311
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3312
3312
|
className
|
|
@@ -3314,7 +3314,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3314
3314
|
...props,
|
|
3315
3315
|
children: [
|
|
3316
3316
|
/* @__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" }),
|
|
3317
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3317
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalWaitingLine, {}),
|
|
3318
3318
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3319
3319
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3320
3320
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3346,14 +3346,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3346
3346
|
children: "Reject"
|
|
3347
3347
|
}
|
|
3348
3348
|
)
|
|
3349
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3349
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3350
3350
|
]
|
|
3351
3351
|
}
|
|
3352
3352
|
);
|
|
3353
3353
|
}
|
|
3354
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3354
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkPSIKUDUVcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3355
3355
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3356
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3356
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalWaitingLine, {}),
|
|
3357
3357
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3358
3358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3359
3359
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3385,7 +3385,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3385
3385
|
children: "Reject"
|
|
3386
3386
|
}
|
|
3387
3387
|
)
|
|
3388
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3388
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3389
3389
|
] });
|
|
3390
3390
|
}
|
|
3391
3391
|
);
|
|
@@ -3415,7 +3415,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3415
3415
|
|
|
3416
3416
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3417
3417
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3418
|
-
const isV2 = useChatAppearance() ===
|
|
3418
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
3419
3419
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3420
3420
|
"div",
|
|
3421
3421
|
{
|
|
@@ -3431,7 +3431,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3431
3431
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3432
3432
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3433
3433
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3434
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3434
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkYRULLK7Ncjs.formatTime.call(void 0, timestamp) })
|
|
3435
3435
|
] }),
|
|
3436
3436
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3437
3437
|
] })
|
|
@@ -3546,7 +3546,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3546
3546
|
AiAssistantInfo,
|
|
3547
3547
|
{
|
|
3548
3548
|
ref,
|
|
3549
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3549
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3550
3550
|
title: "Technician Joined",
|
|
3551
3551
|
body: `You're now chatting with ${joined}.`,
|
|
3552
3552
|
timestamp,
|
|
@@ -3630,7 +3630,7 @@ var thoughtMdClasses = [
|
|
|
3630
3630
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3631
3631
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3632
3632
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3633
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3633
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkPSIKUDUVcjs.useCollapsible.call(void 0, {
|
|
3634
3634
|
expanded,
|
|
3635
3635
|
collapsedHeight: 19,
|
|
3636
3636
|
disableTransition: isStreaming
|
|
@@ -3645,7 +3645,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3645
3645
|
setExpanded(!expanded);
|
|
3646
3646
|
}
|
|
3647
3647
|
};
|
|
3648
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3648
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkPSIKUDUVcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3649
3649
|
"div",
|
|
3650
3650
|
{
|
|
3651
3651
|
role: "button",
|
|
@@ -3663,7 +3663,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3663
3663
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3664
3664
|
] }),
|
|
3665
3665
|
/* @__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: _chunk3ATAYP36cjs.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" }) }) }),
|
|
3666
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3666
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ExpandChevron, { expanded }) })
|
|
3667
3667
|
]
|
|
3668
3668
|
}
|
|
3669
3669
|
) });
|
|
@@ -3784,9 +3784,9 @@ var iconTint = {
|
|
|
3784
3784
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3785
3785
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3786
3786
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3787
|
-
const { innerRef, containerStyle } =
|
|
3787
|
+
const { innerRef, containerStyle } = _chunkPSIKUDUVcjs.useCollapsible.call(void 0, { expanded });
|
|
3788
3788
|
const hasDetails = Boolean(details);
|
|
3789
|
-
const isV2 = useChatAppearance() ===
|
|
3789
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
3790
3790
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3791
3791
|
"div",
|
|
3792
3792
|
{
|
|
@@ -3823,7 +3823,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
3823
3823
|
children: title
|
|
3824
3824
|
}
|
|
3825
3825
|
),
|
|
3826
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3826
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ExpandChevron, { expanded })
|
|
3827
3827
|
]
|
|
3828
3828
|
}
|
|
3829
3829
|
),
|
|
@@ -3867,7 +3867,7 @@ function MspOrganizationCard({
|
|
|
3867
3867
|
className
|
|
3868
3868
|
),
|
|
3869
3869
|
children: [
|
|
3870
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3870
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
3871
3871
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3872
3872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
3873
3873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -3888,7 +3888,7 @@ function MspOrganizationCard({
|
|
|
3888
3888
|
className
|
|
3889
3889
|
),
|
|
3890
3890
|
children: [
|
|
3891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3891
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
3892
3892
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3893
3893
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
3894
3894
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4022,7 +4022,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4022
4022
|
] })
|
|
4023
4023
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4024
4024
|
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,
|
|
4025
|
-
|
|
4025
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
4026
4026
|
{
|
|
4027
4027
|
src: userAvatar,
|
|
4028
4028
|
alt: userName,
|
|
@@ -4098,9 +4098,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4098
4098
|
)
|
|
4099
4099
|
] }),
|
|
4100
4100
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4101
|
-
|
|
4101
|
+
_chunkPSIKUDUVcjs.TicketStatusTag,
|
|
4102
4102
|
{
|
|
4103
|
-
...
|
|
4103
|
+
..._chunkPSIKUDUVcjs.resolveStatusTagProps.call(void 0, {
|
|
4104
4104
|
status: ticketInfo.status,
|
|
4105
4105
|
statusKind: ticketInfo.statusKind,
|
|
4106
4106
|
statusName: ticketInfo.statusName,
|
|
@@ -4657,11 +4657,11 @@ var remarkMentionChips = () => {
|
|
|
4657
4657
|
// src/components/chat/tool-execution-display.tsx
|
|
4658
4658
|
|
|
4659
4659
|
|
|
4660
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4660
|
+
var COMMAND_BODY_KEYS = new Set(_chunkPSIKUDUVcjs.COMMAND_BODY_ARG_KEYS);
|
|
4661
4661
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4662
4662
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4663
4663
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4664
|
-
const { innerRef, containerStyle } =
|
|
4664
|
+
const { innerRef, containerStyle } = _chunkPSIKUDUVcjs.useCollapsible.call(void 0, { expanded });
|
|
4665
4665
|
const isClient = assistantType === "fae";
|
|
4666
4666
|
const isClientView = variant === "client";
|
|
4667
4667
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4704,7 +4704,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4704
4704
|
}
|
|
4705
4705
|
),
|
|
4706
4706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4707
|
-
!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,
|
|
4707
|
+
!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, _chunkPSIKUDUVcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4708
4708
|
] });
|
|
4709
4709
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4710
4710
|
"div",
|
|
@@ -4714,7 +4714,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4714
4714
|
// The command running block keeps its bordered box in both chats
|
|
4715
4715
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4716
4716
|
"flex w-full flex-col overflow-hidden",
|
|
4717
|
-
|
|
4717
|
+
_chunkPSIKUDUVcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4718
4718
|
className
|
|
4719
4719
|
),
|
|
4720
4720
|
...props,
|
|
@@ -4725,7 +4725,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4725
4725
|
// It reads as a card: what was done, then one status line under it.
|
|
4726
4726
|
/* @__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: [
|
|
4727
4727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4728
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4729
4729
|
] })
|
|
4730
4730
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4731
4731
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4738,9 +4738,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4738
4738
|
}
|
|
4739
4739
|
) : /* @__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 }),
|
|
4740
4740
|
/* @__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: [
|
|
4741
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4741
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ArgRow, { argKey: key, value }, key)),
|
|
4742
4742
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4743
|
-
|
|
4743
|
+
_chunkPSIKUDUVcjs.ResultBlock,
|
|
4744
4744
|
{
|
|
4745
4745
|
result: message.result,
|
|
4746
4746
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4794,8 +4794,8 @@ var remarkStripCitations = () => {
|
|
|
4794
4794
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
4795
4795
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
4796
4796
|
function formatMessageTimestamp(timestamp) {
|
|
4797
|
-
const time =
|
|
4798
|
-
return
|
|
4797
|
+
const time = _chunkYRULLK7Ncjs.formatTime.call(void 0, timestamp);
|
|
4798
|
+
return _chunkPSIKUDUVcjs.isToday.call(void 0, timestamp) ? time : `${_chunkYRULLK7Ncjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
4799
4799
|
}
|
|
4800
4800
|
function normalizeContent(content) {
|
|
4801
4801
|
if (typeof content === "string") {
|
|
@@ -4849,7 +4849,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4849
4849
|
const isError = role === "error";
|
|
4850
4850
|
const inheritedAppearance = useChatAppearance();
|
|
4851
4851
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
4852
|
-
const isV2 = appearance ===
|
|
4852
|
+
const isV2 = appearance === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
4853
4853
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
4854
4854
|
const hasMarkerSupport = !!renderEntityCard;
|
|
4855
4855
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -5033,9 +5033,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5033
5033
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5034
5034
|
const face = !showAvatar || isSystem ? null : !isUser && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isUser && !avatar && assistantType ? (
|
|
5035
5035
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5036
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5036
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5037
5037
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5038
|
-
|
|
5038
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
5039
5039
|
{
|
|
5040
5040
|
src: avatar || void 0,
|
|
5041
5041
|
alt: displayName,
|
|
@@ -5114,7 +5114,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5114
5114
|
);
|
|
5115
5115
|
} else if (segment.type === "approval_batch") {
|
|
5116
5116
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5117
|
-
|
|
5117
|
+
_chunkPSIKUDUVcjs.ApprovalBatchMessage,
|
|
5118
5118
|
{
|
|
5119
5119
|
data: segment.data,
|
|
5120
5120
|
status: segment.status,
|
|
@@ -5373,7 +5373,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5373
5373
|
contentClassName,
|
|
5374
5374
|
assistantType,
|
|
5375
5375
|
approvalVariant,
|
|
5376
|
-
appearance =
|
|
5376
|
+
appearance = _chunkYRULLK7Ncjs.CHAT_APPEARANCE.CLASSIC,
|
|
5377
5377
|
assistantIcon,
|
|
5378
5378
|
pendingApprovals,
|
|
5379
5379
|
hasNextPage,
|
|
@@ -5892,7 +5892,7 @@ function renderQuickActionIcon(icon) {
|
|
|
5892
5892
|
if (!spec.name && !spec.url) return void 0;
|
|
5893
5893
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
5894
5894
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
5895
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5895
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
5896
5896
|
}
|
|
5897
5897
|
function composeChipLabel(label, lozenge) {
|
|
5898
5898
|
if (!lozenge) return label;
|
|
@@ -5929,7 +5929,7 @@ function QuickActionChipSkeleton({
|
|
|
5929
5929
|
}) {
|
|
5930
5930
|
const question = variant === "question";
|
|
5931
5931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5932
|
-
|
|
5932
|
+
_chunkJHQNUWFMcjs.Tag,
|
|
5933
5933
|
{
|
|
5934
5934
|
variant: "outline",
|
|
5935
5935
|
size: question ? "sentence" : size,
|
|
@@ -5965,7 +5965,7 @@ function QuickActionChipButton({
|
|
|
5965
5965
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
5966
5966
|
const tagSize = question ? "sentence" : size;
|
|
5967
5967
|
if (!interactive) {
|
|
5968
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5968
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.Tag, { variant: tagVariant, size: tagSize, icon: resolvedIcon, label: resolvedLabel, className });
|
|
5969
5969
|
}
|
|
5970
5970
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5971
5971
|
"button",
|
|
@@ -5984,7 +5984,7 @@ function QuickActionChipButton({
|
|
|
5984
5984
|
className
|
|
5985
5985
|
),
|
|
5986
5986
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5987
|
-
|
|
5987
|
+
_chunkJHQNUWFMcjs.Tag,
|
|
5988
5988
|
{
|
|
5989
5989
|
variant: tagVariant,
|
|
5990
5990
|
size: tagSize,
|
|
@@ -6561,7 +6561,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6561
6561
|
|
|
6562
6562
|
[Attached: ${safeName}](${url})`;
|
|
6563
6563
|
}
|
|
6564
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6564
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk2ZVNXD74cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6565
6565
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6566
6566
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6567
6567
|
"gm"
|
|
@@ -7509,7 +7509,7 @@ function MingoChatHistoryRow({
|
|
|
7509
7509
|
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")
|
|
7510
7510
|
),
|
|
7511
7511
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7512
|
-
|
|
7512
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
7513
7513
|
{
|
|
7514
7514
|
variant: "round",
|
|
7515
7515
|
sizePx: 24,
|
|
@@ -7713,7 +7713,7 @@ function MingoWelcome({
|
|
|
7713
7713
|
onScroll: updateScrollFade,
|
|
7714
7714
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7715
7715
|
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: [
|
|
7716
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7716
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7717
7717
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7718
7718
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7719
7719
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7835,8 +7835,8 @@ function GuideWelcome({
|
|
|
7835
7835
|
icon && (icon.name || icon.url) ? (
|
|
7836
7836
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7837
7837
|
// match the default Mingo mark (48px).
|
|
7838
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7839
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7838
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7839
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7840
7840
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7841
7841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7842
7842
|
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, _chunk5M5C6UV4cjs.Skeleton, { className: "h-5 w-3/4 max-w-80 rounded-sm" }) }) : null
|
|
@@ -8038,9 +8038,9 @@ function MingoArchiveList({
|
|
|
8038
8038
|
title: dialog.title || "Untitled Chat",
|
|
8039
8039
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _176 => _176(dialog.id)]),
|
|
8040
8040
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8041
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8041
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkPSIKUDUVcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8042
8042
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8043
|
-
|
|
8043
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8044
8044
|
{
|
|
8045
8045
|
variant: "round",
|
|
8046
8046
|
sizePx: 24,
|
|
@@ -8122,7 +8122,7 @@ function MingoChatHeader({
|
|
|
8122
8122
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8123
8123
|
] }),
|
|
8124
8124
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8125
|
-
|
|
8125
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8126
8126
|
{
|
|
8127
8127
|
variant: "round",
|
|
8128
8128
|
sizePx: 32,
|
|
@@ -8398,7 +8398,7 @@ function MingoChatRail({
|
|
|
8398
8398
|
"data-accent": "mingo",
|
|
8399
8399
|
"aria-label": "Mingo chats",
|
|
8400
8400
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8401
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8401
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8402
8402
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8403
8403
|
_chunk2QMBXGMQcjs.Button,
|
|
8404
8404
|
{
|
|
@@ -8678,8 +8678,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8678
8678
|
const save = () => {
|
|
8679
8679
|
if (canSave) onSave(name.trim());
|
|
8680
8680
|
};
|
|
8681
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8682
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8681
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8682
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8683
8683
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8684
8684
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8685
8685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8696,27 +8696,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8696
8696
|
}
|
|
8697
8697
|
)
|
|
8698
8698
|
] }),
|
|
8699
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8699
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.ModalFooter, { children: [
|
|
8700
8700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8701
8701
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8702
8702
|
] })
|
|
8703
8703
|
] });
|
|
8704
8704
|
}
|
|
8705
8705
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8706
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8706
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8707
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8708
8708
|
/* @__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." }),
|
|
8709
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8709
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.ModalFooter, { children: [
|
|
8710
8710
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8711
8711
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8712
8712
|
] })
|
|
8713
8713
|
] });
|
|
8714
8714
|
}
|
|
8715
8715
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8716
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8717
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8716
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8717
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8718
8718
|
/* @__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." }),
|
|
8719
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8719
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.ModalFooter, { children: [
|
|
8720
8720
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8721
8721
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8722
8722
|
] })
|
|
@@ -8889,7 +8889,7 @@ function ChatPanelHeader({
|
|
|
8889
8889
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8890
8890
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8891
8891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8892
|
-
|
|
8892
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8893
8893
|
{
|
|
8894
8894
|
variant: "round",
|
|
8895
8895
|
sizePx: 32,
|
|
@@ -9047,8 +9047,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9047
9047
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9048
9048
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9049
9049
|
status === "sniffing" && "Checking\u2026",
|
|
9050
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9051
|
-
status === "ready" &&
|
|
9050
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkJHQNUWFMcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9051
|
+
status === "ready" && _chunkJHQNUWFMcjs.formatFileSize.call(void 0, file.size),
|
|
9052
9052
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9053
9053
|
] })
|
|
9054
9054
|
] }),
|
|
@@ -9296,7 +9296,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9296
9296
|
}, ref) => {
|
|
9297
9297
|
const icon = getProviderIcon(provider);
|
|
9298
9298
|
const name = displayName || modelName;
|
|
9299
|
-
const isV2 = useChatAppearance() ===
|
|
9299
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
9300
9300
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9301
9301
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", "text-h6", className), ...props, children: [
|
|
9302
9302
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9425,7 +9425,7 @@ function ChatComposer({
|
|
|
9425
9425
|
}, [entityTypes]);
|
|
9426
9426
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9427
9427
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9428
|
-
|
|
9428
|
+
_chunkYRULLK7Ncjs.ChatInput,
|
|
9429
9429
|
{
|
|
9430
9430
|
ref: inputRef,
|
|
9431
9431
|
onSend,
|
|
@@ -9592,16 +9592,16 @@ function useChatPanel() {
|
|
|
9592
9592
|
|
|
9593
9593
|
// src/components/chat/utils/execute-navigation.ts
|
|
9594
9594
|
function isForeignOriginHref(href) {
|
|
9595
|
-
return /^https?:\/\//i.test(href) && !
|
|
9595
|
+
return /^https?:\/\//i.test(href) && !_chunk2ZVNXD74cjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9596
9596
|
}
|
|
9597
9597
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9598
|
-
const isNewTab = runtime ?
|
|
9598
|
+
const isNewTab = runtime ? _chunk2ZVNXD74cjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9599
9599
|
if (isNewTab) {
|
|
9600
9600
|
if (_optionalChain([runtime, 'optionalAccess', _202 => _202.navigation, 'access', _203 => _203.openExternal])) runtime.navigation.openExternal(href);
|
|
9601
|
-
else window.open(href, "_blank",
|
|
9601
|
+
else window.open(href, "_blank", _chunk2ZVNXD74cjs.NEW_TAB_FEATURES);
|
|
9602
9602
|
return;
|
|
9603
9603
|
}
|
|
9604
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9604
|
+
const target = isForeignOriginHref(href) ? href : _chunk2ZVNXD74cjs.stripSameOriginToPath.call(void 0, href);
|
|
9605
9605
|
if (target.includes("#") && _chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9606
9606
|
return;
|
|
9607
9607
|
}
|
|
@@ -9652,8 +9652,8 @@ function useNavLinkViaRuntime({
|
|
|
9652
9652
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9653
9653
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9654
9654
|
const panel = useChatPanel();
|
|
9655
|
-
const resolvedHref =
|
|
9656
|
-
const isNewTab =
|
|
9655
|
+
const resolvedHref = _chunk2ZVNXD74cjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9656
|
+
const isNewTab = _chunk2ZVNXD74cjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9657
9657
|
const onClick = (e) => {
|
|
9658
9658
|
_optionalChain([onClickProp, 'optionalCall', _207 => _207(e)]);
|
|
9659
9659
|
if (e.defaultPrevented) return;
|
|
@@ -9667,7 +9667,7 @@ function useNavLinkViaRuntime({
|
|
|
9667
9667
|
});
|
|
9668
9668
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _208 => _208.closeChat])) panel.closeChat();
|
|
9669
9669
|
};
|
|
9670
|
-
const attrs =
|
|
9670
|
+
const attrs = _chunk2ZVNXD74cjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9671
9671
|
return {
|
|
9672
9672
|
href: resolvedHref,
|
|
9673
9673
|
...attrs,
|
|
@@ -9812,9 +9812,9 @@ function UserDisplay({
|
|
|
9812
9812
|
}) {
|
|
9813
9813
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
9814
9814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9815
|
-
|
|
9815
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
9816
9816
|
{
|
|
9817
|
-
src: avatarUrl ?
|
|
9817
|
+
src: avatarUrl ? _chunk2ZVNXD74cjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9818
9818
|
fallback: name,
|
|
9819
9819
|
alt: name,
|
|
9820
9820
|
sizePx: size,
|
|
@@ -10264,7 +10264,7 @@ function CardsStrip(props) {
|
|
|
10264
10264
|
},
|
|
10265
10265
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10266
10266
|
children: [
|
|
10267
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10267
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk2ZVNXD74cjs.SECTION_HEADING_CLASS} break-words`, children: _chunk2ZVNXD74cjs.accentSentenceMarks.call(void 0, title) }),
|
|
10268
10268
|
headerSlot,
|
|
10269
10269
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10270
10270
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10416,7 +10416,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10416
10416
|
|
|
10417
10417
|
function VideoBitesStrip({
|
|
10418
10418
|
bites,
|
|
10419
|
-
title =
|
|
10419
|
+
title = _chunk2ZVNXD74cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10420
10420
|
showTitle = true,
|
|
10421
10421
|
filterPublished = true,
|
|
10422
10422
|
profile = null,
|
|
@@ -10429,7 +10429,7 @@ function VideoBitesStrip({
|
|
|
10429
10429
|
cardHeightMobile = 300,
|
|
10430
10430
|
showChevrons = true,
|
|
10431
10431
|
onBiteNavigate,
|
|
10432
|
-
sortComparator =
|
|
10432
|
+
sortComparator = _chunk2ZVNXD74cjs.sortBitesByCreatedAtDesc,
|
|
10433
10433
|
className
|
|
10434
10434
|
}) {
|
|
10435
10435
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -10595,7 +10595,7 @@ function VideoBiteCard({
|
|
|
10595
10595
|
},
|
|
10596
10596
|
children: [
|
|
10597
10597
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10598
|
-
|
|
10598
|
+
_chunk2ZVNXD74cjs.VideoHoverPreviewSurface,
|
|
10599
10599
|
{
|
|
10600
10600
|
url: bite.url,
|
|
10601
10601
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10666,7 +10666,7 @@ function EntityVideoSection({
|
|
|
10666
10666
|
title = "Video",
|
|
10667
10667
|
videoSummary,
|
|
10668
10668
|
videoBites,
|
|
10669
|
-
bitesTitle =
|
|
10669
|
+
bitesTitle = _chunk2ZVNXD74cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10670
10670
|
filterPublishedBites = true,
|
|
10671
10671
|
bitesProfile = null,
|
|
10672
10672
|
bitesHref,
|
|
@@ -10712,7 +10712,7 @@ function EntityVideoSection({
|
|
|
10712
10712
|
)
|
|
10713
10713
|
] }),
|
|
10714
10714
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10715
|
-
|
|
10715
|
+
_chunk2ZVNXD74cjs.Video,
|
|
10716
10716
|
{
|
|
10717
10717
|
kind: fullVideoKind,
|
|
10718
10718
|
url: fullVideoUrl,
|
|
@@ -10724,7 +10724,7 @@ function EntityVideoSection({
|
|
|
10724
10724
|
}
|
|
10725
10725
|
) }),
|
|
10726
10726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10727
|
-
|
|
10727
|
+
_chunk2ZVNXD74cjs.Video,
|
|
10728
10728
|
{
|
|
10729
10729
|
url: highlightVideoUrl,
|
|
10730
10730
|
poster: highlightVideoThumbnail,
|
|
@@ -10733,7 +10733,7 @@ function EntityVideoSection({
|
|
|
10733
10733
|
}
|
|
10734
10734
|
) })
|
|
10735
10735
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10736
|
-
|
|
10736
|
+
_chunk2ZVNXD74cjs.Video,
|
|
10737
10737
|
{
|
|
10738
10738
|
kind: fullVideoKind,
|
|
10739
10739
|
url: fullVideoUrl,
|
|
@@ -10744,7 +10744,7 @@ function EntityVideoSection({
|
|
|
10744
10744
|
priority
|
|
10745
10745
|
}
|
|
10746
10746
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10747
|
-
|
|
10747
|
+
_chunk2ZVNXD74cjs.Video,
|
|
10748
10748
|
{
|
|
10749
10749
|
url: highlightVideoUrl,
|
|
10750
10750
|
poster: highlightVideoThumbnail,
|
|
@@ -10754,7 +10754,7 @@ function EntityVideoSection({
|
|
|
10754
10754
|
}
|
|
10755
10755
|
) : null),
|
|
10756
10756
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10757
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk2ZVNXD74cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10758
10758
|
/* @__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 }) })
|
|
10759
10759
|
] }),
|
|
10760
10760
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11014,14 +11014,14 @@ function designDocPeople(doc) {
|
|
|
11014
11014
|
return people;
|
|
11015
11015
|
}
|
|
11016
11016
|
function designDocMetaLine(doc) {
|
|
11017
|
-
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
11017
|
+
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunk2ZVNXD74cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
11018
11018
|
}
|
|
11019
11019
|
function DesignDocCardSkeleton() {
|
|
11020
11020
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11021
11021
|
"div",
|
|
11022
11022
|
{
|
|
11023
11023
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11024
|
-
|
|
11024
|
+
_chunk2ZVNXD74cjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
11025
11025
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
11026
11026
|
),
|
|
11027
11027
|
role: "status",
|
|
@@ -11051,7 +11051,7 @@ function DesignDocCardSkeleton() {
|
|
|
11051
11051
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
11052
11052
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
11053
11053
|
const people = designDocPeople(doc);
|
|
11054
|
-
const link =
|
|
11054
|
+
const link = _chunk2ZVNXD74cjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
11055
11055
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11056
11056
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
11057
11057
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -11059,7 +11059,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11059
11059
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
11060
11060
|
] }),
|
|
11061
11061
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11062
|
-
|
|
11062
|
+
_chunk2ZVNXD74cjs.StatusBadge,
|
|
11063
11063
|
{
|
|
11064
11064
|
text: readiness.label,
|
|
11065
11065
|
colorScheme: readiness.scheme,
|
|
@@ -11069,16 +11069,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11069
11069
|
}
|
|
11070
11070
|
)
|
|
11071
11071
|
] }),
|
|
11072
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11072
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
11073
11073
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[72px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
11074
11074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11075
11075
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
11076
11076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
11077
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11077
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL2IQESTQcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
11078
11078
|
] })
|
|
11079
11079
|
] });
|
|
11080
11080
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11081
|
-
|
|
11081
|
+
_chunk2ZVNXD74cjs.CONTENT_CARD_FRAME_CLASS,
|
|
11082
11082
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
11083
11083
|
className
|
|
11084
11084
|
);
|
|
@@ -11188,7 +11188,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11188
11188
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11189
11189
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11190
11190
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11191
|
-
const dateText =
|
|
11191
|
+
const dateText = _chunkJHQNUWFMcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11192
11192
|
const idLabel = formatActivityId(item.id, kind);
|
|
11193
11193
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11194
11194
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11222,26 +11222,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11222
11222
|
metaParts.push(
|
|
11223
11223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11224
11224
|
);
|
|
11225
|
-
const href =
|
|
11225
|
+
const href = _chunk2ZVNXD74cjs.safeHref.call(void 0, item.url);
|
|
11226
11226
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11227
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11228
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11229
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11228
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11229
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11230
11230
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11231
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11232
11232
|
] }),
|
|
11233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11234
11234
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11235
11235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11236
11236
|
] }, i)) }) }),
|
|
11237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11237
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_SUMMARY, children: _chunk2ZVNXD74cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11238
11238
|
] }),
|
|
11239
11239
|
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
|
|
11240
11240
|
] });
|
|
11241
11241
|
if (anchorProps) {
|
|
11242
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11242
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11243
11243
|
}
|
|
11244
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11244
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11245
11245
|
}
|
|
11246
11246
|
function GitHubActivityCardSkeleton({
|
|
11247
11247
|
variant = "compact",
|
|
@@ -11258,12 +11258,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11258
11258
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
11259
11259
|
] });
|
|
11260
11260
|
}
|
|
11261
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11262
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11263
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11264
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11266
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11261
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11262
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11263
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11264
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
11265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11266
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_SUMMARY, children: _chunk2ZVNXD74cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11267
11267
|
] }),
|
|
11268
11268
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
11269
11269
|
] });
|
|
@@ -11275,29 +11275,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11275
11275
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11276
11276
|
const goalsCount = _optionalChain([campaign, 'access', _245 => _245.goals, 'optionalAccess', _246 => _246.length]) || 0;
|
|
11277
11277
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11278
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11279
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11280
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11281
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11282
|
-
campaign.start_date ?
|
|
11278
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
11279
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11280
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
11281
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_SUBTITLE, children: [
|
|
11282
|
+
campaign.start_date ? _chunk2ZVNXD74cjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
11283
11283
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11284
11284
|
"Marketing campaign"
|
|
11285
11285
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11286
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk2ZVNXD74cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11287
11287
|
] })
|
|
11288
11288
|
] });
|
|
11289
11289
|
if (anchorProps) {
|
|
11290
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11290
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
11291
11291
|
}
|
|
11292
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
11292
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
11293
11293
|
}
|
|
11294
11294
|
function CampaignCardAdminSkeleton({ className }) {
|
|
11295
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11296
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11297
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11298
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11299
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11300
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11295
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11296
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11297
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11298
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
11299
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
11301
11301
|
] })
|
|
11302
11302
|
] });
|
|
11303
11303
|
}
|
|
@@ -11388,7 +11388,7 @@ function VendorIcon({
|
|
|
11388
11388
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11389
11389
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11390
11390
|
{
|
|
11391
|
-
src:
|
|
11391
|
+
src: _chunk2ZVNXD74cjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11392
11392
|
alt: `${vendor.title} logo`,
|
|
11393
11393
|
width,
|
|
11394
11394
|
height,
|
|
@@ -11418,8 +11418,8 @@ function useChatCardItem(type, id) {
|
|
|
11418
11418
|
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url);
|
|
11419
11419
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11420
11420
|
const data = await res.json();
|
|
11421
|
-
const items =
|
|
11422
|
-
const match = items.find((it) =>
|
|
11421
|
+
const items = _chunk2ZVNXD74cjs.extractCardItems.call(void 0, type, data);
|
|
11422
|
+
const match = items.find((it) => _chunk2ZVNXD74cjs.extractItemId.call(void 0, type, it) === id);
|
|
11423
11423
|
return _nullishCoalesce(match, () => ( null));
|
|
11424
11424
|
},
|
|
11425
11425
|
enabled: !!url && id.length > 0,
|
|
@@ -11461,7 +11461,7 @@ var TRAILING_BUTTON_CLASS = "flex w-[56px] shrink-0 items-center justify-center
|
|
|
11461
11461
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11462
11462
|
if (imageSrc) {
|
|
11463
11463
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11464
|
-
/* @__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:
|
|
11464
|
+
/* @__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: _chunkJHQNUWFMcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11465
11465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11466
11466
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11467
11467
|
{
|
|
@@ -11530,7 +11530,7 @@ function MingoInfoCard({
|
|
|
11530
11530
|
status ? (
|
|
11531
11531
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11532
11532
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11533
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkJHQNUWFMcjs.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 }) })
|
|
11534
11534
|
) : null
|
|
11535
11535
|
] });
|
|
11536
11536
|
const contentClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -11621,7 +11621,7 @@ function resolveFetchedCardHref({
|
|
|
11621
11621
|
composeContentUrl
|
|
11622
11622
|
}) {
|
|
11623
11623
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11624
|
-
const canonicalType =
|
|
11624
|
+
const canonicalType = _chunk2ZVNXD74cjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11625
11625
|
return composeContentUrl({
|
|
11626
11626
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11627
11627
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11671,16 +11671,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11671
11671
|
if (docTarget) {
|
|
11672
11672
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11673
11673
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11674
|
-
href = _nullishCoalesce(
|
|
11674
|
+
href = _nullishCoalesce(_chunk2ZVNXD74cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11675
11675
|
targetPlatform = docTarget.platform;
|
|
11676
11676
|
} else if (ctx.chipBasePlatform) {
|
|
11677
11677
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11678
|
-
href = _nullishCoalesce(
|
|
11678
|
+
href = _nullishCoalesce(_chunk2ZVNXD74cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11679
11679
|
targetPlatform = ctx.chipBasePlatform;
|
|
11680
11680
|
} else if (ctx.baseRoute) {
|
|
11681
11681
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11682
11682
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11683
|
-
href = _nullishCoalesce(
|
|
11683
|
+
href = _nullishCoalesce(_chunk2ZVNXD74cjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11684
11684
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11685
11685
|
}
|
|
11686
11686
|
}
|
|
@@ -11689,15 +11689,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11689
11689
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11690
11690
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11691
11691
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11692
|
-
type:
|
|
11692
|
+
type: _chunk2ZVNXD74cjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11693
11693
|
identifier: idValue,
|
|
11694
11694
|
externalUrl: row.externalUrl,
|
|
11695
11695
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11696
11696
|
});
|
|
11697
|
-
href = composed.href ? _nullishCoalesce(
|
|
11697
|
+
href = composed.href ? _nullishCoalesce(_chunk2ZVNXD74cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11698
11698
|
targetPlatform = composed.targetPlatform;
|
|
11699
11699
|
} else if (row.externalUrl) {
|
|
11700
|
-
href = _nullishCoalesce(
|
|
11700
|
+
href = _nullishCoalesce(_chunk2ZVNXD74cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11701
11701
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11702
11702
|
}
|
|
11703
11703
|
const documentType = row.documentType;
|
|
@@ -11764,7 +11764,7 @@ function resolveCardDestination({
|
|
|
11764
11764
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11765
11765
|
allowComposed: !entry.noComposedHref
|
|
11766
11766
|
});
|
|
11767
|
-
const url = choice ? _nullishCoalesce(
|
|
11767
|
+
const url = choice ? _nullishCoalesce(_chunk2ZVNXD74cjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11768
11768
|
if (choice && url) {
|
|
11769
11769
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11770
11770
|
}
|
|
@@ -11777,11 +11777,11 @@ function resolveCardDestination({
|
|
|
11777
11777
|
|
|
11778
11778
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11779
11779
|
const label = entityLabel || "Item";
|
|
11780
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11781
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11782
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11783
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11784
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11780
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11781
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11782
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11783
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2ZVNXD74cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11784
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk2ZVNXD74cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11785
11785
|
label,
|
|
11786
11786
|
" deleted",
|
|
11787
11787
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11827,7 +11827,7 @@ function GitHubChatCard({
|
|
|
11827
11827
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11828
11828
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11829
11829
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11830
|
-
const dateText =
|
|
11830
|
+
const dateText = _chunkJHQNUWFMcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11831
11831
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11832
11832
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11833
11833
|
MingoInfoCard,
|
|
@@ -11836,7 +11836,7 @@ function GitHubChatCard({
|
|
|
11836
11836
|
description,
|
|
11837
11837
|
icon: githubKindIcon(kind),
|
|
11838
11838
|
status,
|
|
11839
|
-
anchorProps:
|
|
11839
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11840
11840
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11841
11841
|
menuAriaLabel: "Activity actions"
|
|
11842
11842
|
}
|
|
@@ -11983,7 +11983,7 @@ function HubspotTicketChatCard({
|
|
|
11983
11983
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11984
11984
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11985
11985
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11986
|
-
anchorProps:
|
|
11986
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11987
11987
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11988
11988
|
label: "Open Ticket Details",
|
|
11989
11989
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -12006,7 +12006,7 @@ function FaqChatCard({
|
|
|
12006
12006
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12007
12007
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
12008
12008
|
status: { label: statusLabel, variant: "grey" },
|
|
12009
|
-
anchorProps:
|
|
12009
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12010
12010
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12011
12011
|
menuAriaLabel: "FAQ actions"
|
|
12012
12012
|
}
|
|
@@ -12026,7 +12026,7 @@ function SlackChatCard({
|
|
|
12026
12026
|
title,
|
|
12027
12027
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12028
12028
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
12029
|
-
anchorProps:
|
|
12029
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12030
12030
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12031
12031
|
menuAriaLabel: "Message actions"
|
|
12032
12032
|
}
|
|
@@ -12044,7 +12044,7 @@ function GlyphChatCard({
|
|
|
12044
12044
|
title: chatRef.title,
|
|
12045
12045
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12046
12046
|
icon,
|
|
12047
|
-
anchorProps:
|
|
12047
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12048
12048
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12049
12049
|
menuAriaLabel: "Card actions"
|
|
12050
12050
|
}
|
|
@@ -12062,20 +12062,20 @@ function TrustCenterChatCard({
|
|
|
12062
12062
|
}) {
|
|
12063
12063
|
const raw = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
12064
12064
|
const frameworks = Array.isArray(raw) ? raw : [];
|
|
12065
|
-
const summary =
|
|
12065
|
+
const summary = _chunk2ZVNXD74cjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12066
12066
|
const leadFramework = frameworks[0];
|
|
12067
12067
|
const lead = leadFramework ? {
|
|
12068
|
-
label:
|
|
12069
|
-
color:
|
|
12068
|
+
label: _chunk2ZVNXD74cjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
12069
|
+
color: _chunk2ZVNXD74cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
12070
12070
|
} : void 0;
|
|
12071
12071
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12072
12072
|
MingoInfoCard,
|
|
12073
12073
|
{
|
|
12074
|
-
title:
|
|
12075
|
-
description: summary ||
|
|
12074
|
+
title: _chunk2ZVNXD74cjs.TRUST_CENTER_TITLE,
|
|
12075
|
+
description: summary || _chunk2ZVNXD74cjs.TRUST_CENTER_TAGLINE,
|
|
12076
12076
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
12077
12077
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
12078
|
-
anchorProps:
|
|
12078
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12079
12079
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12080
12080
|
label: "View trust center",
|
|
12081
12081
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12097,7 +12097,7 @@ function DataRoomDocChatCard({
|
|
|
12097
12097
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12098
12098
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12099
12099
|
status: { label: badgeText, variant: "grey" },
|
|
12100
|
-
anchorProps:
|
|
12100
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12101
12101
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12102
12102
|
menuAriaLabel: "Document actions"
|
|
12103
12103
|
}
|
|
@@ -12116,7 +12116,7 @@ function GenericFinancialChatCard({
|
|
|
12116
12116
|
title: chatRef.title,
|
|
12117
12117
|
description: subtitle,
|
|
12118
12118
|
icon,
|
|
12119
|
-
anchorProps:
|
|
12119
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12120
12120
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12121
12121
|
menuAriaLabel: "Document actions"
|
|
12122
12122
|
}
|
|
@@ -12202,7 +12202,7 @@ function CampaignChatCard({
|
|
|
12202
12202
|
}) {
|
|
12203
12203
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12204
12204
|
const meta = [
|
|
12205
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12205
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunk2ZVNXD74cjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12206
12206
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12207
12207
|
"Marketing campaign"
|
|
12208
12208
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12241,7 +12241,7 @@ function EntityMingoCard({
|
|
|
12241
12241
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12242
12242
|
icon: fallbackIcon,
|
|
12243
12243
|
status,
|
|
12244
|
-
anchorProps:
|
|
12244
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12245
12245
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12246
12246
|
menuAriaLabel
|
|
12247
12247
|
}
|
|
@@ -12253,7 +12253,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12253
12253
|
function statusPill(status) {
|
|
12254
12254
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12255
12255
|
if (!s) return void 0;
|
|
12256
|
-
const scheme =
|
|
12256
|
+
const scheme = _chunk2ZVNXD74cjs.getStatusColorScheme.call(void 0, s);
|
|
12257
12257
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12258
12258
|
return { label: s, variant };
|
|
12259
12259
|
}
|
|
@@ -12344,7 +12344,7 @@ function DesignDocChatCard({
|
|
|
12344
12344
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12345
12345
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12346
12346
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12347
|
-
anchorProps:
|
|
12347
|
+
anchorProps: _chunk2ZVNXD74cjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12348
12348
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12349
12349
|
menuAriaLabel: "Design doc actions"
|
|
12350
12350
|
}
|
|
@@ -12362,7 +12362,7 @@ function InvestorUpdateChatCard({
|
|
|
12362
12362
|
EntityMingoCard,
|
|
12363
12363
|
{
|
|
12364
12364
|
title,
|
|
12365
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12365
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunk2ZVNXD74cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_end]), () => ( null))) || void 0,
|
|
12366
12366
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12367
12367
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12368
12368
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12406,7 +12406,7 @@ function ProgramChatCard({
|
|
|
12406
12406
|
discuss
|
|
12407
12407
|
}) {
|
|
12408
12408
|
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 });
|
|
12409
|
-
const { line: meta } =
|
|
12409
|
+
const { line: meta } = _chunk2ZVNXD74cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk2ZVNXD74cjs.programMetaFormatters.call(void 0, _chunk2ZVNXD74cjs.PROGRAM_META_RENDERERS));
|
|
12410
12410
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12411
12411
|
EntityMingoCard,
|
|
12412
12412
|
{
|
|
@@ -12432,7 +12432,7 @@ function RoadmapChatCard({
|
|
|
12432
12432
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12433
12433
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12434
12434
|
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 });
|
|
12435
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12435
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12436
12436
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12437
12437
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12438
12438
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12498,11 +12498,11 @@ function refText(ref, key) {
|
|
|
12498
12498
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12499
12499
|
}
|
|
12500
12500
|
function VendorGlyph({ title, logoUrl }) {
|
|
12501
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12501
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12502
12502
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12503
12503
|
}
|
|
12504
12504
|
function SitePageGlyph({ iconName }) {
|
|
12505
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12505
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12506
12506
|
}
|
|
12507
12507
|
var GITHUB_CARD_CONFIGS = {
|
|
12508
12508
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12619,7 +12619,7 @@ function programRegistryEntries() {
|
|
|
12619
12619
|
label: cfg.label,
|
|
12620
12620
|
contentRefType: cfg.contentRefType,
|
|
12621
12621
|
bareInline: true,
|
|
12622
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12622
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12623
12623
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12624
12624
|
ProgramChatCard,
|
|
12625
12625
|
{
|
|
@@ -12660,7 +12660,7 @@ function roadmapRegistryEntries() {
|
|
|
12660
12660
|
bareInline: true,
|
|
12661
12661
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12662
12662
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12663
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12663
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12664
12664
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12665
12665
|
RoadmapChatCard,
|
|
12666
12666
|
{
|
|
@@ -12718,12 +12718,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12718
12718
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12719
12719
|
// single matched row. Destination is the public page unless the host
|
|
12720
12720
|
// re-homes the type (`composeContentUrl` override).
|
|
12721
|
-
[
|
|
12721
|
+
[_chunk2ZVNXD74cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12722
12722
|
label: "Trust center",
|
|
12723
12723
|
bareInline: true,
|
|
12724
|
-
contentRefType:
|
|
12724
|
+
contentRefType: _chunk2ZVNXD74cjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12725
12725
|
noComposedHref: true,
|
|
12726
|
-
fallbackHref: () =>
|
|
12726
|
+
fallbackHref: () => _chunk2ZVNXD74cjs.TRUST_CENTER_PAGE_PATH,
|
|
12727
12727
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12728
12728
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12729
12729
|
},
|
|
@@ -12749,7 +12749,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12749
12749
|
label: "Blog post",
|
|
12750
12750
|
contentRefType: "blog_post_existing",
|
|
12751
12751
|
bareInline: true,
|
|
12752
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12752
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.BlogCardSkeleton, { size: "sm" }),
|
|
12753
12753
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12754
12754
|
BlogChatCard,
|
|
12755
12755
|
{
|
|
@@ -12766,7 +12766,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12766
12766
|
label: "Case study",
|
|
12767
12767
|
contentRefType: "case_study",
|
|
12768
12768
|
bareInline: true,
|
|
12769
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12769
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12770
12770
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12771
12771
|
CaseStudyChatCard,
|
|
12772
12772
|
{
|
|
@@ -12791,7 +12791,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12791
12791
|
label: "Customer interview",
|
|
12792
12792
|
contentRefType: "customer_interview",
|
|
12793
12793
|
bareInline: true,
|
|
12794
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12794
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12795
12795
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12796
12796
|
CustomerInterviewChatCard,
|
|
12797
12797
|
{
|
|
@@ -12807,9 +12807,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12807
12807
|
label: "Product release",
|
|
12808
12808
|
contentRefType: "product_release",
|
|
12809
12809
|
bareInline: true,
|
|
12810
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12810
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12811
12811
|
render: (item, chatRef, opts) => {
|
|
12812
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12812
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunk2ZVNXD74cjs.defaultBuildProductReleaseCardProps));
|
|
12813
12813
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12814
12814
|
ProductReleaseChatCard,
|
|
12815
12815
|
{
|
|
@@ -12827,7 +12827,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12827
12827
|
label: "Investor update",
|
|
12828
12828
|
contentRefType: "investor_update",
|
|
12829
12829
|
bareInline: true,
|
|
12830
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12830
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12831
12831
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12832
12832
|
InvestorUpdateChatCard,
|
|
12833
12833
|
{
|
|
@@ -12845,7 +12845,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12845
12845
|
bareInline: true,
|
|
12846
12846
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12847
12847
|
displayAction: true,
|
|
12848
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12848
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2ZVNXD74cjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12849
12849
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12850
12850
|
OnboardingGuideChatCard,
|
|
12851
12851
|
{
|
|
@@ -12918,7 +12918,7 @@ function ChatCardLoader({
|
|
|
12918
12918
|
entry: fetchEntry,
|
|
12919
12919
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12920
12920
|
composeContentUrl: runtime.composeContentUrl,
|
|
12921
|
-
resolveHref: (href) =>
|
|
12921
|
+
resolveHref: (href) => _chunk2ZVNXD74cjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12922
12922
|
});
|
|
12923
12923
|
const hrefResolvedChatRef = {
|
|
12924
12924
|
...chatRef,
|
|
@@ -12929,12 +12929,12 @@ function ChatCardLoader({
|
|
|
12929
12929
|
};
|
|
12930
12930
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12931
12931
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12932
|
-
const isNewTab =
|
|
12932
|
+
const isNewTab = _chunk2ZVNXD74cjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12933
12933
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12934
12934
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12935
12935
|
const discuss = discussFn ? {
|
|
12936
12936
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12937
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12937
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12938
12938
|
run: () => discussFn(finalChatRef)
|
|
12939
12939
|
} : void 0;
|
|
12940
12940
|
const renderOpts = {
|
|
@@ -13043,12 +13043,12 @@ function makeBatchDedupKey(item) {
|
|
|
13043
13043
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
13044
13044
|
}
|
|
13045
13045
|
function getChatTypeMessageType(chatType) {
|
|
13046
|
-
return chatType ===
|
|
13046
|
+
return chatType === _chunkYRULLK7Ncjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
13047
13047
|
}
|
|
13048
13048
|
function useChunkCatchup({
|
|
13049
13049
|
dialogId,
|
|
13050
13050
|
onChunkReceived,
|
|
13051
|
-
chatTypes = [
|
|
13051
|
+
chatTypes = [_chunkYRULLK7Ncjs.CHAT_TYPE.CLIENT],
|
|
13052
13052
|
fetchChunks
|
|
13053
13053
|
}) {
|
|
13054
13054
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -14009,7 +14009,7 @@ function useChatAttachmentImageGallery() {
|
|
|
14009
14009
|
return () => root.removeEventListener("click", onClick);
|
|
14010
14010
|
}, [viewUrlPrefix]);
|
|
14011
14011
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14012
|
-
|
|
14012
|
+
_chunk2ZVNXD74cjs.ImageGalleryModal,
|
|
14013
14013
|
{
|
|
14014
14014
|
images: state.images,
|
|
14015
14015
|
isOpen: state.isOpen,
|
|
@@ -15187,7 +15187,7 @@ function nullableText(value) {
|
|
|
15187
15187
|
}
|
|
15188
15188
|
function httpsUrl(value) {
|
|
15189
15189
|
const candidate = text(value);
|
|
15190
|
-
if (!candidate ||
|
|
15190
|
+
if (!candidate || _chunk2ZVNXD74cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15191
15191
|
try {
|
|
15192
15192
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15193
15193
|
} catch (e19) {
|
|
@@ -15771,7 +15771,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15771
15771
|
const status = approvalStatuses[requestId] || "pending";
|
|
15772
15772
|
if (!displayInline(approvalType)) {
|
|
15773
15773
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15774
|
-
const summary = required ?
|
|
15774
|
+
const summary = required ? _chunkPSIKUDUVcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15775
15775
|
pendingEscalated.set(requestId, {
|
|
15776
15776
|
command: summary,
|
|
15777
15777
|
explanation: _optionalChain([required, 'optionalAccess', _521 => _521.toolExplanation]),
|
|
@@ -15804,7 +15804,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15804
15804
|
if (!call.requiresApproval) continue;
|
|
15805
15805
|
segments = accumulator.addApprovalRequest(
|
|
15806
15806
|
requestId,
|
|
15807
|
-
|
|
15807
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
15808
15808
|
call.toolExplanation,
|
|
15809
15809
|
approvalType,
|
|
15810
15810
|
status,
|
|
@@ -15883,7 +15883,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15883
15883
|
if (!call.requiresApproval) continue;
|
|
15884
15884
|
segments = accumulator.addApprovalRequest(
|
|
15885
15885
|
requestId,
|
|
15886
|
-
|
|
15886
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
15887
15887
|
call.toolExplanation,
|
|
15888
15888
|
escalatedData.approvalType,
|
|
15889
15889
|
status
|
|
@@ -18058,12 +18058,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18058
18058
|
|
|
18059
18059
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18060
18060
|
function getOwnerDisplayName(owner) {
|
|
18061
|
-
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) ===
|
|
18061
|
+
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18062
18062
|
const { firstName, lastName } = owner.user;
|
|
18063
18063
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18064
18064
|
if (name) return name;
|
|
18065
18065
|
}
|
|
18066
|
-
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) ===
|
|
18066
|
+
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18067
18067
|
}
|
|
18068
18068
|
function getOwnerAvatar(owner) {
|
|
18069
18069
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _601 => _601.user, 'optionalAccess', _602 => _602.image, 'optionalAccess', _603 => _603.imageUrl]), () => ( void 0));
|
|
@@ -18326,7 +18326,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18326
18326
|
if (!call.requiresApproval) continue;
|
|
18327
18327
|
accumulator.addApprovalRequest(
|
|
18328
18328
|
event.requestId,
|
|
18329
|
-
|
|
18329
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
18330
18330
|
call.toolExplanation,
|
|
18331
18331
|
approvalType,
|
|
18332
18332
|
status,
|
|
@@ -18387,7 +18387,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18387
18387
|
if (!call.requiresApproval) continue;
|
|
18388
18388
|
accumulator.addApprovalRequest(
|
|
18389
18389
|
requestId,
|
|
18390
|
-
|
|
18390
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
18391
18391
|
call.toolExplanation,
|
|
18392
18392
|
escalatedData.approvalType,
|
|
18393
18393
|
status
|
|
@@ -18495,10 +18495,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18495
18495
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18496
18496
|
return;
|
|
18497
18497
|
}
|
|
18498
|
-
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) ===
|
|
18498
|
+
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _618 => _618.owner, 'optionalAccess', _619 => _619.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN;
|
|
18499
18499
|
if (isUserMessage) {
|
|
18500
18500
|
flushAssistantMessage();
|
|
18501
|
-
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) ===
|
|
18501
|
+
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18502
18502
|
messageDataArray.forEach((data) => {
|
|
18503
18503
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18504
18504
|
const rawContext = data.contextItems;
|
|
@@ -18549,7 +18549,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18549
18549
|
});
|
|
18550
18550
|
const nextMsg = messages[index + 1];
|
|
18551
18551
|
const isLastMessage = index === messages.length - 1;
|
|
18552
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) ===
|
|
18552
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _626 => _626.owner, 'optionalAccess', _627 => _627.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN);
|
|
18553
18553
|
if (isLastMessage || nextIsFromUser) {
|
|
18554
18554
|
flushAssistantMessage();
|
|
18555
18555
|
}
|