@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.831
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/{case-study-card-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
- package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
- package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-5L3UKDC6.cjs} +16 -16
- package/dist/{chunk-THPAGFT6.cjs → chunk-7COZUANC.cjs} +60 -69
- package/dist/{chunk-DWSU35QQ.cjs → chunk-7WQD3R5J.cjs} +84 -84
- package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
- package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
- package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-UO6F6LLI.cjs → chunk-D6ZSRGH2.cjs} +699 -642
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-MFYSV7DE.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-DU6AF77X.cjs → chunk-FNNDGOR3.cjs} +33 -33
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-HMC2IWV4.cjs → chunk-HDLY6OMQ.cjs} +6 -6
- package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
- package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
- package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
- package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
- package/dist/{chunk-R3PKAIX3.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-PRZAEPGG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-IMDYB77M.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-SWMUW3RR.cjs} +18 -18
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-IHRMX3X6.cjs → chunk-VBGBKRDO.cjs} +684 -661
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-VQG2A7GA.cjs} +2 -2
- package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
- package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
- package/dist/{chunk-LNXRTVOY.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-E2AC4WEJ.cjs} +20 -20
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +19 -15
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/chat/utils/icon-registry.d.ts +2 -2
- package/dist/components/chat/utils/icon-registry.js +2 -2
- package/dist/components/contact/index.cjs +21 -21
- package/dist/components/docs/index.cjs +24 -24
- package/dist/components/embeds/index.cjs +21 -21
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +22 -20
- package/dist/components/features/notifications/index.d.ts +3 -1
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
- package/dist/components/features/notifications/notification-category-icon.js +26 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/types.d.ts +1 -1
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +90 -82
- package/dist/components/meeting-scheduler/index.cjs +69 -69
- package/dist/components/navigation/index.cjs +23 -23
- package/dist/components/navigation/site-footer.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.js +2 -12
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/product-demo/index.cjs +31 -31
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/social-icon-row.d.ts +6 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/social-icon-row.js +5 -6
- package/dist/components/tickets/index.cjs +27 -27
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +24 -20
- package/dist/{devices-AW6BERJF.cjs → devices-CAYUGD2N.cjs} +21 -21
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-FYHMR66R.cjs} +121 -114
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +31 -25
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-OI4OPEVL.cjs} +21 -21
- package/dist/{logs-CYA7H4KM.cjs → logs-B3XV2NHV.cjs} +27 -27
- package/dist/platform-domains.cjs +4 -0
- package/dist/platform-domains.d.ts +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +4 -0
- package/dist/{policies-M6QSFL5G.cjs → policies-ZB4Z42DV.cjs} +24 -24
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-CN3G7JNR.cjs} +7 -7
- package/dist/{scripts-Y46ECDDP.cjs → scripts-I4DNUOQC.cjs} +27 -27
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-AWH4WXOH.cjs} +24 -24
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-PLYD2NSY.cjs} +11 -11
- package/dist/types/marketing.d.ts +61 -216
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/notifications.cjs +55 -0
- package/dist/utils/notifications.d.ts +29 -0
- package/dist/utils/notifications.d.ts.map +1 -0
- package/dist/utils/notifications.js +53 -0
- package/dist/utils/social-platforms.d.ts +9 -9
- package/dist/utils/social-platforms.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/chat/utils/icon-registry.ts +5 -5
- package/src/components/chat/utils/index.ts +1 -1
- package/src/components/features/notifications/index.ts +2 -1
- package/src/components/features/notifications/notification-category-icon.tsx +38 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -1
- package/src/components/features/notifications/types.ts +1 -2
- package/src/components/navigation/site-footer.tsx +2 -11
- package/src/components/social-icon-row.tsx +11 -10
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/platform-domains.ts +5 -0
- package/src/types/marketing.ts +90 -268
- package/src/utils/index.ts +1 -1
- package/src/utils/notifications.ts +71 -0
- package/src/utils/social-platforms.ts +9 -9
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk4JHO2NVIcjs = require('./chunk-4JHO2NVI.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -36,7 +36,7 @@ var _chunkIBD2FPSXcjs = require('./chunk-IBD2FPSX.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk5L3UKDC6cjs = require('./chunk-5L3UKDC6.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ var _chunk3B6ZE4EZcjs = require('./chunk-3B6ZE4EZ.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkYJZ7R3W5cjs = require('./chunk-YJZ7R3W5.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
@@ -269,14 +269,14 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
|
|
272
|
-
var
|
|
272
|
+
var _chunkZABZIM2Ycjs = require('./chunk-ZABZIM2Y.cjs');
|
|
273
273
|
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
var _chunk7Z536SPRcjs = require('./chunk-7Z536SPR.cjs');
|
|
277
277
|
|
|
278
278
|
|
|
279
|
-
var
|
|
279
|
+
var _chunkBUEEQD3Gcjs = require('./chunk-BUEEQD3G.cjs');
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -318,7 +318,7 @@ var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
|
318
318
|
|
|
319
319
|
|
|
320
320
|
|
|
321
|
-
var
|
|
321
|
+
var _chunkH3WTYAVRcjs = require('./chunk-H3WTYAVR.cjs');
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
var _chunk5BM7X4GAcjs = require('./chunk-5BM7X4GA.cjs');
|
|
@@ -356,7 +356,7 @@ var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
|
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
var
|
|
359
|
+
var _chunkTD4CC4KVcjs = require('./chunk-TD4CC4KV.cjs');
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -373,12 +373,12 @@ var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
|
373
373
|
|
|
374
374
|
|
|
375
375
|
|
|
376
|
-
var
|
|
376
|
+
var _chunkAPNONOHYcjs = require('./chunk-APNONOHY.cjs');
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
|
|
381
|
-
var
|
|
381
|
+
var _chunkJQCQCE6Ucjs = require('./chunk-JQCQCE6U.cjs');
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
|
|
@@ -710,14 +710,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
710
710
|
for (const section of sectionIds) {
|
|
711
711
|
sectionIdMap.set(section.title, section.id);
|
|
712
712
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
713
|
-
sectionIdMap.set(
|
|
713
|
+
sectionIdMap.set(_chunkZABZIM2Ycjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const dedupe =
|
|
716
|
+
const dedupe = _chunkZABZIM2Ycjs.createHeadingIdDeduper.call(void 0, );
|
|
717
717
|
const map = /* @__PURE__ */ new Map();
|
|
718
718
|
let sectionOrdinal = 0;
|
|
719
719
|
let headingOrdinal = 0;
|
|
720
|
-
for (const { line, level, text: rawText } of
|
|
720
|
+
for (const { line, level, text: rawText } of _chunkZABZIM2Ycjs.scanHeadings.call(void 0, content)) {
|
|
721
721
|
const text2 = stripInlineMarkdown(rawText).trim();
|
|
722
722
|
headingOrdinal++;
|
|
723
723
|
if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -726,8 +726,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
726
726
|
for (const variation of [
|
|
727
727
|
text2,
|
|
728
728
|
text2.toLowerCase(),
|
|
729
|
-
|
|
730
|
-
|
|
729
|
+
_chunkZABZIM2Ycjs.stripHeadingEmojis.call(void 0, text2),
|
|
730
|
+
_chunkZABZIM2Ycjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
|
|
731
731
|
]) {
|
|
732
732
|
const id = sectionIdMap.get(variation);
|
|
733
733
|
if (id) {
|
|
@@ -737,7 +737,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
if (assigned === void 0) {
|
|
740
|
-
const baseId =
|
|
740
|
+
const baseId = _chunkZABZIM2Ycjs.slugifyHeadingText.call(void 0, text2);
|
|
741
741
|
assigned = dedupe(
|
|
742
742
|
baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
743
743
|
);
|
|
@@ -1288,7 +1288,7 @@ var MarkdownContentImage = ({ src, alt }) => {
|
|
|
1288
1288
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
1289
1289
|
width: 400,
|
|
1290
1290
|
height: 400,
|
|
1291
|
-
sizes:
|
|
1291
|
+
sizes: _chunkJQCQCE6Ucjs.IMAGE_SLOT.inline,
|
|
1292
1292
|
className: "h-auto max-h-[400px] w-auto max-w-full rounded-lg object-contain",
|
|
1293
1293
|
style: { width: "auto", height: "auto" }
|
|
1294
1294
|
}
|
|
@@ -1352,7 +1352,7 @@ function buildBaseComponents({
|
|
|
1352
1352
|
const mapped = useHeadingId(node);
|
|
1353
1353
|
const taken = useAssignedHeadingIds();
|
|
1354
1354
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _27 => _27.properties, 'optionalAccess', _28 => _28.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
1355
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
1355
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkZABZIM2Ycjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
1356
1356
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
1357
1357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
1358
1358
|
}
|
|
@@ -1424,10 +1424,10 @@ function buildBaseComponents({
|
|
|
1424
1424
|
const handleAnchorClick = (e) => {
|
|
1425
1425
|
if (inPageAnchorId === null) return;
|
|
1426
1426
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
1427
|
-
const target =
|
|
1427
|
+
const target = _chunkZABZIM2Ycjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
1428
1428
|
if (!_optionalChain([target, 'optionalAccess', _29 => _29.id])) return;
|
|
1429
1429
|
e.preventDefault();
|
|
1430
|
-
|
|
1430
|
+
_chunkZABZIM2Ycjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkZABZIM2Ycjs.HUB_HEADER_OFFSET_PX });
|
|
1431
1431
|
};
|
|
1432
1432
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1433
1433
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -2036,7 +2036,7 @@ function findInlineCodeRanges(source) {
|
|
|
2036
2036
|
while (pos <= len) {
|
|
2037
2037
|
let end = source.indexOf("\n", pos);
|
|
2038
2038
|
if (end === -1) end = len;
|
|
2039
|
-
const blank =
|
|
2039
|
+
const blank = _chunkZABZIM2Ycjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
2040
2040
|
if (blank && segStart !== -1) break;
|
|
2041
2041
|
if (!blank) {
|
|
2042
2042
|
if (segStart === -1) segStart = pos;
|
|
@@ -2118,7 +2118,7 @@ function toMaskLines(source) {
|
|
|
2118
2118
|
return out;
|
|
2119
2119
|
}
|
|
2120
2120
|
function blankFencedRegions(masked, lines) {
|
|
2121
|
-
const fences =
|
|
2121
|
+
const fences = _chunkZABZIM2Ycjs.createFenceTracker.call(void 0, );
|
|
2122
2122
|
const ranges = [];
|
|
2123
2123
|
let openStart = null;
|
|
2124
2124
|
let lastEnd = 0;
|
|
@@ -2157,7 +2157,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
2157
2157
|
const listContentCols = [];
|
|
2158
2158
|
const ranges = [];
|
|
2159
2159
|
for (const line of lines) {
|
|
2160
|
-
if (
|
|
2160
|
+
if (_chunkZABZIM2Ycjs.isBlankLine.call(void 0, line.content)) continue;
|
|
2161
2161
|
const indent = leadingIndent(line.content);
|
|
2162
2162
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
2163
2163
|
if (indent >= top + 4) {
|
|
@@ -2248,7 +2248,7 @@ function contPrefixLen(c) {
|
|
|
2248
2248
|
function findLabelClose(lines, i, from) {
|
|
2249
2249
|
for (let j = i; j < lines.length; j++) {
|
|
2250
2250
|
const c = stripCr(lines[j].content);
|
|
2251
|
-
if (j > i &&
|
|
2251
|
+
if (j > i && _chunkZABZIM2Ycjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
2252
2252
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
2253
2253
|
if (c[q] === "[") return { stoppedAt: j };
|
|
2254
2254
|
if (c[q] !== "]") continue;
|
|
@@ -2266,7 +2266,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2266
2266
|
let k = from;
|
|
2267
2267
|
for (; k < lines.length; k++) {
|
|
2268
2268
|
const c = stripCr(lines[k].content);
|
|
2269
|
-
if (
|
|
2269
|
+
if (_chunkZABZIM2Ycjs.isBlankLine.call(void 0, c)) break;
|
|
2270
2270
|
blankLine(lines[k]);
|
|
2271
2271
|
if (stop(c)) {
|
|
2272
2272
|
k++;
|
|
@@ -2309,7 +2309,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2309
2309
|
const k = j + 1;
|
|
2310
2310
|
if (k >= lines.length) break;
|
|
2311
2311
|
const c = stripCr(lines[k].content);
|
|
2312
|
-
if (
|
|
2312
|
+
if (_chunkZABZIM2Ycjs.isBlankLine.call(void 0, c)) break;
|
|
2313
2313
|
const at = contPrefixLen(c);
|
|
2314
2314
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
2315
2315
|
if (next.k === "decline") break;
|
|
@@ -2379,7 +2379,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
2379
2379
|
let sawBlank = false;
|
|
2380
2380
|
for (let k = i + 1; k < lines.length; k++) {
|
|
2381
2381
|
const c = text2(lines[k]);
|
|
2382
|
-
if (
|
|
2382
|
+
if (_chunkZABZIM2Ycjs.isBlankLine.call(void 0, c)) {
|
|
2383
2383
|
sawBlank = true;
|
|
2384
2384
|
continue;
|
|
2385
2385
|
}
|
|
@@ -2479,7 +2479,7 @@ function paragraphEnd(s, from) {
|
|
|
2479
2479
|
lineStart += 1;
|
|
2480
2480
|
const next = s.indexOf("\n", lineStart);
|
|
2481
2481
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
2482
|
-
if (
|
|
2482
|
+
if (_chunkZABZIM2Ycjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
2483
2483
|
if (next === -1) break;
|
|
2484
2484
|
lineStart = next;
|
|
2485
2485
|
}
|
|
@@ -2633,7 +2633,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2633
2633
|
run = [];
|
|
2634
2634
|
};
|
|
2635
2635
|
for (const line of lines) {
|
|
2636
|
-
if (
|
|
2636
|
+
if (_chunkZABZIM2Ycjs.isBlankLine.call(void 0, line.content)) {
|
|
2637
2637
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2638
2638
|
continue;
|
|
2639
2639
|
}
|
|
@@ -2858,7 +2858,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2858
2858
|
function computeHtmlBlockRanges(text2) {
|
|
2859
2859
|
if (text2.indexOf("<") === -1) return [];
|
|
2860
2860
|
const ranges = [];
|
|
2861
|
-
const fences =
|
|
2861
|
+
const fences = _chunkZABZIM2Ycjs.createFenceTracker.call(void 0, );
|
|
2862
2862
|
let kind = null;
|
|
2863
2863
|
let start = 0;
|
|
2864
2864
|
let lastEnd = 0;
|
|
@@ -2873,9 +2873,9 @@ function computeHtmlBlockRanges(text2) {
|
|
|
2873
2873
|
const expanded = expandTabs(line);
|
|
2874
2874
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2875
2875
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2876
|
-
else if (!
|
|
2877
|
-
const normBlank =
|
|
2878
|
-
const blank = openPrefixLen > 0 ?
|
|
2876
|
+
else if (!_chunkZABZIM2Ycjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2877
|
+
const normBlank = _chunkZABZIM2Ycjs.isBlankLine.call(void 0, norm.text);
|
|
2878
|
+
const blank = openPrefixLen > 0 ? _chunkZABZIM2Ycjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkZABZIM2Ycjs.isBlankLine.call(void 0, line);
|
|
2879
2879
|
if (kind !== null) {
|
|
2880
2880
|
if (kind >= 6) {
|
|
2881
2881
|
if (blank) {
|
|
@@ -3029,7 +3029,7 @@ var ScanState = class {
|
|
|
3029
3029
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
3030
3030
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
3031
3031
|
*/
|
|
3032
|
-
this.fences =
|
|
3032
|
+
this.fences = _chunkZABZIM2Ycjs.createFenceTracker.call(void 0, );
|
|
3033
3033
|
/** Depth of currently open raw HTML block containers. */
|
|
3034
3034
|
this.htmlDepth = 0;
|
|
3035
3035
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -3102,7 +3102,7 @@ function splitStreamingBlocks(content) {
|
|
|
3102
3102
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
3103
3103
|
const firstNonBlank = (arr) => {
|
|
3104
3104
|
for (const line of arr) {
|
|
3105
|
-
if (!
|
|
3105
|
+
if (!_chunkZABZIM2Ycjs.isBlankLine.call(void 0, line)) return line;
|
|
3106
3106
|
}
|
|
3107
3107
|
return void 0;
|
|
3108
3108
|
};
|
|
@@ -3112,10 +3112,10 @@ function splitStreamingBlocks(content) {
|
|
|
3112
3112
|
state.scanLine(line);
|
|
3113
3113
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
3114
3114
|
current.push(line);
|
|
3115
|
-
const isBlank =
|
|
3115
|
+
const isBlank = _chunkZABZIM2Ycjs.isBlankLine.call(void 0, line);
|
|
3116
3116
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
3117
3117
|
let j = i + 1;
|
|
3118
|
-
while (j < lines.length &&
|
|
3118
|
+
while (j < lines.length && _chunkZABZIM2Ycjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
3119
3119
|
if (j >= lines.length) continue;
|
|
3120
3120
|
const next = lines[j];
|
|
3121
3121
|
if (/^\s/.test(next)) continue;
|
|
@@ -3123,7 +3123,7 @@ function splitStreamingBlocks(content) {
|
|
|
3123
3123
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
3124
3124
|
continue;
|
|
3125
3125
|
}
|
|
3126
|
-
if (current.every(
|
|
3126
|
+
if (current.every(_chunkZABZIM2Ycjs.isBlankLine)) continue;
|
|
3127
3127
|
units.push(current);
|
|
3128
3128
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
3129
3129
|
current = [];
|
|
@@ -3536,7 +3536,7 @@ function onAskAiIntent(run) {
|
|
|
3536
3536
|
|
|
3537
3537
|
// src/components/chat/chat-appearance-context.tsx
|
|
3538
3538
|
|
|
3539
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3539
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3540
3540
|
function useChatAppearance() {
|
|
3541
3541
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3542
3542
|
}
|
|
@@ -3575,7 +3575,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3575
3575
|
...props
|
|
3576
3576
|
}, ref) => {
|
|
3577
3577
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3578
|
-
const isV2 = useChatAppearance() ===
|
|
3578
|
+
const isV2 = useChatAppearance() === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
3579
3579
|
const handleApprove = async () => {
|
|
3580
3580
|
setIsProcessing(true);
|
|
3581
3581
|
try {
|
|
@@ -3598,7 +3598,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3598
3598
|
{
|
|
3599
3599
|
ref,
|
|
3600
3600
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3601
|
-
|
|
3601
|
+
_chunk5L3UKDC6cjs.CHAT_BLOCK_CLASS,
|
|
3602
3602
|
// v2: the thread owns the space below the card.
|
|
3603
3603
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3604
3604
|
className
|
|
@@ -3606,7 +3606,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3606
3606
|
...props,
|
|
3607
3607
|
children: [
|
|
3608
3608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _51 => _51.explanation, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]) || "Approval required" }),
|
|
3609
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3609
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ApprovalWaitingLine, {}),
|
|
3610
3610
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3611
3611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3612
3612
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3638,14 +3638,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3638
3638
|
children: "Reject"
|
|
3639
3639
|
}
|
|
3640
3640
|
)
|
|
3641
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3641
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3642
3642
|
]
|
|
3643
3643
|
}
|
|
3644
3644
|
);
|
|
3645
3645
|
}
|
|
3646
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3646
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunk5L3UKDC6cjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3647
3647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3648
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3648
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ApprovalWaitingLine, {}),
|
|
3649
3649
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3650
3650
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3651
3651
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3677,7 +3677,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3677
3677
|
children: "Reject"
|
|
3678
3678
|
}
|
|
3679
3679
|
)
|
|
3680
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3680
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3681
3681
|
] });
|
|
3682
3682
|
}
|
|
3683
3683
|
);
|
|
@@ -3707,7 +3707,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3707
3707
|
|
|
3708
3708
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3709
3709
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3710
|
-
const isV2 = useChatAppearance() ===
|
|
3710
|
+
const isV2 = useChatAppearance() === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
3711
3711
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3712
3712
|
"div",
|
|
3713
3713
|
{
|
|
@@ -3723,7 +3723,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3723
3723
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3724
3724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3725
3725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3726
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3726
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunk4JHO2NVIcjs.formatTime.call(void 0, timestamp) })
|
|
3727
3727
|
] }),
|
|
3728
3728
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3729
3729
|
] })
|
|
@@ -3962,7 +3962,7 @@ function nullableText(value) {
|
|
|
3962
3962
|
}
|
|
3963
3963
|
function httpsUrl(value) {
|
|
3964
3964
|
const candidate = text(value);
|
|
3965
|
-
if (!candidate ||
|
|
3965
|
+
if (!candidate || _chunkTD4CC4KVcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
3966
3966
|
try {
|
|
3967
3967
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
3968
3968
|
} catch (e4) {
|
|
@@ -4569,7 +4569,7 @@ var thoughtMdClasses = [
|
|
|
4569
4569
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
4570
4570
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
4571
4571
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4572
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
4572
|
+
const { innerRef, isOverflowing, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, {
|
|
4573
4573
|
expanded,
|
|
4574
4574
|
collapsedHeight: 19,
|
|
4575
4575
|
disableTransition: isStreaming
|
|
@@ -4584,7 +4584,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4584
4584
|
setExpanded(!expanded);
|
|
4585
4585
|
}
|
|
4586
4586
|
};
|
|
4587
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4587
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk5L3UKDC6cjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4588
4588
|
"div",
|
|
4589
4589
|
{
|
|
4590
4590
|
role: "button",
|
|
@@ -4602,7 +4602,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4602
4602
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEP5KAT6cjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
4603
4603
|
] }),
|
|
4604
4604
|
/* @__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: _chunk63A4GZMBcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: escapeThinkingTags(text2), textSize: "compact" }) }) }),
|
|
4605
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4605
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ExpandChevron, { expanded }) })
|
|
4606
4606
|
]
|
|
4607
4607
|
}
|
|
4608
4608
|
) });
|
|
@@ -4741,7 +4741,7 @@ function renderQuickActionIcon(icon) {
|
|
|
4741
4741
|
if (!spec.name && !spec.url) return void 0;
|
|
4742
4742
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
4743
4743
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
4744
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4744
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
4745
4745
|
}
|
|
4746
4746
|
function composeChipLabel(label, lozenge) {
|
|
4747
4747
|
if (!lozenge) return label;
|
|
@@ -4765,12 +4765,17 @@ function composeChipLabel(label, lozenge) {
|
|
|
4765
4765
|
label
|
|
4766
4766
|
] });
|
|
4767
4767
|
}
|
|
4768
|
+
var FILL_TAG_CLASS = "h-14 w-full min-w-0 justify-start text-left";
|
|
4769
|
+
function fillLabel(label) {
|
|
4770
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-normal [overflow-wrap:anywhere]", children: label });
|
|
4771
|
+
}
|
|
4768
4772
|
function QuickActionChipSkeleton({
|
|
4769
4773
|
labelCh = 16,
|
|
4770
4774
|
icon = true,
|
|
4771
4775
|
lozenge = false,
|
|
4772
4776
|
size = "default",
|
|
4773
4777
|
variant = "outline",
|
|
4778
|
+
fill = false,
|
|
4774
4779
|
className,
|
|
4775
4780
|
...props
|
|
4776
4781
|
}) {
|
|
@@ -4780,8 +4785,8 @@ function QuickActionChipSkeleton({
|
|
|
4780
4785
|
{
|
|
4781
4786
|
..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props),
|
|
4782
4787
|
variant: "outline",
|
|
4783
|
-
size: question ? "sentence" : size,
|
|
4784
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", className),
|
|
4788
|
+
size: question || fill ? "sentence" : size,
|
|
4789
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, question && "max-w-full", fill && FILL_TAG_CLASS, className),
|
|
4785
4790
|
icon: icon && !question ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: size === "large" ? "block size-5" : "block size-4" }) : void 0,
|
|
4786
4791
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4787
4792
|
lozenge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", "aria-hidden": true, className: "mr-2 inline-block h-[16px] w-[26px] translate-y-[2px]" }),
|
|
@@ -4814,6 +4819,7 @@ function QuickActionChipButton({
|
|
|
4814
4819
|
className,
|
|
4815
4820
|
loading: loadingProp = false,
|
|
4816
4821
|
labelCh,
|
|
4822
|
+
fill = false,
|
|
4817
4823
|
...props
|
|
4818
4824
|
}) {
|
|
4819
4825
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
@@ -4828,16 +4834,18 @@ function QuickActionChipButton({
|
|
|
4828
4834
|
lozenge: !!lozenge,
|
|
4829
4835
|
size,
|
|
4830
4836
|
variant: variant === "question" ? "question" : "outline",
|
|
4831
|
-
|
|
4837
|
+
fill,
|
|
4838
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, fill && "w-full", className)
|
|
4832
4839
|
}
|
|
4833
4840
|
);
|
|
4834
4841
|
const themedIcon = theme && isQuickActionIconSpec(icon) && !icon.accent ? { ...icon, accent: theme.accent } : icon;
|
|
4835
4842
|
const resolvedLozenge = lozenge === true ? _optionalChain([theme, 'optionalAccess', _78 => _78.lozenge]) : lozenge === false ? void 0 : lozenge;
|
|
4836
4843
|
const resolvedIcon = renderQuickActionIcon(themedIcon);
|
|
4837
|
-
const
|
|
4844
|
+
const composedLabel = composeChipLabel(label, resolvedLozenge);
|
|
4845
|
+
const resolvedLabel = fill ? fillLabel(composedLabel) : composedLabel;
|
|
4838
4846
|
const question = variant === "question";
|
|
4839
4847
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
4840
|
-
const tagSize = question ? "sentence" : size;
|
|
4848
|
+
const tagSize = question || fill ? "sentence" : size;
|
|
4841
4849
|
if (!interactive) {
|
|
4842
4850
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4843
4851
|
_chunkGRHF5SWLcjs.Tag,
|
|
@@ -4847,7 +4855,7 @@ function QuickActionChipButton({
|
|
|
4847
4855
|
size: tagSize,
|
|
4848
4856
|
icon: resolvedIcon,
|
|
4849
4857
|
label: resolvedLabel,
|
|
4850
|
-
className
|
|
4858
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, fill && FILL_TAG_CLASS, className)
|
|
4851
4859
|
}
|
|
4852
4860
|
);
|
|
4853
4861
|
}
|
|
@@ -4865,7 +4873,7 @@ function QuickActionChipButton({
|
|
|
4865
4873
|
"aria-pressed": selected || void 0,
|
|
4866
4874
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4867
4875
|
// A question may be longer than a narrow column: it shrinks and clips there, read from its start.
|
|
4868
|
-
question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
|
|
4876
|
+
fill ? "w-full min-w-0" : question ? "w-auto min-w-0 max-w-full" : "w-auto shrink-0",
|
|
4869
4877
|
className
|
|
4870
4878
|
),
|
|
4871
4879
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4875,7 +4883,7 @@ function QuickActionChipButton({
|
|
|
4875
4883
|
size: tagSize,
|
|
4876
4884
|
icon: resolvedIcon,
|
|
4877
4885
|
label: resolvedLabel,
|
|
4878
|
-
className: question ? "max-w-full" : void 0
|
|
4886
|
+
className: fill ? FILL_TAG_CLASS : question ? "max-w-full" : void 0
|
|
4879
4887
|
}
|
|
4880
4888
|
)
|
|
4881
4889
|
}
|
|
@@ -4886,6 +4894,7 @@ function QuickActionChipFromData({
|
|
|
4886
4894
|
defaultTheme,
|
|
4887
4895
|
defaultLozenge,
|
|
4888
4896
|
interactive = true,
|
|
4897
|
+
fill,
|
|
4889
4898
|
className,
|
|
4890
4899
|
...props
|
|
4891
4900
|
}) {
|
|
@@ -4904,6 +4913,7 @@ function QuickActionChipFromData({
|
|
|
4904
4913
|
onHoverStart: chip.onHoverStart,
|
|
4905
4914
|
onHoverEnd: chip.onHoverEnd,
|
|
4906
4915
|
interactive,
|
|
4916
|
+
fill,
|
|
4907
4917
|
className
|
|
4908
4918
|
}
|
|
4909
4919
|
);
|
|
@@ -4943,9 +4953,9 @@ var iconTint = {
|
|
|
4943
4953
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4944
4954
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4945
4955
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4946
|
-
const { innerRef, containerStyle } =
|
|
4956
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded });
|
|
4947
4957
|
const hasDetails = Boolean(details);
|
|
4948
|
-
const isV2 = useChatAppearance() ===
|
|
4958
|
+
const isV2 = useChatAppearance() === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
4949
4959
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4950
4960
|
"div",
|
|
4951
4961
|
{
|
|
@@ -4979,7 +4989,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4979
4989
|
children: title
|
|
4980
4990
|
}
|
|
4981
4991
|
),
|
|
4982
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4992
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ExpandChevron, { expanded })
|
|
4983
4993
|
]
|
|
4984
4994
|
}
|
|
4985
4995
|
),
|
|
@@ -5228,9 +5238,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5228
5238
|
)
|
|
5229
5239
|
] }),
|
|
5230
5240
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5231
|
-
|
|
5241
|
+
_chunk5L3UKDC6cjs.TicketStatusTag,
|
|
5232
5242
|
{
|
|
5233
|
-
...
|
|
5243
|
+
..._chunk5L3UKDC6cjs.resolveStatusTagProps.call(void 0, {
|
|
5234
5244
|
status: ticketInfo.status,
|
|
5235
5245
|
statusKind: ticketInfo.statusKind,
|
|
5236
5246
|
statusName: ticketInfo.statusName,
|
|
@@ -5869,11 +5879,11 @@ var remarkMentionChips = () => {
|
|
|
5869
5879
|
// src/components/chat/tool-execution-display.tsx
|
|
5870
5880
|
|
|
5871
5881
|
|
|
5872
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5882
|
+
var COMMAND_BODY_KEYS = new Set(_chunk5L3UKDC6cjs.COMMAND_BODY_ARG_KEYS);
|
|
5873
5883
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5874
5884
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5875
5885
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5876
|
-
const { innerRef, containerStyle } =
|
|
5886
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded });
|
|
5877
5887
|
const isClient = assistantType === "fae";
|
|
5878
5888
|
const isClientView = variant === "client";
|
|
5879
5889
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5904,7 +5914,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5904
5914
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
5905
5915
|
const statusLabel = _optionalChain([message, 'access', _98 => _98.statusLabel, 'optionalAccess', _99 => _99.trim, 'call', _100 => _100()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
5906
5916
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5907
|
-
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5917
|
+
!isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBUEEQD3Gcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
5908
5918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5909
5919
|
"div",
|
|
5910
5920
|
{
|
|
@@ -5916,7 +5926,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5916
5926
|
}
|
|
5917
5927
|
),
|
|
5918
5928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
5919
|
-
!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,
|
|
5929
|
+
!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, _chunk5L3UKDC6cjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5920
5930
|
] });
|
|
5921
5931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5922
5932
|
"div",
|
|
@@ -5926,7 +5936,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5926
5936
|
// The command running block keeps its bordered box in both chats
|
|
5927
5937
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5928
5938
|
"flex w-full flex-col overflow-hidden",
|
|
5929
|
-
|
|
5939
|
+
_chunk5L3UKDC6cjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5930
5940
|
className
|
|
5931
5941
|
),
|
|
5932
5942
|
...props,
|
|
@@ -5937,7 +5947,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5937
5947
|
// It reads as a card: what was done, then one status line under it.
|
|
5938
5948
|
/* @__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: [
|
|
5939
5949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5940
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5941
5951
|
] })
|
|
5942
5952
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5943
5953
|
hasBody ? (
|
|
@@ -5956,9 +5966,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5956
5966
|
)
|
|
5957
5967
|
) : /* @__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 }),
|
|
5958
5968
|
/* @__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: [
|
|
5959
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5969
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ArgRow, { argKey: key, value }, key)),
|
|
5960
5970
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5961
|
-
|
|
5971
|
+
_chunk5L3UKDC6cjs.ResultBlock,
|
|
5962
5972
|
{
|
|
5963
5973
|
result: message.result,
|
|
5964
5974
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -5998,7 +6008,7 @@ function ChatMarkdownLink({
|
|
|
5998
6008
|
...anchorProps
|
|
5999
6009
|
}) {
|
|
6000
6010
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
6001
|
-
if (!runtime ||
|
|
6011
|
+
if (!runtime || _chunkAPNONOHYcjs.navLinkTarget.call(void 0, runtime, href).isNewTab) {
|
|
6002
6012
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, className, ...anchorProps, children });
|
|
6003
6013
|
}
|
|
6004
6014
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, ...anchorProps, className: "no-underline", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineChip, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRD4RFX3Kcjs.BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" }) });
|
|
@@ -6006,8 +6016,8 @@ function ChatMarkdownLink({
|
|
|
6006
6016
|
|
|
6007
6017
|
// src/components/chat/chat-message-layout.ts
|
|
6008
6018
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
6009
|
-
[
|
|
6010
|
-
[
|
|
6019
|
+
[_chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
6020
|
+
[_chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
6011
6021
|
};
|
|
6012
6022
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
6013
6023
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -6064,8 +6074,8 @@ var remarkStripCitations = () => {
|
|
|
6064
6074
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
6065
6075
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
6066
6076
|
function formatMessageTimestamp(timestamp) {
|
|
6067
|
-
const time =
|
|
6068
|
-
return
|
|
6077
|
+
const time = _chunk4JHO2NVIcjs.formatTime.call(void 0, timestamp);
|
|
6078
|
+
return _chunk5L3UKDC6cjs.isToday.call(void 0, timestamp) ? time : `${_chunk4JHO2NVIcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
6069
6079
|
}
|
|
6070
6080
|
function normalizeContent(content) {
|
|
6071
6081
|
if (typeof content === "string") {
|
|
@@ -6121,7 +6131,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6121
6131
|
const isError = role === "error";
|
|
6122
6132
|
const inheritedAppearance = useChatAppearance();
|
|
6123
6133
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
6124
|
-
const isV2 = appearance ===
|
|
6134
|
+
const isV2 = appearance === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
6125
6135
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
6126
6136
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
6127
6137
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -6309,7 +6319,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6309
6319
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
6310
6320
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
6311
6321
|
// An agent with no picture shows its packaged mark, never initials.
|
|
6312
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
6313
6323
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6314
6324
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
6315
6325
|
{
|
|
@@ -6327,7 +6337,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6327
6337
|
"div",
|
|
6328
6338
|
{
|
|
6329
6339
|
ref,
|
|
6330
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
6340
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2], className),
|
|
6331
6341
|
...props,
|
|
6332
6342
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
6333
6343
|
}
|
|
@@ -6339,7 +6349,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6339
6349
|
ref,
|
|
6340
6350
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6341
6351
|
"relative",
|
|
6342
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
6352
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2 : _chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC],
|
|
6343
6353
|
className
|
|
6344
6354
|
),
|
|
6345
6355
|
...props,
|
|
@@ -6396,7 +6406,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6396
6406
|
);
|
|
6397
6407
|
} else if (segment.type === "approval_batch") {
|
|
6398
6408
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6399
|
-
|
|
6409
|
+
_chunk5L3UKDC6cjs.ApprovalBatchMessage,
|
|
6400
6410
|
{
|
|
6401
6411
|
data: segment.data,
|
|
6402
6412
|
status: segment.status,
|
|
@@ -6670,7 +6680,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6670
6680
|
approvalVariant,
|
|
6671
6681
|
selfAuthorType,
|
|
6672
6682
|
nameEveryTurn,
|
|
6673
|
-
appearance =
|
|
6683
|
+
appearance = _chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC,
|
|
6674
6684
|
assistantIcon,
|
|
6675
6685
|
pendingApprovals,
|
|
6676
6686
|
hasNextPage,
|
|
@@ -7024,7 +7034,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
7024
7034
|
const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _135 => _135[lastSegments.length - 1]]);
|
|
7025
7035
|
const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
|
|
7026
7036
|
const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
|
|
7027
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7037
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
7028
7038
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
7029
7039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7030
7040
|
"div",
|
|
@@ -7536,7 +7546,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
7536
7546
|
|
|
7537
7547
|
[Attached: ${safeName}](${url})`;
|
|
7538
7548
|
}
|
|
7539
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
7549
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkH3WTYAVRcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
7540
7550
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
7541
7551
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
7542
7552
|
"gm"
|
|
@@ -7800,7 +7810,7 @@ function MarqueeWallFades({
|
|
|
7800
7810
|
}) });
|
|
7801
7811
|
}
|
|
7802
7812
|
function CloneCopy({ className, style, children }) {
|
|
7803
|
-
const ref =
|
|
7813
|
+
const ref = _chunkZABZIM2Ycjs.useSuppressCloneFocus.call(void 0, true);
|
|
7804
7814
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
7805
7815
|
}
|
|
7806
7816
|
function MarqueeWall({
|
|
@@ -7854,7 +7864,7 @@ function MarqueeWall({
|
|
|
7854
7864
|
ro.observe(copy);
|
|
7855
7865
|
return () => ro.disconnect();
|
|
7856
7866
|
}, [measure, marqueeMounted]);
|
|
7857
|
-
const { ref: observe, inView: nearViewport } =
|
|
7867
|
+
const { ref: observe, inView: nearViewport } = _chunkZABZIM2Ycjs.useInView.call(void 0, {
|
|
7858
7868
|
rootMargin: _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
7859
7869
|
initial: true
|
|
7860
7870
|
});
|
|
@@ -7862,7 +7872,7 @@ function MarqueeWall({
|
|
|
7862
7872
|
observe(containerRef.current);
|
|
7863
7873
|
return () => observe(null);
|
|
7864
7874
|
}, [observe]);
|
|
7865
|
-
const autoplay =
|
|
7875
|
+
const autoplay = _chunkZABZIM2Ycjs.useAutoplay.call(void 0, nearViewport);
|
|
7866
7876
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
7867
7877
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
7868
7878
|
pointerInsideRef.current = false;
|
|
@@ -7875,7 +7885,7 @@ function MarqueeWall({
|
|
|
7875
7885
|
if (e.pointerType === "touch") return;
|
|
7876
7886
|
pointerInsideRef.current = false;
|
|
7877
7887
|
}, []);
|
|
7878
|
-
|
|
7888
|
+
_chunkZABZIM2Ycjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
7879
7889
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
7880
7890
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
7881
7891
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -7928,7 +7938,7 @@ function MarqueeWall({
|
|
|
7928
7938
|
if (!sync) return void 0;
|
|
7929
7939
|
return sync.register(member);
|
|
7930
7940
|
}, [sync, member]);
|
|
7931
|
-
const { posRef, wrap } =
|
|
7941
|
+
const { posRef, wrap } = _chunkZABZIM2Ycjs.useMarqueeEngine.call(void 0, {
|
|
7932
7942
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
7933
7943
|
speed,
|
|
7934
7944
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -8237,39 +8247,127 @@ function QuickActionWall({
|
|
|
8237
8247
|
);
|
|
8238
8248
|
}
|
|
8239
8249
|
|
|
8250
|
+
// src/components/page-topic-label.tsx
|
|
8251
|
+
|
|
8252
|
+
function PageTopicLabel({ className }) {
|
|
8253
|
+
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
8254
|
+
if (!topic) return null;
|
|
8255
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8256
|
+
"p",
|
|
8257
|
+
{
|
|
8258
|
+
"data-page-topic": topic,
|
|
8259
|
+
title: "Page topic",
|
|
8260
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "leading-none text-ods-text-muted opacity-60 text-badge", className),
|
|
8261
|
+
children: topic
|
|
8262
|
+
}
|
|
8263
|
+
);
|
|
8264
|
+
}
|
|
8265
|
+
|
|
8240
8266
|
// src/components/chat/mingo-quick-action-wall.tsx
|
|
8241
8267
|
|
|
8268
|
+
var QUICK_ACTION_SET_SLOTS = 4;
|
|
8269
|
+
function QuickActionSet({
|
|
8270
|
+
chips,
|
|
8271
|
+
theme,
|
|
8272
|
+
loading: loadingProp = false,
|
|
8273
|
+
label = "Quick actions",
|
|
8274
|
+
showTopic: showTopicProp,
|
|
8275
|
+
className
|
|
8276
|
+
}) {
|
|
8277
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
8278
|
+
const topicStamp = _chunkIX2E3AN7cjs.usePageTopicStamp.call(void 0, );
|
|
8279
|
+
const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
|
|
8280
|
+
const overflows = chips.length > QUICK_ACTION_SET_SLOTS;
|
|
8281
|
+
const shown = overflows ? chips.slice(0, QUICK_ACTION_SET_SLOTS - 1) : chips;
|
|
8282
|
+
const rest = overflows ? chips.slice(QUICK_ACTION_SET_SLOTS - 1) : [];
|
|
8283
|
+
const empty = loading ? 0 : QUICK_ACTION_SET_SLOTS - shown.length - (overflows ? 1 : 0);
|
|
8284
|
+
const moreItems = rest.map((chip) => {
|
|
8285
|
+
const icon = theme && isQuickActionIconSpec(chip.icon) && !chip.icon.accent ? { ...chip.icon, accent: theme.accent } : chip.icon;
|
|
8286
|
+
return { id: chip.id, label: chip.label, icon: renderQuickActionIcon(icon), onClick: chip.onSelect };
|
|
8287
|
+
});
|
|
8288
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8289
|
+
"div",
|
|
8290
|
+
{
|
|
8291
|
+
role: "group",
|
|
8292
|
+
"aria-label": label,
|
|
8293
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)] @container", className),
|
|
8294
|
+
children: [
|
|
8295
|
+
showTopic && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTopicLabel, { className: "text-right" }),
|
|
8296
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-[var(--spacing-system-xs)] @[18rem]:grid-cols-2 @[48rem]:grid-cols-4", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: QUICK_ACTION_SET_SLOTS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8297
|
+
QuickActionChipButton,
|
|
8298
|
+
{
|
|
8299
|
+
loading: true,
|
|
8300
|
+
fill: true,
|
|
8301
|
+
label: "",
|
|
8302
|
+
icon: true,
|
|
8303
|
+
labelCh: WALL_SKELETON_LABEL_CH[i % WALL_SKELETON_LABEL_CH.length],
|
|
8304
|
+
"data-loading-item": true
|
|
8305
|
+
}
|
|
8306
|
+
) }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
8307
|
+
shown.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipFromData, { chip, defaultTheme: theme, fill: true, "data-loading-item": true }) }, chip.id)),
|
|
8308
|
+
overflows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8309
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
8310
|
+
{
|
|
8311
|
+
groups: [{ items: moreItems }],
|
|
8312
|
+
align: "end",
|
|
8313
|
+
side: "top",
|
|
8314
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8315
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
8316
|
+
{
|
|
8317
|
+
variant: "card",
|
|
8318
|
+
type: "button",
|
|
8319
|
+
"aria-label": `More quick actions (${rest.length})`,
|
|
8320
|
+
className: "w-full min-w-0",
|
|
8321
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8322
|
+
QuickActionChipButton,
|
|
8323
|
+
{
|
|
8324
|
+
interactive: false,
|
|
8325
|
+
fill: true,
|
|
8326
|
+
label: `More (${rest.length})`,
|
|
8327
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 16 })
|
|
8328
|
+
}
|
|
8329
|
+
)
|
|
8330
|
+
}
|
|
8331
|
+
)
|
|
8332
|
+
}
|
|
8333
|
+
) }),
|
|
8334
|
+
Array.from({ length: empty }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Slot, { unused: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionChipButton, { loading: true, fill: true, label: "", icon: true }) }, `empty-${i}`))
|
|
8335
|
+
] }) })
|
|
8336
|
+
]
|
|
8337
|
+
}
|
|
8338
|
+
);
|
|
8339
|
+
}
|
|
8340
|
+
function Slot({ unused = false, children }) {
|
|
8341
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8342
|
+
"div",
|
|
8343
|
+
{
|
|
8344
|
+
"data-testid": "quick-action-slot",
|
|
8345
|
+
"aria-hidden": unused || void 0,
|
|
8346
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0", unused && "invisible"),
|
|
8347
|
+
children
|
|
8348
|
+
}
|
|
8349
|
+
);
|
|
8350
|
+
}
|
|
8242
8351
|
function MingoQuickActionWall({
|
|
8243
8352
|
quickActions,
|
|
8244
|
-
onQuickActionHover,
|
|
8245
|
-
onQuickActionHoverEnd,
|
|
8246
|
-
agentSlug = "mingo",
|
|
8247
8353
|
loading = false,
|
|
8354
|
+
showTopic,
|
|
8248
8355
|
className
|
|
8249
8356
|
}) {
|
|
8250
8357
|
if (quickActions.length === 0 && !loading) return null;
|
|
8251
8358
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8252
|
-
|
|
8359
|
+
QuickActionSet,
|
|
8253
8360
|
{
|
|
8254
8361
|
chips: quickActions.map((action) => ({
|
|
8255
8362
|
id: action.id,
|
|
8256
8363
|
label: action.label,
|
|
8257
8364
|
icon: action.icon,
|
|
8258
8365
|
variant: action.variant,
|
|
8259
|
-
onSelect: action.onClick
|
|
8260
|
-
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _155 => _155(action)]),
|
|
8261
|
-
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _156 => _156()])
|
|
8366
|
+
onSelect: action.onClick
|
|
8262
8367
|
})),
|
|
8263
|
-
agentSlug,
|
|
8264
8368
|
loading,
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
dragScroll: true,
|
|
8268
|
-
fade: ["left", "right"],
|
|
8269
|
-
fadeSize: { left: 32 },
|
|
8270
|
-
fadeColor: "var(--color-bg)",
|
|
8271
|
-
copyGap: "var(--spacing-system-xxs)",
|
|
8272
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "max-h-44 shrink-0", className)
|
|
8369
|
+
showTopic,
|
|
8370
|
+
className
|
|
8273
8371
|
}
|
|
8274
8372
|
);
|
|
8275
8373
|
}
|
|
@@ -8368,11 +8466,11 @@ var MINGO_DIALOG_STATUS_GLYPHS = {
|
|
|
8368
8466
|
};
|
|
8369
8467
|
function dialogOwnedByOther(dialog, ownedByOther, currentUserId) {
|
|
8370
8468
|
if (ownedByOther) return ownedByOther(dialog);
|
|
8371
|
-
const ownerId = _optionalChain([dialog, 'access',
|
|
8469
|
+
const ownerId = _optionalChain([dialog, 'access', _155 => _155.owner, 'optionalAccess', _156 => _156.id]);
|
|
8372
8470
|
return !!currentUserId && !!ownerId && ownerId !== currentUserId;
|
|
8373
8471
|
}
|
|
8374
8472
|
function mingoDialogStatusOf(dialog, statusOf) {
|
|
8375
|
-
return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall',
|
|
8473
|
+
return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _157 => _157(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
|
|
8376
8474
|
}
|
|
8377
8475
|
function ChatListLoadError({ onRetry, className }) {
|
|
8378
8476
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col items-center gap-[var(--spacing-system-m)] text-center", className), children: [
|
|
@@ -8410,7 +8508,7 @@ function useLoadMoreSentinel({
|
|
|
8410
8508
|
threshold: 0.1
|
|
8411
8509
|
};
|
|
8412
8510
|
const observer = new IntersectionObserver(([entry]) => {
|
|
8413
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
8511
|
+
if (_optionalChain([entry, 'optionalAccess', _158 => _158.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _159 => _159.current, 'optionalCall', _160 => _160()]);
|
|
8414
8512
|
}, options);
|
|
8415
8513
|
observer.observe(sentinel);
|
|
8416
8514
|
return () => observer.disconnect();
|
|
@@ -8503,11 +8601,11 @@ function MingoChatHistoryRow({
|
|
|
8503
8601
|
...props
|
|
8504
8602
|
}) {
|
|
8505
8603
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
|
|
8506
|
-
const title = _optionalChain([dialog, 'optionalAccess',
|
|
8507
|
-
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess',
|
|
8604
|
+
const title = _optionalChain([dialog, 'optionalAccess', _161 => _161.title]) || "Untitled Chat";
|
|
8605
|
+
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _162 => _162.unreadMessagesCount]), () => ( 0));
|
|
8508
8606
|
const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
|
|
8509
|
-
const owner = _optionalChain([dialog, 'optionalAccess',
|
|
8510
|
-
const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess',
|
|
8607
|
+
const owner = _optionalChain([dialog, 'optionalAccess', _163 => _163.owner]);
|
|
8608
|
+
const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _164 => _164.name]) || _optionalChain([owner, 'optionalAccess', _165 => _165.avatarUrl]));
|
|
8511
8609
|
const [menuOpen, setMenuOpen] = _react.useState.call(void 0, false);
|
|
8512
8610
|
const menuItems = dialog ? chatDialogMenuItems({
|
|
8513
8611
|
onCopyLink: onRequestCopyLink && (() => onRequestCopyLink(dialog)),
|
|
@@ -8515,7 +8613,7 @@ function MingoChatHistoryRow({
|
|
|
8515
8613
|
onCompact: onRequestCompact && (() => onRequestCompact(dialog)),
|
|
8516
8614
|
onArchive: onRequestArchive && (() => onRequestArchive(dialog))
|
|
8517
8615
|
}) : [];
|
|
8518
|
-
const select = () => dialog && _optionalChain([onSelect, 'optionalCall',
|
|
8616
|
+
const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _166 => _166(dialog.id)]);
|
|
8519
8617
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8520
8618
|
"div",
|
|
8521
8619
|
{
|
|
@@ -8549,7 +8647,7 @@ function MingoChatHistoryRow({
|
|
|
8549
8647
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
8550
8648
|
),
|
|
8551
8649
|
children: [
|
|
8552
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className:
|
|
8650
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: _chunk4JHO2NVIcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunk4JHO2NVIcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
8553
8651
|
!loading && unread > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-8 min-w-8 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xsf)] text-ods-text-on-accent text-h5", children: unread > 99 ? "99+" : unread }) : null,
|
|
8554
8652
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8555
8653
|
"span",
|
|
@@ -8583,7 +8681,7 @@ function MingoChatHistoryRow({
|
|
|
8583
8681
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
8584
8682
|
),
|
|
8585
8683
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8586
|
-
|
|
8684
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
8587
8685
|
{
|
|
8588
8686
|
triggerAriaLabel: "Chat actions",
|
|
8589
8687
|
groups: [{ items: menuItems }],
|
|
@@ -8613,7 +8711,7 @@ function MingoChatHistoryRow({
|
|
|
8613
8711
|
"span",
|
|
8614
8712
|
{
|
|
8615
8713
|
onClick: select,
|
|
8616
|
-
title: _optionalChain([owner, 'optionalAccess',
|
|
8714
|
+
title: _optionalChain([owner, 'optionalAccess', _167 => _167.name]) || void 0,
|
|
8617
8715
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
8618
8716
|
"absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
|
|
8619
8717
|
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")
|
|
@@ -8623,9 +8721,9 @@ function MingoChatHistoryRow({
|
|
|
8623
8721
|
{
|
|
8624
8722
|
variant: "round",
|
|
8625
8723
|
sizePx: 24,
|
|
8626
|
-
src: _optionalChain([owner, 'optionalAccess',
|
|
8627
|
-
alt: _optionalChain([owner, 'optionalAccess',
|
|
8628
|
-
fallback: _optionalChain([owner, 'optionalAccess',
|
|
8724
|
+
src: _optionalChain([owner, 'optionalAccess', _168 => _168.avatarUrl]) || void 0,
|
|
8725
|
+
alt: _optionalChain([owner, 'optionalAccess', _169 => _169.name]) || void 0,
|
|
8726
|
+
fallback: _optionalChain([owner, 'optionalAccess', _170 => _170.name]) || void 0,
|
|
8629
8727
|
initialsClassName: "text-[10px] text-ods-text-secondary"
|
|
8630
8728
|
}
|
|
8631
8729
|
)
|
|
@@ -8675,8 +8773,8 @@ function MingoChatHistory({
|
|
|
8675
8773
|
}) {
|
|
8676
8774
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
8677
8775
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
8678
|
-
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess',
|
|
8679
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8776
|
+
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _171 => _171.trim, 'call', _172 => _172()]);
|
|
8777
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk4JHO2NVIcjs.useScrollFade.call(void 0, );
|
|
8680
8778
|
const onScroll = loadMore === "scroll";
|
|
8681
8779
|
const sentinelRef = useLoadMoreSentinel({
|
|
8682
8780
|
hasMore: hasMore && onScroll,
|
|
@@ -8739,8 +8837,8 @@ function MingoChatHistory({
|
|
|
8739
8837
|
]
|
|
8740
8838
|
}
|
|
8741
8839
|
),
|
|
8742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8743
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8840
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
8841
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
8744
8842
|
] }) });
|
|
8745
8843
|
}
|
|
8746
8844
|
|
|
@@ -8761,8 +8859,6 @@ function MingoWelcome({
|
|
|
8761
8859
|
promoStorageKey = DEFAULT_PROMO_STORAGE_KEY,
|
|
8762
8860
|
promoStorage = "local",
|
|
8763
8861
|
quickActions,
|
|
8764
|
-
onQuickActionHover,
|
|
8765
|
-
onQuickActionHoverEnd,
|
|
8766
8862
|
hasExistingChats = false,
|
|
8767
8863
|
dialogHistory,
|
|
8768
8864
|
isLoadingHistory = false,
|
|
@@ -8770,7 +8866,7 @@ function MingoWelcome({
|
|
|
8770
8866
|
loadError = false,
|
|
8771
8867
|
onRetry,
|
|
8772
8868
|
onStartGuideChat,
|
|
8773
|
-
|
|
8869
|
+
quickActionsLoading = false,
|
|
8774
8870
|
className
|
|
8775
8871
|
}) {
|
|
8776
8872
|
const heading = _nullishCoalesce(title, () => ( "Hey, I'm Mingo"));
|
|
@@ -8796,7 +8892,7 @@ function MingoWelcome({
|
|
|
8796
8892
|
} catch (e8) {
|
|
8797
8893
|
}
|
|
8798
8894
|
}, [promoStorage, promoStorageKey]);
|
|
8799
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8895
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk4JHO2NVIcjs.useScrollFade.call(void 0, );
|
|
8800
8896
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
8801
8897
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8802
8898
|
"div",
|
|
@@ -8828,7 +8924,7 @@ function MingoWelcome({
|
|
|
8828
8924
|
onScroll: updateScrollFade,
|
|
8829
8925
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8830
8926
|
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: [
|
|
8831
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8927
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8832
8928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8833
8929
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8834
8930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8836,8 +8932,8 @@ function MingoWelcome({
|
|
|
8836
8932
|
] })
|
|
8837
8933
|
}
|
|
8838
8934
|
),
|
|
8839
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8840
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8935
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8936
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8841
8937
|
] }) })))),
|
|
8842
8938
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
8843
8939
|
resolvedPromo && !promoDismissed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex shrink-0 items-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)] pr-[var(--spacing-system-xl)]", children: [
|
|
@@ -8859,7 +8955,7 @@ function MingoWelcome({
|
|
|
8859
8955
|
}
|
|
8860
8956
|
)
|
|
8861
8957
|
] }),
|
|
8862
|
-
(onStartGuideChat || quickActions && quickActions.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--
|
|
8958
|
+
(onStartGuideChat || quickActions && quickActions.length > 0 || quickActionsLoading) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
8863
8959
|
onStartGuideChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8864
8960
|
QuickActionChipButton,
|
|
8865
8961
|
{
|
|
@@ -8870,13 +8966,11 @@ function MingoWelcome({
|
|
|
8870
8966
|
className: "self-start"
|
|
8871
8967
|
}
|
|
8872
8968
|
),
|
|
8873
|
-
|
|
8969
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8874
8970
|
MingoQuickActionWall,
|
|
8875
8971
|
{
|
|
8876
|
-
quickActions,
|
|
8877
|
-
|
|
8878
|
-
onQuickActionHoverEnd,
|
|
8879
|
-
agentSlug
|
|
8972
|
+
quickActions: _nullishCoalesce(quickActions, () => ( [])),
|
|
8973
|
+
loading: quickActionsLoading && !_optionalChain([quickActions, 'optionalAccess', _173 => _173.length])
|
|
8880
8974
|
}
|
|
8881
8975
|
)
|
|
8882
8976
|
] })
|
|
@@ -8886,22 +8980,6 @@ function MingoWelcome({
|
|
|
8886
8980
|
);
|
|
8887
8981
|
}
|
|
8888
8982
|
|
|
8889
|
-
// src/components/page-topic-label.tsx
|
|
8890
|
-
|
|
8891
|
-
function PageTopicLabel({ className }) {
|
|
8892
|
-
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
8893
|
-
if (!topic) return null;
|
|
8894
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8895
|
-
"p",
|
|
8896
|
-
{
|
|
8897
|
-
"data-page-topic": topic,
|
|
8898
|
-
title: "Page topic",
|
|
8899
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "leading-none text-ods-text-muted opacity-60 text-badge", className),
|
|
8900
|
-
children: topic
|
|
8901
|
-
}
|
|
8902
|
-
);
|
|
8903
|
-
}
|
|
8904
|
-
|
|
8905
8983
|
// src/components/chat/guide-welcome.tsx
|
|
8906
8984
|
|
|
8907
8985
|
|
|
@@ -8915,15 +8993,10 @@ function GuideWelcome({
|
|
|
8915
8993
|
quickActionsLoading = false,
|
|
8916
8994
|
showTopic: showTopicProp,
|
|
8917
8995
|
onQuickAction,
|
|
8918
|
-
onQuickActionHover,
|
|
8919
|
-
onQuickActionHoverEnd,
|
|
8920
|
-
agentSlug,
|
|
8921
8996
|
children,
|
|
8922
8997
|
className
|
|
8923
8998
|
}) {
|
|
8924
|
-
const
|
|
8925
|
-
const showTopic = _nullishCoalesce(showTopicProp, () => ( topicStamp));
|
|
8926
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkIBD2FPSXcjs.useScrollFade.call(void 0, );
|
|
8999
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk4JHO2NVIcjs.useScrollFade.call(void 0, );
|
|
8927
9000
|
const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
8928
9001
|
const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
|
|
8929
9002
|
const chipsAreLoading = inLoadingScope || quickActionsLoading && quickActions.length === 0;
|
|
@@ -8942,11 +9015,9 @@ function GuideWelcome({
|
|
|
8942
9015
|
props: action.iconProps,
|
|
8943
9016
|
accent: _nullishCoalesce(_nullishCoalesce(action.accent, () => ( accentFromIdentityIcon(icon))), () => ( "cyan"))
|
|
8944
9017
|
},
|
|
8945
|
-
onSelect: () => _optionalChain([onQuickAction, 'optionalCall',
|
|
8946
|
-
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _176 => _176(action)]),
|
|
8947
|
-
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _177 => _177()])
|
|
9018
|
+
onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _174 => _174(action)])
|
|
8948
9019
|
})),
|
|
8949
|
-
[quickActions, icon, onQuickAction
|
|
9020
|
+
[quickActions, icon, onQuickAction]
|
|
8950
9021
|
);
|
|
8951
9022
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: [
|
|
8952
9023
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
@@ -8961,8 +9032,8 @@ function GuideWelcome({
|
|
|
8961
9032
|
icon && (icon.name || icon.url) ? (
|
|
8962
9033
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
8963
9034
|
// match the default Mingo mark (48px).
|
|
8964
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8965
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9035
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
9036
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8966
9037
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8967
9038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
8968
9039
|
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4 max-w-80" }) }) : subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : null
|
|
@@ -8972,26 +9043,10 @@ function GuideWelcome({
|
|
|
8972
9043
|
]
|
|
8973
9044
|
}
|
|
8974
9045
|
),
|
|
8975
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8976
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9046
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
9047
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8977
9048
|
] }),
|
|
8978
|
-
|
|
8979
|
-
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8980
|
-
QuickActionWall,
|
|
8981
|
-
{
|
|
8982
|
-
chips: chipItems,
|
|
8983
|
-
loading: chipsAreLoading,
|
|
8984
|
-
agentSlug,
|
|
8985
|
-
rows: 4,
|
|
8986
|
-
pauseOnHover: true,
|
|
8987
|
-
dragScroll: true,
|
|
8988
|
-
fade: ["left", "right"],
|
|
8989
|
-
fadeSize: { left: 32 },
|
|
8990
|
-
fadeColor: "var(--color-bg)",
|
|
8991
|
-
copyGap: "var(--spacing-system-xxs)",
|
|
8992
|
-
className: "max-h-44 shrink-0"
|
|
8993
|
-
}
|
|
8994
|
-
)
|
|
9049
|
+
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
|
|
8995
9050
|
] });
|
|
8996
9051
|
}
|
|
8997
9052
|
|
|
@@ -9010,9 +9065,9 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
9010
9065
|
children: [
|
|
9011
9066
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
|
|
9012
9067
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
|
|
9013
|
-
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9014
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9015
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9068
|
+
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
9069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "bare", size: "icon-inline", type: "button", "aria-label": "About Guide Mode", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16, className: "text-ods-text-on-accent" }) }) }),
|
|
9070
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
|
|
9016
9071
|
] }) })
|
|
9017
9072
|
]
|
|
9018
9073
|
}
|
|
@@ -9045,7 +9100,7 @@ function MingoArchiveList({
|
|
|
9045
9100
|
if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
|
|
9046
9101
|
const observer = new IntersectionObserver(
|
|
9047
9102
|
([entry]) => {
|
|
9048
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
9103
|
+
if (_optionalChain([entry, 'optionalAccess', _175 => _175.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177()]);
|
|
9049
9104
|
},
|
|
9050
9105
|
{ rootMargin: "120px", threshold: 0.1 }
|
|
9051
9106
|
);
|
|
@@ -9059,15 +9114,15 @@ function MingoArchiveList({
|
|
|
9059
9114
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
9060
9115
|
children: [
|
|
9061
9116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 px-[var(--spacing-system-xs)] pt-[var(--spacing-system-xs)] text-ods-text-secondary text-h5", children: "Archived Chats" }),
|
|
9062
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9117
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9063
9118
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9064
|
-
|
|
9119
|
+
_chunk4JHO2NVIcjs.ChatListItem,
|
|
9065
9120
|
{
|
|
9066
9121
|
"data-loading-item": true,
|
|
9067
9122
|
title: dialog.title || "Untitled Chat",
|
|
9068
|
-
onClick: () => _optionalChain([onSelectDialog, 'optionalCall',
|
|
9123
|
+
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _178 => _178(dialog.id)]),
|
|
9069
9124
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
9070
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
9125
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunk5L3UKDC6cjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
9071
9126
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9072
9127
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
9073
9128
|
{
|
|
@@ -9173,8 +9228,8 @@ function MingoChatHeader({
|
|
|
9173
9228
|
ChatHeaderRenameField,
|
|
9174
9229
|
{
|
|
9175
9230
|
initialValue: title,
|
|
9176
|
-
onSubmit: (value) => _optionalChain([onRenameSubmit, 'optionalCall',
|
|
9177
|
-
onCancel: () => _optionalChain([onRenameCancel, 'optionalCall',
|
|
9231
|
+
onSubmit: (value) => _optionalChain([onRenameSubmit, 'optionalCall', _179 => _179(value)]),
|
|
9232
|
+
onCancel: () => _optionalChain([onRenameCancel, 'optionalCall', _180 => _180()])
|
|
9178
9233
|
},
|
|
9179
9234
|
title
|
|
9180
9235
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3", isPage && "min-w-0"), children: title });
|
|
@@ -9215,7 +9270,7 @@ function MingoChatHeader({
|
|
|
9215
9270
|
] }),
|
|
9216
9271
|
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
9217
9272
|
menuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9218
|
-
|
|
9273
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
9219
9274
|
{
|
|
9220
9275
|
triggerAriaLabel: "Chat actions",
|
|
9221
9276
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -9251,7 +9306,7 @@ function ChatHeaderSearchField({
|
|
|
9251
9306
|
className
|
|
9252
9307
|
}) {
|
|
9253
9308
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9254
|
-
const debounced =
|
|
9309
|
+
const debounced = _chunkZABZIM2Ycjs.useDebounce.call(void 0, value, 300);
|
|
9255
9310
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9256
9311
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
9257
9312
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -9264,7 +9319,7 @@ function ChatHeaderSearchField({
|
|
|
9264
9319
|
const finishCollapse = _react.useCallback.call(void 0, () => {
|
|
9265
9320
|
if (collapsedRef.current) return;
|
|
9266
9321
|
collapsedRef.current = true;
|
|
9267
|
-
_optionalChain([onCollapse, 'optionalCall',
|
|
9322
|
+
_optionalChain([onCollapse, 'optionalCall', _181 => _181()]);
|
|
9268
9323
|
}, [onCollapse]);
|
|
9269
9324
|
const beginCollapse = _react.useCallback.call(void 0, () => {
|
|
9270
9325
|
setExiting(true);
|
|
@@ -9408,7 +9463,7 @@ function SearchInput({
|
|
|
9408
9463
|
}) {
|
|
9409
9464
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
9410
9465
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
9411
|
-
const debouncedValue =
|
|
9466
|
+
const debouncedValue = _chunkZABZIM2Ycjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
9412
9467
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
9413
9468
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
9414
9469
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -9436,7 +9491,7 @@ function SearchInput({
|
|
|
9436
9491
|
if (!showHiddenTags) return void 0;
|
|
9437
9492
|
const handleClick = (e) => {
|
|
9438
9493
|
const target = e.target;
|
|
9439
|
-
if (!_optionalChain([hiddenTagsRef, 'access',
|
|
9494
|
+
if (!_optionalChain([hiddenTagsRef, 'access', _182 => _182.current, 'optionalAccess', _183 => _183.contains, 'call', _184 => _184(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _185 => _185.current, 'optionalAccess', _186 => _186.contains, 'call', _187 => _187(target)])) {
|
|
9440
9495
|
setShowHiddenTags(false);
|
|
9441
9496
|
}
|
|
9442
9497
|
};
|
|
@@ -9447,7 +9502,7 @@ function SearchInput({
|
|
|
9447
9502
|
const popup = hiddenTagsPopupRef.current;
|
|
9448
9503
|
const badge = badgeRef.current;
|
|
9449
9504
|
if (!popup || !badge) return;
|
|
9450
|
-
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access',
|
|
9505
|
+
const originLeft = _nullishCoalesce(_optionalChain([containerRef, 'access', _188 => _188.current, 'optionalAccess', _189 => _189.getBoundingClientRect, 'call', _190 => _190(), 'access', _191 => _191.left]), () => ( 0));
|
|
9451
9506
|
popup.style.left = `${badge.getBoundingClientRect().left - originLeft}px`;
|
|
9452
9507
|
});
|
|
9453
9508
|
const hiddenCount = filterChips.length - visibleCount;
|
|
@@ -9482,7 +9537,7 @@ function SearchInput({
|
|
|
9482
9537
|
} else {
|
|
9483
9538
|
setInternalValue(newVal);
|
|
9484
9539
|
}
|
|
9485
|
-
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
9540
|
+
if (newVal === "" && currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _192 => _192("")]);
|
|
9486
9541
|
if (!isOpen) setIsOpen(true);
|
|
9487
9542
|
setHighlightedIndex(-1);
|
|
9488
9543
|
};
|
|
@@ -9494,11 +9549,11 @@ function SearchInput({
|
|
|
9494
9549
|
} else {
|
|
9495
9550
|
setInternalValue("");
|
|
9496
9551
|
}
|
|
9497
|
-
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall',
|
|
9498
|
-
_optionalChain([inputRef, 'access',
|
|
9552
|
+
if (currentValue !== "") _optionalChain([onSubmit, 'optionalCall', _193 => _193("")]);
|
|
9553
|
+
_optionalChain([inputRef, 'access', _194 => _194.current, 'optionalAccess', _195 => _195.focus, 'call', _196 => _196()]);
|
|
9499
9554
|
};
|
|
9500
9555
|
const handleResultClick = (result, e) => {
|
|
9501
|
-
_optionalChain([onResultSelect, 'optionalCall',
|
|
9556
|
+
_optionalChain([onResultSelect, 'optionalCall', _197 => _197(
|
|
9502
9557
|
result,
|
|
9503
9558
|
e ? {
|
|
9504
9559
|
metaKey: e.metaKey,
|
|
@@ -9526,7 +9581,7 @@ function SearchInput({
|
|
|
9526
9581
|
if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
|
|
9527
9582
|
handleResultClick(flatResults[highlightedIndex]);
|
|
9528
9583
|
} else {
|
|
9529
|
-
_optionalChain([onSubmit, 'optionalCall',
|
|
9584
|
+
_optionalChain([onSubmit, 'optionalCall', _198 => _198(currentValue)]);
|
|
9530
9585
|
}
|
|
9531
9586
|
break;
|
|
9532
9587
|
case "Escape":
|
|
@@ -9611,7 +9666,7 @@ function SearchInput({
|
|
|
9611
9666
|
),
|
|
9612
9667
|
onClick: () => {
|
|
9613
9668
|
if (disabled) return;
|
|
9614
|
-
_optionalChain([inputRef, 'access',
|
|
9669
|
+
_optionalChain([inputRef, 'access', _199 => _199.current, 'optionalAccess', _200 => _200.focus, 'call', _201 => _201()]);
|
|
9615
9670
|
setIsOpen(true);
|
|
9616
9671
|
},
|
|
9617
9672
|
children: [
|
|
@@ -9696,10 +9751,10 @@ function SearchInput({
|
|
|
9696
9751
|
collisionPadding: { bottom: keyboardPadding },
|
|
9697
9752
|
onOpenAutoFocus: (e) => {
|
|
9698
9753
|
e.preventDefault();
|
|
9699
|
-
_optionalChain([inputRef, 'access',
|
|
9754
|
+
_optionalChain([inputRef, 'access', _202 => _202.current, 'optionalAccess', _203 => _203.focus, 'call', _204 => _204()]);
|
|
9700
9755
|
},
|
|
9701
9756
|
onInteractOutside: (e) => {
|
|
9702
|
-
if (_optionalChain([containerRef, 'access',
|
|
9757
|
+
if (_optionalChain([containerRef, 'access', _205 => _205.current, 'optionalAccess', _206 => _206.contains, 'call', _207 => _207(e.target)])) {
|
|
9703
9758
|
e.preventDefault();
|
|
9704
9759
|
}
|
|
9705
9760
|
},
|
|
@@ -9711,12 +9766,12 @@ function SearchInput({
|
|
|
9711
9766
|
)
|
|
9712
9767
|
] }),
|
|
9713
9768
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9714
|
-
|
|
9769
|
+
_chunk4JHO2NVIcjs.HiddenTagsPopup,
|
|
9715
9770
|
{
|
|
9716
9771
|
ref: hiddenTagsPopupRef,
|
|
9717
9772
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
9718
9773
|
onRemove: (removedTag) => {
|
|
9719
|
-
_optionalChain([onFilterRemove, 'optionalCall',
|
|
9774
|
+
_optionalChain([onFilterRemove, 'optionalCall', _208 => _208(removedTag)]);
|
|
9720
9775
|
if (hiddenCount <= 1) setShowHiddenTags(false);
|
|
9721
9776
|
}
|
|
9722
9777
|
}
|
|
@@ -9814,7 +9869,7 @@ function HistoryList({
|
|
|
9814
9869
|
);
|
|
9815
9870
|
}
|
|
9816
9871
|
const groups = groupDialogsByDay(dialogs);
|
|
9817
|
-
const draftInToday = !!draftTitle && _optionalChain([groups, 'access',
|
|
9872
|
+
const draftInToday = !!draftTitle && _optionalChain([groups, 'access', _209 => _209[0], 'optionalAccess', _210 => _210.key]) === "today";
|
|
9818
9873
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
9819
9874
|
draftTitle && !draftInToday && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DayGroup, { label: "Today", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SectionRow, { title: draftTitle, active: true }) }),
|
|
9820
9875
|
groups.map((group, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DayGroup, { label: group.label, children: [
|
|
@@ -9826,10 +9881,10 @@ function HistoryList({
|
|
|
9826
9881
|
title: dialog.title || UNTITLED,
|
|
9827
9882
|
active: dialog.id === activeDialogId,
|
|
9828
9883
|
status: mingoDialogStatusOf(dialog, statusOf),
|
|
9829
|
-
ownerName: dialogOwnedByOther(dialog, ownedByOther, currentUserId) ? _optionalChain([dialog, 'access',
|
|
9830
|
-
ownerAvatarUrl: _optionalChain([dialog, 'access',
|
|
9884
|
+
ownerName: dialogOwnedByOther(dialog, ownedByOther, currentUserId) ? _optionalChain([dialog, 'access', _211 => _211.owner, 'optionalAccess', _212 => _212.name]) || void 0 : void 0,
|
|
9885
|
+
ownerAvatarUrl: _optionalChain([dialog, 'access', _213 => _213.owner, 'optionalAccess', _214 => _214.avatarUrl]) || void 0,
|
|
9831
9886
|
onSelect,
|
|
9832
|
-
menuItems: _optionalChain([menuFor, 'optionalCall',
|
|
9887
|
+
menuItems: _optionalChain([menuFor, 'optionalCall', _215 => _215(dialog)])
|
|
9833
9888
|
},
|
|
9834
9889
|
dialog.id
|
|
9835
9890
|
))
|
|
@@ -9881,15 +9936,15 @@ function MingoChatHistorySection({
|
|
|
9881
9936
|
className
|
|
9882
9937
|
}) {
|
|
9883
9938
|
const captionId = _react.useId.call(void 0, );
|
|
9884
|
-
const visitor =
|
|
9939
|
+
const visitor = _chunkZABZIM2Ycjs.useVisitorOs.call(void 0, );
|
|
9885
9940
|
const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
|
|
9886
9941
|
prop: searchOpenProp,
|
|
9887
9942
|
defaultProp: false,
|
|
9888
9943
|
onChange: onSearchOpenChange
|
|
9889
9944
|
});
|
|
9890
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
9945
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _216 => _216.trim, 'call', _217 => _217()]);
|
|
9891
9946
|
const showSearch = searchOpen && !!onSearchChange;
|
|
9892
|
-
const shortcut = visitor.known ?
|
|
9947
|
+
const shortcut = visitor.known ? _chunkZABZIM2Ycjs.shortcutLabel.call(void 0, visitor.os, "K") : null;
|
|
9893
9948
|
const listProps = {
|
|
9894
9949
|
dialogs,
|
|
9895
9950
|
activeDialogId,
|
|
@@ -9938,7 +9993,7 @@ function MingoChatHistorySection({
|
|
|
9938
9993
|
onClick: () => onScopeChange("all")
|
|
9939
9994
|
}
|
|
9940
9995
|
] : [];
|
|
9941
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9996
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: [
|
|
9942
9997
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9943
9998
|
"section",
|
|
9944
9999
|
{
|
|
@@ -9947,29 +10002,29 @@ function MingoChatHistorySection({
|
|
|
9947
10002
|
children: [
|
|
9948
10003
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xs)] px-[var(--spacing-system-xs)]", children: [
|
|
9949
10004
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { id: captionId, className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h5", children: "Chat history" }),
|
|
9950
|
-
onSearchChange && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10005
|
+
onSearchChange && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
10006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9952
10007
|
_chunkFCZAUK4Dcjs.Button,
|
|
9953
10008
|
{
|
|
9954
10009
|
variant: "transparent",
|
|
9955
10010
|
size: "icon",
|
|
9956
10011
|
"aria-label": "Search chats",
|
|
9957
|
-
"aria-keyshortcuts": shortcut ?
|
|
10012
|
+
"aria-keyshortcuts": shortcut ? _chunkZABZIM2Ycjs.usesCommandKey.call(void 0, visitor.os) ? "Meta+K" : "Control+K" : void 0,
|
|
9958
10013
|
onClick: () => setSearchOpen(true),
|
|
9959
10014
|
className: ICON_BUTTON_CLASS,
|
|
9960
10015
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 20 })
|
|
9961
10016
|
}
|
|
9962
10017
|
) }),
|
|
9963
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10018
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: shortcut ? `Search chats \xB7 ${shortcut}` : "Search chats" })
|
|
9964
10019
|
] }),
|
|
9965
|
-
scopeMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10020
|
+
scopeMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
9966
10021
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9967
|
-
|
|
10022
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
9968
10023
|
{
|
|
9969
10024
|
triggerAriaLabel: "Filter chats",
|
|
9970
10025
|
groups: [{ items: scopeMenu }],
|
|
9971
10026
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
9972
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10027
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9973
10028
|
_chunkFCZAUK4Dcjs.Button,
|
|
9974
10029
|
{
|
|
9975
10030
|
variant: "transparent",
|
|
@@ -9981,19 +10036,19 @@ function MingoChatHistorySection({
|
|
|
9981
10036
|
) })
|
|
9982
10037
|
}
|
|
9983
10038
|
),
|
|
9984
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: scope === "all" ? "Showing all chats" : "Showing my chats" })
|
|
9985
10040
|
] }),
|
|
9986
|
-
moreMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10041
|
+
moreMenu.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
9987
10042
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9988
|
-
|
|
10043
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
9989
10044
|
{
|
|
9990
10045
|
triggerAriaLabel: "More",
|
|
9991
10046
|
groups: [{ items: moreMenu }],
|
|
9992
10047
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
9993
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10048
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "transparent", size: "icon", "aria-label": "More", className: ICON_BUTTON_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 20 }) }) })
|
|
9994
10049
|
}
|
|
9995
10050
|
),
|
|
9996
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10051
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "bottom", children: "More" })
|
|
9997
10052
|
] })
|
|
9998
10053
|
] }),
|
|
9999
10054
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10042,11 +10097,11 @@ function MingoChatSearchModal({
|
|
|
10042
10097
|
HistoryList,
|
|
10043
10098
|
{
|
|
10044
10099
|
...listProps,
|
|
10045
|
-
hasSearch: !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10100
|
+
hasSearch: !!_optionalChain([searchQuery, 'optionalAccess', _218 => _218.trim, 'call', _219 => _219()]),
|
|
10046
10101
|
onSelect: (id) => {
|
|
10047
10102
|
onOpenChange(false);
|
|
10048
|
-
if (_optionalChain([searchQuery, 'optionalAccess',
|
|
10049
|
-
_optionalChain([onSelectDialog, 'optionalCall',
|
|
10103
|
+
if (_optionalChain([searchQuery, 'optionalAccess', _220 => _220.trim, 'call', _221 => _221()])) onSearchChange("");
|
|
10104
|
+
_optionalChain([onSelectDialog, 'optionalCall', _222 => _222(id)]);
|
|
10050
10105
|
}
|
|
10051
10106
|
}
|
|
10052
10107
|
) }),
|
|
@@ -10055,7 +10110,7 @@ function MingoChatSearchModal({
|
|
|
10055
10110
|
}
|
|
10056
10111
|
function SearchModalContent({ initialValue, onSearchChange, onClose, children }) {
|
|
10057
10112
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10058
|
-
const debounced =
|
|
10113
|
+
const debounced = _chunkZABZIM2Ycjs.useDebounce.call(void 0, value, 300);
|
|
10059
10114
|
const lastSent = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10060
10115
|
const fieldRef = _react.useRef.call(void 0, null);
|
|
10061
10116
|
const send = (term) => {
|
|
@@ -10069,15 +10124,15 @@ function SearchModalContent({ initialValue, onSearchChange, onClose, children })
|
|
|
10069
10124
|
onSearchChange(debounced);
|
|
10070
10125
|
}, [debounced, onSearchChange]);
|
|
10071
10126
|
_react.useEffect.call(void 0, () => {
|
|
10072
|
-
const frame = requestAnimationFrame(() => _optionalChain([fieldRef, 'access',
|
|
10127
|
+
const frame = requestAnimationFrame(() => _optionalChain([fieldRef, 'access', _223 => _223.current, 'optionalAccess', _224 => _224.querySelector, 'call', _225 => _225("input"), 'optionalAccess', _226 => _226.focus, 'call', _227 => _227()]));
|
|
10073
10128
|
return () => cancelAnimationFrame(frame);
|
|
10074
10129
|
}, []);
|
|
10075
10130
|
const close = () => {
|
|
10076
10131
|
send("");
|
|
10077
10132
|
onClose();
|
|
10078
10133
|
};
|
|
10079
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10134
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.Modal, { isOpen: true, onClose: close, className: "md:max-w-[600px]", children: [
|
|
10135
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalTitle, { children: "Search chats" }) }),
|
|
10081
10136
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: fieldRef, role: "search", "aria-label": "Search chats", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10082
10137
|
SearchInput,
|
|
10083
10138
|
{
|
|
@@ -10133,12 +10188,12 @@ function SectionRow({
|
|
|
10133
10188
|
// A row that lands in a day already on screen (the next page) fades in too.
|
|
10134
10189
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "group/row relative shrink-0 duration-300 animate-in fade-in motion-reduce:animate-none", children: [
|
|
10135
10190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10136
|
-
|
|
10191
|
+
_chunk4JHO2NVIcjs.ChatListItem,
|
|
10137
10192
|
{
|
|
10138
10193
|
active,
|
|
10139
10194
|
title,
|
|
10140
10195
|
tabIndex: dialog ? void 0 : -1,
|
|
10141
|
-
onClick: dialog ? () => _optionalChain([onSelect, 'optionalCall',
|
|
10196
|
+
onClick: dialog ? () => _optionalChain([onSelect, 'optionalCall', _228 => _228(dialog.id)]) : void 0,
|
|
10142
10197
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
10143
10198
|
"transition-colors duration-150",
|
|
10144
10199
|
!active && "hover:bg-ods-bg-hover",
|
|
@@ -10183,7 +10238,7 @@ function SectionRow({
|
|
|
10183
10238
|
menuOpen ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 group-has-[:focus-visible]/row:opacity-100"
|
|
10184
10239
|
),
|
|
10185
10240
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10186
|
-
|
|
10241
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10187
10242
|
{
|
|
10188
10243
|
triggerAriaLabel: `Actions for ${title}`,
|
|
10189
10244
|
groups: [{ items: menuItems }],
|
|
@@ -10248,10 +10303,10 @@ function MingoChatRailPanel({
|
|
|
10248
10303
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
10249
10304
|
const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
|
|
10250
10305
|
prop: searchOpenProp,
|
|
10251
|
-
defaultProp: !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10306
|
+
defaultProp: !!_optionalChain([searchQuery, 'optionalAccess', _229 => _229.trim, 'call', _230 => _230()]),
|
|
10252
10307
|
onChange: onSearchOpenChange
|
|
10253
10308
|
});
|
|
10254
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10309
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _231 => _231.trim, 'call', _232 => _232()]);
|
|
10255
10310
|
const items = [];
|
|
10256
10311
|
if (onNewChat) items.push({ id: "new", label: "Start New Chat", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZPN2P7Ucjs.ChatPlusIcon, {}), onClick: onNewChat });
|
|
10257
10312
|
if (onOpenArchive) {
|
|
@@ -10300,7 +10355,7 @@ function MingoChatRailPanel({
|
|
|
10300
10355
|
if (loadError) {
|
|
10301
10356
|
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatListLoadError, { onRetry, className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-l)]" });
|
|
10302
10357
|
} else if (loading) {
|
|
10303
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10358
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
10304
10359
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
10305
10360
|
list = hasSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h6", children: "No chats found" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10306
10361
|
ChatListEmptyState,
|
|
@@ -10312,7 +10367,7 @@ function MingoChatRailPanel({
|
|
|
10312
10367
|
);
|
|
10313
10368
|
} else {
|
|
10314
10369
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10315
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10370
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
10316
10371
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10317
10372
|
MingoChatRailRow,
|
|
10318
10373
|
{
|
|
@@ -10334,13 +10389,13 @@ function MingoChatRailPanel({
|
|
|
10334
10389
|
] });
|
|
10335
10390
|
}
|
|
10336
10391
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10337
|
-
|
|
10392
|
+
_chunk4JHO2NVIcjs.ChatNavSidebar,
|
|
10338
10393
|
{
|
|
10339
10394
|
className,
|
|
10340
10395
|
"data-accent": "mingo",
|
|
10341
10396
|
"aria-label": "Mingo chats",
|
|
10342
10397
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
10343
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
10344
10399
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10345
10400
|
_chunkFCZAUK4Dcjs.Button,
|
|
10346
10401
|
{
|
|
@@ -10356,7 +10411,7 @@ function MingoChatRailPanel({
|
|
|
10356
10411
|
items,
|
|
10357
10412
|
sectionLabel: "Your Current Chats",
|
|
10358
10413
|
sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10359
|
-
|
|
10414
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10360
10415
|
{
|
|
10361
10416
|
triggerAriaLabel: "Chat list options",
|
|
10362
10417
|
groups: [{ items: listMenu }],
|
|
@@ -10393,11 +10448,11 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10393
10448
|
const title = dialog.title || "Untitled Chat";
|
|
10394
10449
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
10395
10450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10396
|
-
|
|
10451
|
+
_chunk4JHO2NVIcjs.ChatListItem,
|
|
10397
10452
|
{
|
|
10398
10453
|
active,
|
|
10399
10454
|
title,
|
|
10400
|
-
onClick: () => _optionalChain([onSelect, 'optionalCall',
|
|
10455
|
+
onClick: () => _optionalChain([onSelect, 'optionalCall', _233 => _233(dialog.id)]),
|
|
10401
10456
|
className: _chunk63A4GZMBcjs.cn.call(void 0, hasMenu && "pr-10"),
|
|
10402
10457
|
trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10403
10458
|
"span",
|
|
@@ -10419,7 +10474,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10419
10474
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
10420
10475
|
),
|
|
10421
10476
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10422
|
-
|
|
10477
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10423
10478
|
{
|
|
10424
10479
|
triggerAriaLabel: `Actions for ${title}`,
|
|
10425
10480
|
groups: [{ items: menuItems }],
|
|
@@ -10455,7 +10510,7 @@ function TabSelector({
|
|
|
10455
10510
|
scrollable = false,
|
|
10456
10511
|
className
|
|
10457
10512
|
}) {
|
|
10458
|
-
const flush =
|
|
10513
|
+
const flush = _chunkYJZ7R3W5cjs.useIsInActionsMenuHeader.call(void 0, );
|
|
10459
10514
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10460
10515
|
"div",
|
|
10461
10516
|
{
|
|
@@ -10529,7 +10584,7 @@ function MingoHistoryRail({
|
|
|
10529
10584
|
className
|
|
10530
10585
|
}) {
|
|
10531
10586
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
10532
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
10587
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _234 => _234.trim, 'call', _235 => _235()]);
|
|
10533
10588
|
const hasList = dialogs.length > 0 || hasSearch;
|
|
10534
10589
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10535
10590
|
"div",
|
|
@@ -10611,8 +10666,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10611
10666
|
const save = () => {
|
|
10612
10667
|
if (canSave) onSave(name.trim());
|
|
10613
10668
|
};
|
|
10614
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10669
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10670
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
10616
10671
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
10617
10672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
10618
10673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10629,27 +10684,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10629
10684
|
}
|
|
10630
10685
|
)
|
|
10631
10686
|
] }),
|
|
10632
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10687
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.ModalFooter, { children: [
|
|
10633
10688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10634
10689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
10635
10690
|
] })
|
|
10636
10691
|
] });
|
|
10637
10692
|
}
|
|
10638
10693
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10639
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10640
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10694
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10695
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
10641
10696
|
/* @__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." }),
|
|
10642
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10697
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.ModalFooter, { children: [
|
|
10643
10698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10644
10699
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
10645
10700
|
] })
|
|
10646
10701
|
] });
|
|
10647
10702
|
}
|
|
10648
10703
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10649
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10650
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10704
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10705
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
10651
10706
|
/* @__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." }),
|
|
10652
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10707
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.ModalFooter, { children: [
|
|
10653
10708
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10654
10709
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
10655
10710
|
] })
|
|
@@ -10671,7 +10726,7 @@ function ChatDialogModals({
|
|
|
10671
10726
|
RenameChatModal,
|
|
10672
10727
|
{
|
|
10673
10728
|
isOpen: renameTarget != null,
|
|
10674
|
-
initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess',
|
|
10729
|
+
initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _236 => _236.title]), () => ( "")),
|
|
10675
10730
|
onClose: () => setRenameTarget(null),
|
|
10676
10731
|
onSave: onConfirmRename
|
|
10677
10732
|
}
|
|
@@ -10735,7 +10790,7 @@ function ChatPanelHeaderMobile({
|
|
|
10735
10790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
|
|
10736
10791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-ods-text-primary text-h2", title, children: title }) }),
|
|
10737
10792
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10738
|
-
|
|
10793
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10739
10794
|
{
|
|
10740
10795
|
groups: [{ items: menuItems }],
|
|
10741
10796
|
triggerAriaLabel: "Chat actions",
|
|
@@ -10838,7 +10893,7 @@ function ChatPanelHeader({
|
|
|
10838
10893
|
] }),
|
|
10839
10894
|
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
10840
10895
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10841
|
-
|
|
10896
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
10842
10897
|
{
|
|
10843
10898
|
triggerAriaLabel: "Chat actions",
|
|
10844
10899
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -10895,7 +10950,7 @@ function ChatAttachmentAddButton({
|
|
|
10895
10950
|
const canAddMore = slotsAvailable > 0 && !disabled;
|
|
10896
10951
|
const handlePick = () => {
|
|
10897
10952
|
if (!canAddMore) return;
|
|
10898
|
-
_optionalChain([fileInputRef, 'access',
|
|
10953
|
+
_optionalChain([fileInputRef, 'access', _237 => _237.current, 'optionalAccess', _238 => _238.click, 'call', _239 => _239()]);
|
|
10899
10954
|
};
|
|
10900
10955
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10901
10956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11061,7 +11116,7 @@ function ChatContextMemoryBar({
|
|
|
11061
11116
|
_react.useEffect.call(void 0, () => {
|
|
11062
11117
|
if (!open) return void 0;
|
|
11063
11118
|
const onOutside = (e) => {
|
|
11064
|
-
if (_optionalChain([rootRef, 'access',
|
|
11119
|
+
if (_optionalChain([rootRef, 'access', _240 => _240.current, 'optionalAccess', _241 => _241.contains, 'call', _242 => _242(e.target)])) return;
|
|
11065
11120
|
setOpen(false);
|
|
11066
11121
|
};
|
|
11067
11122
|
document.addEventListener("mousedown", onOutside, true);
|
|
@@ -11254,7 +11309,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11254
11309
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
11255
11310
|
const icon = getProviderIcon(provider);
|
|
11256
11311
|
const name = displayName || modelName;
|
|
11257
|
-
const isV2 = useChatAppearance() ===
|
|
11312
|
+
const isV2 = useChatAppearance() === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
11258
11313
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
11259
11314
|
if (isLoading) {
|
|
11260
11315
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
|
|
@@ -11282,20 +11337,20 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11282
11337
|
// Neither: the same two spans the row always had.
|
|
11283
11338
|
labelContent
|
|
11284
11339
|
);
|
|
11285
|
-
const labelWithTooltip = modelTooltip ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11286
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11340
|
+
const labelWithTooltip = modelTooltip ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
11341
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: label }),
|
|
11342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", align: "start", children: modelTooltip })
|
|
11288
11343
|
] }) }) : label;
|
|
11289
11344
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, "text-ods-text-secondary", className), ...props, children: [
|
|
11290
11345
|
labelWithTooltip,
|
|
11291
|
-
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11292
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11346
|
+
contextWindow != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYJZ7R3W5cjs.Tooltip, { children: [
|
|
11347
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "ml-auto opacity-70 text-h6", children: [
|
|
11293
11348
|
usedTokens != null ? formatCount(usedTokens) : "\u2014",
|
|
11294
11349
|
isV2 ? " / " : "/",
|
|
11295
11350
|
formatCount(contextWindow),
|
|
11296
11351
|
" context budget"
|
|
11297
11352
|
] }) }),
|
|
11298
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11353
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYJZ7R3W5cjs.TooltipContent, { side: "top", align: "end", children: CONTEXT_BUDGET_HINT })
|
|
11299
11354
|
] }) })
|
|
11300
11355
|
] });
|
|
11301
11356
|
if (!hasAnyBreakdownRow(breakdown)) return inline;
|
|
@@ -11405,7 +11460,7 @@ function ChatComposer({
|
|
|
11405
11460
|
const locked = lock != null;
|
|
11406
11461
|
const selected = _nullishCoalesce(selectedContextItems, () => ( []));
|
|
11407
11462
|
const memory = _nullishCoalesce(contextMemoryItems, () => ( []));
|
|
11408
|
-
const entityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
11463
|
+
const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _243 => _243.entityTypes]);
|
|
11409
11464
|
const iconByType = _react.useMemo.call(void 0, () => {
|
|
11410
11465
|
const map = /* @__PURE__ */ new Map();
|
|
11411
11466
|
for (const t of _nullishCoalesce(entityTypes, () => ( []))) map.set(t.type, t.icon);
|
|
@@ -11413,7 +11468,7 @@ function ChatComposer({
|
|
|
11413
11468
|
}, [entityTypes]);
|
|
11414
11469
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
11415
11470
|
const menu = menuItems && menuItems.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11416
|
-
|
|
11471
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
11417
11472
|
{
|
|
11418
11473
|
triggerAriaLabel: "Composer actions",
|
|
11419
11474
|
side: "top",
|
|
@@ -11439,7 +11494,7 @@ function ChatComposer({
|
|
|
11439
11494
|
const showLegacyAttach = !contextEnabled && showAttachmentButton && !!onAddFiles;
|
|
11440
11495
|
const showFooterRow = showLegacyAttach || !!model || !!footerActions;
|
|
11441
11496
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11442
|
-
|
|
11497
|
+
_chunk4JHO2NVIcjs.ChatInput,
|
|
11443
11498
|
{
|
|
11444
11499
|
ref: inputRef,
|
|
11445
11500
|
onSend,
|
|
@@ -11447,7 +11502,7 @@ function ChatComposer({
|
|
|
11447
11502
|
sending,
|
|
11448
11503
|
placeholder,
|
|
11449
11504
|
disabled: locked,
|
|
11450
|
-
disabledPlaceholder: _optionalChain([lock, 'optionalAccess',
|
|
11505
|
+
disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _244 => _244.placeholder]),
|
|
11451
11506
|
previewText,
|
|
11452
11507
|
fullWidth: true,
|
|
11453
11508
|
className: "px-0",
|
|
@@ -11461,7 +11516,7 @@ function ChatComposer({
|
|
|
11461
11516
|
startIcon: contextEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11462
11517
|
ChatComposerPlusMenu,
|
|
11463
11518
|
{
|
|
11464
|
-
onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall',
|
|
11519
|
+
onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _245 => _245()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _246 => _246()]),
|
|
11465
11520
|
open: contextPickerOpen,
|
|
11466
11521
|
disabled: attachmentsDisabled || locked,
|
|
11467
11522
|
dropdown: contextPicker ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11470,8 +11525,8 @@ function ChatComposer({
|
|
|
11470
11525
|
open: contextPickerOpen,
|
|
11471
11526
|
config: contextPicker,
|
|
11472
11527
|
selectedItems: selected,
|
|
11473
|
-
onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall',
|
|
11474
|
-
onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall',
|
|
11528
|
+
onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _247 => _247(item)]),
|
|
11529
|
+
onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _248 => _248()]),
|
|
11475
11530
|
mentionQuery
|
|
11476
11531
|
}
|
|
11477
11532
|
) : void 0
|
|
@@ -11629,7 +11684,7 @@ function ChatArchivePage(props) {
|
|
|
11629
11684
|
|
|
11630
11685
|
|
|
11631
11686
|
function useNavLinkTarget(href, targetPlatform, openIn) {
|
|
11632
|
-
return
|
|
11687
|
+
return _chunkAPNONOHYcjs.navLinkTarget.call(void 0, _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ), href, targetPlatform, { openIn });
|
|
11633
11688
|
}
|
|
11634
11689
|
function useNavLinkViaRuntime({
|
|
11635
11690
|
href,
|
|
@@ -11643,24 +11698,24 @@ function useNavLinkViaRuntime({
|
|
|
11643
11698
|
const { href: resolvedHref, isNewTab } = useNavLinkTarget(_nullishCoalesce(href, () => ( "")), targetPlatform, openIn);
|
|
11644
11699
|
if (href == null) return null;
|
|
11645
11700
|
const onClick = (e) => {
|
|
11646
|
-
_optionalChain([onClickProp, 'optionalCall',
|
|
11701
|
+
_optionalChain([onClickProp, 'optionalCall', _249 => _249(e)]);
|
|
11647
11702
|
if (e.defaultPrevented) return;
|
|
11648
|
-
const handled =
|
|
11649
|
-
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
11703
|
+
const handled = _chunkZABZIM2Ycjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
|
|
11704
|
+
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _250 => _250.closeChat])) panel.closeChat();
|
|
11650
11705
|
};
|
|
11651
|
-
return { href: resolvedHref, ...
|
|
11706
|
+
return { href: resolvedHref, ..._chunkAPNONOHYcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
|
|
11652
11707
|
}
|
|
11653
11708
|
function useNavigateViaRuntime() {
|
|
11654
11709
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
11655
11710
|
return _react.useCallback.call(void 0,
|
|
11656
11711
|
({ href, path, targetPlatform, openIn, modifierEvent }) => {
|
|
11657
11712
|
if (!href) return;
|
|
11658
|
-
if (modifierEvent &&
|
|
11713
|
+
if (modifierEvent && _chunkAPNONOHYcjs.isModifierClick.call(void 0, modifierEvent)) {
|
|
11659
11714
|
const button = _nullishCoalesce(modifierEvent.button, () => ( 0));
|
|
11660
|
-
if (button === 0 || button === 1)
|
|
11715
|
+
if (button === 0 || button === 1) _chunkZABZIM2Ycjs.executeNewTabNavigation.call(void 0, { runtime, href, targetPlatform });
|
|
11661
11716
|
return;
|
|
11662
11717
|
}
|
|
11663
|
-
|
|
11718
|
+
_chunkZABZIM2Ycjs.executeNavigationImperative.call(void 0, { runtime, href, path, targetPlatform, openIn });
|
|
11664
11719
|
},
|
|
11665
11720
|
[runtime]
|
|
11666
11721
|
);
|
|
@@ -11787,11 +11842,11 @@ var DEFAULT_CAPTIONS_PATH = "/api/captions";
|
|
|
11787
11842
|
function getCaptionsUrl(entityType, entityId, srtContent, options) {
|
|
11788
11843
|
if (!srtContent) return void 0;
|
|
11789
11844
|
const hash = `${srtContent.length}-${srtContent.slice(0, 8).replace(/\s/g, "")}`;
|
|
11790
|
-
const variant = _optionalChain([options, 'optionalAccess',
|
|
11845
|
+
const variant = _optionalChain([options, 'optionalAccess', _251 => _251.variant]) ? `&variant=${options.variant}` : "";
|
|
11791
11846
|
return `${DEFAULT_CAPTIONS_PATH}/${entityType}/${entityId}?v=${hash}${variant}`;
|
|
11792
11847
|
}
|
|
11793
11848
|
function resolveCaptionsBase(endpoints) {
|
|
11794
|
-
return _optionalChain([endpoints, 'optionalAccess',
|
|
11849
|
+
return _optionalChain([endpoints, 'optionalAccess', _252 => _252.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
|
|
11795
11850
|
}
|
|
11796
11851
|
function rebaseCaptionsUrl(endpoints, url) {
|
|
11797
11852
|
if (!url || !url.startsWith(`${DEFAULT_CAPTIONS_PATH}/`)) return url;
|
|
@@ -11826,7 +11881,7 @@ function captionsEntityTypeForDocType(docType) {
|
|
|
11826
11881
|
// src/components/features/use-captions.ts
|
|
11827
11882
|
|
|
11828
11883
|
function useCaptions() {
|
|
11829
|
-
const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess',
|
|
11884
|
+
const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _253 => _253.endpoints]), () => ( null));
|
|
11830
11885
|
return _react.useMemo.call(void 0,
|
|
11831
11886
|
() => ({
|
|
11832
11887
|
forEntity: (entityType, entity) => getEntityCaptionUrls(endpoints, entityType, entity),
|
|
@@ -11850,7 +11905,7 @@ function UserDisplay({
|
|
|
11850
11905
|
compact = false,
|
|
11851
11906
|
className
|
|
11852
11907
|
}) {
|
|
11853
|
-
const avatarSrc =
|
|
11908
|
+
const avatarSrc = _chunkH3WTYAVRcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
11854
11909
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
11855
11910
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11856
11911
|
UserDisplaySkeleton,
|
|
@@ -11990,7 +12045,7 @@ function ManagedCell({
|
|
|
11990
12045
|
}) {
|
|
11991
12046
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
11992
12047
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
11993
|
-
const cloneRef =
|
|
12048
|
+
const cloneRef = _chunkZABZIM2Ycjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
11994
12049
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11995
12050
|
"div",
|
|
11996
12051
|
{
|
|
@@ -12108,12 +12163,12 @@ function CardsStrip(props) {
|
|
|
12108
12163
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
12109
12164
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12110
12165
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12111
|
-
const { ref: observe, inView: nearViewport } =
|
|
12166
|
+
const { ref: observe, inView: nearViewport } = _chunkZABZIM2Ycjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
12112
12167
|
_react.useEffect.call(void 0, () => {
|
|
12113
12168
|
observe(wrapperRef.current);
|
|
12114
12169
|
return () => observe(null);
|
|
12115
12170
|
}, [observe]);
|
|
12116
|
-
const autoplay =
|
|
12171
|
+
const autoplay = _chunkZABZIM2Ycjs.useAutoplay.call(void 0, nearViewport);
|
|
12117
12172
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
12118
12173
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
12119
12174
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -12130,9 +12185,9 @@ function CardsStrip(props) {
|
|
|
12130
12185
|
const p = hoverPointerRef.current;
|
|
12131
12186
|
if (!p.inside) return;
|
|
12132
12187
|
const el = typeof document !== "undefined" ? document.elementFromPoint(p.x, p.y) : null;
|
|
12133
|
-
const cardEl = _optionalChain([el, 'optionalAccess',
|
|
12134
|
-
const scoped = cardEl && _optionalChain([scrollerRef, 'access',
|
|
12135
|
-
const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess',
|
|
12188
|
+
const cardEl = _optionalChain([el, 'optionalAccess', _254 => _254.closest, 'optionalCall', _255 => _255("[data-strip-card-key]")]);
|
|
12189
|
+
const scoped = cardEl && _optionalChain([scrollerRef, 'access', _256 => _256.current, 'optionalAccess', _257 => _257.contains, 'call', _258 => _258(cardEl)]) ? cardEl : null;
|
|
12190
|
+
const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _259 => _259.getAttribute, 'call', _260 => _260("data-strip-card-key")]), () => ( null));
|
|
12136
12191
|
const current = activeKeyRef.current;
|
|
12137
12192
|
if (key === current) return;
|
|
12138
12193
|
if (current !== null) deactivate(current);
|
|
@@ -12160,7 +12215,7 @@ function CardsStrip(props) {
|
|
|
12160
12215
|
const current = activeKeyRef.current;
|
|
12161
12216
|
if (current !== null) deactivate(current);
|
|
12162
12217
|
}, [deactivate]);
|
|
12163
|
-
|
|
12218
|
+
_chunkZABZIM2Ycjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
12164
12219
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
12165
12220
|
const scroller = scrollerRef.current;
|
|
12166
12221
|
if (!scroller) return;
|
|
@@ -12170,7 +12225,7 @@ function CardsStrip(props) {
|
|
|
12170
12225
|
}, [syncHoverToPointer]);
|
|
12171
12226
|
const seamBuffer = _react.useCallback.call(void 0, () => {
|
|
12172
12227
|
const half = singleCopyWidthRef.current;
|
|
12173
|
-
const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access',
|
|
12228
|
+
const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _261 => _261.current, 'optionalAccess', _262 => _262.clientWidth]), () => ( 0));
|
|
12174
12229
|
return Math.max(0, Math.min(200, half / 4, half - viewport - TRACK_GAP_PX - 1));
|
|
12175
12230
|
}, []);
|
|
12176
12231
|
const mirror = _react.useCallback.call(void 0,
|
|
@@ -12181,7 +12236,7 @@ function CardsStrip(props) {
|
|
|
12181
12236
|
},
|
|
12182
12237
|
[reverse, seamBuffer]
|
|
12183
12238
|
);
|
|
12184
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
12239
|
+
const { posRef: marqueePosRef, glideBy } = _chunkZABZIM2Ycjs.useMarqueeEngine.call(void 0, {
|
|
12185
12240
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
12186
12241
|
// engine would keep scheduling frames forever), same treatment as
|
|
12187
12242
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -12194,7 +12249,7 @@ function CardsStrip(props) {
|
|
|
12194
12249
|
const scroller = scrollerRef.current;
|
|
12195
12250
|
if (scroller) scroller.scrollLeft = mirror(pos);
|
|
12196
12251
|
},
|
|
12197
|
-
readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access',
|
|
12252
|
+
readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _263 => _263.current, 'optionalAccess', _264 => _264.scrollLeft]), () => ( 0))),
|
|
12198
12253
|
onAfterFrame: syncHoverIfScrolled
|
|
12199
12254
|
});
|
|
12200
12255
|
const [mountedIdx, setMountedIdx] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
@@ -12242,11 +12297,11 @@ function CardsStrip(props) {
|
|
|
12242
12297
|
fn = (el) => {
|
|
12243
12298
|
if (!el) return void 0;
|
|
12244
12299
|
cardElIdxRef.current.set(el, idx);
|
|
12245
|
-
_optionalChain([cardObserverRef, 'access',
|
|
12300
|
+
_optionalChain([cardObserverRef, 'access', _265 => _265.current, 'optionalAccess', _266 => _266.observe, 'call', _267 => _267(el)]);
|
|
12246
12301
|
return () => {
|
|
12247
12302
|
cardElIdxRef.current.delete(el);
|
|
12248
12303
|
cardElNearRef.current.delete(el);
|
|
12249
|
-
_optionalChain([cardObserverRef, 'access',
|
|
12304
|
+
_optionalChain([cardObserverRef, 'access', _268 => _268.current, 'optionalAccess', _269 => _269.unobserve, 'call', _270 => _270(el)]);
|
|
12250
12305
|
};
|
|
12251
12306
|
};
|
|
12252
12307
|
cardRefFns.set(idx, fn);
|
|
@@ -12265,7 +12320,7 @@ function CardsStrip(props) {
|
|
|
12265
12320
|
const track = trackRef.current;
|
|
12266
12321
|
if (!scroller || !track) return;
|
|
12267
12322
|
const firstCard = track.firstElementChild;
|
|
12268
|
-
const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess',
|
|
12323
|
+
const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _271 => _271.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
|
|
12269
12324
|
chevronSuppressUntilRef.current = performance.now() + CHEVRON_SUPPRESS_MS;
|
|
12270
12325
|
if (marqueeActiveRef.current) {
|
|
12271
12326
|
glideBy((reverse ? -dir : dir) * step);
|
|
@@ -12318,7 +12373,7 @@ function CardsStrip(props) {
|
|
|
12318
12373
|
}
|
|
12319
12374
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
12320
12375
|
};
|
|
12321
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
12376
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkH3WTYAVRcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkH3WTYAVRcjs.accentSentenceMarks.call(void 0, title) });
|
|
12322
12377
|
if (items.length === 0) {
|
|
12323
12378
|
if (!inScope || !skeleton) return null;
|
|
12324
12379
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -12346,7 +12401,7 @@ function CardsStrip(props) {
|
|
|
12346
12401
|
{
|
|
12347
12402
|
ref: (node) => {
|
|
12348
12403
|
wrapperRef.current = node;
|
|
12349
|
-
_optionalChain([rootRef, 'optionalCall',
|
|
12404
|
+
_optionalChain([rootRef, 'optionalCall', _272 => _272(node)]);
|
|
12350
12405
|
},
|
|
12351
12406
|
className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
|
|
12352
12407
|
children: [
|
|
@@ -12508,7 +12563,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
12508
12563
|
);
|
|
12509
12564
|
function VideoBitesStrip({
|
|
12510
12565
|
bites,
|
|
12511
|
-
title =
|
|
12566
|
+
title = _chunkTD4CC4KVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12512
12567
|
showTitle = true,
|
|
12513
12568
|
filterPublished = true,
|
|
12514
12569
|
profile = null,
|
|
@@ -12521,7 +12576,7 @@ function VideoBitesStrip({
|
|
|
12521
12576
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
12522
12577
|
showChevrons = true,
|
|
12523
12578
|
onBiteNavigate,
|
|
12524
|
-
sortComparator =
|
|
12579
|
+
sortComparator = _chunkTD4CC4KVcjs.sortBitesByCreatedAtDesc,
|
|
12525
12580
|
skeletonCount,
|
|
12526
12581
|
className
|
|
12527
12582
|
}) {
|
|
@@ -12530,7 +12585,7 @@ function VideoBitesStrip({
|
|
|
12530
12585
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
12531
12586
|
return filtered.sort(sortComparator);
|
|
12532
12587
|
}, [bites, filterPublished, sortComparator]);
|
|
12533
|
-
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access',
|
|
12588
|
+
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _273 => _273[0], 'optionalAccess', _274 => _274.url]) || null });
|
|
12534
12589
|
if (inScope) {
|
|
12535
12590
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12536
12591
|
VideoBitesStripSkeleton,
|
|
@@ -12619,7 +12674,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
12619
12674
|
function VideoBitesStripSkeleton({
|
|
12620
12675
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
12621
12676
|
aspect = "9:16",
|
|
12622
|
-
title =
|
|
12677
|
+
title = _chunkTD4CC4KVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12623
12678
|
showTitle = true,
|
|
12624
12679
|
headerSlot,
|
|
12625
12680
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -12671,8 +12726,8 @@ function VideoBiteCard({
|
|
|
12671
12726
|
const controlled = active !== void 0;
|
|
12672
12727
|
const [selfActive, setSelfActive] = _react.useState.call(void 0, false);
|
|
12673
12728
|
const isActive = controlled ? !!active : selfActive;
|
|
12674
|
-
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall',
|
|
12675
|
-
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall',
|
|
12729
|
+
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _275 => _275(key)]) : setSelfActive(true);
|
|
12730
|
+
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _276 => _276(key)]) : setSelfActive(false);
|
|
12676
12731
|
const titleInputRef = _react.useRef.call(void 0, null);
|
|
12677
12732
|
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
12678
12733
|
const el = titleInputRef.current;
|
|
@@ -12682,7 +12737,7 @@ function VideoBiteCard({
|
|
|
12682
12737
|
});
|
|
12683
12738
|
const navigate = () => {
|
|
12684
12739
|
if (bite.onNavigate) bite.onNavigate();
|
|
12685
|
-
else _optionalChain([onBiteNavigate, 'optionalCall',
|
|
12740
|
+
else _optionalChain([onBiteNavigate, 'optionalCall', _277 => _277(bite, index)]);
|
|
12686
12741
|
};
|
|
12687
12742
|
const handlePointerEnter = () => {
|
|
12688
12743
|
if (!isTouch) activate();
|
|
@@ -12707,9 +12762,9 @@ function VideoBiteCard({
|
|
|
12707
12762
|
placeholder: "Title (optional)",
|
|
12708
12763
|
"aria-label": "Bite title",
|
|
12709
12764
|
rows: 1,
|
|
12710
|
-
onChange: (e) => _optionalChain([onTitleChange, 'optionalCall',
|
|
12765
|
+
onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _278 => _278(e.target.value)]),
|
|
12711
12766
|
ref: titleInputRef,
|
|
12712
|
-
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall',
|
|
12767
|
+
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _279 => _279(e.target.value)]),
|
|
12713
12768
|
onClick: (e) => e.stopPropagation(),
|
|
12714
12769
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
12715
12770
|
titleClass,
|
|
@@ -12751,7 +12806,7 @@ function VideoBiteCard({
|
|
|
12751
12806
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
12752
12807
|
children: [
|
|
12753
12808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12754
|
-
|
|
12809
|
+
_chunkTD4CC4KVcjs.VideoHoverPreviewSurface,
|
|
12755
12810
|
{
|
|
12756
12811
|
url: bite.url,
|
|
12757
12812
|
posterUrl: bite.thumbnail_url,
|
|
@@ -12786,7 +12841,7 @@ function VideoBiteCard({
|
|
|
12786
12841
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12787
12842
|
"div",
|
|
12788
12843
|
{
|
|
12789
|
-
ref: (node) => _optionalChain([rootRef, 'optionalCall',
|
|
12844
|
+
ref: (node) => _optionalChain([rootRef, 'optionalCall', _280 => _280(node)]),
|
|
12790
12845
|
"aria-hidden": isClone || void 0,
|
|
12791
12846
|
"data-strip-card-key": key,
|
|
12792
12847
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
@@ -12823,7 +12878,7 @@ function EntityVideoSection({
|
|
|
12823
12878
|
title = "Video",
|
|
12824
12879
|
videoSummary,
|
|
12825
12880
|
videoBites,
|
|
12826
|
-
bitesTitle =
|
|
12881
|
+
bitesTitle = _chunkTD4CC4KVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12827
12882
|
filterPublishedBites = true,
|
|
12828
12883
|
bitesProfile = null,
|
|
12829
12884
|
bitesHref,
|
|
@@ -12843,8 +12898,8 @@ function EntityVideoSection({
|
|
|
12843
12898
|
const hasHighlight = !!highlightVideoUrl;
|
|
12844
12899
|
const hasVideo = hasFullVideo || hasHighlight;
|
|
12845
12900
|
const derivedCaptions = captionsEntity ? captions.forEntityId(captionsEntity.type, captionsEntity.id) : null;
|
|
12846
|
-
const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess',
|
|
12847
|
-
const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess',
|
|
12901
|
+
const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _281 => _281.captionsUrl])));
|
|
12902
|
+
const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _282 => _282.highlightCaptionsUrl])));
|
|
12848
12903
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityVideoSectionSkeleton, { tabs: skeletonTabs });
|
|
12849
12904
|
if (!hasVideo && !videoSummary && (!videoBites || videoBites.length === 0)) {
|
|
12850
12905
|
return null;
|
|
@@ -12858,7 +12913,7 @@ function EntityVideoSection({
|
|
|
12858
12913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12859
12914
|
] }),
|
|
12860
12915
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12861
|
-
|
|
12916
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12862
12917
|
{
|
|
12863
12918
|
kind: fullVideoKind,
|
|
12864
12919
|
url: fullVideoUrl,
|
|
@@ -12870,7 +12925,7 @@ function EntityVideoSection({
|
|
|
12870
12925
|
}
|
|
12871
12926
|
) }),
|
|
12872
12927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12873
|
-
|
|
12928
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12874
12929
|
{
|
|
12875
12930
|
url: highlightVideoUrl,
|
|
12876
12931
|
poster: highlightVideoThumbnail,
|
|
@@ -12879,7 +12934,7 @@ function EntityVideoSection({
|
|
|
12879
12934
|
}
|
|
12880
12935
|
) })
|
|
12881
12936
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12882
|
-
|
|
12937
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12883
12938
|
{
|
|
12884
12939
|
kind: fullVideoKind,
|
|
12885
12940
|
url: fullVideoUrl,
|
|
@@ -12890,7 +12945,7 @@ function EntityVideoSection({
|
|
|
12890
12945
|
priority
|
|
12891
12946
|
}
|
|
12892
12947
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12893
|
-
|
|
12948
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12894
12949
|
{
|
|
12895
12950
|
url: highlightVideoUrl,
|
|
12896
12951
|
poster: highlightVideoThumbnail,
|
|
@@ -12900,7 +12955,7 @@ function EntityVideoSection({
|
|
|
12900
12955
|
}
|
|
12901
12956
|
) : null),
|
|
12902
12957
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
12903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
12958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkH3WTYAVRcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
12904
12959
|
/* @__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 }) })
|
|
12905
12960
|
] }),
|
|
12906
12961
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12919,13 +12974,13 @@ function EntityVideoSection({
|
|
|
12919
12974
|
] });
|
|
12920
12975
|
}
|
|
12921
12976
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
12922
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12977
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
12923
12978
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
|
|
12924
12979
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
12925
12980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
12926
12981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12927
12982
|
] }),
|
|
12928
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12983
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
12929
12984
|
] });
|
|
12930
12985
|
}
|
|
12931
12986
|
|
|
@@ -12966,18 +13021,18 @@ function pick(...values) {
|
|
|
12966
13021
|
return void 0;
|
|
12967
13022
|
}
|
|
12968
13023
|
function videoFromItem(item, chatRef) {
|
|
12969
|
-
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
13024
|
+
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _283 => _283.metadata]), () => ( {}));
|
|
12970
13025
|
const out = {};
|
|
12971
|
-
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess',
|
|
12972
|
-
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess',
|
|
12973
|
-
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess',
|
|
13026
|
+
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _284 => _284.custom_video_url]), _optionalChain([item, 'optionalAccess', _285 => _285.main_video_url]));
|
|
13027
|
+
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _286 => _286.youtube_url]), _optionalChain([item, 'optionalAccess', _287 => _287.testimonial_video_url]));
|
|
13028
|
+
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _288 => _288.highlight_video_url]));
|
|
12974
13029
|
const videoPoster = pick(
|
|
12975
13030
|
m.videoPoster,
|
|
12976
|
-
_optionalChain([item, 'optionalAccess',
|
|
12977
|
-
_optionalChain([item, 'optionalAccess',
|
|
12978
|
-
_optionalChain([item, 'optionalAccess',
|
|
13031
|
+
_optionalChain([item, 'optionalAccess', _289 => _289.main_video_thumbnail]),
|
|
13032
|
+
_optionalChain([item, 'optionalAccess', _290 => _290.highlight_video_thumbnail]),
|
|
13033
|
+
_optionalChain([item, 'optionalAccess', _291 => _291.featured_image])
|
|
12979
13034
|
);
|
|
12980
|
-
const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess',
|
|
13035
|
+
const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _292 => _292.highlight_video_thumbnail]));
|
|
12981
13036
|
if (videoUrl) out.videoUrl = videoUrl;
|
|
12982
13037
|
if (youtubeUrl) out.youtubeUrl = youtubeUrl;
|
|
12983
13038
|
if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
|
|
@@ -13017,11 +13072,11 @@ function ChatCardDisclosureButton({
|
|
|
13017
13072
|
{
|
|
13018
13073
|
label,
|
|
13019
13074
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
|
|
13020
|
-
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13075
|
+
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
13021
13076
|
onClick: (e) => {
|
|
13022
13077
|
e.preventDefault();
|
|
13023
13078
|
e.stopPropagation();
|
|
13024
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
13079
|
+
_optionalChain([onToggle, 'optionalCall', _293 => _293()]);
|
|
13025
13080
|
},
|
|
13026
13081
|
ariaExpanded: open,
|
|
13027
13082
|
ariaLabel: title ? `${label}: ${title}` : label,
|
|
@@ -13031,7 +13086,7 @@ function ChatCardDisclosureButton({
|
|
|
13031
13086
|
);
|
|
13032
13087
|
}
|
|
13033
13088
|
function DisclosurePanel({ open, children }) {
|
|
13034
|
-
const { innerRef, containerStyle } =
|
|
13089
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded: open });
|
|
13035
13090
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children }) });
|
|
13036
13091
|
}
|
|
13037
13092
|
function useChatCardDisclosure(kind, chatRef, { reserve = false } = {}) {
|
|
@@ -13070,7 +13125,7 @@ function ChatCardDisclosureRow({
|
|
|
13070
13125
|
|
|
13071
13126
|
function designDocPeople(doc) {
|
|
13072
13127
|
const people = [];
|
|
13073
|
-
if (_optionalChain([doc, 'access',
|
|
13128
|
+
if (_optionalChain([doc, 'access', _294 => _294.author, 'optionalAccess', _295 => _295.full_name]))
|
|
13074
13129
|
people.push({
|
|
13075
13130
|
key: `dri-${_nullishCoalesce(doc.author.id, () => ( doc.author.full_name))}`,
|
|
13076
13131
|
name: doc.author.full_name,
|
|
@@ -13083,7 +13138,7 @@ function designDocPeople(doc) {
|
|
|
13083
13138
|
return people;
|
|
13084
13139
|
}
|
|
13085
13140
|
function designDocMetaLine(doc) {
|
|
13086
|
-
return [_optionalChain([doc, 'access',
|
|
13141
|
+
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkH3WTYAVRcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
13087
13142
|
}
|
|
13088
13143
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
13089
13144
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -13093,15 +13148,15 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk3TOWCFIKcjs.TE
|
|
|
13093
13148
|
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[3]}`;
|
|
13094
13149
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
13095
13150
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
13096
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13151
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkTD4CC4KVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
13097
13152
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
13098
13153
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
13099
13154
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
13100
13155
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
13101
13156
|
] }),
|
|
13102
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
13103
13158
|
] }),
|
|
13104
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
13105
13160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
13106
13161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13107
13162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -13113,7 +13168,7 @@ function DesignDocCardSkeleton({ className } = {}) {
|
|
|
13113
13168
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
13114
13169
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
13115
13170
|
const people = designDocPeople(doc);
|
|
13116
|
-
const link =
|
|
13171
|
+
const link = _chunkTD4CC4KVcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
13117
13172
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
13118
13173
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13119
13174
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -13122,7 +13177,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13122
13177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
13123
13178
|
] }),
|
|
13124
13179
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13125
|
-
|
|
13180
|
+
_chunkTD4CC4KVcjs.StatusBadge,
|
|
13126
13181
|
{
|
|
13127
13182
|
text: readiness.label,
|
|
13128
13183
|
colorScheme: readiness.scheme,
|
|
@@ -13132,7 +13187,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13132
13187
|
}
|
|
13133
13188
|
)
|
|
13134
13189
|
] }),
|
|
13135
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13190
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
13136
13191
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
13137
13192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13138
13193
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -13140,7 +13195,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13140
13195
|
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5BM7X4GAcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
13141
13196
|
] })
|
|
13142
13197
|
] });
|
|
13143
|
-
const outer = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13198
|
+
const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkTD4CC4KVcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
13144
13199
|
return link ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: link, target, rel, className: outer, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: outer, children: body });
|
|
13145
13200
|
}
|
|
13146
13201
|
|
|
@@ -13282,26 +13337,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
13282
13337
|
metaParts.push(
|
|
13283
13338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
13284
13339
|
);
|
|
13285
|
-
const href =
|
|
13340
|
+
const href = _chunkTD4CC4KVcjs.safeHref.call(void 0, item.url);
|
|
13286
13341
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13288
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
13289
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
13342
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
13343
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
13344
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkTD4CC4KVcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
13290
13345
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
13291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
13292
13347
|
] }),
|
|
13293
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13348
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
13294
13349
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
13295
13350
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
13296
13351
|
] }, i)) }) }),
|
|
13297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13352
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_SUMMARY, children: _chunkTD4CC4KVcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
13298
13353
|
] }),
|
|
13299
13354
|
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
|
|
13300
13355
|
] });
|
|
13301
13356
|
if (anchorProps) {
|
|
13302
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
13357
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkTD4CC4KVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
13303
13358
|
}
|
|
13304
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
13359
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkTD4CC4KVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkTD4CC4KVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
13305
13360
|
}
|
|
13306
13361
|
function GitHubActivityCardSkeleton({
|
|
13307
13362
|
variant = "compact",
|
|
@@ -13309,7 +13364,7 @@ function GitHubActivityCardSkeleton({
|
|
|
13309
13364
|
}) {
|
|
13310
13365
|
if (variant === "row") {
|
|
13311
13366
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13312
|
-
|
|
13367
|
+
_chunkTD4CC4KVcjs.ActivityRowSkeleton,
|
|
13313
13368
|
{
|
|
13314
13369
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
13315
13370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
@@ -13320,7 +13375,7 @@ function GitHubActivityCardSkeleton({
|
|
|
13320
13375
|
}
|
|
13321
13376
|
);
|
|
13322
13377
|
}
|
|
13323
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13378
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
13324
13379
|
}
|
|
13325
13380
|
|
|
13326
13381
|
// src/utils/url-fix.ts
|
|
@@ -13352,8 +13407,8 @@ function getVendorLogo(vendor) {
|
|
|
13352
13407
|
if (vendor.logo) {
|
|
13353
13408
|
return fixSupabaseStorageUrl(vendor.logo);
|
|
13354
13409
|
}
|
|
13355
|
-
const logoMedia = _optionalChain([vendor, 'access',
|
|
13356
|
-
if (_optionalChain([logoMedia, 'optionalAccess',
|
|
13410
|
+
const logoMedia = _optionalChain([vendor, 'access', _298 => _298.vendor_media, 'optionalAccess', _299 => _299.find, 'call', _300 => _300((m) => m.media_type === "logo")]);
|
|
13411
|
+
if (_optionalChain([logoMedia, 'optionalAccess', _301 => _301.media_url])) {
|
|
13357
13412
|
return fixSupabaseStorageUrl(logoMedia.media_url);
|
|
13358
13413
|
}
|
|
13359
13414
|
return null;
|
|
@@ -13376,7 +13431,7 @@ function VendorIcon({
|
|
|
13376
13431
|
...props
|
|
13377
13432
|
}) {
|
|
13378
13433
|
const logoUrl = getVendorLogo(vendor);
|
|
13379
|
-
const logoSrc =
|
|
13434
|
+
const logoSrc = _chunkH3WTYAVRcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
13380
13435
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13381
13436
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
13382
13437
|
{
|
|
@@ -13410,8 +13465,8 @@ function useChatCardItem(type, id) {
|
|
|
13410
13465
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
13411
13466
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
13412
13467
|
const data = await res.json();
|
|
13413
|
-
const items =
|
|
13414
|
-
const match = items.find((it) =>
|
|
13468
|
+
const items = _chunkH3WTYAVRcjs.extractCardItems.call(void 0, type, data);
|
|
13469
|
+
const match = items.find((it) => _chunkH3WTYAVRcjs.extractItemId.call(void 0, type, it) === id);
|
|
13415
13470
|
return _nullishCoalesce(match, () => ( null));
|
|
13416
13471
|
},
|
|
13417
13472
|
enabled: !!url && id.length > 0,
|
|
@@ -13553,7 +13608,7 @@ function MingoInfoCard({
|
|
|
13553
13608
|
}
|
|
13554
13609
|
),
|
|
13555
13610
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13556
|
-
|
|
13611
|
+
_chunkYJZ7R3W5cjs.ActionsMenuDropdown,
|
|
13557
13612
|
{
|
|
13558
13613
|
groups: menuGroups,
|
|
13559
13614
|
triggerAriaLabel: menuAriaLabel,
|
|
@@ -13601,7 +13656,7 @@ function pickFetchedCardHref({
|
|
|
13601
13656
|
itemHref,
|
|
13602
13657
|
allowComposed
|
|
13603
13658
|
}) {
|
|
13604
|
-
if (_optionalChain([composed, 'optionalAccess',
|
|
13659
|
+
if (_optionalChain([composed, 'optionalAccess', _302 => _302.hostOverride])) {
|
|
13605
13660
|
return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
|
|
13606
13661
|
}
|
|
13607
13662
|
if (itemHref) return { source: "item", href: itemHref };
|
|
@@ -13617,7 +13672,7 @@ function resolveFetchedCardHref({
|
|
|
13617
13672
|
composeContentUrl
|
|
13618
13673
|
}) {
|
|
13619
13674
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
13620
|
-
const canonicalType =
|
|
13675
|
+
const canonicalType = _chunkH3WTYAVRcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
13621
13676
|
return composeContentUrl({
|
|
13622
13677
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
13623
13678
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -13641,7 +13696,7 @@ function sourceRowCtxFromRuntime(runtime) {
|
|
|
13641
13696
|
}
|
|
13642
13697
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
13643
13698
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
13644
|
-
const icon = iconName ?
|
|
13699
|
+
const icon = iconName ? _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
13645
13700
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
13646
13701
|
return { icon, iconLabel };
|
|
13647
13702
|
}
|
|
@@ -13660,16 +13715,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
13660
13715
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
13661
13716
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
13662
13717
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
13663
|
-
type:
|
|
13718
|
+
type: _chunkH3WTYAVRcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
13664
13719
|
identifier: idValue,
|
|
13665
13720
|
...docPath ? { slug: docPath } : {},
|
|
13666
13721
|
externalUrl: _nullishCoalesce(row.externalUrl, () => ( null)),
|
|
13667
13722
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
13668
13723
|
});
|
|
13669
|
-
href = composed.href ? _nullishCoalesce(
|
|
13724
|
+
href = composed.href ? _nullishCoalesce(_chunkTD4CC4KVcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
13670
13725
|
targetPlatform = composed.targetPlatform;
|
|
13671
13726
|
} else if (row.externalUrl) {
|
|
13672
|
-
href = _nullishCoalesce(
|
|
13727
|
+
href = _nullishCoalesce(_chunkTD4CC4KVcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
13673
13728
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
13674
13729
|
}
|
|
13675
13730
|
const documentType = row.documentType;
|
|
@@ -13708,7 +13763,7 @@ function resolveCardDestination({
|
|
|
13708
13763
|
composeContentUrl,
|
|
13709
13764
|
resolveHref = (href) => href
|
|
13710
13765
|
}) {
|
|
13711
|
-
const refPath = typeof _optionalChain([chatRef, 'access',
|
|
13766
|
+
const refPath = typeof _optionalChain([chatRef, 'access', _303 => _303.metadata, 'optionalAccess', _304 => _304.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
|
|
13712
13767
|
const path = _nullishCoalesce(refPath, () => ( (item ? readFetchedCardPath(item) : null)));
|
|
13713
13768
|
const cta = resolveSourceRowCTA(
|
|
13714
13769
|
{
|
|
@@ -13725,7 +13780,7 @@ function resolveCardDestination({
|
|
|
13725
13780
|
const rowUrl = cta.href ? resolveHref(cta.href) : _nullishCoalesce(chatRef.url, () => ( null));
|
|
13726
13781
|
const rowPlatform = _nullishCoalesce(_nullishCoalesce(cta.targetPlatform, () => ( chatRef.targetPlatform)), () => ( null));
|
|
13727
13782
|
if (rowUrl) return { url: rowUrl, targetPlatform: rowPlatform, path, source: "row" };
|
|
13728
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
13783
|
+
if (_optionalChain([entry, 'optionalAccess', _305 => _305.contentRefType]) && item) {
|
|
13729
13784
|
const choice = pickFetchedCardHref({
|
|
13730
13785
|
composed: resolveFetchedCardHref({
|
|
13731
13786
|
contentRefType: entry.contentRefType,
|
|
@@ -13733,10 +13788,10 @@ function resolveCardDestination({
|
|
|
13733
13788
|
item,
|
|
13734
13789
|
composeContentUrl
|
|
13735
13790
|
}),
|
|
13736
|
-
itemHref: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
13791
|
+
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _306 => _306.fallbackHref, 'optionalCall', _307 => _307(item)]), () => ( null)),
|
|
13737
13792
|
allowComposed: !entry.noComposedHref
|
|
13738
13793
|
});
|
|
13739
|
-
const url = choice ? _nullishCoalesce(
|
|
13794
|
+
const url = choice ? _nullishCoalesce(_chunkTD4CC4KVcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
13740
13795
|
if (choice && url) {
|
|
13741
13796
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
13742
13797
|
}
|
|
@@ -13749,11 +13804,11 @@ function resolveCardDestination({
|
|
|
13749
13804
|
|
|
13750
13805
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
13751
13806
|
const label = entityLabel || "Item";
|
|
13752
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
13753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13754
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
13755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13756
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13807
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkTD4CC4KVcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
13808
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
13809
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
13810
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkTD4CC4KVcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
13811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
13757
13812
|
label,
|
|
13758
13813
|
" deleted",
|
|
13759
13814
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -13808,7 +13863,7 @@ function GitHubChatCard({
|
|
|
13808
13863
|
description,
|
|
13809
13864
|
icon: githubKindIcon(kind),
|
|
13810
13865
|
status,
|
|
13811
|
-
anchorProps:
|
|
13866
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13812
13867
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13813
13868
|
menuAriaLabel: "Activity actions"
|
|
13814
13869
|
}
|
|
@@ -13827,8 +13882,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
|
|
|
13827
13882
|
if (href) {
|
|
13828
13883
|
items.push({
|
|
13829
13884
|
id: "open-details",
|
|
13830
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
13831
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
13885
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _308 => _308.label]), () => ( "Open Details")),
|
|
13886
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _309 => _309.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
|
|
13832
13887
|
// Main row → open the entity (same tab, soft Link nav).
|
|
13833
13888
|
href,
|
|
13834
13889
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -13905,15 +13960,15 @@ function fetchedItemDisplayRef(item, chatRef) {
|
|
|
13905
13960
|
}
|
|
13906
13961
|
function fetchedFaqDisplayRef(item, chatRef) {
|
|
13907
13962
|
const it = item;
|
|
13908
|
-
const answer = typeof _optionalChain([it, 'optionalAccess',
|
|
13963
|
+
const answer = typeof _optionalChain([it, 'optionalAccess', _310 => _310.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
|
|
13909
13964
|
return {
|
|
13910
13965
|
type: "faq",
|
|
13911
13966
|
id: chatRef.id,
|
|
13912
13967
|
sourceRepo: chatRef.sourceRepo,
|
|
13913
|
-
title: typeof _optionalChain([it, 'optionalAccess',
|
|
13968
|
+
title: typeof _optionalChain([it, 'optionalAccess', _311 => _311.question]) === "string" && it.question ? it.question : chatRef.id,
|
|
13914
13969
|
url: _nullishCoalesce(chatRef.url, () => ( null)),
|
|
13915
13970
|
...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
|
|
13916
|
-
metadata: typeof _optionalChain([it, 'optionalAccess',
|
|
13971
|
+
metadata: typeof _optionalChain([it, 'optionalAccess', _312 => _312.section]) === "string" && it.section ? { section: it.section } : {}
|
|
13917
13972
|
};
|
|
13918
13973
|
}
|
|
13919
13974
|
function HubspotTicketChatCard({
|
|
@@ -13921,8 +13976,8 @@ function HubspotTicketChatCard({
|
|
|
13921
13976
|
isNewTab,
|
|
13922
13977
|
discuss
|
|
13923
13978
|
}) {
|
|
13924
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
13925
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
13979
|
+
const status = typeof _optionalChain([chatRef, 'access', _313 => _313.metadata, 'optionalAccess', _314 => _314.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
13980
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _315 => _315.metadata, 'optionalAccess', _316 => _316.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
13926
13981
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
13927
13982
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13928
13983
|
MingoInfoCard,
|
|
@@ -13931,7 +13986,7 @@ function HubspotTicketChatCard({
|
|
|
13931
13986
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13932
13987
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
13933
13988
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
13934
|
-
anchorProps:
|
|
13989
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13935
13990
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
13936
13991
|
label: "Open Ticket Details",
|
|
13937
13992
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -13945,7 +14000,7 @@ function FaqChatCard({
|
|
|
13945
14000
|
isNewTab,
|
|
13946
14001
|
discuss
|
|
13947
14002
|
}) {
|
|
13948
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
14003
|
+
const section = typeof _optionalChain([chatRef, 'access', _317 => _317.metadata, 'optionalAccess', _318 => _318.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
13949
14004
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
13950
14005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13951
14006
|
MingoInfoCard,
|
|
@@ -13954,7 +14009,7 @@ function FaqChatCard({
|
|
|
13954
14009
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13955
14010
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
13956
14011
|
status: { label: statusLabel, variant: "grey" },
|
|
13957
|
-
anchorProps:
|
|
14012
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13958
14013
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13959
14014
|
menuAriaLabel: "FAQ actions"
|
|
13960
14015
|
}
|
|
@@ -13965,7 +14020,7 @@ function SlackChatCard({
|
|
|
13965
14020
|
isNewTab,
|
|
13966
14021
|
discuss
|
|
13967
14022
|
}) {
|
|
13968
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
14023
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _319 => _319.metadata, 'optionalAccess', _320 => _320.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
13969
14024
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
13970
14025
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
13971
14026
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13974,7 +14029,7 @@ function SlackChatCard({
|
|
|
13974
14029
|
title,
|
|
13975
14030
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13976
14031
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
13977
|
-
anchorProps:
|
|
14032
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13978
14033
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13979
14034
|
menuAriaLabel: "Message actions"
|
|
13980
14035
|
}
|
|
@@ -13992,7 +14047,7 @@ function GlyphChatCard({
|
|
|
13992
14047
|
title: chatRef.title,
|
|
13993
14048
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13994
14049
|
icon,
|
|
13995
|
-
anchorProps:
|
|
14050
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13996
14051
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13997
14052
|
menuAriaLabel: "Card actions"
|
|
13998
14053
|
}
|
|
@@ -14008,22 +14063,22 @@ function TrustCenterChatCard({
|
|
|
14008
14063
|
isNewTab,
|
|
14009
14064
|
discuss
|
|
14010
14065
|
}) {
|
|
14011
|
-
const raw2 = _optionalChain([item, 'optionalAccess',
|
|
14066
|
+
const raw2 = _optionalChain([item, 'optionalAccess', _321 => _321.frameworks]);
|
|
14012
14067
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
14013
|
-
const summary =
|
|
14068
|
+
const summary = _chunkH3WTYAVRcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
14014
14069
|
const leadFramework = frameworks[0];
|
|
14015
14070
|
const lead = leadFramework ? {
|
|
14016
|
-
label:
|
|
14017
|
-
color:
|
|
14071
|
+
label: _chunkH3WTYAVRcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
14072
|
+
color: _chunkH3WTYAVRcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
14018
14073
|
} : void 0;
|
|
14019
14074
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14020
14075
|
MingoInfoCard,
|
|
14021
14076
|
{
|
|
14022
|
-
title:
|
|
14023
|
-
description: summary ||
|
|
14077
|
+
title: _chunkH3WTYAVRcjs.TRUST_CENTER_TITLE,
|
|
14078
|
+
description: summary || _chunkH3WTYAVRcjs.TRUST_CENTER_TAGLINE,
|
|
14024
14079
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
14025
14080
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
14026
|
-
anchorProps:
|
|
14081
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14027
14082
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
14028
14083
|
label: "View trust center",
|
|
14029
14084
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -14045,7 +14100,7 @@ function DataRoomDocChatCard({
|
|
|
14045
14100
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14046
14101
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14047
14102
|
status: { label: badgeText, variant: "grey" },
|
|
14048
|
-
anchorProps:
|
|
14103
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14049
14104
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14050
14105
|
menuAriaLabel: "Document actions"
|
|
14051
14106
|
}
|
|
@@ -14057,14 +14112,14 @@ function GenericFinancialChatCard({
|
|
|
14057
14112
|
isNewTab,
|
|
14058
14113
|
discuss
|
|
14059
14114
|
}) {
|
|
14060
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
14115
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _322 => _322.metadata, 'optionalAccess', _323 => _323.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
14061
14116
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14062
14117
|
MingoInfoCard,
|
|
14063
14118
|
{
|
|
14064
14119
|
title: chatRef.title,
|
|
14065
14120
|
description: subtitle,
|
|
14066
14121
|
icon,
|
|
14067
|
-
anchorProps:
|
|
14122
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14068
14123
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14069
14124
|
menuAriaLabel: "Document actions"
|
|
14070
14125
|
}
|
|
@@ -14131,12 +14186,12 @@ function ProductReleaseChatCard({
|
|
|
14131
14186
|
discuss
|
|
14132
14187
|
}) {
|
|
14133
14188
|
const releaseProps = buildProps(item);
|
|
14134
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
14189
|
+
const status = _optionalChain([item, 'optionalAccess', _324 => _324.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
14135
14190
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14136
14191
|
EntityMingoCard,
|
|
14137
14192
|
{
|
|
14138
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14139
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14193
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.title]), () => ( "")),
|
|
14194
|
+
description: _optionalChain([item, 'optionalAccess', _326 => _326.summary]) || releaseProps.formattedDate || void 0,
|
|
14140
14195
|
cover: releaseProps.coverImage || void 0,
|
|
14141
14196
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX5LU4XQNcjs.Rocket02Icon, { size: 24 }),
|
|
14142
14197
|
status,
|
|
@@ -14153,17 +14208,17 @@ function CampaignChatCard({
|
|
|
14153
14208
|
isNewTab,
|
|
14154
14209
|
discuss
|
|
14155
14210
|
}) {
|
|
14156
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
14211
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _327 => _327.goals])) ? item.goals.length : 0;
|
|
14157
14212
|
const meta = [
|
|
14158
|
-
_optionalChain([item, 'optionalAccess',
|
|
14213
|
+
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ? _chunkH3WTYAVRcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
14159
14214
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14160
14215
|
"Marketing campaign"
|
|
14161
14216
|
].filter(Boolean).join(" \xB7 ");
|
|
14162
14217
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14163
14218
|
EntityMingoCard,
|
|
14164
14219
|
{
|
|
14165
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14166
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
14220
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _329 => _329.name]), () => ( "")),
|
|
14221
|
+
description: meta || _optionalChain([item, 'optionalAccess', _330 => _330.description]) || void 0,
|
|
14167
14222
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6OCFDC2Qcjs.Megaphone01Icon, { size: 24 }),
|
|
14168
14223
|
chatRef,
|
|
14169
14224
|
isNewTab,
|
|
@@ -14194,7 +14249,7 @@ function EntityMingoCard({
|
|
|
14194
14249
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
14195
14250
|
icon: fallbackIcon,
|
|
14196
14251
|
status,
|
|
14197
|
-
anchorProps:
|
|
14252
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14198
14253
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
14199
14254
|
menuAriaLabel
|
|
14200
14255
|
}
|
|
@@ -14206,7 +14261,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
14206
14261
|
function statusPill(status) {
|
|
14207
14262
|
const s = typeof status === "string" ? status.trim() : "";
|
|
14208
14263
|
if (!s) return void 0;
|
|
14209
|
-
const scheme =
|
|
14264
|
+
const scheme = _chunkH3WTYAVRcjs.getStatusColorScheme.call(void 0, s);
|
|
14210
14265
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
14211
14266
|
return { label: s, variant };
|
|
14212
14267
|
}
|
|
@@ -14218,14 +14273,14 @@ function BlogChatCard({
|
|
|
14218
14273
|
hasEmbeddedVideo,
|
|
14219
14274
|
discuss
|
|
14220
14275
|
}) {
|
|
14221
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
14276
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _331 => _331.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _332 => _332.categories, 'access', _333 => _333.find, 'call', _334 => _334((c) => _optionalChain([c, 'optionalAccess', _335 => _335.name])), 'optionalAccess', _336 => _336.name]), () => ( void 0)) : void 0;
|
|
14222
14277
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
14223
14278
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14224
14279
|
EntityMingoCard,
|
|
14225
14280
|
{
|
|
14226
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14227
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14228
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14281
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _337 => _337.title]), () => ( "")),
|
|
14282
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _338 => _338.summary]), () => ( void 0)),
|
|
14283
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _339 => _339.featured_image]), ogPlaceholder),
|
|
14229
14284
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEAPORE6cjs.NewspaperIcon, { size: 24 }),
|
|
14230
14285
|
status,
|
|
14231
14286
|
chatRef,
|
|
@@ -14242,13 +14297,13 @@ function CaseStudyChatCard({
|
|
|
14242
14297
|
ogPlaceholder,
|
|
14243
14298
|
discuss
|
|
14244
14299
|
}) {
|
|
14245
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
14300
|
+
const meta = [_optionalChain([item, 'optionalAccess', _340 => _340.msp, 'optionalAccess', _341 => _341.name]), _optionalChain([item, 'optionalAccess', _342 => _342.user, 'optionalAccess', _343 => _343.full_name])].filter(Boolean).join(" \xB7 ");
|
|
14246
14301
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14247
14302
|
EntityMingoCard,
|
|
14248
14303
|
{
|
|
14249
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14250
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14251
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14304
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _344 => _344.title]), () => ( "")),
|
|
14305
|
+
description: _optionalChain([item, 'optionalAccess', _345 => _345.summary]) || meta || void 0,
|
|
14306
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _346 => _346.featured_image]), ogPlaceholder),
|
|
14252
14307
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44URXY24cjs.TrophyIcon, { size: 24 }),
|
|
14253
14308
|
status: { label: "Case study", variant: "grey" },
|
|
14254
14309
|
chatRef,
|
|
@@ -14265,13 +14320,13 @@ function CustomerInterviewChatCard({
|
|
|
14265
14320
|
ogPlaceholder,
|
|
14266
14321
|
discuss
|
|
14267
14322
|
}) {
|
|
14268
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
14323
|
+
const meta = [_optionalChain([item, 'optionalAccess', _347 => _347.user, 'optionalAccess', _348 => _348.full_name]), _optionalChain([item, 'optionalAccess', _349 => _349.msp, 'optionalAccess', _350 => _350.name])].filter(Boolean).join(" \xB7 ");
|
|
14269
14324
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14270
14325
|
EntityMingoCard,
|
|
14271
14326
|
{
|
|
14272
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14273
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14274
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14327
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _351 => _351.title]), () => ( "")),
|
|
14328
|
+
description: _optionalChain([item, 'optionalAccess', _352 => _352.video_summary]) || meta || void 0,
|
|
14329
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _353 => _353.featured_image]), ogPlaceholder),
|
|
14275
14330
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 }),
|
|
14276
14331
|
status: { label: "Interview", variant: "grey" },
|
|
14277
14332
|
chatRef,
|
|
@@ -14288,16 +14343,16 @@ function DesignDocChatCard({
|
|
|
14288
14343
|
discuss
|
|
14289
14344
|
}) {
|
|
14290
14345
|
const displayRef = fetchedItemDisplayRef(item, chatRef);
|
|
14291
|
-
const doc = _optionalChain([item, 'optionalAccess',
|
|
14346
|
+
const doc = _optionalChain([item, 'optionalAccess', _354 => _354.doc]);
|
|
14292
14347
|
const readiness = doc ? DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)] : null;
|
|
14293
14348
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14294
14349
|
MingoInfoCard,
|
|
14295
14350
|
{
|
|
14296
|
-
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess',
|
|
14351
|
+
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _355 => _355.title]), () => ( displayRef.title)),
|
|
14297
14352
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14298
14353
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14299
14354
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
14300
|
-
anchorProps:
|
|
14355
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab, displayRef.targetPlatform),
|
|
14301
14356
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
14302
14357
|
menuAriaLabel: "Design doc actions"
|
|
14303
14358
|
}
|
|
@@ -14310,13 +14365,13 @@ function InvestorUpdateChatCard({
|
|
|
14310
14365
|
ogPlaceholder,
|
|
14311
14366
|
discuss
|
|
14312
14367
|
}) {
|
|
14313
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
14368
|
+
const title = _optionalChain([item, 'optionalAccess', _356 => _356.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _357 => _357.update_number]), () => ( "?"))}`;
|
|
14314
14369
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14315
14370
|
EntityMingoCard,
|
|
14316
14371
|
{
|
|
14317
14372
|
title,
|
|
14318
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
14319
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14373
|
+
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) || _chunkH3WTYAVRcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _360 => _360.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _361 => _361.period_end]), () => ( null))) || void 0,
|
|
14374
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _362 => _362.featured_image]), ogPlaceholder),
|
|
14320
14375
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
14321
14376
|
status: { label: "Investor update", variant: "grey" },
|
|
14322
14377
|
chatRef,
|
|
@@ -14333,12 +14388,12 @@ function OnboardingGuideChatCard({
|
|
|
14333
14388
|
ogPlaceholder,
|
|
14334
14389
|
discuss
|
|
14335
14390
|
}) {
|
|
14336
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
14391
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _363 => _363.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _364 => _364.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _365 => _365.og_image_url]), ogPlaceholder)));
|
|
14337
14392
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14338
14393
|
EntityMingoCard,
|
|
14339
14394
|
{
|
|
14340
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14341
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14395
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _366 => _366.title]), () => ( "")),
|
|
14396
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _367 => _367.summary]), () => ( _optionalChain([item, 'optionalAccess', _368 => _368.description]))), () => ( void 0)),
|
|
14342
14397
|
cover,
|
|
14343
14398
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 24 }),
|
|
14344
14399
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -14359,13 +14414,13 @@ function ProgramChatCard({
|
|
|
14359
14414
|
discuss
|
|
14360
14415
|
}) {
|
|
14361
14416
|
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 });
|
|
14362
|
-
const { line: meta } =
|
|
14417
|
+
const { line: meta } = _chunkH3WTYAVRcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkH3WTYAVRcjs.programMetaFormatters.call(void 0, _chunkH3WTYAVRcjs.PROGRAM_META_RENDERERS));
|
|
14363
14418
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14364
14419
|
EntityMingoCard,
|
|
14365
14420
|
{
|
|
14366
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14367
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
14368
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
14421
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _369 => _369.title]), () => ( "")),
|
|
14422
|
+
description: meta || _optionalChain([item, 'optionalAccess', _370 => _370.description]) || void 0,
|
|
14423
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _371 => _371.cover_url]), ogPlaceholder),
|
|
14369
14424
|
fallbackIcon: icon,
|
|
14370
14425
|
status: { label, variant: "grey" },
|
|
14371
14426
|
chatRef,
|
|
@@ -14382,10 +14437,10 @@ function RoadmapChatCard({
|
|
|
14382
14437
|
cardType,
|
|
14383
14438
|
discuss
|
|
14384
14439
|
}) {
|
|
14385
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
14386
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
14440
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _372 => _372.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
14441
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _373 => _373.customItemId]) != null;
|
|
14387
14442
|
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 });
|
|
14388
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14443
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _374 => _374.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
14389
14444
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
14390
14445
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
14391
14446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14394,8 +14449,8 @@ function RoadmapChatCard({
|
|
|
14394
14449
|
src: logoUrl,
|
|
14395
14450
|
alt: "",
|
|
14396
14451
|
className: "size-6 object-contain",
|
|
14397
|
-
width:
|
|
14398
|
-
height:
|
|
14452
|
+
width: _chunkJQCQCE6Ucjs.IMAGE_FIXED_PX.glyph,
|
|
14453
|
+
height: _chunkJQCQCE6Ucjs.IMAGE_FIXED_PX.glyph,
|
|
14399
14454
|
unoptimized: true
|
|
14400
14455
|
}
|
|
14401
14456
|
)
|
|
@@ -14406,10 +14461,10 @@ function RoadmapChatCard({
|
|
|
14406
14461
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14407
14462
|
EntityMingoCard,
|
|
14408
14463
|
{
|
|
14409
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14410
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14464
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _375 => _375.title]), () => ( "")),
|
|
14465
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _376 => _376.description]), () => ( void 0)),
|
|
14411
14466
|
fallbackIcon: icon,
|
|
14412
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
14467
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _377 => _377.status])),
|
|
14413
14468
|
chatRef,
|
|
14414
14469
|
isNewTab,
|
|
14415
14470
|
discuss,
|
|
@@ -14425,7 +14480,7 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
14425
14480
|
bareInline: true,
|
|
14426
14481
|
contentRefType: docType,
|
|
14427
14482
|
noComposedHref: true,
|
|
14428
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14483
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _378 => _378.url]), () => ( null)),
|
|
14429
14484
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14430
14485
|
render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
|
|
14431
14486
|
};
|
|
@@ -14457,15 +14512,15 @@ function financialRegistryEntries() {
|
|
|
14457
14512
|
);
|
|
14458
14513
|
}
|
|
14459
14514
|
function refText(ref, key) {
|
|
14460
|
-
const value = _optionalChain([ref, 'optionalAccess',
|
|
14515
|
+
const value = _optionalChain([ref, 'optionalAccess', _379 => _379[key]]);
|
|
14461
14516
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
14462
14517
|
}
|
|
14463
14518
|
function VendorGlyph({ title, logoUrl }) {
|
|
14464
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14519
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
14465
14520
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
14466
14521
|
}
|
|
14467
14522
|
function SitePageGlyph({ iconName }) {
|
|
14468
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14523
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
14469
14524
|
}
|
|
14470
14525
|
var GITHUB_CARD_CONFIGS = {
|
|
14471
14526
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -14503,7 +14558,7 @@ var REF_GLYPH_CARD_CONFIGS = {
|
|
|
14503
14558
|
// rate. A glyph card; it opens the pricing page.
|
|
14504
14559
|
openframe_price: { label: "OpenFrame price" },
|
|
14505
14560
|
// A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
|
|
14506
|
-
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess',
|
|
14561
|
+
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _380 => _380.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
|
|
14507
14562
|
};
|
|
14508
14563
|
function sourceGlyph(docType) {
|
|
14509
14564
|
const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
|
|
@@ -14522,8 +14577,8 @@ function refGlyphRegistryEntries() {
|
|
|
14522
14577
|
title: displayRef.title,
|
|
14523
14578
|
description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14524
14579
|
cover: entityCover(
|
|
14525
|
-
_optionalChain([displayRef, 'access',
|
|
14526
|
-
_nullishCoalesce(_optionalChain([opts, 'access',
|
|
14580
|
+
_optionalChain([displayRef, 'access', _381 => _381.metadata, 'optionalAccess', _382 => _382.videoPoster]),
|
|
14581
|
+
_nullishCoalesce(_optionalChain([opts, 'access', _383 => _383.extras, 'optionalAccess', _384 => _384.buildOgPlaceholderUrl, 'optionalCall', _385 => _385(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
|
|
14527
14582
|
),
|
|
14528
14583
|
fallbackIcon: glyph(displayRef),
|
|
14529
14584
|
status: { label: cfg.label, variant: "grey" },
|
|
@@ -14538,9 +14593,9 @@ function refGlyphRegistryEntries() {
|
|
|
14538
14593
|
}
|
|
14539
14594
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
14540
14595
|
const it = item;
|
|
14541
|
-
const title = typeof _optionalChain([it, 'optionalAccess',
|
|
14542
|
-
const author = typeof _optionalChain([it, 'optionalAccess',
|
|
14543
|
-
const summary = typeof _optionalChain([it, 'optionalAccess',
|
|
14596
|
+
const title = typeof _optionalChain([it, 'optionalAccess', _386 => _386.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
|
|
14597
|
+
const author = typeof _optionalChain([it, 'optionalAccess', _387 => _387.author, 'optionalAccess', _388 => _388.full_name]) === "string" ? it.author.full_name.trim() : "";
|
|
14598
|
+
const summary = typeof _optionalChain([it, 'optionalAccess', _389 => _389.summary]) === "string" ? it.summary.trim() : "";
|
|
14544
14599
|
const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
|
|
14545
14600
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
14546
14601
|
}
|
|
@@ -14593,7 +14648,7 @@ function programRegistryEntries() {
|
|
|
14593
14648
|
contentRefType: cfg.contentRefType,
|
|
14594
14649
|
bareInline: true,
|
|
14595
14650
|
disclosure: cfg.disclosure,
|
|
14596
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14651
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
14597
14652
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14598
14653
|
ProgramChatCard,
|
|
14599
14654
|
{
|
|
@@ -14603,7 +14658,7 @@ function programRegistryEntries() {
|
|
|
14603
14658
|
discuss: opts.discuss,
|
|
14604
14659
|
configKey: cfg.configKey,
|
|
14605
14660
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
14606
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14661
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _390 => _390.extras, 'optionalAccess', _391 => _391.buildOgPlaceholderUrl, 'optionalCall', _392 => _392(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _393 => _393.title]), () => ( "")))]), () => ( null))
|
|
14607
14662
|
}
|
|
14608
14663
|
)
|
|
14609
14664
|
}));
|
|
@@ -14624,7 +14679,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
14624
14679
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
14625
14680
|
// task id post-fetch (the refs frame used to carry it).
|
|
14626
14681
|
noComposedHref: true,
|
|
14627
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
14682
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _394 => _394.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
14628
14683
|
}
|
|
14629
14684
|
};
|
|
14630
14685
|
function roadmapRegistryEntries() {
|
|
@@ -14634,7 +14689,7 @@ function roadmapRegistryEntries() {
|
|
|
14634
14689
|
bareInline: true,
|
|
14635
14690
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
14636
14691
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
14637
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14692
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
14638
14693
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14639
14694
|
RoadmapChatCard,
|
|
14640
14695
|
{
|
|
@@ -14666,8 +14721,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14666
14721
|
DeletedDataCard,
|
|
14667
14722
|
{
|
|
14668
14723
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
14669
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
14670
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
14724
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _395 => _395.metadata, 'optionalAccess', _396 => _396.entity_label]), () => ( null)),
|
|
14725
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _397 => _397.metadata, 'optionalAccess', _398 => _398.recovery_note]), () => ( null))
|
|
14671
14726
|
}
|
|
14672
14727
|
)
|
|
14673
14728
|
},
|
|
@@ -14684,7 +14739,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14684
14739
|
bareInline: true,
|
|
14685
14740
|
contentRefType: "faq",
|
|
14686
14741
|
noComposedHref: true,
|
|
14687
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
14742
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _399 => _399.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
14688
14743
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14689
14744
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14690
14745
|
},
|
|
@@ -14692,12 +14747,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14692
14747
|
// projection route; `extractCardItems` turns its object payload into the
|
|
14693
14748
|
// single matched row. Destination is the public page unless the host
|
|
14694
14749
|
// re-homes the type (`composeContentUrl` override).
|
|
14695
|
-
[
|
|
14750
|
+
[_chunkH3WTYAVRcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
14696
14751
|
label: "Trust center",
|
|
14697
14752
|
bareInline: true,
|
|
14698
|
-
contentRefType:
|
|
14753
|
+
contentRefType: _chunkH3WTYAVRcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
14699
14754
|
noComposedHref: true,
|
|
14700
|
-
fallbackHref: () =>
|
|
14755
|
+
fallbackHref: () => _chunkH3WTYAVRcjs.TRUST_CENTER_PAGE_PATH,
|
|
14701
14756
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14702
14757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14703
14758
|
},
|
|
@@ -14723,7 +14778,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14723
14778
|
label: "Blog post",
|
|
14724
14779
|
contentRefType: "blog_post_existing",
|
|
14725
14780
|
bareInline: true,
|
|
14726
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14781
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.BlogCard, { loading: true, size: "sm" }),
|
|
14727
14782
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14728
14783
|
BlogChatCard,
|
|
14729
14784
|
{
|
|
@@ -14731,8 +14786,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14731
14786
|
chatRef,
|
|
14732
14787
|
isNewTab: opts.isNewTab,
|
|
14733
14788
|
discuss: opts.discuss,
|
|
14734
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14735
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
14789
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _400 => _400.extras, 'optionalAccess', _401 => _401.buildOgPlaceholderUrl, 'optionalCall', _402 => _402(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _403 => _403.title]), () => ( "")))]), () => ( null)),
|
|
14790
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _404 => _404.metadata, 'optionalAccess', _405 => _405.hasEmbeddedVideo]) === true
|
|
14736
14791
|
}
|
|
14737
14792
|
)
|
|
14738
14793
|
},
|
|
@@ -14741,7 +14796,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14741
14796
|
label: "Case study",
|
|
14742
14797
|
contentRefType: "case_study",
|
|
14743
14798
|
bareInline: true,
|
|
14744
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14799
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
14745
14800
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14746
14801
|
CaseStudyChatCard,
|
|
14747
14802
|
{
|
|
@@ -14749,7 +14804,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14749
14804
|
chatRef,
|
|
14750
14805
|
isNewTab: opts.isNewTab,
|
|
14751
14806
|
discuss: opts.discuss,
|
|
14752
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14807
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _406 => _406.extras, 'optionalAccess', _407 => _407.buildOgPlaceholderUrl, 'optionalCall', _408 => _408(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.title]), () => ( "")))]), () => ( null))
|
|
14753
14808
|
}
|
|
14754
14809
|
)
|
|
14755
14810
|
},
|
|
@@ -14758,7 +14813,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14758
14813
|
contentRefType: "design_doc",
|
|
14759
14814
|
bareInline: true,
|
|
14760
14815
|
noComposedHref: true,
|
|
14761
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
14816
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.url]), () => ( null)),
|
|
14762
14817
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14763
14818
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14764
14819
|
},
|
|
@@ -14767,7 +14822,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14767
14822
|
label: "Customer interview",
|
|
14768
14823
|
contentRefType: "customer_interview",
|
|
14769
14824
|
bareInline: true,
|
|
14770
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14825
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
14771
14826
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14772
14827
|
CustomerInterviewChatCard,
|
|
14773
14828
|
{
|
|
@@ -14775,7 +14830,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14775
14830
|
chatRef,
|
|
14776
14831
|
isNewTab: opts.isNewTab,
|
|
14777
14832
|
discuss: opts.discuss,
|
|
14778
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14833
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _411 => _411.extras, 'optionalAccess', _412 => _412.buildOgPlaceholderUrl, 'optionalCall', _413 => _413(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _414 => _414.title]), () => ( "")))]), () => ( null))
|
|
14779
14834
|
}
|
|
14780
14835
|
)
|
|
14781
14836
|
},
|
|
@@ -14784,9 +14839,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14784
14839
|
label: "Product release",
|
|
14785
14840
|
contentRefType: "product_release",
|
|
14786
14841
|
bareInline: true,
|
|
14787
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14842
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
14788
14843
|
render: (item, chatRef, opts) => {
|
|
14789
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14844
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => ( _chunkH3WTYAVRcjs.defaultBuildProductReleaseCardProps));
|
|
14790
14845
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14791
14846
|
ProductReleaseChatCard,
|
|
14792
14847
|
{
|
|
@@ -14805,7 +14860,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14805
14860
|
label: "Investor update",
|
|
14806
14861
|
contentRefType: "investor_update",
|
|
14807
14862
|
bareInline: true,
|
|
14808
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14863
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
14809
14864
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14810
14865
|
InvestorUpdateChatCard,
|
|
14811
14866
|
{
|
|
@@ -14813,7 +14868,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14813
14868
|
chatRef,
|
|
14814
14869
|
isNewTab: opts.isNewTab,
|
|
14815
14870
|
discuss: opts.discuss,
|
|
14816
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14871
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _417 => _417.extras, 'optionalAccess', _418 => _418.buildOgPlaceholderUrl, 'optionalCall', _419 => _419(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _420 => _420.title]), () => ( "")))]), () => ( null))
|
|
14817
14872
|
}
|
|
14818
14873
|
)
|
|
14819
14874
|
},
|
|
@@ -14824,7 +14879,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14824
14879
|
bareInline: true,
|
|
14825
14880
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
14826
14881
|
displayAction: true,
|
|
14827
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14882
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
14828
14883
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14829
14884
|
OnboardingGuideChatCard,
|
|
14830
14885
|
{
|
|
@@ -14832,7 +14887,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14832
14887
|
chatRef,
|
|
14833
14888
|
isNewTab: opts.isNewTab,
|
|
14834
14889
|
discuss: opts.discuss,
|
|
14835
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
14890
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _421 => _421.extras, 'optionalAccess', _422 => _422.buildOgPlaceholderUrl, 'optionalCall', _423 => _423(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _424 => _424.title]), () => ( "")))]), () => ( null))
|
|
14836
14891
|
}
|
|
14837
14892
|
)
|
|
14838
14893
|
},
|
|
@@ -14843,13 +14898,13 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14843
14898
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14844
14899
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
14845
14900
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
14846
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
14901
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _425 => _425.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
|
|
14847
14902
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14848
14903
|
},
|
|
14849
14904
|
...roadmapRegistryEntries()
|
|
14850
14905
|
};
|
|
14851
14906
|
function chatCardLabel(docType) {
|
|
14852
|
-
return _optionalChain([CHAT_CARD_REGISTRY, 'access',
|
|
14907
|
+
return _optionalChain([CHAT_CARD_REGISTRY, 'access', _426 => _426[docType], 'optionalAccess', _427 => _427.label]);
|
|
14853
14908
|
}
|
|
14854
14909
|
function ChatCardNavWrap({
|
|
14855
14910
|
href,
|
|
@@ -14865,13 +14920,13 @@ function ChatCardNavWrap({
|
|
|
14865
14920
|
if (!href) return;
|
|
14866
14921
|
const targetEl = e.target;
|
|
14867
14922
|
const host = e.currentTarget;
|
|
14868
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
14869
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
14870
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
14871
|
-
const handled =
|
|
14923
|
+
if (!_optionalChain([host, 'optionalAccess', _428 => _428.contains, 'call', _429 => _429(targetEl)])) return;
|
|
14924
|
+
if (_optionalChain([targetEl, 'optionalAccess', _430 => _430.closest, 'optionalCall', _431 => _431("button")])) return;
|
|
14925
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _432 => _432.closest, 'optionalCall', _433 => _433("a")])) return;
|
|
14926
|
+
const handled = _chunkZABZIM2Ycjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
|
|
14872
14927
|
if (!handled) return;
|
|
14873
14928
|
e.stopPropagation();
|
|
14874
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
14929
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _434 => _434.closeChat])) panel.closeChat();
|
|
14875
14930
|
};
|
|
14876
14931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
14877
14932
|
}
|
|
@@ -14896,7 +14951,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14896
14951
|
const entry = CHAT_CARD_REGISTRY[chatRef.type];
|
|
14897
14952
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
14898
14953
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
14899
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
14954
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _435 => _435.contentRefType]), () => ( "")),
|
|
14900
14955
|
fetchEntry ? chatRef.id : ""
|
|
14901
14956
|
);
|
|
14902
14957
|
if (!entry) return null;
|
|
@@ -14906,7 +14961,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14906
14961
|
entry: fetchEntry,
|
|
14907
14962
|
ctx: sourceRowCtxFromRuntime(runtime),
|
|
14908
14963
|
composeContentUrl: runtime.composeContentUrl,
|
|
14909
|
-
resolveHref: (href) =>
|
|
14964
|
+
resolveHref: (href) => _chunkAPNONOHYcjs.navLinkTarget.call(void 0, runtime, href).href
|
|
14910
14965
|
});
|
|
14911
14966
|
const hrefResolvedChatRef = {
|
|
14912
14967
|
...chatRef,
|
|
@@ -14917,13 +14972,13 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14917
14972
|
};
|
|
14918
14973
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
14919
14974
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
14920
|
-
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url &&
|
|
14921
|
-
const isNewTab = finalChatRef.url ?
|
|
14975
|
+
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url && _chunkAPNONOHYcjs.isRelativeHref.call(void 0, finalChatRef.url);
|
|
14976
|
+
const isNewTab = finalChatRef.url ? _chunkAPNONOHYcjs.navLinkTarget.call(void 0, runtime, finalChatRef.url, finalChatRef.targetPlatform, { hostRoute }).isNewTab : false;
|
|
14922
14977
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
14923
14978
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
14924
14979
|
const discuss = discussFn ? {
|
|
14925
14980
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
14926
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14981
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
14927
14982
|
run: () => discussFn(finalChatRef)
|
|
14928
14983
|
} : void 0;
|
|
14929
14984
|
const renderOpts = {
|
|
@@ -14931,7 +14986,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14931
14986
|
isNewTab,
|
|
14932
14987
|
discuss
|
|
14933
14988
|
};
|
|
14934
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
14989
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _436 => _436.metadata, 'optionalAccess', _437 => _437.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
14935
14990
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14936
14991
|
ChatCardNavWrap,
|
|
14937
14992
|
{
|
|
@@ -14963,7 +15018,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14963
15018
|
}
|
|
14964
15019
|
if (isLoading) {
|
|
14965
15020
|
return finish(
|
|
14966
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
15021
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'access', _438 => _438.skeleton, 'optionalCall', _439 => _439()]), () => ( null)),
|
|
14967
15022
|
entry.disclosure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatCardDisclosureButton, { kind: entry.disclosure, loading: true }) : void 0,
|
|
14968
15023
|
true
|
|
14969
15024
|
);
|
|
@@ -14977,7 +15032,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14977
15032
|
}
|
|
14978
15033
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not found" });
|
|
14979
15034
|
}
|
|
14980
|
-
const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call',
|
|
15035
|
+
const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _440 => _440(item, finalChatRef), 'optionalAccess', _441 => _441.kind])));
|
|
14981
15036
|
if (kind) {
|
|
14982
15037
|
const content = CHAT_CARD_DISCLOSURES[kind].fromItem(item, finalChatRef);
|
|
14983
15038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15029,12 +15084,12 @@ function makeBatchDedupKey(item) {
|
|
|
15029
15084
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
15030
15085
|
}
|
|
15031
15086
|
function getChatTypeMessageType(chatType) {
|
|
15032
|
-
return chatType ===
|
|
15087
|
+
return chatType === _chunk4JHO2NVIcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
15033
15088
|
}
|
|
15034
15089
|
function useChunkCatchup({
|
|
15035
15090
|
dialogId,
|
|
15036
15091
|
onChunkReceived,
|
|
15037
|
-
chatTypes = [
|
|
15092
|
+
chatTypes = [_chunk4JHO2NVIcjs.CHAT_TYPE.CLIENT],
|
|
15038
15093
|
fetchChunks
|
|
15039
15094
|
}) {
|
|
15040
15095
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -15248,7 +15303,7 @@ function useChunkCatchup({
|
|
|
15248
15303
|
if (catchupRun.current === run) {
|
|
15249
15304
|
if (currentDialogId !== dialogIdRef.current) {
|
|
15250
15305
|
catchupRun.current = null;
|
|
15251
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
15306
|
+
if (_optionalChain([pendingCatchupRef, 'access', _442 => _442.current, 'optionalAccess', _443 => _443.dialogId]) === currentDialogId) {
|
|
15252
15307
|
pendingCatchupRef.current = null;
|
|
15253
15308
|
}
|
|
15254
15309
|
} else {
|
|
@@ -15259,7 +15314,7 @@ function useChunkCatchup({
|
|
|
15259
15314
|
if (pending.dialogId === currentDialogId) {
|
|
15260
15315
|
rearmForQueuedCatchup();
|
|
15261
15316
|
try {
|
|
15262
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
15317
|
+
await _optionalChain([catchUpChunksRef, 'access', _444 => _444.current, 'optionalCall', _445 => _445(pending.fromSequenceId)]);
|
|
15263
15318
|
} catch (rerunError) {
|
|
15264
15319
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
15265
15320
|
}
|
|
@@ -15410,20 +15465,20 @@ function useNatsDialogSubscription({
|
|
|
15410
15465
|
const tearDownSubscriptions = () => {
|
|
15411
15466
|
subscriptionRefs.current.forEach((sub) => {
|
|
15412
15467
|
try {
|
|
15413
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15468
|
+
_optionalChain([sub, 'optionalAccess', _446 => _446.unsubscribe, 'call', _447 => _447()]);
|
|
15414
15469
|
} catch (e11) {
|
|
15415
15470
|
}
|
|
15416
15471
|
});
|
|
15417
15472
|
subscriptionRefs.current.clear();
|
|
15418
15473
|
lastSubscribedDialogIdRef.current = null;
|
|
15419
|
-
_optionalChain([abortControllerRef, 'access',
|
|
15474
|
+
_optionalChain([abortControllerRef, 'access', _448 => _448.current, 'optionalAccess', _449 => _449.abort, 'call', _450 => _450()]);
|
|
15420
15475
|
abortControllerRef.current = null;
|
|
15421
15476
|
};
|
|
15422
15477
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
15423
15478
|
const lifecycle = _chunkQDB2JO55cjs.startConnectionLifecycle.call(void 0, {
|
|
15424
15479
|
conn: sharedConn,
|
|
15425
15480
|
wsUrl,
|
|
15426
|
-
onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access',
|
|
15481
|
+
onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _451 => _451.current, 'optionalCall', _452 => _452(ctx)]),
|
|
15427
15482
|
backoff: reconnectionBackoffRef.current,
|
|
15428
15483
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
15429
15484
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -15434,7 +15489,7 @@ function useNatsDialogSubscription({
|
|
|
15434
15489
|
setReconnectionCount((c) => c + 1);
|
|
15435
15490
|
}
|
|
15436
15491
|
hadConnectionBeforeRef.current = true;
|
|
15437
|
-
_optionalChain([onConnectRef, 'access',
|
|
15492
|
+
_optionalChain([onConnectRef, 'access', _453 => _453.current, 'optionalCall', _454 => _454()]);
|
|
15438
15493
|
}
|
|
15439
15494
|
if (status === "error") {
|
|
15440
15495
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -15444,7 +15499,7 @@ function useNatsDialogSubscription({
|
|
|
15444
15499
|
setIsConnected(false);
|
|
15445
15500
|
setIsSubscribed(false);
|
|
15446
15501
|
tearDownSubscriptions();
|
|
15447
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
15502
|
+
_optionalChain([onDisconnectRef, 'access', _455 => _455.current, 'optionalCall', _456 => _456()]);
|
|
15448
15503
|
}
|
|
15449
15504
|
}
|
|
15450
15505
|
});
|
|
@@ -15475,13 +15530,13 @@ function useNatsDialogSubscription({
|
|
|
15475
15530
|
setIsSubscribed(false);
|
|
15476
15531
|
subscriptionRefs.current.forEach((sub) => {
|
|
15477
15532
|
try {
|
|
15478
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15533
|
+
_optionalChain([sub, 'optionalAccess', _457 => _457.unsubscribe, 'call', _458 => _458()]);
|
|
15479
15534
|
} catch (e12) {
|
|
15480
15535
|
}
|
|
15481
15536
|
});
|
|
15482
15537
|
subscriptionRefs.current.clear();
|
|
15483
15538
|
lastSubscribedDialogIdRef.current = null;
|
|
15484
|
-
_optionalChain([abortControllerRef, 'access',
|
|
15539
|
+
_optionalChain([abortControllerRef, 'access', _459 => _459.current, 'optionalAccess', _460 => _460.abort, 'call', _461 => _461()]);
|
|
15485
15540
|
abortControllerRef.current = null;
|
|
15486
15541
|
}
|
|
15487
15542
|
return void 0;
|
|
@@ -15493,12 +15548,12 @@ function useNatsDialogSubscription({
|
|
|
15493
15548
|
if (subscriptionRefs.current.size > 0) {
|
|
15494
15549
|
subscriptionRefs.current.forEach((sub) => {
|
|
15495
15550
|
try {
|
|
15496
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15551
|
+
_optionalChain([sub, 'optionalAccess', _462 => _462.unsubscribe, 'call', _463 => _463()]);
|
|
15497
15552
|
} catch (e13) {
|
|
15498
15553
|
}
|
|
15499
15554
|
});
|
|
15500
15555
|
subscriptionRefs.current.clear();
|
|
15501
|
-
_optionalChain([abortControllerRef, 'access',
|
|
15556
|
+
_optionalChain([abortControllerRef, 'access', _464 => _464.current, 'optionalAccess', _465 => _465.abort, 'call', _466 => _466()]);
|
|
15502
15557
|
}
|
|
15503
15558
|
abortControllerRef.current = new AbortController();
|
|
15504
15559
|
const abort = abortControllerRef.current;
|
|
@@ -15528,7 +15583,7 @@ function useNatsDialogSubscription({
|
|
|
15528
15583
|
});
|
|
15529
15584
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
15530
15585
|
setIsSubscribed(true);
|
|
15531
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
15586
|
+
_optionalChain([onSubscribedRef, 'access', _467 => _467.current, 'optionalCall', _468 => _468()]);
|
|
15532
15587
|
};
|
|
15533
15588
|
if (isConnectedRef.current) {
|
|
15534
15589
|
createSubscriptions();
|
|
@@ -15539,7 +15594,7 @@ function useNatsDialogSubscription({
|
|
|
15539
15594
|
abort.abort();
|
|
15540
15595
|
subscriptions.forEach((sub) => {
|
|
15541
15596
|
try {
|
|
15542
|
-
_optionalChain([sub, 'optionalAccess',
|
|
15597
|
+
_optionalChain([sub, 'optionalAccess', _469 => _469.unsubscribe, 'call', _470 => _470()]);
|
|
15543
15598
|
} catch (e15) {
|
|
15544
15599
|
}
|
|
15545
15600
|
});
|
|
@@ -15578,7 +15633,7 @@ function useNatsDialogSubscription({
|
|
|
15578
15633
|
});
|
|
15579
15634
|
lastSubscribedDialogIdRef.current = currentDialogId;
|
|
15580
15635
|
setIsSubscribed(true);
|
|
15581
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
15636
|
+
_optionalChain([onSubscribedRef, 'access', _471 => _471.current, 'optionalCall', _472 => _472()]);
|
|
15582
15637
|
} else if (subscriptionRefs.current.size > 0) {
|
|
15583
15638
|
setIsSubscribed(true);
|
|
15584
15639
|
}
|
|
@@ -15586,10 +15641,10 @@ function useNatsDialogSubscription({
|
|
|
15586
15641
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
15587
15642
|
}
|
|
15588
15643
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
15589
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
15644
|
+
const path = _optionalChain([options, 'optionalAccess', _473 => _473.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
15590
15645
|
const u = new URL(path, apiBaseUrl);
|
|
15591
15646
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
15592
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
15647
|
+
if (_optionalChain([options, 'optionalAccess', _474 => _474.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _475 => _475.token])) {
|
|
15593
15648
|
u.searchParams.set("authorization", options.token);
|
|
15594
15649
|
}
|
|
15595
15650
|
return u.toString();
|
|
@@ -15607,7 +15662,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
15607
15662
|
const data = await res.json();
|
|
15608
15663
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
15609
15664
|
} catch (err) {
|
|
15610
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
15665
|
+
if (_optionalChain([err, 'optionalAccess', _476 => _476.name]) === "AbortError") throw err;
|
|
15611
15666
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
15612
15667
|
return [];
|
|
15613
15668
|
}
|
|
@@ -15615,8 +15670,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
15615
15670
|
var NO_COMMANDS = [];
|
|
15616
15671
|
function useSlashCommands(prefix, commandsUrl) {
|
|
15617
15672
|
const [answered, setAnswered] = _react.useState.call(void 0, null);
|
|
15618
|
-
const commands = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
15619
|
-
const loading = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
15673
|
+
const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _477 => _477.prefix]) === prefix ? answered.commands : NO_COMMANDS;
|
|
15674
|
+
const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _478 => _478.prefix]) !== prefix;
|
|
15620
15675
|
_react.useEffect.call(void 0, () => {
|
|
15621
15676
|
if (prefix == null) return void 0;
|
|
15622
15677
|
let cancelled = false;
|
|
@@ -15626,7 +15681,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
15626
15681
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
15627
15682
|
if (!cancelled) setAnswered({ prefix, commands: next });
|
|
15628
15683
|
} catch (err) {
|
|
15629
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
15684
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _479 => _479.name]) !== "AbortError") {
|
|
15630
15685
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
15631
15686
|
setAnswered({ prefix, commands: NO_COMMANDS });
|
|
15632
15687
|
}
|
|
@@ -15649,7 +15704,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
15649
15704
|
const query = _reactquery.useQuery.call(void 0, {
|
|
15650
15705
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
15651
15706
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
15652
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
15707
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.enabled]), () => ( true)),
|
|
15653
15708
|
staleTime: Infinity,
|
|
15654
15709
|
gcTime: Infinity,
|
|
15655
15710
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -15688,15 +15743,15 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
15688
15743
|
}
|
|
15689
15744
|
const data = await res.json();
|
|
15690
15745
|
return {
|
|
15691
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15692
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15693
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15694
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15695
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15696
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
15746
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _481 => _481.name]), () => ( null)),
|
|
15747
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _482 => _482.icon]), () => ( null)),
|
|
15748
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _483 => _483.greeting]), () => ( null)),
|
|
15749
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _484 => _484.enabledRagTableIds]), () => ( [])),
|
|
15750
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _485 => _485.quickActions]), () => ( [])),
|
|
15751
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _486 => _486.suggestedQueries]), () => ( []))
|
|
15697
15752
|
};
|
|
15698
15753
|
} catch (err) {
|
|
15699
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
15754
|
+
if (_optionalChain([err, 'optionalAccess', _487 => _487.name]) === "AbortError") throw err;
|
|
15700
15755
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
15701
15756
|
return EMPTY_STATE_FALLBACK;
|
|
15702
15757
|
}
|
|
@@ -15706,7 +15761,7 @@ function emptyStateUrlForTopic(emptyStateUrl, topic) {
|
|
|
15706
15761
|
return `${emptyStateUrl}${emptyStateUrl.includes("?") ? "&" : "?"}${new URLSearchParams({ topic }).toString()}`;
|
|
15707
15762
|
}
|
|
15708
15763
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
15709
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
15764
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _488 => _488.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
15710
15765
|
const topic = _chunkIX2E3AN7cjs.usePageTopic.call(void 0, );
|
|
15711
15766
|
const url = emptyStateUrl ? emptyStateUrlForTopic(emptyStateUrl, topic) : void 0;
|
|
15712
15767
|
const query = _reactquery.useQuery.call(void 0, {
|
|
@@ -15737,7 +15792,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
15737
15792
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
15738
15793
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
15739
15794
|
return new Promise((resolve, reject) => {
|
|
15740
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
15795
|
+
if (_optionalChain([signal, 'optionalAccess', _489 => _489.aborted])) {
|
|
15741
15796
|
reject(new Error("Upload cancelled"));
|
|
15742
15797
|
return;
|
|
15743
15798
|
}
|
|
@@ -15779,7 +15834,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
15779
15834
|
const handleSignalAbort = () => {
|
|
15780
15835
|
xhr.abort();
|
|
15781
15836
|
};
|
|
15782
|
-
_optionalChain([signal, 'optionalAccess',
|
|
15837
|
+
_optionalChain([signal, 'optionalAccess', _490 => _490.addEventListener, 'call', _491 => _491("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
|
|
15783
15838
|
xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
|
|
15784
15839
|
xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
|
|
15785
15840
|
xhr.addEventListener("error", handleError, { signal: listeners.signal });
|
|
@@ -15823,10 +15878,10 @@ function useChatAttachments() {
|
|
|
15823
15878
|
try {
|
|
15824
15879
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
15825
15880
|
} catch (err) {
|
|
15826
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15881
|
+
if (_optionalChain([ctrl, 'optionalAccess', _492 => _492.signal, 'access', _493 => _493.aborted])) return;
|
|
15827
15882
|
throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
|
|
15828
15883
|
}
|
|
15829
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15884
|
+
if (_optionalChain([ctrl, 'optionalAccess', _494 => _494.signal, 'access', _495 => _495.aborted])) return;
|
|
15830
15885
|
if (!sniffed) {
|
|
15831
15886
|
throw new Error("Unrecognized file format");
|
|
15832
15887
|
}
|
|
@@ -15840,7 +15895,7 @@ function useChatAttachments() {
|
|
|
15840
15895
|
const urlResp = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
15841
15896
|
method: "POST",
|
|
15842
15897
|
headers: { "Content-Type": "application/json" },
|
|
15843
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
15898
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _496 => _496.signal]),
|
|
15844
15899
|
body: JSON.stringify({
|
|
15845
15900
|
fileName: att.file.name,
|
|
15846
15901
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -15869,9 +15924,9 @@ function useChatAttachments() {
|
|
|
15869
15924
|
(pct) => {
|
|
15870
15925
|
updateOne(att.id, { progress: pct });
|
|
15871
15926
|
},
|
|
15872
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
15927
|
+
_optionalChain([ctrl, 'optionalAccess', _497 => _497.signal])
|
|
15873
15928
|
);
|
|
15874
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15929
|
+
if (_optionalChain([ctrl, 'optionalAccess', _498 => _498.signal, 'access', _499 => _499.aborted])) return;
|
|
15875
15930
|
updateOne(att.id, {
|
|
15876
15931
|
status: "ready",
|
|
15877
15932
|
progress: 100,
|
|
@@ -15879,7 +15934,7 @@ function useChatAttachments() {
|
|
|
15879
15934
|
viewToken: mintData.viewToken
|
|
15880
15935
|
});
|
|
15881
15936
|
} catch (err) {
|
|
15882
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
15937
|
+
if (_optionalChain([ctrl, 'optionalAccess', _500 => _500.signal, 'access', _501 => _501.aborted])) return;
|
|
15883
15938
|
const message = err instanceof Error ? err.message : String(err);
|
|
15884
15939
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
|
|
15885
15940
|
} finally {
|
|
@@ -16001,7 +16056,7 @@ function useChatAttachmentImageGallery() {
|
|
|
16001
16056
|
return () => root.removeEventListener("click", onClick);
|
|
16002
16057
|
}, [viewUrlPrefix]);
|
|
16003
16058
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16004
|
-
|
|
16059
|
+
_chunkH3WTYAVRcjs.ImageGalleryModal,
|
|
16005
16060
|
{
|
|
16006
16061
|
images: state.images,
|
|
16007
16062
|
isOpen: state.isOpen,
|
|
@@ -16028,11 +16083,11 @@ var ANON_DEFAULTS = {
|
|
|
16028
16083
|
function useResolveChatIdentity(enabled) {
|
|
16029
16084
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
16030
16085
|
const url = runtime.endpoints.identityUrl;
|
|
16031
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
16086
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _502 => _502.email]), () => ( null));
|
|
16032
16087
|
const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
|
|
16033
16088
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
16034
|
-
const data = _optionalChain([resolved, 'optionalAccess',
|
|
16035
|
-
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess',
|
|
16089
|
+
const data = _optionalChain([resolved, 'optionalAccess', _503 => _503.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
|
|
16090
|
+
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _504 => _504.key]) !== requestKey;
|
|
16036
16091
|
_react.useEffect.call(void 0, () => {
|
|
16037
16092
|
if (requestKey === null) return void 0;
|
|
16038
16093
|
let cancelled = false;
|
|
@@ -16154,9 +16209,9 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
|
|
|
16154
16209
|
role: "user",
|
|
16155
16210
|
content: content.question,
|
|
16156
16211
|
timestamp: new Date(at),
|
|
16157
|
-
name: _optionalChain([user, 'optionalAccess',
|
|
16158
|
-
avatar: _optionalChain([user, 'optionalAccess',
|
|
16159
|
-
authorType: _optionalChain([user, 'optionalAccess',
|
|
16212
|
+
name: _optionalChain([user, 'optionalAccess', _505 => _505.name]),
|
|
16213
|
+
avatar: _optionalChain([user, 'optionalAccess', _506 => _506.avatar]),
|
|
16214
|
+
authorType: _optionalChain([user, 'optionalAccess', _507 => _507.authorType])
|
|
16160
16215
|
},
|
|
16161
16216
|
{
|
|
16162
16217
|
id: `${id}-answer`,
|
|
@@ -16167,10 +16222,10 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
|
|
|
16167
16222
|
],
|
|
16168
16223
|
// A millisecond after the question, so the pair keeps its order.
|
|
16169
16224
|
timestamp: new Date(at + 1),
|
|
16170
|
-
name: _optionalChain([assistant, 'optionalAccess',
|
|
16171
|
-
avatar: _optionalChain([assistant, 'optionalAccess',
|
|
16172
|
-
authorType: _optionalChain([assistant, 'optionalAccess',
|
|
16173
|
-
assistantType: _optionalChain([assistant, 'optionalAccess',
|
|
16225
|
+
name: _optionalChain([assistant, 'optionalAccess', _508 => _508.name]),
|
|
16226
|
+
avatar: _optionalChain([assistant, 'optionalAccess', _509 => _509.avatar]),
|
|
16227
|
+
authorType: _optionalChain([assistant, 'optionalAccess', _510 => _510.authorType]),
|
|
16228
|
+
assistantType: _optionalChain([assistant, 'optionalAccess', _511 => _511.assistantType])
|
|
16174
16229
|
}
|
|
16175
16230
|
];
|
|
16176
16231
|
}
|
|
@@ -16186,8 +16241,8 @@ function mergeByTime(thread, local) {
|
|
|
16186
16241
|
const out = [];
|
|
16187
16242
|
let next = 0;
|
|
16188
16243
|
for (const message of thread) {
|
|
16189
|
-
const at = _optionalChain([message, 'access',
|
|
16190
|
-
while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access',
|
|
16244
|
+
const at = _optionalChain([message, 'access', _512 => _512.timestamp, 'optionalAccess', _513 => _513.getTime, 'call', _514 => _514()]);
|
|
16245
|
+
while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _515 => _515[next], 'access', _516 => _516.timestamp, 'optionalAccess', _517 => _517.getTime, 'call', _518 => _518()]), () => ( 0))) < at) {
|
|
16191
16246
|
out.push(local[next]);
|
|
16192
16247
|
next += 1;
|
|
16193
16248
|
}
|
|
@@ -16272,9 +16327,9 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
16272
16327
|
for (const seg of segments) {
|
|
16273
16328
|
const tail = merged[merged.length - 1];
|
|
16274
16329
|
const key = upsertKey(seg);
|
|
16275
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
16330
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _519 => _519.type]) === "text") {
|
|
16276
16331
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
16277
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
16332
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _520 => _520.type]) === "thinking") {
|
|
16278
16333
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
16279
16334
|
} else if (key) {
|
|
16280
16335
|
let idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -16315,7 +16370,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
16315
16370
|
}
|
|
16316
16371
|
if (s.type !== "approval_batch") return s;
|
|
16317
16372
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
16318
|
-
const hasRow = _optionalChain([s, 'access',
|
|
16373
|
+
const hasRow = _optionalChain([s, 'access', _521 => _521.data, 'access', _522 => _522.toolCalls, 'optionalAccess', _523 => _523.some, 'call', _524 => _524((c) => c.toolExecutionRequestId === requestId)]);
|
|
16319
16374
|
if (!isAnchor && !hasRow) return s;
|
|
16320
16375
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
16321
16376
|
const nextExecutions = hasRow ? {
|
|
@@ -16337,8 +16392,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
16337
16392
|
};
|
|
16338
16393
|
}
|
|
16339
16394
|
function nextBatchExecution(prevExec, toolData) {
|
|
16340
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
16341
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
16395
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _525 => _525.status]) === "done") return null;
|
|
16396
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _526 => _526.result]), success: _optionalChain([prevExec, 'optionalAccess', _527 => _527.success]) };
|
|
16342
16397
|
}
|
|
16343
16398
|
function withBatchExecution(seg, execId, state) {
|
|
16344
16399
|
return {
|
|
@@ -16355,11 +16410,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
16355
16410
|
}
|
|
16356
16411
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
16357
16412
|
return mapSegments(prev, (s) => {
|
|
16358
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
16413
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _528 => _528.data, 'access', _529 => _529.toolCalls, 'optionalAccess', _530 => _530.some, 'call', _531 => _531((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
16359
16414
|
return s;
|
|
16360
16415
|
}
|
|
16361
|
-
const existing = _optionalChain([s, 'access',
|
|
16362
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
16416
|
+
const existing = _optionalChain([s, 'access', _532 => _532.data, 'access', _533 => _533.executions, 'optionalAccess', _534 => _534[rowRequestId]]);
|
|
16417
|
+
if (_optionalChain([existing, 'optionalAccess', _535 => _535.status]) === "done") return s;
|
|
16363
16418
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
16364
16419
|
});
|
|
16365
16420
|
}
|
|
@@ -16395,7 +16450,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
16395
16450
|
for (let j = message.segments.length - 1; j >= 0; j--) {
|
|
16396
16451
|
const seg = message.segments[j];
|
|
16397
16452
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
16398
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
16453
|
+
const prevExec = _optionalChain([seg, 'access', _536 => _536.data, 'access', _537 => _537.executions, 'optionalAccess', _538 => _538[execId]]);
|
|
16399
16454
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
16400
16455
|
if (nextExec === null) return prev;
|
|
16401
16456
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -16568,9 +16623,9 @@ var MessageSegmentAccumulator = class {
|
|
|
16568
16623
|
type: "tool_execution",
|
|
16569
16624
|
data: {
|
|
16570
16625
|
...toolData,
|
|
16571
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
16572
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
16573
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
16626
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _539 => _539.data, 'access', _540 => _540.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _541 => _541.toolTitle]))),
|
|
16627
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _542 => _542.data, 'access', _543 => _543.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _544 => _544.toolExplanation]))),
|
|
16628
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _545 => _545.parameters])
|
|
16574
16629
|
}
|
|
16575
16630
|
};
|
|
16576
16631
|
if (existingIndex !== -1) {
|
|
@@ -16594,7 +16649,7 @@ var MessageSegmentAccumulator = class {
|
|
|
16594
16649
|
if (seg.type !== "approval_batch") return seg;
|
|
16595
16650
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
16596
16651
|
if (!hasCall) return seg;
|
|
16597
|
-
const prev = _optionalChain([seg, 'access',
|
|
16652
|
+
const prev = _optionalChain([seg, 'access', _546 => _546.data, 'access', _547 => _547.executions, 'optionalAccess', _548 => _548[execId]]);
|
|
16598
16653
|
const next = nextBatchExecution(prev, toolData);
|
|
16599
16654
|
matched = true;
|
|
16600
16655
|
if (next === null) return seg;
|
|
@@ -16728,8 +16783,8 @@ var MessageSegmentAccumulator = class {
|
|
|
16728
16783
|
requestId,
|
|
16729
16784
|
{
|
|
16730
16785
|
...pendingApproval,
|
|
16731
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
16732
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
16786
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _549 => _549.command]) || "",
|
|
16787
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _550 => _550.approvalType]) || approvalType
|
|
16733
16788
|
},
|
|
16734
16789
|
status
|
|
16735
16790
|
);
|
|
@@ -16754,9 +16809,9 @@ var MessageSegmentAccumulator = class {
|
|
|
16754
16809
|
type: "escalation_offer",
|
|
16755
16810
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
16756
16811
|
// not blank the card the PENDING chunk already painted.
|
|
16757
|
-
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess',
|
|
16812
|
+
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _551 => _551.data, 'access', _552 => _552.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _553 => _553.data, 'access', _554 => _554.origin]))) },
|
|
16758
16813
|
status,
|
|
16759
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
16814
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _555 => _555.resolvedByName]))),
|
|
16760
16815
|
onApprove: this.callbacks.onEscalationApprove,
|
|
16761
16816
|
onReject: this.callbacks.onEscalationReject
|
|
16762
16817
|
};
|
|
@@ -17078,7 +17133,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17078
17133
|
let stateCache = null;
|
|
17079
17134
|
function invalidate() {
|
|
17080
17135
|
stateCache = null;
|
|
17081
|
-
_optionalChain([onChange, 'optionalCall',
|
|
17136
|
+
_optionalChain([onChange, 'optionalCall', _556 => _556()]);
|
|
17082
17137
|
}
|
|
17083
17138
|
function getState() {
|
|
17084
17139
|
if (!stateCache) {
|
|
@@ -17094,7 +17149,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17094
17149
|
return stateCache;
|
|
17095
17150
|
}
|
|
17096
17151
|
function emit(name, ...args) {
|
|
17097
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
17152
|
+
_optionalChain([onEffect, 'optionalCall', _557 => _557({ name, args })]);
|
|
17098
17153
|
}
|
|
17099
17154
|
function setMessagesInternal(next) {
|
|
17100
17155
|
if (next !== messages) {
|
|
@@ -17137,12 +17192,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
17137
17192
|
return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
|
|
17138
17193
|
}
|
|
17139
17194
|
function applySegmentsToState(segments, meta) {
|
|
17140
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
17141
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
17195
|
+
const seq = _optionalChain([meta, 'optionalAccess', _558 => _558.streamSeq]);
|
|
17196
|
+
if (_optionalChain([meta, 'optionalAccess', _559 => _559.append]) && meta.isCompacting) {
|
|
17142
17197
|
setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
|
|
17143
17198
|
return;
|
|
17144
17199
|
}
|
|
17145
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
17200
|
+
if (_optionalChain([meta, 'optionalAccess', _560 => _560.append])) {
|
|
17146
17201
|
setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
|
|
17147
17202
|
return;
|
|
17148
17203
|
}
|
|
@@ -17154,7 +17209,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17154
17209
|
adoptTrailingAssistant = false;
|
|
17155
17210
|
const last = messages[messages.length - 1];
|
|
17156
17211
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
17157
|
-
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
17212
|
+
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _561 => _561.segments, 'optionalAccess', _562 => _562.length]), () => ( 0))) > 0 || last.content !== "";
|
|
17158
17213
|
if (!hasContent) return;
|
|
17159
17214
|
setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
|
|
17160
17215
|
}
|
|
@@ -17370,16 +17425,16 @@ function createChatStreamReducer(options = {}) {
|
|
|
17370
17425
|
const status = approvalStatuses[requestId] || "pending";
|
|
17371
17426
|
if (!displayInline(approvalType)) {
|
|
17372
17427
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
17373
|
-
const summary = required ?
|
|
17428
|
+
const summary = required ? _chunk5L3UKDC6cjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
17374
17429
|
pendingEscalated.set(requestId, {
|
|
17375
17430
|
command: summary,
|
|
17376
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
17431
|
+
explanation: _optionalChain([required, 'optionalAccess', _563 => _563.toolExplanation]),
|
|
17377
17432
|
approvalType,
|
|
17378
17433
|
toolCalls
|
|
17379
17434
|
});
|
|
17380
17435
|
emit("onEscalatedApproval", requestId, {
|
|
17381
17436
|
command: summary,
|
|
17382
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
17437
|
+
explanation: _optionalChain([required, 'optionalAccess', _564 => _564.toolExplanation]),
|
|
17383
17438
|
approvalType
|
|
17384
17439
|
});
|
|
17385
17440
|
break;
|
|
@@ -17403,7 +17458,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17403
17458
|
if (!call.requiresApproval) continue;
|
|
17404
17459
|
segments = accumulator.addApprovalRequest(
|
|
17405
17460
|
requestId,
|
|
17406
|
-
|
|
17461
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
17407
17462
|
call.toolExplanation,
|
|
17408
17463
|
approvalType,
|
|
17409
17464
|
status,
|
|
@@ -17482,7 +17537,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17482
17537
|
if (!call.requiresApproval) continue;
|
|
17483
17538
|
segments = accumulator.addApprovalRequest(
|
|
17484
17539
|
requestId,
|
|
17485
|
-
|
|
17540
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
17486
17541
|
call.toolExplanation,
|
|
17487
17542
|
escalatedData.approvalType,
|
|
17488
17543
|
status
|
|
@@ -17751,7 +17806,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17751
17806
|
const resolveBatch = (status, confirm) => async () => {
|
|
17752
17807
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
17753
17808
|
for (const id of ids) {
|
|
17754
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
17809
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _565 => _565(id)]);
|
|
17755
17810
|
if (ok === false) {
|
|
17756
17811
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
17757
17812
|
}
|
|
@@ -17889,8 +17944,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
17889
17944
|
}
|
|
17890
17945
|
}
|
|
17891
17946
|
}
|
|
17892
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
17893
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
17947
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _566 => _566.resumed]), () => ( messages.length > 0)));
|
|
17948
|
+
if (_optionalChain([extras, 'optionalAccess', _567 => _567.agentBusy])) agentBusyState();
|
|
17894
17949
|
invalidate();
|
|
17895
17950
|
}
|
|
17896
17951
|
return {
|
|
@@ -17975,7 +18030,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17975
18030
|
},
|
|
17976
18031
|
endSseTurn() {
|
|
17977
18032
|
const last = messages[messages.length - 1];
|
|
17978
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
18033
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _568 => _568.segments, 'optionalAccess', _569 => _569.length]), () => ( 0))) === 0 && last.content === "") {
|
|
17979
18034
|
messages = messages.slice(0, -1);
|
|
17980
18035
|
}
|
|
17981
18036
|
sseCurrentText = "";
|
|
@@ -18128,10 +18183,10 @@ function createChatDialogStore(options = {}) {
|
|
|
18128
18183
|
if (onEvict) {
|
|
18129
18184
|
const sep = key.indexOf(KEY_SEP);
|
|
18130
18185
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
18131
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18132
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18133
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18134
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
18186
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _570 => _570.state, 'access', _571 => _571.messages]), () => ( EMPTY_STATE.messages)),
|
|
18187
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _572 => _572.state, 'access', _573 => _573.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
18188
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _574 => _574.getLastAppliedSeq, 'call', _575 => _575()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
18189
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _576 => _576.getPendingEchoes, 'call', _577 => _577()]), () => ( EMPTY_PENDING_ECHOES))
|
|
18135
18190
|
});
|
|
18136
18191
|
}
|
|
18137
18192
|
}
|
|
@@ -18141,12 +18196,12 @@ function createChatDialogStore(options = {}) {
|
|
|
18141
18196
|
const key = keyOf(dialogId, side);
|
|
18142
18197
|
let reducer = reducers.get(key);
|
|
18143
18198
|
if (!reducer) {
|
|
18144
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
18199
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _578 => _578(dialogId, side)]), () => ( {}));
|
|
18145
18200
|
const userOnChange = base.onChange;
|
|
18146
18201
|
reducer = createChatStreamReducer({
|
|
18147
18202
|
...base,
|
|
18148
18203
|
onChange: () => {
|
|
18149
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
18204
|
+
_optionalChain([userOnChange, 'optionalCall', _579 => _579()]);
|
|
18150
18205
|
notify();
|
|
18151
18206
|
}
|
|
18152
18207
|
});
|
|
@@ -18191,7 +18246,7 @@ function createChatDialogStore(options = {}) {
|
|
|
18191
18246
|
};
|
|
18192
18247
|
}
|
|
18193
18248
|
function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
18194
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
18249
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _580 => _580.get, 'call', _581 => _581(keyOf(dialogId, side)), 'optionalAccess', _582 => _582.state]), () => ( EMPTY_STATE));
|
|
18195
18250
|
}
|
|
18196
18251
|
function getServerSnapshot2() {
|
|
18197
18252
|
return EMPTY_STATE;
|
|
@@ -18280,7 +18335,7 @@ function createDeltaBatcher({
|
|
|
18280
18335
|
pending = [];
|
|
18281
18336
|
const key = pendingKey;
|
|
18282
18337
|
for (const delta of batch) applyOne(delta, key);
|
|
18283
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
18338
|
+
_optionalChain([onFlushed, 'optionalCall', _583 => _583(batch.length)]);
|
|
18284
18339
|
}
|
|
18285
18340
|
function schedule() {
|
|
18286
18341
|
if (raf !== null || timer !== null) return;
|
|
@@ -18304,7 +18359,7 @@ function createDeltaBatcher({
|
|
|
18304
18359
|
}
|
|
18305
18360
|
if (!isDeltaEvent(event)) return false;
|
|
18306
18361
|
const tail = pending[pending.length - 1];
|
|
18307
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
18362
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _584 => _584.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
18308
18363
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
18309
18364
|
pending[pending.length - 1] = {
|
|
18310
18365
|
...tail,
|
|
@@ -18336,7 +18391,7 @@ function useChatStreamReducer({
|
|
|
18336
18391
|
side = DEFAULT_DIALOG_SIDE,
|
|
18337
18392
|
createReducerOptions
|
|
18338
18393
|
}) {
|
|
18339
|
-
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall',
|
|
18394
|
+
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _585 => _585()]), () => ( {})));
|
|
18340
18395
|
const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
18341
18396
|
const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
18342
18397
|
const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -18381,7 +18436,7 @@ function buildConfirmToolBody(request) {
|
|
|
18381
18436
|
async function readServerErrorMessage(response) {
|
|
18382
18437
|
try {
|
|
18383
18438
|
const body = await response.json();
|
|
18384
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
18439
|
+
if (typeof _optionalChain([body, 'optionalAccess', _586 => _586.error]) === "string" && body.error.length > 0) return body.error;
|
|
18385
18440
|
} catch (e17) {
|
|
18386
18441
|
}
|
|
18387
18442
|
return null;
|
|
@@ -18544,7 +18599,7 @@ function useManagedDialogList({
|
|
|
18544
18599
|
try {
|
|
18545
18600
|
await deleteDialogCallback(id);
|
|
18546
18601
|
removeLocal(id);
|
|
18547
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
18602
|
+
_optionalChain([onDialogRemovedRef, 'access', _587 => _587.current, 'optionalCall', _588 => _588(id, "deleted")]);
|
|
18548
18603
|
} catch (err) {
|
|
18549
18604
|
console.error(`${logTag} deleteDialog failed:`, err);
|
|
18550
18605
|
throw err;
|
|
@@ -18555,7 +18610,7 @@ function useManagedDialogList({
|
|
|
18555
18610
|
const renameDialog = _react.useCallback.call(void 0,
|
|
18556
18611
|
async (id, title) => {
|
|
18557
18612
|
if (!renameDialogCallback) return;
|
|
18558
|
-
const previous = _optionalChain([dialogsRef, 'access',
|
|
18613
|
+
const previous = _optionalChain([dialogsRef, 'access', _589 => _589.current, 'access', _590 => _590.find, 'call', _591 => _591((d) => d.id === id), 'optionalAccess', _592 => _592.title]);
|
|
18559
18614
|
setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
|
|
18560
18615
|
try {
|
|
18561
18616
|
await renameDialogCallback(id, title);
|
|
@@ -18574,7 +18629,7 @@ function useManagedDialogList({
|
|
|
18574
18629
|
try {
|
|
18575
18630
|
await archiveDialogCallback(id);
|
|
18576
18631
|
removeLocal(id);
|
|
18577
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
18632
|
+
_optionalChain([onDialogRemovedRef, 'access', _593 => _593.current, 'optionalCall', _594 => _594(id, "archived")]);
|
|
18578
18633
|
} catch (err) {
|
|
18579
18634
|
console.error(`${logTag} archiveDialog failed:`, err);
|
|
18580
18635
|
throw err;
|
|
@@ -18763,7 +18818,7 @@ var STORAGE_KEY = "conversation";
|
|
|
18763
18818
|
var namespaceFor = (source) => {
|
|
18764
18819
|
const base = `mingo-chat-${source}`;
|
|
18765
18820
|
const auth = _chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, );
|
|
18766
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
18821
|
+
return _optionalChain([auth, 'optionalAccess', _595 => _595.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
18767
18822
|
};
|
|
18768
18823
|
function createChatConversationStorage(source) {
|
|
18769
18824
|
return _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -18836,7 +18891,7 @@ function useChatHistoryHydration({
|
|
|
18836
18891
|
if (cancelled) return;
|
|
18837
18892
|
if (rows.length === 0) {
|
|
18838
18893
|
const found = isRecord(body) ? body.found : void 0;
|
|
18839
|
-
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall',
|
|
18894
|
+
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _596 => _596(conversationId)]);
|
|
18840
18895
|
return;
|
|
18841
18896
|
}
|
|
18842
18897
|
const hydrated = [];
|
|
@@ -18913,7 +18968,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
18913
18968
|
const { active = true } = runtimeOptions;
|
|
18914
18969
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
18915
18970
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
18916
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
18971
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _597 => _597.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
18917
18972
|
const sendMessageRef = _react.useRef.call(void 0,
|
|
18918
18973
|
() => Promise.resolve(true)
|
|
18919
18974
|
);
|
|
@@ -18949,7 +19004,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
18949
19004
|
if (!restoredConversationRef.current) {
|
|
18950
19005
|
restoredConversationRef.current = true;
|
|
18951
19006
|
pruneStaleChatConversationStorage(source);
|
|
18952
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
19007
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _598 => _598.load, 'call', _599 => _599(), 'optionalAccess', _600 => _600.conversationId]), () => ( null));
|
|
18953
19008
|
}
|
|
18954
19009
|
const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
|
|
18955
19010
|
const commitConversationId = _react.useCallback.call(void 0,
|
|
@@ -19040,7 +19095,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19040
19095
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
19041
19096
|
const switchConversation = _react.useCallback.call(void 0,
|
|
19042
19097
|
(id) => {
|
|
19043
|
-
_optionalChain([abortControllerRef, 'access',
|
|
19098
|
+
_optionalChain([abortControllerRef, 'access', _601 => _601.current, 'optionalAccess', _602 => _602.abort, 'call', _603 => _603()]);
|
|
19044
19099
|
flushDeltas();
|
|
19045
19100
|
mutate((r) => r.reset());
|
|
19046
19101
|
hydrationSendCountRef.current = 0;
|
|
@@ -19077,8 +19132,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19077
19132
|
} = useManagedDialogList({
|
|
19078
19133
|
autoLoad: active,
|
|
19079
19134
|
fetchDialogs: fetchActiveDialogs,
|
|
19080
|
-
renameDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
19081
|
-
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
19135
|
+
renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _604 => _604.renameDialog]),
|
|
19136
|
+
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _605 => _605.archiveDialog]),
|
|
19082
19137
|
pageSize: CHAT_HISTORY_PAGE_SIZE,
|
|
19083
19138
|
search: conversationsApi ? dialogSearch : void 0,
|
|
19084
19139
|
logTag: "[useSseChatAdapter]",
|
|
@@ -19142,7 +19197,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19142
19197
|
const serverMessage = await readServerErrorMessage(response);
|
|
19143
19198
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
19144
19199
|
}
|
|
19145
|
-
const reader = _optionalChain([response, 'access',
|
|
19200
|
+
const reader = _optionalChain([response, 'access', _606 => _606.body, 'optionalAccess', _607 => _607.getReader, 'call', _608 => _608()]);
|
|
19146
19201
|
if (!reader) throw new Error("No response body");
|
|
19147
19202
|
const frameDecoder = createSseFrameDecoder();
|
|
19148
19203
|
let finished = false;
|
|
@@ -19171,7 +19226,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19171
19226
|
}
|
|
19172
19227
|
return true;
|
|
19173
19228
|
} catch (err) {
|
|
19174
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
19229
|
+
if (_optionalChain([err, 'optionalAccess', _609 => _609.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
19175
19230
|
return true;
|
|
19176
19231
|
}
|
|
19177
19232
|
flushDeltas();
|
|
@@ -19207,7 +19262,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19207
19262
|
);
|
|
19208
19263
|
sendMessageRef.current = sendMessage;
|
|
19209
19264
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
19210
|
-
_optionalChain([abortControllerRef, 'access',
|
|
19265
|
+
_optionalChain([abortControllerRef, 'access', _610 => _610.current, 'optionalAccess', _611 => _611.abort, 'call', _612 => _612()]);
|
|
19211
19266
|
flushDeltas();
|
|
19212
19267
|
mutate((r) => r.setPhase("idle"));
|
|
19213
19268
|
}, [mutate, flushDeltas]);
|
|
@@ -19243,7 +19298,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19243
19298
|
let sendIdx = -1;
|
|
19244
19299
|
return state.messages.map((m) => {
|
|
19245
19300
|
const segments = m.segments;
|
|
19246
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
19301
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _613 => _613.filter, 'call', _614 => _614((s) => s.type === "text"), 'access', _615 => _615.map, 'call', _616 => _616((s) => s.text), 'access', _617 => _617.join, 'call', _618 => _618("")]), () => ( ""));
|
|
19247
19302
|
let sources2;
|
|
19248
19303
|
let scrollAnchor;
|
|
19249
19304
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -19252,7 +19307,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19252
19307
|
if (m.role === "assistant") {
|
|
19253
19308
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
19254
19309
|
sources2 = sourcesMap.get(lookupIdx);
|
|
19255
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
19310
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _619 => _619.get, 'call', _620 => _620(lookupIdx), 'optionalAccess', _621 => _621.scrollAnchor]), () => ( void 0));
|
|
19256
19311
|
}
|
|
19257
19312
|
return {
|
|
19258
19313
|
id: m.id,
|
|
@@ -19279,7 +19334,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19279
19334
|
);
|
|
19280
19335
|
return;
|
|
19281
19336
|
}
|
|
19282
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
19337
|
+
const refSlug = typeof _optionalChain([reference, 'access', _622 => _622.metadata, 'optionalAccess', _623 => _623.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
19283
19338
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
19284
19339
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
19285
19340
|
const text2 = `/${cmdId} display "${escaped}"`;
|
|
@@ -19325,18 +19380,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
19325
19380
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
19326
19381
|
isHydratingHistory,
|
|
19327
19382
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
19328
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19329
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19330
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19383
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _624 => _624.provider]), () => ( null)),
|
|
19384
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _625 => _625.modelLabel]), () => ( null)),
|
|
19385
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _626 => _626.contextWindowMaxTokens]), () => ( null)),
|
|
19331
19386
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
19332
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19387
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _627 => _627.inputTokens]), () => ( null)),
|
|
19333
19388
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
19334
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19389
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _628 => _628.outputTokens]), () => ( null)),
|
|
19335
19390
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
19336
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19391
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _629 => _629.cacheHitRatePct]), () => ( null)),
|
|
19337
19392
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
19338
19393
|
* token counts). null until the trailing usage frame lands. */
|
|
19339
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
19394
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _630 => _630.breakdown]), () => ( null)),
|
|
19340
19395
|
// ─── Dialog management ───────────────────────────────────────────────
|
|
19341
19396
|
// With `chatConversationsUrl` the server transcript store IS the dialog
|
|
19342
19397
|
// list (shared `useManagedDialogList`); selecting a row re-hydrates through
|
|
@@ -19410,7 +19465,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
19410
19465
|
}
|
|
19411
19466
|
break;
|
|
19412
19467
|
case "approval_batch": {
|
|
19413
|
-
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access',
|
|
19468
|
+
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _631 => _631.data, 'access', _632 => _632.executions, 'optionalAccess', _633 => _633[c.toolExecutionRequestId], 'optionalAccess', _634 => _634.status]) === "done");
|
|
19414
19469
|
if (segment.status !== "rejected" && !allDone) {
|
|
19415
19470
|
hasIncompleteState = true;
|
|
19416
19471
|
}
|
|
@@ -19474,11 +19529,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
19474
19529
|
function extractIncompleteTailState(messages) {
|
|
19475
19530
|
if (!messages || messages.length === 0) return void 0;
|
|
19476
19531
|
let start = messages.length;
|
|
19477
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
19532
|
+
while (start > 0 && _optionalChain([messages, 'access', _635 => _635[start - 1], 'optionalAccess', _636 => _636.role]) === "assistant") start -= 1;
|
|
19478
19533
|
if (start === messages.length) return void 0;
|
|
19479
19534
|
const segments = [];
|
|
19480
19535
|
for (let i = start; i < messages.length; i += 1) {
|
|
19481
|
-
const content = _optionalChain([messages, 'access',
|
|
19536
|
+
const content = _optionalChain([messages, 'access', _637 => _637[i], 'optionalAccess', _638 => _638.content]);
|
|
19482
19537
|
if (Array.isArray(content)) segments.push(...content);
|
|
19483
19538
|
}
|
|
19484
19539
|
if (segments.length === 0) return void 0;
|
|
@@ -19491,15 +19546,15 @@ function extractIncompleteTailState(messages) {
|
|
|
19491
19546
|
|
|
19492
19547
|
// src/components/chat/utils/process-historical-messages.ts
|
|
19493
19548
|
function getOwnerDisplayName(owner) {
|
|
19494
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
19549
|
+
if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
19495
19550
|
const { firstName, lastName } = owner.user;
|
|
19496
19551
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
19497
19552
|
if (name) return name;
|
|
19498
19553
|
}
|
|
19499
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
19554
|
+
return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
19500
19555
|
}
|
|
19501
19556
|
function getOwnerAvatar(owner) {
|
|
19502
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
19557
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _641 => _641.user, 'optionalAccess', _642 => _642.image, 'optionalAccess', _643 => _643.imageUrl]), () => ( void 0));
|
|
19503
19558
|
}
|
|
19504
19559
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
19505
19560
|
messageDataArray.forEach((data) => {
|
|
@@ -19691,7 +19746,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19691
19746
|
event.offerId,
|
|
19692
19747
|
event.text,
|
|
19693
19748
|
event.origin,
|
|
19694
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
19749
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _644 => _644[event.offerId]]), () => ( "pending"))
|
|
19695
19750
|
);
|
|
19696
19751
|
break;
|
|
19697
19752
|
case "ticket-escalated":
|
|
@@ -19725,7 +19780,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19725
19780
|
);
|
|
19726
19781
|
break;
|
|
19727
19782
|
case "escalation-offer-resolved":
|
|
19728
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
19783
|
+
_optionalChain([offerResolutions, 'optionalAccess', _645 => _645.set, 'call', _646 => _646(event.offerId, {
|
|
19729
19784
|
status: event.status,
|
|
19730
19785
|
resolvedByName: event.resolvedByName
|
|
19731
19786
|
})]);
|
|
@@ -19759,7 +19814,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19759
19814
|
if (!call.requiresApproval) continue;
|
|
19760
19815
|
accumulator.addApprovalRequest(
|
|
19761
19816
|
event.requestId,
|
|
19762
|
-
|
|
19817
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
19763
19818
|
call.toolExplanation,
|
|
19764
19819
|
approvalType,
|
|
19765
19820
|
status,
|
|
@@ -19789,7 +19844,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19789
19844
|
}
|
|
19790
19845
|
}
|
|
19791
19846
|
} else {
|
|
19792
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19847
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _647 => _647.set, 'call', _648 => _648(event.requestId, {
|
|
19793
19848
|
command: event.command || "",
|
|
19794
19849
|
explanation: event.explanation,
|
|
19795
19850
|
approvalType,
|
|
@@ -19804,8 +19859,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19804
19859
|
const existingStatus = approvalStatuses[requestId];
|
|
19805
19860
|
const status = existingStatus || event.status;
|
|
19806
19861
|
const resolvedByName = event.resolvedByName;
|
|
19807
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19808
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
19862
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _649 => _649.get, 'call', _650 => _650(requestId)]);
|
|
19863
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _651 => _651.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
19809
19864
|
if (batchApprovalsEnabled) {
|
|
19810
19865
|
accumulator.addApprovalBatch(
|
|
19811
19866
|
requestId,
|
|
@@ -19820,14 +19875,14 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19820
19875
|
if (!call.requiresApproval) continue;
|
|
19821
19876
|
accumulator.addApprovalRequest(
|
|
19822
19877
|
requestId,
|
|
19823
|
-
|
|
19878
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
19824
19879
|
call.toolExplanation,
|
|
19825
19880
|
escalatedData.approvalType,
|
|
19826
19881
|
status
|
|
19827
19882
|
);
|
|
19828
19883
|
}
|
|
19829
19884
|
}
|
|
19830
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19885
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _652 => _652.delete, 'call', _653 => _653(requestId)]);
|
|
19831
19886
|
break;
|
|
19832
19887
|
}
|
|
19833
19888
|
if (escalatedData) {
|
|
@@ -19836,7 +19891,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19836
19891
|
explanation: escalatedData.explanation,
|
|
19837
19892
|
approvalType: escalatedData.approvalType
|
|
19838
19893
|
});
|
|
19839
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
19894
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _654 => _654.delete, 'call', _655 => _655(requestId)]);
|
|
19840
19895
|
}
|
|
19841
19896
|
const before = accumulator.getSegments();
|
|
19842
19897
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -19928,14 +19983,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19928
19983
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
19929
19984
|
return;
|
|
19930
19985
|
}
|
|
19931
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
19986
|
+
const isUserMessage = _optionalChain([msg, 'access', _656 => _656.owner, 'optionalAccess', _657 => _657.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _658 => _658.owner, 'optionalAccess', _659 => _659.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN;
|
|
19932
19987
|
if (isUserMessage) {
|
|
19933
19988
|
flushAssistantMessage();
|
|
19934
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
19989
|
+
const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
19935
19990
|
messageDataArray.forEach((data) => {
|
|
19936
19991
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
19937
19992
|
const rawContext = data.contextItems;
|
|
19938
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
19993
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _662 => _662.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _663 => _663.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
19939
19994
|
processedMessages.push({
|
|
19940
19995
|
id: msg.id,
|
|
19941
19996
|
role: "user",
|
|
@@ -19982,7 +20037,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19982
20037
|
});
|
|
19983
20038
|
const nextMsg = messages[index + 1];
|
|
19984
20039
|
const isLastMessage = index === messages.length - 1;
|
|
19985
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
20040
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _664 => _664.owner, 'optionalAccess', _665 => _665.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _666 => _666.owner, 'optionalAccess', _667 => _667.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN);
|
|
19986
20041
|
if (isLastMessage || nextIsFromUser) {
|
|
19987
20042
|
flushAssistantMessage();
|
|
19988
20043
|
}
|
|
@@ -20366,7 +20421,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
20366
20421
|
const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
|
|
20367
20422
|
const sendMessage = _react.useCallback.call(void 0,
|
|
20368
20423
|
async (text2, sendOptions) => {
|
|
20369
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
20424
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _668 => _668.hidden]), () => ( false));
|
|
20370
20425
|
mutate((r) => r.pushOptimisticSend(text2, hidden));
|
|
20371
20426
|
await publishUserMessage(text2, { hidden, dialogId });
|
|
20372
20427
|
},
|
|
@@ -20459,11 +20514,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
20459
20514
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
20460
20515
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
20461
20516
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
20462
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
20463
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
20464
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
20465
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
20466
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
20517
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _669 => _669.provider]), () => ( modelProvider)), () => ( null)),
|
|
20518
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _670 => _670.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
20519
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _671 => _671.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _672 => _672.contextWindowMaxTokens]))), () => ( null)),
|
|
20520
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _673 => _673.inputTokensSize]), () => ( null)),
|
|
20521
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _674 => _674.outputTokensSize]), () => ( null)),
|
|
20467
20522
|
currentCacheHitRatePct: null,
|
|
20468
20523
|
currentUsageBreakdown: null,
|
|
20469
20524
|
// Dialog management
|
|
@@ -20585,7 +20640,7 @@ function useUnifiedChat(options) {
|
|
|
20585
20640
|
[]
|
|
20586
20641
|
);
|
|
20587
20642
|
const displayRefForward = _react.useCallback.call(void 0,
|
|
20588
|
-
(ref) => _optionalChain([activeStateRef, 'access',
|
|
20643
|
+
(ref) => _optionalChain([activeStateRef, 'access', _675 => _675.current, 'access', _676 => _676.displayRef, 'optionalCall', _677 => _677(ref)]),
|
|
20589
20644
|
[]
|
|
20590
20645
|
);
|
|
20591
20646
|
const displayRef = activeState.displayRef ? displayRefForward : void 0;
|
|
@@ -20595,7 +20650,7 @@ function useUnifiedChat(options) {
|
|
|
20595
20650
|
const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
|
|
20596
20651
|
const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
|
|
20597
20652
|
const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
|
|
20598
|
-
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access',
|
|
20653
|
+
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _678 => _678.current, 'access', _679 => _679.setDialogScope, 'optionalCall', _680 => _680(scope)]), []);
|
|
20599
20654
|
const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
|
|
20600
20655
|
const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
|
|
20601
20656
|
const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
|
|
@@ -21104,4 +21159,6 @@ function PanelResizeHandle({
|
|
|
21104
21159
|
|
|
21105
21160
|
|
|
21106
21161
|
|
|
21107
|
-
exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.PageTopicLabel = PageTopicLabel; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|
|
21162
|
+
|
|
21163
|
+
|
|
21164
|
+
exports.PanelResizeHandle = PanelResizeHandle; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.extractCardReferences = extractCardReferences; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.citedSourceNumbers = citedSourceNumbers; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.MingoEdgeLight = MingoEdgeLight; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.PageTopicLabel = PageTopicLabel; exports.QUICK_ACTION_SET_SLOTS = QUICK_ACTION_SET_SLOTS; exports.QuickActionSet = QuickActionSet; exports.MingoQuickActionWall = MingoQuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.chatDayLabel = chatDayLabel; exports.ChatListLoadError = ChatListLoadError; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.SearchInput = SearchInput; exports.MingoChatSearchModal = MingoChatSearchModal; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.emptyStateUrlForTopic = emptyStateUrlForTopic; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|