@flamingo-stack/openframe-frontend-core 0.0.745 → 0.0.748
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-7PQOZLVP.cjs → chunk-46EIXJFC.cjs} +20 -20
- package/dist/{chunk-FNIFUCXU.cjs → chunk-4AZHFLOM.cjs} +5 -5
- package/dist/{chunk-YJRMCFX3.cjs → chunk-4MGZYY6U.cjs} +7 -7
- package/dist/{chunk-QES5NV4T.cjs → chunk-6XP6RNFD.cjs} +1040 -1010
- package/dist/{chunk-75BF7YJR.cjs → chunk-7Y3VMMJB.cjs} +13 -13
- package/dist/{chunk-GAGNKWOC.cjs → chunk-BBM2ICOY.cjs} +2 -2
- package/dist/{chunk-DJO7YMT3.cjs → chunk-BBTSJYTR.cjs} +232 -227
- package/dist/{chunk-4N7KGOBS.cjs → chunk-BEC43GHL.cjs} +3 -3
- package/dist/{chunk-NFINQ7IZ.cjs → chunk-D4XZL27V.cjs} +6 -6
- package/dist/{chunk-PM5ELQBL.cjs → chunk-EH3LOWGY.cjs} +32 -32
- package/dist/{chunk-7KHQHYXL.cjs → chunk-G2ELX3DG.cjs} +18 -18
- package/dist/{chunk-M4FKV2U5.cjs → chunk-GE4PCDNZ.cjs} +12 -12
- package/dist/{chunk-GEEKJ7SH.cjs → chunk-H34A2765.cjs} +74 -74
- package/dist/{chunk-URVIPSAJ.cjs → chunk-HNLI4OU5.cjs} +14 -14
- package/dist/{chunk-ABLUMGCI.cjs → chunk-JHQNUWFM.cjs} +83 -33
- package/dist/{chunk-3LX5AGZO.cjs → chunk-JNBOQ7F2.cjs} +24 -24
- package/dist/{chunk-RIGSZEXS.cjs → chunk-JOPFX3PJ.cjs} +90 -90
- package/dist/{chunk-UY6A6TEY.cjs → chunk-L2IQESTQ.cjs} +2 -2
- package/dist/{chunk-HVR7DPAY.cjs → chunk-OZUJYBQ2.cjs} +4 -4
- package/dist/{chunk-LJ46XYYP.cjs → chunk-P7KTAXXE.cjs} +41 -27
- package/dist/{chunk-OWGLRE74.cjs → chunk-PSIKUDUV.cjs} +8 -8
- package/dist/{chunk-4A6OF4HI.cjs → chunk-PSSGIZXZ.cjs} +44 -44
- package/dist/{chunk-YIOWV7LS.cjs → chunk-QPSQ5WLG.cjs} +2 -2
- package/dist/{chunk-GQ2TRIOV.cjs → chunk-TRXCQADV.cjs} +35 -35
- package/dist/{chunk-U2O5YQRP.cjs → chunk-U6XWGK53.cjs} +33 -33
- package/dist/{chunk-HMSCUL4R.cjs → chunk-UNR74CAC.cjs} +4 -4
- package/dist/{chunk-JGZEHBBD.cjs → chunk-YIRX6C7V.cjs} +10 -10
- package/dist/{chunk-6IQDQQ56.cjs → chunk-YKJQM2O6.cjs} +38 -38
- package/dist/{chunk-5TCIRWHL.cjs → chunk-YRULLK7N.cjs} +5 -5
- package/dist/{chunk-GOTEXQZN.cjs → chunk-ZNUSYMH7.cjs} +80 -80
- package/dist/{cloud-tenants-DECPWIYQ.cjs → cloud-tenants-V5727B7F.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +31 -29
- package/dist/components/case-studies/share-experience-section.d.ts.map +1 -1
- package/dist/components/case-studies/share-experience-section.js +6 -5
- 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 +121 -125
- package/dist/components/layout/page-heading.d.ts +16 -0
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +16 -2
- 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 +15 -13
- package/dist/components/ui/layout-hold.d.ts +4 -3
- package/dist/components/ui/layout-hold.d.ts.map +1 -1
- package/dist/components/ui/layout-hold.js +29 -9
- 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-WWMXIIHI.cjs} +14 -14
- package/dist/{embeddable-chat-3SKFBO2P.cjs → embeddable-chat-IJHCGQ24.cjs} +80 -80
- package/dist/index.cjs +22 -18
- package/dist/{knowledge-NH2CGY2C.cjs → knowledge-JZP4RIXB.cjs} +14 -14
- package/dist/{logs-KZYIDYQK.cjs → logs-WIRYFNUC.cjs} +21 -21
- package/dist/{policies-UAVTPIKM.cjs → policies-X7OJYA7G.cjs} +17 -17
- package/dist/{remote-session-N4PJB5FW.cjs → remote-session-IYT4LWJC.cjs} +7 -7
- package/dist/{scripts-FRPY43KU.cjs → scripts-GRMT2NGW.cjs} +20 -20
- package/dist/{software-update-AEJJNLX5.cjs → software-update-G3QOB7RT.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 +123 -72
- 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/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +12 -7
- 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 +7 -2
- package/src/components/case-studies/share-experience-section.tsx +9 -6
- package/src/components/layout/page-heading.tsx +52 -11
- package/src/components/ui/filter-checkbox-item.tsx +21 -5
- package/src/components/ui/layout-hold.tsx +38 -10
- 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/markdown-to-plain.ts +25 -16
- 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 _chunkP7KTAXXEcjs = require('./chunk-P7KTAXXE.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');
|
|
@@ -612,21 +612,26 @@ function formatMarkdownLink({ text: text2, url, rel }) {
|
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
// src/utils/markdown-to-plain.ts
|
|
615
|
+
var _hastutilraw = require('hast-util-raw');
|
|
615
616
|
var _hastutiltotext = require('hast-util-to-text');
|
|
616
|
-
var
|
|
617
|
-
var
|
|
618
|
-
var
|
|
619
|
-
var
|
|
620
|
-
var
|
|
617
|
+
var _mdastutilfrommarkdown = require('mdast-util-from-markdown');
|
|
618
|
+
var _mdastutilgfm = require('mdast-util-gfm');
|
|
619
|
+
var _mdastutilnewlinetobreak = require('mdast-util-newline-to-break');
|
|
620
|
+
var _mdastutiltohast = require('mdast-util-to-hast');
|
|
621
|
+
var _micromarkextensiongfm = require('micromark-extension-gfm');
|
|
621
622
|
var _unistutilvisit = require('unist-util-visit');
|
|
622
623
|
function stripInlineMarkdown(s) {
|
|
623
624
|
return s.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/\*([^*]+)\*/g, "$1").replace(/`([^`]+)`/g, "$1");
|
|
624
625
|
}
|
|
625
|
-
var toHtmlTree = _remark.remark.call(void 0, ).use(_remarkgfm2.default).use(_remarkbreaks2.default).use(_remarkrehype2.default, { allowDangerousHtml: true }).use(_rehyperaw2.default);
|
|
626
626
|
var NOT_PROSE = /* @__PURE__ */ new Set(["pre", "img"]);
|
|
627
627
|
var TABLE_SECTIONS = /* @__PURE__ */ new Set(["thead", "tbody", "tfoot"]);
|
|
628
|
+
function htmlTree(markdown) {
|
|
629
|
+
const mdast = _mdastutilfrommarkdown.fromMarkdown.call(void 0, markdown, { extensions: [_micromarkextensiongfm.gfm.call(void 0, )], mdastExtensions: [_mdastutilgfm.gfmFromMarkdown.call(void 0, )] });
|
|
630
|
+
_mdastutilnewlinetobreak.newlineToBreak.call(void 0, mdast);
|
|
631
|
+
return _hastutilraw.raw.call(void 0, _mdastutiltohast.toHast.call(void 0, mdast, { allowDangerousHtml: true }));
|
|
632
|
+
}
|
|
628
633
|
function proseTree(markdown) {
|
|
629
|
-
const tree =
|
|
634
|
+
const tree = htmlTree(markdown);
|
|
630
635
|
_unistutilvisit.visit.call(void 0, tree, "element", (node, index, parent) => {
|
|
631
636
|
if (NOT_PROSE.has(node.tagName) && parent && index !== void 0) {
|
|
632
637
|
parent.children.splice(index, 1);
|
|
@@ -1495,14 +1500,14 @@ function scrubProperties(properties, tag) {
|
|
|
1495
1500
|
let next;
|
|
1496
1501
|
for (const key of Object.keys(properties)) {
|
|
1497
1502
|
const lower = key.toLowerCase();
|
|
1498
|
-
const
|
|
1503
|
+
const raw2 = properties[key];
|
|
1499
1504
|
if (EVENT_HANDLER_ATTR_RE.test(key)) {
|
|
1500
1505
|
_nullishCoalesce(next, () => ( (next = { ...properties })));
|
|
1501
1506
|
delete next[key];
|
|
1502
1507
|
continue;
|
|
1503
1508
|
}
|
|
1504
1509
|
if (URL_ATTRS.has(lower)) {
|
|
1505
|
-
const v = Array.isArray(
|
|
1510
|
+
const v = Array.isArray(raw2) ? raw2[0] : raw2;
|
|
1506
1511
|
if (typeof v === "string") {
|
|
1507
1512
|
const unsafe = lower === "srcset" ? srcsetHasUnsafeCandidate(v) : JAVASCRIPT_URL_RE.test(v) || DATA_URL_RE.test(v);
|
|
1508
1513
|
if (unsafe) {
|
|
@@ -1517,8 +1522,8 @@ function scrubProperties(properties, tag) {
|
|
|
1517
1522
|
delete next[key];
|
|
1518
1523
|
continue;
|
|
1519
1524
|
}
|
|
1520
|
-
if (lower === "style" && typeof
|
|
1521
|
-
const cleaned =
|
|
1525
|
+
if (lower === "style" && typeof raw2 === "string" && POSITIONING_DECL_RE.test(raw2)) {
|
|
1526
|
+
const cleaned = raw2.split(";").filter((decl) => !POSITIONING_DECL_RE.test(decl)).join(";").trim();
|
|
1522
1527
|
_nullishCoalesce(next, () => ( (next = { ...properties })));
|
|
1523
1528
|
if (cleaned === "" || cleaned === ";") delete next[key];
|
|
1524
1529
|
else next[key] = cleaned;
|
|
@@ -2788,10 +2793,10 @@ function resolveTextSizeConfig(config) {
|
|
|
2788
2793
|
// src/components/ui/markdown/engine.tsx
|
|
2789
2794
|
|
|
2790
2795
|
|
|
2796
|
+
var _rehyperaw = require('rehype-raw'); var _rehyperaw2 = _interopRequireDefault(_rehyperaw);
|
|
2791
2797
|
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2798
|
+
var _remarkbreaks = require('remark-breaks'); var _remarkbreaks2 = _interopRequireDefault(_remarkbreaks);
|
|
2799
|
+
var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault(_remarkgfm);
|
|
2795
2800
|
|
|
2796
2801
|
// src/components/ui/markdown/base-components.tsx
|
|
2797
2802
|
|
|
@@ -3244,7 +3249,7 @@ function chatListensForAskAiOpens() {
|
|
|
3244
3249
|
|
|
3245
3250
|
// src/components/chat/chat-appearance-context.tsx
|
|
3246
3251
|
|
|
3247
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3252
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkYRULLK7Ncjs.CHAT_APPEARANCE.CLASSIC);
|
|
3248
3253
|
function useChatAppearance() {
|
|
3249
3254
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3250
3255
|
}
|
|
@@ -3283,7 +3288,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3283
3288
|
...props
|
|
3284
3289
|
}, ref) => {
|
|
3285
3290
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3286
|
-
const isV2 = useChatAppearance() ===
|
|
3291
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
3287
3292
|
const handleApprove = async () => {
|
|
3288
3293
|
setIsProcessing(true);
|
|
3289
3294
|
try {
|
|
@@ -3306,7 +3311,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3306
3311
|
{
|
|
3307
3312
|
ref,
|
|
3308
3313
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3309
|
-
|
|
3314
|
+
_chunkPSIKUDUVcjs.CHAT_BLOCK_CLASS,
|
|
3310
3315
|
// v2: the thread owns the space below the card.
|
|
3311
3316
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3312
3317
|
className
|
|
@@ -3314,7 +3319,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3314
3319
|
...props,
|
|
3315
3320
|
children: [
|
|
3316
3321
|
/* @__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,
|
|
3322
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalWaitingLine, {}),
|
|
3318
3323
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3319
3324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3320
3325
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3346,14 +3351,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3346
3351
|
children: "Reject"
|
|
3347
3352
|
}
|
|
3348
3353
|
)
|
|
3349
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3354
|
+
] }) : /* @__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
3355
|
]
|
|
3351
3356
|
}
|
|
3352
3357
|
);
|
|
3353
3358
|
}
|
|
3354
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3359
|
+
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
3360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3356
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3361
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalWaitingLine, {}),
|
|
3357
3362
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3358
3363
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3359
3364
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3385,7 +3390,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3385
3390
|
children: "Reject"
|
|
3386
3391
|
}
|
|
3387
3392
|
)
|
|
3388
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3393
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3389
3394
|
] });
|
|
3390
3395
|
}
|
|
3391
3396
|
);
|
|
@@ -3415,7 +3420,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3415
3420
|
|
|
3416
3421
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3417
3422
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3418
|
-
const isV2 = useChatAppearance() ===
|
|
3423
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
3419
3424
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3420
3425
|
"div",
|
|
3421
3426
|
{
|
|
@@ -3431,7 +3436,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3431
3436
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3432
3437
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3433
3438
|
/* @__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:
|
|
3439
|
+
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
3440
|
] }),
|
|
3436
3441
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3437
3442
|
] })
|
|
@@ -3546,7 +3551,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3546
3551
|
AiAssistantInfo,
|
|
3547
3552
|
{
|
|
3548
3553
|
ref,
|
|
3549
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3554
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3550
3555
|
title: "Technician Joined",
|
|
3551
3556
|
body: `You're now chatting with ${joined}.`,
|
|
3552
3557
|
timestamp,
|
|
@@ -3630,7 +3635,7 @@ var thoughtMdClasses = [
|
|
|
3630
3635
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3631
3636
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3632
3637
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3633
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3638
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkPSIKUDUVcjs.useCollapsible.call(void 0, {
|
|
3634
3639
|
expanded,
|
|
3635
3640
|
collapsedHeight: 19,
|
|
3636
3641
|
disableTransition: isStreaming
|
|
@@ -3645,7 +3650,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3645
3650
|
setExpanded(!expanded);
|
|
3646
3651
|
}
|
|
3647
3652
|
};
|
|
3648
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3653
|
+
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
3654
|
"div",
|
|
3650
3655
|
{
|
|
3651
3656
|
role: "button",
|
|
@@ -3663,7 +3668,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3663
3668
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3664
3669
|
] }),
|
|
3665
3670
|
/* @__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,
|
|
3671
|
+
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
3672
|
]
|
|
3668
3673
|
}
|
|
3669
3674
|
) });
|
|
@@ -3784,9 +3789,9 @@ var iconTint = {
|
|
|
3784
3789
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3785
3790
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3786
3791
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3787
|
-
const { innerRef, containerStyle } =
|
|
3792
|
+
const { innerRef, containerStyle } = _chunkPSIKUDUVcjs.useCollapsible.call(void 0, { expanded });
|
|
3788
3793
|
const hasDetails = Boolean(details);
|
|
3789
|
-
const isV2 = useChatAppearance() ===
|
|
3794
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
3790
3795
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3791
3796
|
"div",
|
|
3792
3797
|
{
|
|
@@ -3823,7 +3828,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
3823
3828
|
children: title
|
|
3824
3829
|
}
|
|
3825
3830
|
),
|
|
3826
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3831
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ExpandChevron, { expanded })
|
|
3827
3832
|
]
|
|
3828
3833
|
}
|
|
3829
3834
|
),
|
|
@@ -3867,7 +3872,7 @@ function MspOrganizationCard({
|
|
|
3867
3872
|
className
|
|
3868
3873
|
),
|
|
3869
3874
|
children: [
|
|
3870
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3875
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
3871
3876
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3872
3877
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
3873
3878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -3888,7 +3893,7 @@ function MspOrganizationCard({
|
|
|
3888
3893
|
className
|
|
3889
3894
|
),
|
|
3890
3895
|
children: [
|
|
3891
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3896
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
3892
3897
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3893
3898
|
/* @__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
3899
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4022,7 +4027,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4022
4027
|
] })
|
|
4023
4028
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4024
4029
|
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
|
-
|
|
4030
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
4026
4031
|
{
|
|
4027
4032
|
src: userAvatar,
|
|
4028
4033
|
alt: userName,
|
|
@@ -4098,9 +4103,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4098
4103
|
)
|
|
4099
4104
|
] }),
|
|
4100
4105
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4101
|
-
|
|
4106
|
+
_chunkPSIKUDUVcjs.TicketStatusTag,
|
|
4102
4107
|
{
|
|
4103
|
-
...
|
|
4108
|
+
..._chunkPSIKUDUVcjs.resolveStatusTagProps.call(void 0, {
|
|
4104
4109
|
status: ticketInfo.status,
|
|
4105
4110
|
statusKind: ticketInfo.statusKind,
|
|
4106
4111
|
statusName: ticketInfo.statusName,
|
|
@@ -4657,11 +4662,11 @@ var remarkMentionChips = () => {
|
|
|
4657
4662
|
// src/components/chat/tool-execution-display.tsx
|
|
4658
4663
|
|
|
4659
4664
|
|
|
4660
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4665
|
+
var COMMAND_BODY_KEYS = new Set(_chunkPSIKUDUVcjs.COMMAND_BODY_ARG_KEYS);
|
|
4661
4666
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4662
4667
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4663
4668
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4664
|
-
const { innerRef, containerStyle } =
|
|
4669
|
+
const { innerRef, containerStyle } = _chunkPSIKUDUVcjs.useCollapsible.call(void 0, { expanded });
|
|
4665
4670
|
const isClient = assistantType === "fae";
|
|
4666
4671
|
const isClientView = variant === "client";
|
|
4667
4672
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4704,7 +4709,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4704
4709
|
}
|
|
4705
4710
|
),
|
|
4706
4711
|
/* @__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,
|
|
4712
|
+
!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
4713
|
] });
|
|
4709
4714
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4710
4715
|
"div",
|
|
@@ -4714,7 +4719,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4714
4719
|
// The command running block keeps its bordered box in both chats
|
|
4715
4720
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4716
4721
|
"flex w-full flex-col overflow-hidden",
|
|
4717
|
-
|
|
4722
|
+
_chunkPSIKUDUVcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4718
4723
|
className
|
|
4719
4724
|
),
|
|
4720
4725
|
...props,
|
|
@@ -4725,7 +4730,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4725
4730
|
// It reads as a card: what was done, then one status line under it.
|
|
4726
4731
|
/* @__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
4732
|
/* @__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,
|
|
4733
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4729
4734
|
] })
|
|
4730
4735
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4731
4736
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4738,9 +4743,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4738
4743
|
}
|
|
4739
4744
|
) : /* @__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
4745
|
/* @__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,
|
|
4746
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.ArgRow, { argKey: key, value }, key)),
|
|
4742
4747
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4743
|
-
|
|
4748
|
+
_chunkPSIKUDUVcjs.ResultBlock,
|
|
4744
4749
|
{
|
|
4745
4750
|
result: message.result,
|
|
4746
4751
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4794,8 +4799,8 @@ var remarkStripCitations = () => {
|
|
|
4794
4799
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
4795
4800
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
4796
4801
|
function formatMessageTimestamp(timestamp) {
|
|
4797
|
-
const time =
|
|
4798
|
-
return
|
|
4802
|
+
const time = _chunkYRULLK7Ncjs.formatTime.call(void 0, timestamp);
|
|
4803
|
+
return _chunkPSIKUDUVcjs.isToday.call(void 0, timestamp) ? time : `${_chunkYRULLK7Ncjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
4799
4804
|
}
|
|
4800
4805
|
function normalizeContent(content) {
|
|
4801
4806
|
if (typeof content === "string") {
|
|
@@ -4849,7 +4854,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4849
4854
|
const isError = role === "error";
|
|
4850
4855
|
const inheritedAppearance = useChatAppearance();
|
|
4851
4856
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
4852
|
-
const isV2 = appearance ===
|
|
4857
|
+
const isV2 = appearance === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
4853
4858
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
4854
4859
|
const hasMarkerSupport = !!renderEntityCard;
|
|
4855
4860
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -5033,9 +5038,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5033
5038
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5034
5039
|
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
5040
|
// 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,
|
|
5041
|
+
/* @__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
5042
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5038
|
-
|
|
5043
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
5039
5044
|
{
|
|
5040
5045
|
src: avatar || void 0,
|
|
5041
5046
|
alt: displayName,
|
|
@@ -5114,7 +5119,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5114
5119
|
);
|
|
5115
5120
|
} else if (segment.type === "approval_batch") {
|
|
5116
5121
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5117
|
-
|
|
5122
|
+
_chunkPSIKUDUVcjs.ApprovalBatchMessage,
|
|
5118
5123
|
{
|
|
5119
5124
|
data: segment.data,
|
|
5120
5125
|
status: segment.status,
|
|
@@ -5373,7 +5378,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5373
5378
|
contentClassName,
|
|
5374
5379
|
assistantType,
|
|
5375
5380
|
approvalVariant,
|
|
5376
|
-
appearance =
|
|
5381
|
+
appearance = _chunkYRULLK7Ncjs.CHAT_APPEARANCE.CLASSIC,
|
|
5377
5382
|
assistantIcon,
|
|
5378
5383
|
pendingApprovals,
|
|
5379
5384
|
hasNextPage,
|
|
@@ -5892,7 +5897,7 @@ function renderQuickActionIcon(icon) {
|
|
|
5892
5897
|
if (!spec.name && !spec.url) return void 0;
|
|
5893
5898
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
5894
5899
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
5895
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5900
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
5896
5901
|
}
|
|
5897
5902
|
function composeChipLabel(label, lozenge) {
|
|
5898
5903
|
if (!lozenge) return label;
|
|
@@ -5929,7 +5934,7 @@ function QuickActionChipSkeleton({
|
|
|
5929
5934
|
}) {
|
|
5930
5935
|
const question = variant === "question";
|
|
5931
5936
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5932
|
-
|
|
5937
|
+
_chunkJHQNUWFMcjs.Tag,
|
|
5933
5938
|
{
|
|
5934
5939
|
variant: "outline",
|
|
5935
5940
|
size: question ? "sentence" : size,
|
|
@@ -5965,7 +5970,7 @@ function QuickActionChipButton({
|
|
|
5965
5970
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
5966
5971
|
const tagSize = question ? "sentence" : size;
|
|
5967
5972
|
if (!interactive) {
|
|
5968
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5973
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHQNUWFMcjs.Tag, { variant: tagVariant, size: tagSize, icon: resolvedIcon, label: resolvedLabel, className });
|
|
5969
5974
|
}
|
|
5970
5975
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5971
5976
|
"button",
|
|
@@ -5984,7 +5989,7 @@ function QuickActionChipButton({
|
|
|
5984
5989
|
className
|
|
5985
5990
|
),
|
|
5986
5991
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5987
|
-
|
|
5992
|
+
_chunkJHQNUWFMcjs.Tag,
|
|
5988
5993
|
{
|
|
5989
5994
|
variant: tagVariant,
|
|
5990
5995
|
size: tagSize,
|
|
@@ -6561,7 +6566,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6561
6566
|
|
|
6562
6567
|
[Attached: ${safeName}](${url})`;
|
|
6563
6568
|
}
|
|
6564
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6569
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkP7KTAXXEcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6565
6570
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6566
6571
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6567
6572
|
"gm"
|
|
@@ -6596,11 +6601,11 @@ function buildAutoContinuationDirective(toolName, opts = {}) {
|
|
|
6596
6601
|
}
|
|
6597
6602
|
|
|
6598
6603
|
// src/components/chat/utils/flatten-assistant-content.ts
|
|
6599
|
-
function flattenAssistantContent(
|
|
6600
|
-
if (typeof
|
|
6601
|
-
if (!Array.isArray(
|
|
6604
|
+
function flattenAssistantContent(raw2) {
|
|
6605
|
+
if (typeof raw2 === "string") return raw2;
|
|
6606
|
+
if (!Array.isArray(raw2)) return "";
|
|
6602
6607
|
const parts = [];
|
|
6603
|
-
for (const seg of
|
|
6608
|
+
for (const seg of raw2) {
|
|
6604
6609
|
if (seg && typeof seg === "object" && seg.type === "text") {
|
|
6605
6610
|
const t = seg.text;
|
|
6606
6611
|
if (typeof t === "string" && t.length > 0) parts.push(t);
|
|
@@ -6611,8 +6616,8 @@ function flattenAssistantContent(raw) {
|
|
|
6611
6616
|
|
|
6612
6617
|
// src/components/chat/utils/scroll-anchor.ts
|
|
6613
6618
|
var SCROLL_ANCHOR_WIRE_KEY = "scrollAnchor";
|
|
6614
|
-
function parseScrollAnchor(
|
|
6615
|
-
return
|
|
6619
|
+
function parseScrollAnchor(raw2) {
|
|
6620
|
+
return raw2 === SCROLL_ANCHOR.TOP || raw2 === SCROLL_ANCHOR.BOTTOM ? raw2 : null;
|
|
6616
6621
|
}
|
|
6617
6622
|
|
|
6618
6623
|
// src/components/chat/utils/slash-dispatch-utils.ts
|
|
@@ -6621,10 +6626,10 @@ var WIRE_ID_REGEX = /^[A-Za-z0-9._:/-]+$/;
|
|
|
6621
6626
|
var WIRE_TABLE_ID_MAX = 60;
|
|
6622
6627
|
var WIRE_ID_MAX = 200;
|
|
6623
6628
|
var WIRE_QUERY_MAX = 2e3;
|
|
6624
|
-
function parseWireCommandOverride(
|
|
6625
|
-
if (!
|
|
6629
|
+
function parseWireCommandOverride(raw2) {
|
|
6630
|
+
if (!raw2 || typeof raw2 !== "object") return null;
|
|
6626
6631
|
const out = {};
|
|
6627
|
-
const r =
|
|
6632
|
+
const r = raw2;
|
|
6628
6633
|
if (r.entityIdFilter && typeof r.entityIdFilter === "object") {
|
|
6629
6634
|
const f = r.entityIdFilter;
|
|
6630
6635
|
if (typeof f.tableId === "string" && f.tableId.length > 0 && f.tableId.length <= WIRE_TABLE_ID_MAX && WIRE_TABLE_ID_REGEX.test(f.tableId) && typeof f.id === "string" && f.id.length > 0 && f.id.length <= WIRE_ID_MAX && WIRE_ID_REGEX.test(f.id)) {
|
|
@@ -7509,7 +7514,7 @@ function MingoChatHistoryRow({
|
|
|
7509
7514
|
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
7515
|
),
|
|
7511
7516
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7512
|
-
|
|
7517
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
7513
7518
|
{
|
|
7514
7519
|
variant: "round",
|
|
7515
7520
|
sizePx: 24,
|
|
@@ -7713,7 +7718,7 @@ function MingoWelcome({
|
|
|
7713
7718
|
onScroll: updateScrollFade,
|
|
7714
7719
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7715
7720
|
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,
|
|
7721
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7717
7722
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7718
7723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7719
7724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7835,8 +7840,8 @@ function GuideWelcome({
|
|
|
7835
7840
|
icon && (icon.name || icon.url) ? (
|
|
7836
7841
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7837
7842
|
// match the default Mingo mark (48px).
|
|
7838
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7839
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7843
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7844
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7840
7845
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7841
7846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7842
7847
|
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 +8043,9 @@ function MingoArchiveList({
|
|
|
8038
8043
|
title: dialog.title || "Untitled Chat",
|
|
8039
8044
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _176 => _176(dialog.id)]),
|
|
8040
8045
|
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:
|
|
8046
|
+
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
8047
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8043
|
-
|
|
8048
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8044
8049
|
{
|
|
8045
8050
|
variant: "round",
|
|
8046
8051
|
sizePx: 24,
|
|
@@ -8122,7 +8127,7 @@ function MingoChatHeader({
|
|
|
8122
8127
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8123
8128
|
] }),
|
|
8124
8129
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8125
|
-
|
|
8130
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8126
8131
|
{
|
|
8127
8132
|
variant: "round",
|
|
8128
8133
|
sizePx: 32,
|
|
@@ -8398,7 +8403,7 @@ function MingoChatRail({
|
|
|
8398
8403
|
"data-accent": "mingo",
|
|
8399
8404
|
"aria-label": "Mingo chats",
|
|
8400
8405
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8401
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPSIKUDUVcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8402
8407
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8403
8408
|
_chunk2QMBXGMQcjs.Button,
|
|
8404
8409
|
{
|
|
@@ -8678,8 +8683,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8678
8683
|
const save = () => {
|
|
8679
8684
|
if (canSave) onSave(name.trim());
|
|
8680
8685
|
};
|
|
8681
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8682
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8686
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8683
8688
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8684
8689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8685
8690
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8696,27 +8701,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8696
8701
|
}
|
|
8697
8702
|
)
|
|
8698
8703
|
] }),
|
|
8699
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8704
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.ModalFooter, { children: [
|
|
8700
8705
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8701
8706
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8702
8707
|
] })
|
|
8703
8708
|
] });
|
|
8704
8709
|
}
|
|
8705
8710
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8706
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8707
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8711
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8712
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8708
8713
|
/* @__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,
|
|
8714
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.ModalFooter, { children: [
|
|
8710
8715
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8711
8716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8712
8717
|
] })
|
|
8713
8718
|
] });
|
|
8714
8719
|
}
|
|
8715
8720
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8716
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8717
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8721
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8722
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRULLK7Ncjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8718
8723
|
/* @__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,
|
|
8724
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYRULLK7Ncjs.ModalFooter, { children: [
|
|
8720
8725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8721
8726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8722
8727
|
] })
|
|
@@ -8889,7 +8894,7 @@ function ChatPanelHeader({
|
|
|
8889
8894
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8890
8895
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8891
8896
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8892
|
-
|
|
8897
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8893
8898
|
{
|
|
8894
8899
|
variant: "round",
|
|
8895
8900
|
sizePx: 32,
|
|
@@ -9047,8 +9052,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9047
9052
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9048
9053
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9049
9054
|
status === "sniffing" && "Checking\u2026",
|
|
9050
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9051
|
-
status === "ready" &&
|
|
9055
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkJHQNUWFMcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9056
|
+
status === "ready" && _chunkJHQNUWFMcjs.formatFileSize.call(void 0, file.size),
|
|
9052
9057
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9053
9058
|
] })
|
|
9054
9059
|
] }),
|
|
@@ -9296,7 +9301,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9296
9301
|
}, ref) => {
|
|
9297
9302
|
const icon = getProviderIcon(provider);
|
|
9298
9303
|
const name = displayName || modelName;
|
|
9299
|
-
const isV2 = useChatAppearance() ===
|
|
9304
|
+
const isV2 = useChatAppearance() === _chunkYRULLK7Ncjs.CHAT_APPEARANCE.V2;
|
|
9300
9305
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9301
9306
|
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
9307
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9425,7 +9430,7 @@ function ChatComposer({
|
|
|
9425
9430
|
}, [entityTypes]);
|
|
9426
9431
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9427
9432
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9428
|
-
|
|
9433
|
+
_chunkYRULLK7Ncjs.ChatInput,
|
|
9429
9434
|
{
|
|
9430
9435
|
ref: inputRef,
|
|
9431
9436
|
onSend,
|
|
@@ -9592,16 +9597,16 @@ function useChatPanel() {
|
|
|
9592
9597
|
|
|
9593
9598
|
// src/components/chat/utils/execute-navigation.ts
|
|
9594
9599
|
function isForeignOriginHref(href) {
|
|
9595
|
-
return /^https?:\/\//i.test(href) && !
|
|
9600
|
+
return /^https?:\/\//i.test(href) && !_chunkP7KTAXXEcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9596
9601
|
}
|
|
9597
9602
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9598
|
-
const isNewTab = runtime ?
|
|
9603
|
+
const isNewTab = runtime ? _chunkP7KTAXXEcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9599
9604
|
if (isNewTab) {
|
|
9600
9605
|
if (_optionalChain([runtime, 'optionalAccess', _202 => _202.navigation, 'access', _203 => _203.openExternal])) runtime.navigation.openExternal(href);
|
|
9601
|
-
else window.open(href, "_blank",
|
|
9606
|
+
else window.open(href, "_blank", _chunkP7KTAXXEcjs.NEW_TAB_FEATURES);
|
|
9602
9607
|
return;
|
|
9603
9608
|
}
|
|
9604
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9609
|
+
const target = isForeignOriginHref(href) ? href : _chunkP7KTAXXEcjs.stripSameOriginToPath.call(void 0, href);
|
|
9605
9610
|
if (target.includes("#") && _chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9606
9611
|
return;
|
|
9607
9612
|
}
|
|
@@ -9652,8 +9657,8 @@ function useNavLinkViaRuntime({
|
|
|
9652
9657
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9653
9658
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9654
9659
|
const panel = useChatPanel();
|
|
9655
|
-
const resolvedHref =
|
|
9656
|
-
const isNewTab =
|
|
9660
|
+
const resolvedHref = _chunkP7KTAXXEcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9661
|
+
const isNewTab = _chunkP7KTAXXEcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9657
9662
|
const onClick = (e) => {
|
|
9658
9663
|
_optionalChain([onClickProp, 'optionalCall', _207 => _207(e)]);
|
|
9659
9664
|
if (e.defaultPrevented) return;
|
|
@@ -9667,7 +9672,7 @@ function useNavLinkViaRuntime({
|
|
|
9667
9672
|
});
|
|
9668
9673
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _208 => _208.closeChat])) panel.closeChat();
|
|
9669
9674
|
};
|
|
9670
|
-
const attrs =
|
|
9675
|
+
const attrs = _chunkP7KTAXXEcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9671
9676
|
return {
|
|
9672
9677
|
href: resolvedHref,
|
|
9673
9678
|
...attrs,
|
|
@@ -9812,9 +9817,9 @@ function UserDisplay({
|
|
|
9812
9817
|
}) {
|
|
9813
9818
|
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
9819
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9815
|
-
|
|
9820
|
+
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
9816
9821
|
{
|
|
9817
|
-
src: avatarUrl ?
|
|
9822
|
+
src: avatarUrl ? _chunkP7KTAXXEcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9818
9823
|
fallback: name,
|
|
9819
9824
|
alt: name,
|
|
9820
9825
|
sizePx: size,
|
|
@@ -10264,7 +10269,7 @@ function CardsStrip(props) {
|
|
|
10264
10269
|
},
|
|
10265
10270
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10266
10271
|
children: [
|
|
10267
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10272
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkP7KTAXXEcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkP7KTAXXEcjs.accentSentenceMarks.call(void 0, title) }),
|
|
10268
10273
|
headerSlot,
|
|
10269
10274
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10270
10275
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10416,7 +10421,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10416
10421
|
|
|
10417
10422
|
function VideoBitesStrip({
|
|
10418
10423
|
bites,
|
|
10419
|
-
title =
|
|
10424
|
+
title = _chunkP7KTAXXEcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10420
10425
|
showTitle = true,
|
|
10421
10426
|
filterPublished = true,
|
|
10422
10427
|
profile = null,
|
|
@@ -10429,7 +10434,7 @@ function VideoBitesStrip({
|
|
|
10429
10434
|
cardHeightMobile = 300,
|
|
10430
10435
|
showChevrons = true,
|
|
10431
10436
|
onBiteNavigate,
|
|
10432
|
-
sortComparator =
|
|
10437
|
+
sortComparator = _chunkP7KTAXXEcjs.sortBitesByCreatedAtDesc,
|
|
10433
10438
|
className
|
|
10434
10439
|
}) {
|
|
10435
10440
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -10595,7 +10600,7 @@ function VideoBiteCard({
|
|
|
10595
10600
|
},
|
|
10596
10601
|
children: [
|
|
10597
10602
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10598
|
-
|
|
10603
|
+
_chunkP7KTAXXEcjs.VideoHoverPreviewSurface,
|
|
10599
10604
|
{
|
|
10600
10605
|
url: bite.url,
|
|
10601
10606
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10666,7 +10671,7 @@ function EntityVideoSection({
|
|
|
10666
10671
|
title = "Video",
|
|
10667
10672
|
videoSummary,
|
|
10668
10673
|
videoBites,
|
|
10669
|
-
bitesTitle =
|
|
10674
|
+
bitesTitle = _chunkP7KTAXXEcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10670
10675
|
filterPublishedBites = true,
|
|
10671
10676
|
bitesProfile = null,
|
|
10672
10677
|
bitesHref,
|
|
@@ -10712,7 +10717,7 @@ function EntityVideoSection({
|
|
|
10712
10717
|
)
|
|
10713
10718
|
] }),
|
|
10714
10719
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10715
|
-
|
|
10720
|
+
_chunkP7KTAXXEcjs.Video,
|
|
10716
10721
|
{
|
|
10717
10722
|
kind: fullVideoKind,
|
|
10718
10723
|
url: fullVideoUrl,
|
|
@@ -10724,7 +10729,7 @@ function EntityVideoSection({
|
|
|
10724
10729
|
}
|
|
10725
10730
|
) }),
|
|
10726
10731
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10727
|
-
|
|
10732
|
+
_chunkP7KTAXXEcjs.Video,
|
|
10728
10733
|
{
|
|
10729
10734
|
url: highlightVideoUrl,
|
|
10730
10735
|
poster: highlightVideoThumbnail,
|
|
@@ -10733,7 +10738,7 @@ function EntityVideoSection({
|
|
|
10733
10738
|
}
|
|
10734
10739
|
) })
|
|
10735
10740
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10736
|
-
|
|
10741
|
+
_chunkP7KTAXXEcjs.Video,
|
|
10737
10742
|
{
|
|
10738
10743
|
kind: fullVideoKind,
|
|
10739
10744
|
url: fullVideoUrl,
|
|
@@ -10744,7 +10749,7 @@ function EntityVideoSection({
|
|
|
10744
10749
|
priority
|
|
10745
10750
|
}
|
|
10746
10751
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10747
|
-
|
|
10752
|
+
_chunkP7KTAXXEcjs.Video,
|
|
10748
10753
|
{
|
|
10749
10754
|
url: highlightVideoUrl,
|
|
10750
10755
|
poster: highlightVideoThumbnail,
|
|
@@ -10754,7 +10759,7 @@ function EntityVideoSection({
|
|
|
10754
10759
|
}
|
|
10755
10760
|
) : null),
|
|
10756
10761
|
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: `${
|
|
10762
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkP7KTAXXEcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10758
10763
|
/* @__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
10764
|
] }),
|
|
10760
10765
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11014,14 +11019,14 @@ function designDocPeople(doc) {
|
|
|
11014
11019
|
return people;
|
|
11015
11020
|
}
|
|
11016
11021
|
function designDocMetaLine(doc) {
|
|
11017
|
-
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
11022
|
+
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkP7KTAXXEcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
11018
11023
|
}
|
|
11019
11024
|
function DesignDocCardSkeleton() {
|
|
11020
11025
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11021
11026
|
"div",
|
|
11022
11027
|
{
|
|
11023
11028
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11024
|
-
|
|
11029
|
+
_chunkP7KTAXXEcjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
11025
11030
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
11026
11031
|
),
|
|
11027
11032
|
role: "status",
|
|
@@ -11051,7 +11056,7 @@ function DesignDocCardSkeleton() {
|
|
|
11051
11056
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
11052
11057
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
11053
11058
|
const people = designDocPeople(doc);
|
|
11054
|
-
const link =
|
|
11059
|
+
const link = _chunkP7KTAXXEcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
11055
11060
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11056
11061
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
11057
11062
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -11059,7 +11064,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11059
11064
|
/* @__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
11065
|
] }),
|
|
11061
11066
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11062
|
-
|
|
11067
|
+
_chunkP7KTAXXEcjs.StatusBadge,
|
|
11063
11068
|
{
|
|
11064
11069
|
text: readiness.label,
|
|
11065
11070
|
colorScheme: readiness.scheme,
|
|
@@ -11069,16 +11074,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11069
11074
|
}
|
|
11070
11075
|
)
|
|
11071
11076
|
] }),
|
|
11072
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11077
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
11073
11078
|
/* @__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
11079
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11075
11080
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
11076
11081
|
/* @__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,
|
|
11082
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL2IQESTQcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
11078
11083
|
] })
|
|
11079
11084
|
] });
|
|
11080
11085
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11081
|
-
|
|
11086
|
+
_chunkP7KTAXXEcjs.CONTENT_CARD_FRAME_CLASS,
|
|
11082
11087
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
11083
11088
|
className
|
|
11084
11089
|
);
|
|
@@ -11188,7 +11193,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11188
11193
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11189
11194
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11190
11195
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11191
|
-
const dateText =
|
|
11196
|
+
const dateText = _chunkJHQNUWFMcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11192
11197
|
const idLabel = formatActivityId(item.id, kind);
|
|
11193
11198
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11194
11199
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11222,26 +11227,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11222
11227
|
metaParts.push(
|
|
11223
11228
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11224
11229
|
);
|
|
11225
|
-
const href =
|
|
11230
|
+
const href = _chunkP7KTAXXEcjs.safeHref.call(void 0, item.url);
|
|
11226
11231
|
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: `${
|
|
11232
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11233
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11234
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11230
11235
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11236
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11232
11237
|
] }),
|
|
11233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11238
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11234
11239
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11235
11240
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11236
11241
|
] }, i)) }) }),
|
|
11237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11242
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_SUMMARY, children: _chunkP7KTAXXEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11238
11243
|
] }),
|
|
11239
11244
|
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
11245
|
] });
|
|
11241
11246
|
if (anchorProps) {
|
|
11242
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11247
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11243
11248
|
}
|
|
11244
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11249
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11245
11250
|
}
|
|
11246
11251
|
function GitHubActivityCardSkeleton({
|
|
11247
11252
|
variant = "compact",
|
|
@@ -11258,12 +11263,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11258
11263
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
11259
11264
|
] });
|
|
11260
11265
|
}
|
|
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:
|
|
11266
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11267
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11268
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11269
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
11270
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11271
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_SUMMARY, children: _chunkP7KTAXXEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11267
11272
|
] }),
|
|
11268
11273
|
/* @__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
11274
|
] });
|
|
@@ -11275,29 +11280,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11275
11280
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11276
11281
|
const goalsCount = _optionalChain([campaign, 'access', _245 => _245.goals, 'optionalAccess', _246 => _246.length]) || 0;
|
|
11277
11282
|
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 ?
|
|
11283
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
11284
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11285
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
11286
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
11287
|
+
campaign.start_date ? _chunkP7KTAXXEcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
11283
11288
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11284
11289
|
"Marketing campaign"
|
|
11285
11290
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkP7KTAXXEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11287
11292
|
] })
|
|
11288
11293
|
] });
|
|
11289
11294
|
if (anchorProps) {
|
|
11290
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11295
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
11291
11296
|
}
|
|
11292
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
11297
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
11293
11298
|
}
|
|
11294
11299
|
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:
|
|
11300
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11301
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11302
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11303
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
11304
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11305
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP7KTAXXEcjs.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
11306
|
] })
|
|
11302
11307
|
] });
|
|
11303
11308
|
}
|
|
@@ -11388,7 +11393,7 @@ function VendorIcon({
|
|
|
11388
11393
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11389
11394
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11390
11395
|
{
|
|
11391
|
-
src:
|
|
11396
|
+
src: _chunkP7KTAXXEcjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11392
11397
|
alt: `${vendor.title} logo`,
|
|
11393
11398
|
width,
|
|
11394
11399
|
height,
|
|
@@ -11418,8 +11423,8 @@ function useChatCardItem(type, id) {
|
|
|
11418
11423
|
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url);
|
|
11419
11424
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11420
11425
|
const data = await res.json();
|
|
11421
|
-
const items =
|
|
11422
|
-
const match = items.find((it) =>
|
|
11426
|
+
const items = _chunkP7KTAXXEcjs.extractCardItems.call(void 0, type, data);
|
|
11427
|
+
const match = items.find((it) => _chunkP7KTAXXEcjs.extractItemId.call(void 0, type, it) === id);
|
|
11423
11428
|
return _nullishCoalesce(match, () => ( null));
|
|
11424
11429
|
},
|
|
11425
11430
|
enabled: !!url && id.length > 0,
|
|
@@ -11461,7 +11466,7 @@ var TRAILING_BUTTON_CLASS = "flex w-[56px] shrink-0 items-center justify-center
|
|
|
11461
11466
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11462
11467
|
if (imageSrc) {
|
|
11463
11468
|
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:
|
|
11469
|
+
/* @__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
11470
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11466
11471
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11467
11472
|
{
|
|
@@ -11530,7 +11535,7 @@ function MingoInfoCard({
|
|
|
11530
11535
|
status ? (
|
|
11531
11536
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11532
11537
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11533
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11538
|
+
/* @__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
11539
|
) : null
|
|
11535
11540
|
] });
|
|
11536
11541
|
const contentClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -11621,7 +11626,7 @@ function resolveFetchedCardHref({
|
|
|
11621
11626
|
composeContentUrl
|
|
11622
11627
|
}) {
|
|
11623
11628
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11624
|
-
const canonicalType =
|
|
11629
|
+
const canonicalType = _chunkP7KTAXXEcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11625
11630
|
return composeContentUrl({
|
|
11626
11631
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11627
11632
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11671,16 +11676,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11671
11676
|
if (docTarget) {
|
|
11672
11677
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11673
11678
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11674
|
-
href = _nullishCoalesce(
|
|
11679
|
+
href = _nullishCoalesce(_chunkP7KTAXXEcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11675
11680
|
targetPlatform = docTarget.platform;
|
|
11676
11681
|
} else if (ctx.chipBasePlatform) {
|
|
11677
11682
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11678
|
-
href = _nullishCoalesce(
|
|
11683
|
+
href = _nullishCoalesce(_chunkP7KTAXXEcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11679
11684
|
targetPlatform = ctx.chipBasePlatform;
|
|
11680
11685
|
} else if (ctx.baseRoute) {
|
|
11681
11686
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11682
11687
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11683
|
-
href = _nullishCoalesce(
|
|
11688
|
+
href = _nullishCoalesce(_chunkP7KTAXXEcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11684
11689
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11685
11690
|
}
|
|
11686
11691
|
}
|
|
@@ -11689,15 +11694,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11689
11694
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11690
11695
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11691
11696
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11692
|
-
type:
|
|
11697
|
+
type: _chunkP7KTAXXEcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11693
11698
|
identifier: idValue,
|
|
11694
11699
|
externalUrl: row.externalUrl,
|
|
11695
11700
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11696
11701
|
});
|
|
11697
|
-
href = composed.href ? _nullishCoalesce(
|
|
11702
|
+
href = composed.href ? _nullishCoalesce(_chunkP7KTAXXEcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11698
11703
|
targetPlatform = composed.targetPlatform;
|
|
11699
11704
|
} else if (row.externalUrl) {
|
|
11700
|
-
href = _nullishCoalesce(
|
|
11705
|
+
href = _nullishCoalesce(_chunkP7KTAXXEcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11701
11706
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11702
11707
|
}
|
|
11703
11708
|
const documentType = row.documentType;
|
|
@@ -11764,7 +11769,7 @@ function resolveCardDestination({
|
|
|
11764
11769
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11765
11770
|
allowComposed: !entry.noComposedHref
|
|
11766
11771
|
});
|
|
11767
|
-
const url = choice ? _nullishCoalesce(
|
|
11772
|
+
const url = choice ? _nullishCoalesce(_chunkP7KTAXXEcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11768
11773
|
if (choice && url) {
|
|
11769
11774
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11770
11775
|
}
|
|
@@ -11777,11 +11782,11 @@ function resolveCardDestination({
|
|
|
11777
11782
|
|
|
11778
11783
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11779
11784
|
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:
|
|
11785
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11786
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11787
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11788
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkP7KTAXXEcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11789
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkP7KTAXXEcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11785
11790
|
label,
|
|
11786
11791
|
" deleted",
|
|
11787
11792
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11827,7 +11832,7 @@ function GitHubChatCard({
|
|
|
11827
11832
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11828
11833
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11829
11834
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11830
|
-
const dateText =
|
|
11835
|
+
const dateText = _chunkJHQNUWFMcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11831
11836
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11832
11837
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11833
11838
|
MingoInfoCard,
|
|
@@ -11836,7 +11841,7 @@ function GitHubChatCard({
|
|
|
11836
11841
|
description,
|
|
11837
11842
|
icon: githubKindIcon(kind),
|
|
11838
11843
|
status,
|
|
11839
|
-
anchorProps:
|
|
11844
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11840
11845
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11841
11846
|
menuAriaLabel: "Activity actions"
|
|
11842
11847
|
}
|
|
@@ -11983,7 +11988,7 @@ function HubspotTicketChatCard({
|
|
|
11983
11988
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11984
11989
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11985
11990
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11986
|
-
anchorProps:
|
|
11991
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11987
11992
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11988
11993
|
label: "Open Ticket Details",
|
|
11989
11994
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -12006,7 +12011,7 @@ function FaqChatCard({
|
|
|
12006
12011
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12007
12012
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
12008
12013
|
status: { label: statusLabel, variant: "grey" },
|
|
12009
|
-
anchorProps:
|
|
12014
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12010
12015
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12011
12016
|
menuAriaLabel: "FAQ actions"
|
|
12012
12017
|
}
|
|
@@ -12026,7 +12031,7 @@ function SlackChatCard({
|
|
|
12026
12031
|
title,
|
|
12027
12032
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12028
12033
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
12029
|
-
anchorProps:
|
|
12034
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12030
12035
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12031
12036
|
menuAriaLabel: "Message actions"
|
|
12032
12037
|
}
|
|
@@ -12044,7 +12049,7 @@ function GlyphChatCard({
|
|
|
12044
12049
|
title: chatRef.title,
|
|
12045
12050
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12046
12051
|
icon,
|
|
12047
|
-
anchorProps:
|
|
12052
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12048
12053
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12049
12054
|
menuAriaLabel: "Card actions"
|
|
12050
12055
|
}
|
|
@@ -12060,22 +12065,22 @@ function TrustCenterChatCard({
|
|
|
12060
12065
|
isNewTab,
|
|
12061
12066
|
discuss
|
|
12062
12067
|
}) {
|
|
12063
|
-
const
|
|
12064
|
-
const frameworks = Array.isArray(
|
|
12065
|
-
const summary =
|
|
12068
|
+
const raw2 = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
12069
|
+
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
12070
|
+
const summary = _chunkP7KTAXXEcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12066
12071
|
const leadFramework = frameworks[0];
|
|
12067
12072
|
const lead = leadFramework ? {
|
|
12068
|
-
label:
|
|
12069
|
-
color:
|
|
12073
|
+
label: _chunkP7KTAXXEcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
12074
|
+
color: _chunkP7KTAXXEcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
12070
12075
|
} : void 0;
|
|
12071
12076
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12072
12077
|
MingoInfoCard,
|
|
12073
12078
|
{
|
|
12074
|
-
title:
|
|
12075
|
-
description: summary ||
|
|
12079
|
+
title: _chunkP7KTAXXEcjs.TRUST_CENTER_TITLE,
|
|
12080
|
+
description: summary || _chunkP7KTAXXEcjs.TRUST_CENTER_TAGLINE,
|
|
12076
12081
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
12077
12082
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
12078
|
-
anchorProps:
|
|
12083
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12079
12084
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12080
12085
|
label: "View trust center",
|
|
12081
12086
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12097,7 +12102,7 @@ function DataRoomDocChatCard({
|
|
|
12097
12102
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12098
12103
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12099
12104
|
status: { label: badgeText, variant: "grey" },
|
|
12100
|
-
anchorProps:
|
|
12105
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12101
12106
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12102
12107
|
menuAriaLabel: "Document actions"
|
|
12103
12108
|
}
|
|
@@ -12116,7 +12121,7 @@ function GenericFinancialChatCard({
|
|
|
12116
12121
|
title: chatRef.title,
|
|
12117
12122
|
description: subtitle,
|
|
12118
12123
|
icon,
|
|
12119
|
-
anchorProps:
|
|
12124
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12120
12125
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12121
12126
|
menuAriaLabel: "Document actions"
|
|
12122
12127
|
}
|
|
@@ -12202,7 +12207,7 @@ function CampaignChatCard({
|
|
|
12202
12207
|
}) {
|
|
12203
12208
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12204
12209
|
const meta = [
|
|
12205
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12210
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunkP7KTAXXEcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12206
12211
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12207
12212
|
"Marketing campaign"
|
|
12208
12213
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12241,7 +12246,7 @@ function EntityMingoCard({
|
|
|
12241
12246
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12242
12247
|
icon: fallbackIcon,
|
|
12243
12248
|
status,
|
|
12244
|
-
anchorProps:
|
|
12249
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12245
12250
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12246
12251
|
menuAriaLabel
|
|
12247
12252
|
}
|
|
@@ -12253,7 +12258,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12253
12258
|
function statusPill(status) {
|
|
12254
12259
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12255
12260
|
if (!s) return void 0;
|
|
12256
|
-
const scheme =
|
|
12261
|
+
const scheme = _chunkP7KTAXXEcjs.getStatusColorScheme.call(void 0, s);
|
|
12257
12262
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12258
12263
|
return { label: s, variant };
|
|
12259
12264
|
}
|
|
@@ -12344,7 +12349,7 @@ function DesignDocChatCard({
|
|
|
12344
12349
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12345
12350
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12346
12351
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12347
|
-
anchorProps:
|
|
12352
|
+
anchorProps: _chunkP7KTAXXEcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12348
12353
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12349
12354
|
menuAriaLabel: "Design doc actions"
|
|
12350
12355
|
}
|
|
@@ -12362,7 +12367,7 @@ function InvestorUpdateChatCard({
|
|
|
12362
12367
|
EntityMingoCard,
|
|
12363
12368
|
{
|
|
12364
12369
|
title,
|
|
12365
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12370
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunkP7KTAXXEcjs.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
12371
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12367
12372
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12368
12373
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12406,7 +12411,7 @@ function ProgramChatCard({
|
|
|
12406
12411
|
discuss
|
|
12407
12412
|
}) {
|
|
12408
12413
|
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 } =
|
|
12414
|
+
const { line: meta } = _chunkP7KTAXXEcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkP7KTAXXEcjs.programMetaFormatters.call(void 0, _chunkP7KTAXXEcjs.PROGRAM_META_RENDERERS));
|
|
12410
12415
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12411
12416
|
EntityMingoCard,
|
|
12412
12417
|
{
|
|
@@ -12432,7 +12437,7 @@ function RoadmapChatCard({
|
|
|
12432
12437
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12433
12438
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12434
12439
|
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,
|
|
12440
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12436
12441
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12437
12442
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12438
12443
|
/* @__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 +12503,11 @@ function refText(ref, key) {
|
|
|
12498
12503
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12499
12504
|
}
|
|
12500
12505
|
function VendorGlyph({ title, logoUrl }) {
|
|
12501
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12506
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12502
12507
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12503
12508
|
}
|
|
12504
12509
|
function SitePageGlyph({ iconName }) {
|
|
12505
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12510
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12506
12511
|
}
|
|
12507
12512
|
var GITHUB_CARD_CONFIGS = {
|
|
12508
12513
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12619,7 +12624,7 @@ function programRegistryEntries() {
|
|
|
12619
12624
|
label: cfg.label,
|
|
12620
12625
|
contentRefType: cfg.contentRefType,
|
|
12621
12626
|
bareInline: true,
|
|
12622
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12627
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12623
12628
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12624
12629
|
ProgramChatCard,
|
|
12625
12630
|
{
|
|
@@ -12660,7 +12665,7 @@ function roadmapRegistryEntries() {
|
|
|
12660
12665
|
bareInline: true,
|
|
12661
12666
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12662
12667
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12663
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12668
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12664
12669
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12665
12670
|
RoadmapChatCard,
|
|
12666
12671
|
{
|
|
@@ -12718,12 +12723,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12718
12723
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12719
12724
|
// single matched row. Destination is the public page unless the host
|
|
12720
12725
|
// re-homes the type (`composeContentUrl` override).
|
|
12721
|
-
[
|
|
12726
|
+
[_chunkP7KTAXXEcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12722
12727
|
label: "Trust center",
|
|
12723
12728
|
bareInline: true,
|
|
12724
|
-
contentRefType:
|
|
12729
|
+
contentRefType: _chunkP7KTAXXEcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12725
12730
|
noComposedHref: true,
|
|
12726
|
-
fallbackHref: () =>
|
|
12731
|
+
fallbackHref: () => _chunkP7KTAXXEcjs.TRUST_CENTER_PAGE_PATH,
|
|
12727
12732
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12728
12733
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12729
12734
|
},
|
|
@@ -12749,7 +12754,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12749
12754
|
label: "Blog post",
|
|
12750
12755
|
contentRefType: "blog_post_existing",
|
|
12751
12756
|
bareInline: true,
|
|
12752
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12757
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.BlogCardSkeleton, { size: "sm" }),
|
|
12753
12758
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12754
12759
|
BlogChatCard,
|
|
12755
12760
|
{
|
|
@@ -12766,7 +12771,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12766
12771
|
label: "Case study",
|
|
12767
12772
|
contentRefType: "case_study",
|
|
12768
12773
|
bareInline: true,
|
|
12769
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12774
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12770
12775
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12771
12776
|
CaseStudyChatCard,
|
|
12772
12777
|
{
|
|
@@ -12791,7 +12796,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12791
12796
|
label: "Customer interview",
|
|
12792
12797
|
contentRefType: "customer_interview",
|
|
12793
12798
|
bareInline: true,
|
|
12794
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12799
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12795
12800
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12796
12801
|
CustomerInterviewChatCard,
|
|
12797
12802
|
{
|
|
@@ -12807,9 +12812,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12807
12812
|
label: "Product release",
|
|
12808
12813
|
contentRefType: "product_release",
|
|
12809
12814
|
bareInline: true,
|
|
12810
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12815
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12811
12816
|
render: (item, chatRef, opts) => {
|
|
12812
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12817
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunkP7KTAXXEcjs.defaultBuildProductReleaseCardProps));
|
|
12813
12818
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12814
12819
|
ProductReleaseChatCard,
|
|
12815
12820
|
{
|
|
@@ -12827,7 +12832,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12827
12832
|
label: "Investor update",
|
|
12828
12833
|
contentRefType: "investor_update",
|
|
12829
12834
|
bareInline: true,
|
|
12830
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12835
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12831
12836
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12832
12837
|
InvestorUpdateChatCard,
|
|
12833
12838
|
{
|
|
@@ -12845,7 +12850,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12845
12850
|
bareInline: true,
|
|
12846
12851
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12847
12852
|
displayAction: true,
|
|
12848
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12853
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP7KTAXXEcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12849
12854
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12850
12855
|
OnboardingGuideChatCard,
|
|
12851
12856
|
{
|
|
@@ -12918,7 +12923,7 @@ function ChatCardLoader({
|
|
|
12918
12923
|
entry: fetchEntry,
|
|
12919
12924
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12920
12925
|
composeContentUrl: runtime.composeContentUrl,
|
|
12921
|
-
resolveHref: (href) =>
|
|
12926
|
+
resolveHref: (href) => _chunkP7KTAXXEcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12922
12927
|
});
|
|
12923
12928
|
const hrefResolvedChatRef = {
|
|
12924
12929
|
...chatRef,
|
|
@@ -12929,12 +12934,12 @@ function ChatCardLoader({
|
|
|
12929
12934
|
};
|
|
12930
12935
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12931
12936
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12932
|
-
const isNewTab =
|
|
12937
|
+
const isNewTab = _chunkP7KTAXXEcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12933
12938
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12934
12939
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12935
12940
|
const discuss = discussFn ? {
|
|
12936
12941
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12937
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12942
|
+
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
12943
|
run: () => discussFn(finalChatRef)
|
|
12939
12944
|
} : void 0;
|
|
12940
12945
|
const renderOpts = {
|
|
@@ -13043,12 +13048,12 @@ function makeBatchDedupKey(item) {
|
|
|
13043
13048
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
13044
13049
|
}
|
|
13045
13050
|
function getChatTypeMessageType(chatType) {
|
|
13046
|
-
return chatType ===
|
|
13051
|
+
return chatType === _chunkYRULLK7Ncjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
13047
13052
|
}
|
|
13048
13053
|
function useChunkCatchup({
|
|
13049
13054
|
dialogId,
|
|
13050
13055
|
onChunkReceived,
|
|
13051
|
-
chatTypes = [
|
|
13056
|
+
chatTypes = [_chunkYRULLK7Ncjs.CHAT_TYPE.CLIENT],
|
|
13052
13057
|
fetchChunks
|
|
13053
13058
|
}) {
|
|
13054
13059
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -14009,7 +14014,7 @@ function useChatAttachmentImageGallery() {
|
|
|
14009
14014
|
return () => root.removeEventListener("click", onClick);
|
|
14010
14015
|
}, [viewUrlPrefix]);
|
|
14011
14016
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14012
|
-
|
|
14017
|
+
_chunkP7KTAXXEcjs.ImageGalleryModal,
|
|
14013
14018
|
{
|
|
14014
14019
|
images: state.images,
|
|
14015
14020
|
isOpen: state.isOpen,
|
|
@@ -15102,10 +15107,10 @@ function createSseFrameDecoder() {
|
|
|
15102
15107
|
ended = true;
|
|
15103
15108
|
const out = [];
|
|
15104
15109
|
if (trailerBuffer.length > 0) {
|
|
15105
|
-
const
|
|
15110
|
+
const raw2 = trailerBuffer;
|
|
15106
15111
|
trailerBuffer = "";
|
|
15107
15112
|
try {
|
|
15108
|
-
const meta = JSON.parse(
|
|
15113
|
+
const meta = JSON.parse(raw2);
|
|
15109
15114
|
if (isFrameObject(meta) && meta.kind === "usage" && (meta.stage === "end" || meta.stage === "display")) {
|
|
15110
15115
|
out.push({
|
|
15111
15116
|
type: "usage",
|
|
@@ -15187,7 +15192,7 @@ function nullableText(value) {
|
|
|
15187
15192
|
}
|
|
15188
15193
|
function httpsUrl(value) {
|
|
15189
15194
|
const candidate = text(value);
|
|
15190
|
-
if (!candidate ||
|
|
15195
|
+
if (!candidate || _chunkP7KTAXXEcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15191
15196
|
try {
|
|
15192
15197
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15193
15198
|
} catch (e19) {
|
|
@@ -15771,7 +15776,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15771
15776
|
const status = approvalStatuses[requestId] || "pending";
|
|
15772
15777
|
if (!displayInline(approvalType)) {
|
|
15773
15778
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15774
|
-
const summary = required ?
|
|
15779
|
+
const summary = required ? _chunkPSIKUDUVcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15775
15780
|
pendingEscalated.set(requestId, {
|
|
15776
15781
|
command: summary,
|
|
15777
15782
|
explanation: _optionalChain([required, 'optionalAccess', _521 => _521.toolExplanation]),
|
|
@@ -15804,7 +15809,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15804
15809
|
if (!call.requiresApproval) continue;
|
|
15805
15810
|
segments = accumulator.addApprovalRequest(
|
|
15806
15811
|
requestId,
|
|
15807
|
-
|
|
15812
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
15808
15813
|
call.toolExplanation,
|
|
15809
15814
|
approvalType,
|
|
15810
15815
|
status,
|
|
@@ -15883,7 +15888,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15883
15888
|
if (!call.requiresApproval) continue;
|
|
15884
15889
|
segments = accumulator.addApprovalRequest(
|
|
15885
15890
|
requestId,
|
|
15886
|
-
|
|
15891
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
15887
15892
|
call.toolExplanation,
|
|
15888
15893
|
escalatedData.approvalType,
|
|
15889
15894
|
status
|
|
@@ -17797,9 +17802,9 @@ function strOr(value, fallback = "") {
|
|
|
17797
17802
|
function numOr(value, fallback = 0) {
|
|
17798
17803
|
return typeof value === "number" ? value : fallback;
|
|
17799
17804
|
}
|
|
17800
|
-
function normalizeToolCalls(
|
|
17801
|
-
if (!Array.isArray(
|
|
17802
|
-
return
|
|
17805
|
+
function normalizeToolCalls(raw2) {
|
|
17806
|
+
if (!Array.isArray(raw2)) return [];
|
|
17807
|
+
return raw2.filter(isRecord).map((item) => ({
|
|
17803
17808
|
toolExecutionRequestId: String(_nullishCoalesce(item.toolExecutionRequestId, () => ( ""))),
|
|
17804
17809
|
toolName: String(_nullishCoalesce(item.toolName, () => ( ""))),
|
|
17805
17810
|
toolTitle: typeof item.toolTitle === "string" ? item.toolTitle : void 0,
|
|
@@ -17810,9 +17815,9 @@ function normalizeToolCalls(raw) {
|
|
|
17810
17815
|
toolCallArguments: isRecord(item.toolCallArguments) ? item.toolCallArguments : null
|
|
17811
17816
|
}));
|
|
17812
17817
|
}
|
|
17813
|
-
function normalizeAskOptions(
|
|
17814
|
-
if (!Array.isArray(
|
|
17815
|
-
return
|
|
17818
|
+
function normalizeAskOptions(raw2) {
|
|
17819
|
+
if (!Array.isArray(raw2)) return [];
|
|
17820
|
+
return raw2.filter(isRecord).map((item) => ({
|
|
17816
17821
|
label: typeof item.label === "string" ? item.label.trim() : "",
|
|
17817
17822
|
description: typeof item.description === "string" ? item.description : void 0
|
|
17818
17823
|
})).filter((option) => option.label.length > 0);
|
|
@@ -18058,12 +18063,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18058
18063
|
|
|
18059
18064
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18060
18065
|
function getOwnerDisplayName(owner) {
|
|
18061
|
-
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) ===
|
|
18066
|
+
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18062
18067
|
const { firstName, lastName } = owner.user;
|
|
18063
18068
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18064
18069
|
if (name) return name;
|
|
18065
18070
|
}
|
|
18066
|
-
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) ===
|
|
18071
|
+
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18067
18072
|
}
|
|
18068
18073
|
function getOwnerAvatar(owner) {
|
|
18069
18074
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _601 => _601.user, 'optionalAccess', _602 => _602.image, 'optionalAccess', _603 => _603.imageUrl]), () => ( void 0));
|
|
@@ -18326,7 +18331,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18326
18331
|
if (!call.requiresApproval) continue;
|
|
18327
18332
|
accumulator.addApprovalRequest(
|
|
18328
18333
|
event.requestId,
|
|
18329
|
-
|
|
18334
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
18330
18335
|
call.toolExplanation,
|
|
18331
18336
|
approvalType,
|
|
18332
18337
|
status,
|
|
@@ -18387,7 +18392,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18387
18392
|
if (!call.requiresApproval) continue;
|
|
18388
18393
|
accumulator.addApprovalRequest(
|
|
18389
18394
|
requestId,
|
|
18390
|
-
|
|
18395
|
+
_chunkPSIKUDUVcjs.getCommandText.call(void 0, call),
|
|
18391
18396
|
call.toolExplanation,
|
|
18392
18397
|
escalatedData.approvalType,
|
|
18393
18398
|
status
|
|
@@ -18495,10 +18500,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18495
18500
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18496
18501
|
return;
|
|
18497
18502
|
}
|
|
18498
|
-
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) ===
|
|
18503
|
+
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
18504
|
if (isUserMessage) {
|
|
18500
18505
|
flushAssistantMessage();
|
|
18501
|
-
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) ===
|
|
18506
|
+
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunkYRULLK7Ncjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18502
18507
|
messageDataArray.forEach((data) => {
|
|
18503
18508
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18504
18509
|
const rawContext = data.contextItems;
|
|
@@ -18549,7 +18554,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18549
18554
|
});
|
|
18550
18555
|
const nextMsg = messages[index + 1];
|
|
18551
18556
|
const isLastMessage = index === messages.length - 1;
|
|
18552
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) ===
|
|
18557
|
+
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
18558
|
if (isLastMessage || nextIsFromUser) {
|
|
18554
18559
|
flushAssistantMessage();
|
|
18555
18560
|
}
|