@flamingo-stack/openframe-frontend-core 0.0.830 → 0.0.832
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/build/next-styles.cjs +93 -3
- package/dist/build/next-styles.d.ts +8 -0
- package/dist/build/route-styles-client.mjs +67 -0
- package/dist/build/route-styles-markers.cjs +18 -0
- package/dist/build/route-styles-server.mjs +102 -0
- package/dist/build/route-styles.cjs +415 -0
- package/dist/build/route-styles.d.ts +11 -0
- package/dist/build/style-sources.cjs +14 -1
- package/dist/build/style-sources.d.ts +3 -0
- 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-QTLWU6FY.cjs → chunk-5L3UKDC6.cjs} +11 -11
- package/dist/{chunk-HYCMMECU.cjs → chunk-7COZUANC.cjs} +58 -67
- package/dist/{chunk-ULF4ZOUM.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-WCCE4WF3.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-5LED4QHZ.cjs → chunk-D6ZSRGH2.cjs} +237 -237
- package/dist/{chunk-HYGWRUEM.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-56EP4QM2.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-2BGLALP5.cjs → chunk-FNNDGOR3.cjs} +19 -19
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-RRPID7Z7.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-E6W4YDPS.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-D2LXFMZI.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-TUMSVFVS.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-WZYBUJJG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-CAGQAMJ6.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-WWDNLMB7.cjs → chunk-SWMUW3RR.cjs} +11 -11
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-SAW7V7CU.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-FFFN4IY2.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-5KSPG3TV.cjs → chunk-VBGBKRDO.cjs} +665 -642
- package/dist/{chunk-X425BGXS.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-DUGOOTER.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-PUXYAHH3.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-M75723HD.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-4KQQPXPM.cjs → cloud-tenants-E2AC4WEJ.cjs} +19 -19
- package/dist/components/case-studies/index.cjs +35 -35
- package/dist/components/chat/index.cjs +14 -14
- 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 +20 -20
- package/dist/components/docs/index.cjs +23 -23
- package/dist/components/embeds/index.cjs +20 -20
- package/dist/components/faq/index.cjs +21 -21
- package/dist/components/features/index.cjs +21 -19
- 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 +124 -124
- package/dist/components/index.cjs +85 -81
- package/dist/components/meeting-scheduler/index.cjs +68 -68
- package/dist/components/navigation/index.cjs +22 -22
- 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 +22 -22
- package/dist/components/product-demo/index.cjs +30 -30
- 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 +26 -26
- package/dist/components/ui/index.cjs +19 -19
- package/dist/{devices-H6C4NMIY.cjs → devices-CAYUGD2N.cjs} +20 -20
- package/dist/{embeddable-chat-KUESE7P6.cjs → embeddable-chat-FYHMR66R.cjs} +91 -91
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +26 -24
- package/dist/{knowledge-O6IBO5Y5.cjs → knowledge-OI4OPEVL.cjs} +20 -20
- package/dist/{logs-Y2UCF24Z.cjs → logs-B3XV2NHV.cjs} +26 -26
- 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-J6O3RLJT.cjs → policies-ZB4Z42DV.cjs} +23 -23
- package/dist/{remote-session-RVTFWSU4.cjs → remote-session-CN3G7JNR.cjs} +6 -6
- package/dist/{scripts-N67MM4T2.cjs → scripts-I4DNUOQC.cjs} +26 -26
- package/dist/{software-update-HB7F6KNG.cjs → software-update-AWH4WXOH.cjs} +23 -23
- package/dist/{tickets-board-2K3PBCNW.cjs → tickets-board-PLYD2NSY.cjs} +10 -10
- 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 +12 -1
- 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/platform-domains.ts +5 -0
- package/src/styles/index.css +2 -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
|
|
|
@@ -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;
|
|
@@ -4953,9 +4953,9 @@ var iconTint = {
|
|
|
4953
4953
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4954
4954
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4955
4955
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4956
|
-
const { innerRef, containerStyle } =
|
|
4956
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded });
|
|
4957
4957
|
const hasDetails = Boolean(details);
|
|
4958
|
-
const isV2 = useChatAppearance() ===
|
|
4958
|
+
const isV2 = useChatAppearance() === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
4959
4959
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4960
4960
|
"div",
|
|
4961
4961
|
{
|
|
@@ -4989,7 +4989,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4989
4989
|
children: title
|
|
4990
4990
|
}
|
|
4991
4991
|
),
|
|
4992
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4992
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ExpandChevron, { expanded })
|
|
4993
4993
|
]
|
|
4994
4994
|
}
|
|
4995
4995
|
),
|
|
@@ -5238,9 +5238,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5238
5238
|
)
|
|
5239
5239
|
] }),
|
|
5240
5240
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5241
|
-
|
|
5241
|
+
_chunk5L3UKDC6cjs.TicketStatusTag,
|
|
5242
5242
|
{
|
|
5243
|
-
...
|
|
5243
|
+
..._chunk5L3UKDC6cjs.resolveStatusTagProps.call(void 0, {
|
|
5244
5244
|
status: ticketInfo.status,
|
|
5245
5245
|
statusKind: ticketInfo.statusKind,
|
|
5246
5246
|
statusName: ticketInfo.statusName,
|
|
@@ -5879,11 +5879,11 @@ var remarkMentionChips = () => {
|
|
|
5879
5879
|
// src/components/chat/tool-execution-display.tsx
|
|
5880
5880
|
|
|
5881
5881
|
|
|
5882
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5882
|
+
var COMMAND_BODY_KEYS = new Set(_chunk5L3UKDC6cjs.COMMAND_BODY_ARG_KEYS);
|
|
5883
5883
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5884
5884
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5885
5885
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5886
|
-
const { innerRef, containerStyle } =
|
|
5886
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded });
|
|
5887
5887
|
const isClient = assistantType === "fae";
|
|
5888
5888
|
const isClientView = variant === "client";
|
|
5889
5889
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5914,7 +5914,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5914
5914
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
5915
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");
|
|
5916
5916
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
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,
|
|
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 }) }),
|
|
5918
5918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5919
5919
|
"div",
|
|
5920
5920
|
{
|
|
@@ -5926,7 +5926,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5926
5926
|
}
|
|
5927
5927
|
),
|
|
5928
5928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
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,
|
|
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 }) })
|
|
5930
5930
|
] });
|
|
5931
5931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5932
5932
|
"div",
|
|
@@ -5936,7 +5936,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5936
5936
|
// The command running block keeps its bordered box in both chats
|
|
5937
5937
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5938
5938
|
"flex w-full flex-col overflow-hidden",
|
|
5939
|
-
|
|
5939
|
+
_chunk5L3UKDC6cjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5940
5940
|
className
|
|
5941
5941
|
),
|
|
5942
5942
|
...props,
|
|
@@ -5947,7 +5947,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5947
5947
|
// It reads as a card: what was done, then one status line under it.
|
|
5948
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: [
|
|
5949
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 }),
|
|
5950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5951
5951
|
] })
|
|
5952
5952
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5953
5953
|
hasBody ? (
|
|
@@ -5966,9 +5966,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5966
5966
|
)
|
|
5967
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 }),
|
|
5968
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: [
|
|
5969
|
-
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)),
|
|
5970
5970
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5971
|
-
|
|
5971
|
+
_chunk5L3UKDC6cjs.ResultBlock,
|
|
5972
5972
|
{
|
|
5973
5973
|
result: message.result,
|
|
5974
5974
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -6008,7 +6008,7 @@ function ChatMarkdownLink({
|
|
|
6008
6008
|
...anchorProps
|
|
6009
6009
|
}) {
|
|
6010
6010
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
6011
|
-
if (!runtime ||
|
|
6011
|
+
if (!runtime || _chunkAPNONOHYcjs.navLinkTarget.call(void 0, runtime, href).isNewTab) {
|
|
6012
6012
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, className, ...anchorProps, children });
|
|
6013
6013
|
}
|
|
6014
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" }) });
|
|
@@ -6016,8 +6016,8 @@ function ChatMarkdownLink({
|
|
|
6016
6016
|
|
|
6017
6017
|
// src/components/chat/chat-message-layout.ts
|
|
6018
6018
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
6019
|
-
[
|
|
6020
|
-
[
|
|
6019
|
+
[_chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
6020
|
+
[_chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
6021
6021
|
};
|
|
6022
6022
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
6023
6023
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -6074,8 +6074,8 @@ var remarkStripCitations = () => {
|
|
|
6074
6074
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
6075
6075
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
6076
6076
|
function formatMessageTimestamp(timestamp) {
|
|
6077
|
-
const time =
|
|
6078
|
-
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}`;
|
|
6079
6079
|
}
|
|
6080
6080
|
function normalizeContent(content) {
|
|
6081
6081
|
if (typeof content === "string") {
|
|
@@ -6131,7 +6131,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6131
6131
|
const isError = role === "error";
|
|
6132
6132
|
const inheritedAppearance = useChatAppearance();
|
|
6133
6133
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
6134
|
-
const isV2 = appearance ===
|
|
6134
|
+
const isV2 = appearance === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
6135
6135
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
6136
6136
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
6137
6137
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -6319,7 +6319,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6319
6319
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
6320
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 ? (
|
|
6321
6321
|
// An agent with no picture shows its packaged mark, never initials.
|
|
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,
|
|
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" }) })
|
|
6323
6323
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6324
6324
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
6325
6325
|
{
|
|
@@ -6337,7 +6337,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6337
6337
|
"div",
|
|
6338
6338
|
{
|
|
6339
6339
|
ref,
|
|
6340
|
-
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),
|
|
6341
6341
|
...props,
|
|
6342
6342
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
6343
6343
|
}
|
|
@@ -6349,7 +6349,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6349
6349
|
ref,
|
|
6350
6350
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6351
6351
|
"relative",
|
|
6352
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
6352
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2 : _chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC],
|
|
6353
6353
|
className
|
|
6354
6354
|
),
|
|
6355
6355
|
...props,
|
|
@@ -6406,7 +6406,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6406
6406
|
);
|
|
6407
6407
|
} else if (segment.type === "approval_batch") {
|
|
6408
6408
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6409
|
-
|
|
6409
|
+
_chunk5L3UKDC6cjs.ApprovalBatchMessage,
|
|
6410
6410
|
{
|
|
6411
6411
|
data: segment.data,
|
|
6412
6412
|
status: segment.status,
|
|
@@ -6680,7 +6680,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6680
6680
|
approvalVariant,
|
|
6681
6681
|
selfAuthorType,
|
|
6682
6682
|
nameEveryTurn,
|
|
6683
|
-
appearance =
|
|
6683
|
+
appearance = _chunk4JHO2NVIcjs.CHAT_APPEARANCE.CLASSIC,
|
|
6684
6684
|
assistantIcon,
|
|
6685
6685
|
pendingApprovals,
|
|
6686
6686
|
hasNextPage,
|
|
@@ -7546,7 +7546,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
7546
7546
|
|
|
7547
7547
|
[Attached: ${safeName}](${url})`;
|
|
7548
7548
|
}
|
|
7549
|
-
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);
|
|
7550
7550
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
7551
7551
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
7552
7552
|
"gm"
|
|
@@ -7810,7 +7810,7 @@ function MarqueeWallFades({
|
|
|
7810
7810
|
}) });
|
|
7811
7811
|
}
|
|
7812
7812
|
function CloneCopy({ className, style, children }) {
|
|
7813
|
-
const ref =
|
|
7813
|
+
const ref = _chunkZABZIM2Ycjs.useSuppressCloneFocus.call(void 0, true);
|
|
7814
7814
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
7815
7815
|
}
|
|
7816
7816
|
function MarqueeWall({
|
|
@@ -7864,7 +7864,7 @@ function MarqueeWall({
|
|
|
7864
7864
|
ro.observe(copy);
|
|
7865
7865
|
return () => ro.disconnect();
|
|
7866
7866
|
}, [measure, marqueeMounted]);
|
|
7867
|
-
const { ref: observe, inView: nearViewport } =
|
|
7867
|
+
const { ref: observe, inView: nearViewport } = _chunkZABZIM2Ycjs.useInView.call(void 0, {
|
|
7868
7868
|
rootMargin: _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
7869
7869
|
initial: true
|
|
7870
7870
|
});
|
|
@@ -7872,7 +7872,7 @@ function MarqueeWall({
|
|
|
7872
7872
|
observe(containerRef.current);
|
|
7873
7873
|
return () => observe(null);
|
|
7874
7874
|
}, [observe]);
|
|
7875
|
-
const autoplay =
|
|
7875
|
+
const autoplay = _chunkZABZIM2Ycjs.useAutoplay.call(void 0, nearViewport);
|
|
7876
7876
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
7877
7877
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
7878
7878
|
pointerInsideRef.current = false;
|
|
@@ -7885,7 +7885,7 @@ function MarqueeWall({
|
|
|
7885
7885
|
if (e.pointerType === "touch") return;
|
|
7886
7886
|
pointerInsideRef.current = false;
|
|
7887
7887
|
}, []);
|
|
7888
|
-
|
|
7888
|
+
_chunkZABZIM2Ycjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
7889
7889
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
7890
7890
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
7891
7891
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -7938,7 +7938,7 @@ function MarqueeWall({
|
|
|
7938
7938
|
if (!sync) return void 0;
|
|
7939
7939
|
return sync.register(member);
|
|
7940
7940
|
}, [sync, member]);
|
|
7941
|
-
const { posRef, wrap } =
|
|
7941
|
+
const { posRef, wrap } = _chunkZABZIM2Ycjs.useMarqueeEngine.call(void 0, {
|
|
7942
7942
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
7943
7943
|
speed,
|
|
7944
7944
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -8647,7 +8647,7 @@ function MingoChatHistoryRow({
|
|
|
8647
8647
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
8648
8648
|
),
|
|
8649
8649
|
children: [
|
|
8650
|
-
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,
|
|
8651
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,
|
|
8652
8652
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8653
8653
|
"span",
|
|
@@ -8774,7 +8774,7 @@ function MingoChatHistory({
|
|
|
8774
8774
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
8775
8775
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
8776
8776
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _171 => _171.trim, 'call', _172 => _172()]);
|
|
8777
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8777
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk4JHO2NVIcjs.useScrollFade.call(void 0, );
|
|
8778
8778
|
const onScroll = loadMore === "scroll";
|
|
8779
8779
|
const sentinelRef = useLoadMoreSentinel({
|
|
8780
8780
|
hasMore: hasMore && onScroll,
|
|
@@ -8837,8 +8837,8 @@ function MingoChatHistory({
|
|
|
8837
8837
|
]
|
|
8838
8838
|
}
|
|
8839
8839
|
),
|
|
8840
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8841
|
-
/* @__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" })
|
|
8842
8842
|
] }) });
|
|
8843
8843
|
}
|
|
8844
8844
|
|
|
@@ -8892,7 +8892,7 @@ function MingoWelcome({
|
|
|
8892
8892
|
} catch (e8) {
|
|
8893
8893
|
}
|
|
8894
8894
|
}, [promoStorage, promoStorageKey]);
|
|
8895
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8895
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk4JHO2NVIcjs.useScrollFade.call(void 0, );
|
|
8896
8896
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
8897
8897
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8898
8898
|
"div",
|
|
@@ -8924,7 +8924,7 @@ function MingoWelcome({
|
|
|
8924
8924
|
onScroll: updateScrollFade,
|
|
8925
8925
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8926
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: [
|
|
8927
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8927
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8928
8928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8929
8929
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8930
8930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8932,8 +8932,8 @@ function MingoWelcome({
|
|
|
8932
8932
|
] })
|
|
8933
8933
|
}
|
|
8934
8934
|
),
|
|
8935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8936
|
-
/* @__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" })
|
|
8937
8937
|
] }) })))),
|
|
8938
8938
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
8939
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: [
|
|
@@ -8996,7 +8996,7 @@ function GuideWelcome({
|
|
|
8996
8996
|
children,
|
|
8997
8997
|
className
|
|
8998
8998
|
}) {
|
|
8999
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8999
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk4JHO2NVIcjs.useScrollFade.call(void 0, );
|
|
9000
9000
|
const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
9001
9001
|
const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
|
|
9002
9002
|
const chipsAreLoading = inLoadingScope || quickActionsLoading && quickActions.length === 0;
|
|
@@ -9032,8 +9032,8 @@ function GuideWelcome({
|
|
|
9032
9032
|
icon && (icon.name || icon.url) ? (
|
|
9033
9033
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
9034
9034
|
// match the default Mingo mark (48px).
|
|
9035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9036
|
-
) : /* @__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" }),
|
|
9037
9037
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
9038
9038
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
9039
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
|
|
@@ -9043,8 +9043,8 @@ function GuideWelcome({
|
|
|
9043
9043
|
]
|
|
9044
9044
|
}
|
|
9045
9045
|
),
|
|
9046
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9047
|
-
/* @__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" })
|
|
9048
9048
|
] }),
|
|
9049
9049
|
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
|
|
9050
9050
|
] });
|
|
@@ -9114,15 +9114,15 @@ function MingoArchiveList({
|
|
|
9114
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)]",
|
|
9115
9115
|
children: [
|
|
9116
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" }),
|
|
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,
|
|
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: [
|
|
9118
9118
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9119
|
-
|
|
9119
|
+
_chunk4JHO2NVIcjs.ChatListItem,
|
|
9120
9120
|
{
|
|
9121
9121
|
"data-loading-item": true,
|
|
9122
9122
|
title: dialog.title || "Untitled Chat",
|
|
9123
9123
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _178 => _178(dialog.id)]),
|
|
9124
9124
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
9125
|
-
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) }),
|
|
9126
9126
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9127
9127
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
9128
9128
|
{
|
|
@@ -9306,7 +9306,7 @@ function ChatHeaderSearchField({
|
|
|
9306
9306
|
className
|
|
9307
9307
|
}) {
|
|
9308
9308
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9309
|
-
const debounced =
|
|
9309
|
+
const debounced = _chunkZABZIM2Ycjs.useDebounce.call(void 0, value, 300);
|
|
9310
9310
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9311
9311
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
9312
9312
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -9463,7 +9463,7 @@ function SearchInput({
|
|
|
9463
9463
|
}) {
|
|
9464
9464
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
9465
9465
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
9466
|
-
const debouncedValue =
|
|
9466
|
+
const debouncedValue = _chunkZABZIM2Ycjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
9467
9467
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
9468
9468
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
9469
9469
|
const keyboardPadding = _chunk7Z536SPRcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -9766,7 +9766,7 @@ function SearchInput({
|
|
|
9766
9766
|
)
|
|
9767
9767
|
] }),
|
|
9768
9768
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9769
|
-
|
|
9769
|
+
_chunk4JHO2NVIcjs.HiddenTagsPopup,
|
|
9770
9770
|
{
|
|
9771
9771
|
ref: hiddenTagsPopupRef,
|
|
9772
9772
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -9936,7 +9936,7 @@ function MingoChatHistorySection({
|
|
|
9936
9936
|
className
|
|
9937
9937
|
}) {
|
|
9938
9938
|
const captionId = _react.useId.call(void 0, );
|
|
9939
|
-
const visitor =
|
|
9939
|
+
const visitor = _chunkZABZIM2Ycjs.useVisitorOs.call(void 0, );
|
|
9940
9940
|
const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
|
|
9941
9941
|
prop: searchOpenProp,
|
|
9942
9942
|
defaultProp: false,
|
|
@@ -9944,7 +9944,7 @@ function MingoChatHistorySection({
|
|
|
9944
9944
|
});
|
|
9945
9945
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _216 => _216.trim, 'call', _217 => _217()]);
|
|
9946
9946
|
const showSearch = searchOpen && !!onSearchChange;
|
|
9947
|
-
const shortcut = visitor.known ?
|
|
9947
|
+
const shortcut = visitor.known ? _chunkZABZIM2Ycjs.shortcutLabel.call(void 0, visitor.os, "K") : null;
|
|
9948
9948
|
const listProps = {
|
|
9949
9949
|
dialogs,
|
|
9950
9950
|
activeDialogId,
|
|
@@ -10009,7 +10009,7 @@ function MingoChatHistorySection({
|
|
|
10009
10009
|
variant: "transparent",
|
|
10010
10010
|
size: "icon",
|
|
10011
10011
|
"aria-label": "Search chats",
|
|
10012
|
-
"aria-keyshortcuts": shortcut ?
|
|
10012
|
+
"aria-keyshortcuts": shortcut ? _chunkZABZIM2Ycjs.usesCommandKey.call(void 0, visitor.os) ? "Meta+K" : "Control+K" : void 0,
|
|
10013
10013
|
onClick: () => setSearchOpen(true),
|
|
10014
10014
|
className: ICON_BUTTON_CLASS,
|
|
10015
10015
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 20 })
|
|
@@ -10110,7 +10110,7 @@ function MingoChatSearchModal({
|
|
|
10110
10110
|
}
|
|
10111
10111
|
function SearchModalContent({ initialValue, onSearchChange, onClose, children }) {
|
|
10112
10112
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10113
|
-
const debounced =
|
|
10113
|
+
const debounced = _chunkZABZIM2Ycjs.useDebounce.call(void 0, value, 300);
|
|
10114
10114
|
const lastSent = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10115
10115
|
const fieldRef = _react.useRef.call(void 0, null);
|
|
10116
10116
|
const send = (term) => {
|
|
@@ -10131,8 +10131,8 @@ function SearchModalContent({ initialValue, onSearchChange, onClose, children })
|
|
|
10131
10131
|
send("");
|
|
10132
10132
|
onClose();
|
|
10133
10133
|
};
|
|
10134
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10135
|
-
/* @__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" }) }),
|
|
10136
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,
|
|
10137
10137
|
SearchInput,
|
|
10138
10138
|
{
|
|
@@ -10188,7 +10188,7 @@ function SectionRow({
|
|
|
10188
10188
|
// A row that lands in a day already on screen (the next page) fades in too.
|
|
10189
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: [
|
|
10190
10190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10191
|
-
|
|
10191
|
+
_chunk4JHO2NVIcjs.ChatListItem,
|
|
10192
10192
|
{
|
|
10193
10193
|
active,
|
|
10194
10194
|
title,
|
|
@@ -10355,7 +10355,7 @@ function MingoChatRailPanel({
|
|
|
10355
10355
|
if (loadError) {
|
|
10356
10356
|
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatListLoadError, { onRetry, className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-l)]" });
|
|
10357
10357
|
} else if (loading) {
|
|
10358
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10358
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4JHO2NVIcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
10359
10359
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
10360
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,
|
|
10361
10361
|
ChatListEmptyState,
|
|
@@ -10367,7 +10367,7 @@ function MingoChatRailPanel({
|
|
|
10367
10367
|
);
|
|
10368
10368
|
} else {
|
|
10369
10369
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10370
|
-
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" }),
|
|
10371
10371
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10372
10372
|
MingoChatRailRow,
|
|
10373
10373
|
{
|
|
@@ -10389,13 +10389,13 @@ function MingoChatRailPanel({
|
|
|
10389
10389
|
] });
|
|
10390
10390
|
}
|
|
10391
10391
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10392
|
-
|
|
10392
|
+
_chunk4JHO2NVIcjs.ChatNavSidebar,
|
|
10393
10393
|
{
|
|
10394
10394
|
className,
|
|
10395
10395
|
"data-accent": "mingo",
|
|
10396
10396
|
"aria-label": "Mingo chats",
|
|
10397
10397
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
10398
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
10399
10399
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10400
10400
|
_chunkFCZAUK4Dcjs.Button,
|
|
10401
10401
|
{
|
|
@@ -10448,7 +10448,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10448
10448
|
const title = dialog.title || "Untitled Chat";
|
|
10449
10449
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
10450
10450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10451
|
-
|
|
10451
|
+
_chunk4JHO2NVIcjs.ChatListItem,
|
|
10452
10452
|
{
|
|
10453
10453
|
active,
|
|
10454
10454
|
title,
|
|
@@ -10666,8 +10666,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10666
10666
|
const save = () => {
|
|
10667
10667
|
if (canSave) onSave(name.trim());
|
|
10668
10668
|
};
|
|
10669
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10670
|
-
/* @__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" }) }),
|
|
10671
10671
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
10672
10672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3MBQRCQcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
10673
10673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10684,27 +10684,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10684
10684
|
}
|
|
10685
10685
|
)
|
|
10686
10686
|
] }),
|
|
10687
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10687
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.ModalFooter, { children: [
|
|
10688
10688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10689
10689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
10690
10690
|
] })
|
|
10691
10691
|
] });
|
|
10692
10692
|
}
|
|
10693
10693
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10694
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10695
|
-
/* @__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" }) }),
|
|
10696
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." }),
|
|
10697
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10697
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.ModalFooter, { children: [
|
|
10698
10698
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10699
10699
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
10700
10700
|
] })
|
|
10701
10701
|
] });
|
|
10702
10702
|
}
|
|
10703
10703
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10704
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10705
|
-
/* @__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" }) }),
|
|
10706
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." }),
|
|
10707
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10707
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4JHO2NVIcjs.ModalFooter, { children: [
|
|
10708
10708
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10709
10709
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
10710
10710
|
] })
|
|
@@ -11309,7 +11309,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11309
11309
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
11310
11310
|
const icon = getProviderIcon(provider);
|
|
11311
11311
|
const name = displayName || modelName;
|
|
11312
|
-
const isV2 = useChatAppearance() ===
|
|
11312
|
+
const isV2 = useChatAppearance() === _chunk4JHO2NVIcjs.CHAT_APPEARANCE.V2;
|
|
11313
11313
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
11314
11314
|
if (isLoading) {
|
|
11315
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: [
|
|
@@ -11494,7 +11494,7 @@ function ChatComposer({
|
|
|
11494
11494
|
const showLegacyAttach = !contextEnabled && showAttachmentButton && !!onAddFiles;
|
|
11495
11495
|
const showFooterRow = showLegacyAttach || !!model || !!footerActions;
|
|
11496
11496
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11497
|
-
|
|
11497
|
+
_chunk4JHO2NVIcjs.ChatInput,
|
|
11498
11498
|
{
|
|
11499
11499
|
ref: inputRef,
|
|
11500
11500
|
onSend,
|
|
@@ -11684,7 +11684,7 @@ function ChatArchivePage(props) {
|
|
|
11684
11684
|
|
|
11685
11685
|
|
|
11686
11686
|
function useNavLinkTarget(href, targetPlatform, openIn) {
|
|
11687
|
-
return
|
|
11687
|
+
return _chunkAPNONOHYcjs.navLinkTarget.call(void 0, _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ), href, targetPlatform, { openIn });
|
|
11688
11688
|
}
|
|
11689
11689
|
function useNavLinkViaRuntime({
|
|
11690
11690
|
href,
|
|
@@ -11700,22 +11700,22 @@ function useNavLinkViaRuntime({
|
|
|
11700
11700
|
const onClick = (e) => {
|
|
11701
11701
|
_optionalChain([onClickProp, 'optionalCall', _249 => _249(e)]);
|
|
11702
11702
|
if (e.defaultPrevented) return;
|
|
11703
|
-
const handled =
|
|
11703
|
+
const handled = _chunkZABZIM2Ycjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
|
|
11704
11704
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _250 => _250.closeChat])) panel.closeChat();
|
|
11705
11705
|
};
|
|
11706
|
-
return { href: resolvedHref, ...
|
|
11706
|
+
return { href: resolvedHref, ..._chunkAPNONOHYcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
|
|
11707
11707
|
}
|
|
11708
11708
|
function useNavigateViaRuntime() {
|
|
11709
11709
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
11710
11710
|
return _react.useCallback.call(void 0,
|
|
11711
11711
|
({ href, path, targetPlatform, openIn, modifierEvent }) => {
|
|
11712
11712
|
if (!href) return;
|
|
11713
|
-
if (modifierEvent &&
|
|
11713
|
+
if (modifierEvent && _chunkAPNONOHYcjs.isModifierClick.call(void 0, modifierEvent)) {
|
|
11714
11714
|
const button = _nullishCoalesce(modifierEvent.button, () => ( 0));
|
|
11715
|
-
if (button === 0 || button === 1)
|
|
11715
|
+
if (button === 0 || button === 1) _chunkZABZIM2Ycjs.executeNewTabNavigation.call(void 0, { runtime, href, targetPlatform });
|
|
11716
11716
|
return;
|
|
11717
11717
|
}
|
|
11718
|
-
|
|
11718
|
+
_chunkZABZIM2Ycjs.executeNavigationImperative.call(void 0, { runtime, href, path, targetPlatform, openIn });
|
|
11719
11719
|
},
|
|
11720
11720
|
[runtime]
|
|
11721
11721
|
);
|
|
@@ -11905,7 +11905,7 @@ function UserDisplay({
|
|
|
11905
11905
|
compact = false,
|
|
11906
11906
|
className
|
|
11907
11907
|
}) {
|
|
11908
|
-
const avatarSrc =
|
|
11908
|
+
const avatarSrc = _chunkH3WTYAVRcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
11909
11909
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
11910
11910
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11911
11911
|
UserDisplaySkeleton,
|
|
@@ -12045,7 +12045,7 @@ function ManagedCell({
|
|
|
12045
12045
|
}) {
|
|
12046
12046
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
12047
12047
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
12048
|
-
const cloneRef =
|
|
12048
|
+
const cloneRef = _chunkZABZIM2Ycjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
12049
12049
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12050
12050
|
"div",
|
|
12051
12051
|
{
|
|
@@ -12163,12 +12163,12 @@ function CardsStrip(props) {
|
|
|
12163
12163
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
12164
12164
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12165
12165
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12166
|
-
const { ref: observe, inView: nearViewport } =
|
|
12166
|
+
const { ref: observe, inView: nearViewport } = _chunkZABZIM2Ycjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
12167
12167
|
_react.useEffect.call(void 0, () => {
|
|
12168
12168
|
observe(wrapperRef.current);
|
|
12169
12169
|
return () => observe(null);
|
|
12170
12170
|
}, [observe]);
|
|
12171
|
-
const autoplay =
|
|
12171
|
+
const autoplay = _chunkZABZIM2Ycjs.useAutoplay.call(void 0, nearViewport);
|
|
12172
12172
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
12173
12173
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
12174
12174
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -12215,7 +12215,7 @@ function CardsStrip(props) {
|
|
|
12215
12215
|
const current = activeKeyRef.current;
|
|
12216
12216
|
if (current !== null) deactivate(current);
|
|
12217
12217
|
}, [deactivate]);
|
|
12218
|
-
|
|
12218
|
+
_chunkZABZIM2Ycjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
12219
12219
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
12220
12220
|
const scroller = scrollerRef.current;
|
|
12221
12221
|
if (!scroller) return;
|
|
@@ -12236,7 +12236,7 @@ function CardsStrip(props) {
|
|
|
12236
12236
|
},
|
|
12237
12237
|
[reverse, seamBuffer]
|
|
12238
12238
|
);
|
|
12239
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
12239
|
+
const { posRef: marqueePosRef, glideBy } = _chunkZABZIM2Ycjs.useMarqueeEngine.call(void 0, {
|
|
12240
12240
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
12241
12241
|
// engine would keep scheduling frames forever), same treatment as
|
|
12242
12242
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -12373,7 +12373,7 @@ function CardsStrip(props) {
|
|
|
12373
12373
|
}
|
|
12374
12374
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
12375
12375
|
};
|
|
12376
|
-
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) });
|
|
12377
12377
|
if (items.length === 0) {
|
|
12378
12378
|
if (!inScope || !skeleton) return null;
|
|
12379
12379
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -12563,7 +12563,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
12563
12563
|
);
|
|
12564
12564
|
function VideoBitesStrip({
|
|
12565
12565
|
bites,
|
|
12566
|
-
title =
|
|
12566
|
+
title = _chunkTD4CC4KVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12567
12567
|
showTitle = true,
|
|
12568
12568
|
filterPublished = true,
|
|
12569
12569
|
profile = null,
|
|
@@ -12576,7 +12576,7 @@ function VideoBitesStrip({
|
|
|
12576
12576
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
12577
12577
|
showChevrons = true,
|
|
12578
12578
|
onBiteNavigate,
|
|
12579
|
-
sortComparator =
|
|
12579
|
+
sortComparator = _chunkTD4CC4KVcjs.sortBitesByCreatedAtDesc,
|
|
12580
12580
|
skeletonCount,
|
|
12581
12581
|
className
|
|
12582
12582
|
}) {
|
|
@@ -12674,7 +12674,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
12674
12674
|
function VideoBitesStripSkeleton({
|
|
12675
12675
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
12676
12676
|
aspect = "9:16",
|
|
12677
|
-
title =
|
|
12677
|
+
title = _chunkTD4CC4KVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12678
12678
|
showTitle = true,
|
|
12679
12679
|
headerSlot,
|
|
12680
12680
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -12806,7 +12806,7 @@ function VideoBiteCard({
|
|
|
12806
12806
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
12807
12807
|
children: [
|
|
12808
12808
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12809
|
-
|
|
12809
|
+
_chunkTD4CC4KVcjs.VideoHoverPreviewSurface,
|
|
12810
12810
|
{
|
|
12811
12811
|
url: bite.url,
|
|
12812
12812
|
posterUrl: bite.thumbnail_url,
|
|
@@ -12878,7 +12878,7 @@ function EntityVideoSection({
|
|
|
12878
12878
|
title = "Video",
|
|
12879
12879
|
videoSummary,
|
|
12880
12880
|
videoBites,
|
|
12881
|
-
bitesTitle =
|
|
12881
|
+
bitesTitle = _chunkTD4CC4KVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12882
12882
|
filterPublishedBites = true,
|
|
12883
12883
|
bitesProfile = null,
|
|
12884
12884
|
bitesHref,
|
|
@@ -12913,7 +12913,7 @@ function EntityVideoSection({
|
|
|
12913
12913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12914
12914
|
] }),
|
|
12915
12915
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12916
|
-
|
|
12916
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12917
12917
|
{
|
|
12918
12918
|
kind: fullVideoKind,
|
|
12919
12919
|
url: fullVideoUrl,
|
|
@@ -12925,7 +12925,7 @@ function EntityVideoSection({
|
|
|
12925
12925
|
}
|
|
12926
12926
|
) }),
|
|
12927
12927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12928
|
-
|
|
12928
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12929
12929
|
{
|
|
12930
12930
|
url: highlightVideoUrl,
|
|
12931
12931
|
poster: highlightVideoThumbnail,
|
|
@@ -12934,7 +12934,7 @@ function EntityVideoSection({
|
|
|
12934
12934
|
}
|
|
12935
12935
|
) })
|
|
12936
12936
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12937
|
-
|
|
12937
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12938
12938
|
{
|
|
12939
12939
|
kind: fullVideoKind,
|
|
12940
12940
|
url: fullVideoUrl,
|
|
@@ -12945,7 +12945,7 @@ function EntityVideoSection({
|
|
|
12945
12945
|
priority
|
|
12946
12946
|
}
|
|
12947
12947
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12948
|
-
|
|
12948
|
+
_chunkTD4CC4KVcjs.Video,
|
|
12949
12949
|
{
|
|
12950
12950
|
url: highlightVideoUrl,
|
|
12951
12951
|
poster: highlightVideoThumbnail,
|
|
@@ -12955,7 +12955,7 @@ function EntityVideoSection({
|
|
|
12955
12955
|
}
|
|
12956
12956
|
) : null),
|
|
12957
12957
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
12958
|
-
/* @__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" }),
|
|
12959
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 }) })
|
|
12960
12960
|
] }),
|
|
12961
12961
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12974,13 +12974,13 @@ function EntityVideoSection({
|
|
|
12974
12974
|
] });
|
|
12975
12975
|
}
|
|
12976
12976
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
12977
|
-
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 });
|
|
12978
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: [
|
|
12979
12979
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
12980
12980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
12981
12981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12982
12982
|
] }),
|
|
12983
|
-
/* @__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" }) })
|
|
12984
12984
|
] });
|
|
12985
12985
|
}
|
|
12986
12986
|
|
|
@@ -13072,7 +13072,7 @@ function ChatCardDisclosureButton({
|
|
|
13072
13072
|
{
|
|
13073
13073
|
label,
|
|
13074
13074
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
|
|
13075
|
-
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13075
|
+
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5L3UKDC6cjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
13076
13076
|
onClick: (e) => {
|
|
13077
13077
|
e.preventDefault();
|
|
13078
13078
|
e.stopPropagation();
|
|
@@ -13086,7 +13086,7 @@ function ChatCardDisclosureButton({
|
|
|
13086
13086
|
);
|
|
13087
13087
|
}
|
|
13088
13088
|
function DisclosurePanel({ open, children }) {
|
|
13089
|
-
const { innerRef, containerStyle } =
|
|
13089
|
+
const { innerRef, containerStyle } = _chunk5L3UKDC6cjs.useCollapsible.call(void 0, { expanded: open });
|
|
13090
13090
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children }) });
|
|
13091
13091
|
}
|
|
13092
13092
|
function useChatCardDisclosure(kind, chatRef, { reserve = false } = {}) {
|
|
@@ -13138,7 +13138,7 @@ function designDocPeople(doc) {
|
|
|
13138
13138
|
return people;
|
|
13139
13139
|
}
|
|
13140
13140
|
function designDocMetaLine(doc) {
|
|
13141
|
-
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
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 ");
|
|
13142
13142
|
}
|
|
13143
13143
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
13144
13144
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -13148,15 +13148,15 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk3TOWCFIKcjs.TE
|
|
|
13148
13148
|
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[3]}`;
|
|
13149
13149
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
13150
13150
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
13151
|
-
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: [
|
|
13152
13152
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
13153
13153
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
13154
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" }) }),
|
|
13155
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" }) })
|
|
13156
13156
|
] }),
|
|
13157
|
-
/* @__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" })
|
|
13158
13158
|
] }),
|
|
13159
|
-
/* @__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" }) }),
|
|
13160
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" }) }),
|
|
13161
13161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13162
13162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -13168,7 +13168,7 @@ function DesignDocCardSkeleton({ className } = {}) {
|
|
|
13168
13168
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
13169
13169
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
13170
13170
|
const people = designDocPeople(doc);
|
|
13171
|
-
const link =
|
|
13171
|
+
const link = _chunkTD4CC4KVcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
13172
13172
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
13173
13173
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13174
13174
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -13177,7 +13177,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13177
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) }) })
|
|
13178
13178
|
] }),
|
|
13179
13179
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13180
|
-
|
|
13180
|
+
_chunkTD4CC4KVcjs.StatusBadge,
|
|
13181
13181
|
{
|
|
13182
13182
|
text: readiness.label,
|
|
13183
13183
|
colorScheme: readiness.scheme,
|
|
@@ -13187,7 +13187,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13187
13187
|
}
|
|
13188
13188
|
)
|
|
13189
13189
|
] }),
|
|
13190
|
-
/* @__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 }) }),
|
|
13191
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 || "" }) }),
|
|
13192
13192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13193
13193
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -13195,7 +13195,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13195
13195
|
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5BM7X4GAcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
13196
13196
|
] })
|
|
13197
13197
|
] });
|
|
13198
|
-
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);
|
|
13199
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 });
|
|
13200
13200
|
}
|
|
13201
13201
|
|
|
@@ -13337,26 +13337,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
13337
13337
|
metaParts.push(
|
|
13338
13338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
13339
13339
|
);
|
|
13340
|
-
const href =
|
|
13340
|
+
const href = _chunkTD4CC4KVcjs.safeHref.call(void 0, item.url);
|
|
13341
13341
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13342
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13343
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
13344
|
-
/* @__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: [
|
|
13345
13345
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
13346
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13346
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkTD4CC4KVcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
13347
13347
|
] }),
|
|
13348
|
-
/* @__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: [
|
|
13349
13349
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
13350
13350
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
13351
13351
|
] }, i)) }) }),
|
|
13352
|
-
/* @__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 }) })
|
|
13353
13353
|
] }),
|
|
13354
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
|
|
13355
13355
|
] });
|
|
13356
13356
|
if (anchorProps) {
|
|
13357
|
-
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 });
|
|
13358
13358
|
}
|
|
13359
|
-
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 });
|
|
13360
13360
|
}
|
|
13361
13361
|
function GitHubActivityCardSkeleton({
|
|
13362
13362
|
variant = "compact",
|
|
@@ -13364,7 +13364,7 @@ function GitHubActivityCardSkeleton({
|
|
|
13364
13364
|
}) {
|
|
13365
13365
|
if (variant === "row") {
|
|
13366
13366
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13367
|
-
|
|
13367
|
+
_chunkTD4CC4KVcjs.ActivityRowSkeleton,
|
|
13368
13368
|
{
|
|
13369
13369
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
13370
13370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
@@ -13375,7 +13375,7 @@ function GitHubActivityCardSkeleton({
|
|
|
13375
13375
|
}
|
|
13376
13376
|
);
|
|
13377
13377
|
}
|
|
13378
|
-
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 });
|
|
13379
13379
|
}
|
|
13380
13380
|
|
|
13381
13381
|
// src/utils/url-fix.ts
|
|
@@ -13431,7 +13431,7 @@ function VendorIcon({
|
|
|
13431
13431
|
...props
|
|
13432
13432
|
}) {
|
|
13433
13433
|
const logoUrl = getVendorLogo(vendor);
|
|
13434
|
-
const logoSrc =
|
|
13434
|
+
const logoSrc = _chunkH3WTYAVRcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
13435
13435
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13436
13436
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
13437
13437
|
{
|
|
@@ -13465,8 +13465,8 @@ function useChatCardItem(type, id) {
|
|
|
13465
13465
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
13466
13466
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
13467
13467
|
const data = await res.json();
|
|
13468
|
-
const items =
|
|
13469
|
-
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);
|
|
13470
13470
|
return _nullishCoalesce(match, () => ( null));
|
|
13471
13471
|
},
|
|
13472
13472
|
enabled: !!url && id.length > 0,
|
|
@@ -13672,7 +13672,7 @@ function resolveFetchedCardHref({
|
|
|
13672
13672
|
composeContentUrl
|
|
13673
13673
|
}) {
|
|
13674
13674
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
13675
|
-
const canonicalType =
|
|
13675
|
+
const canonicalType = _chunkH3WTYAVRcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
13676
13676
|
return composeContentUrl({
|
|
13677
13677
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
13678
13678
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -13696,7 +13696,7 @@ function sourceRowCtxFromRuntime(runtime) {
|
|
|
13696
13696
|
}
|
|
13697
13697
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
13698
13698
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
13699
|
-
const icon = iconName ?
|
|
13699
|
+
const icon = iconName ? _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
13700
13700
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
13701
13701
|
return { icon, iconLabel };
|
|
13702
13702
|
}
|
|
@@ -13715,16 +13715,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
13715
13715
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
13716
13716
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
13717
13717
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
13718
|
-
type:
|
|
13718
|
+
type: _chunkH3WTYAVRcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
13719
13719
|
identifier: idValue,
|
|
13720
13720
|
...docPath ? { slug: docPath } : {},
|
|
13721
13721
|
externalUrl: _nullishCoalesce(row.externalUrl, () => ( null)),
|
|
13722
13722
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
13723
13723
|
});
|
|
13724
|
-
href = composed.href ? _nullishCoalesce(
|
|
13724
|
+
href = composed.href ? _nullishCoalesce(_chunkTD4CC4KVcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
13725
13725
|
targetPlatform = composed.targetPlatform;
|
|
13726
13726
|
} else if (row.externalUrl) {
|
|
13727
|
-
href = _nullishCoalesce(
|
|
13727
|
+
href = _nullishCoalesce(_chunkTD4CC4KVcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
13728
13728
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
13729
13729
|
}
|
|
13730
13730
|
const documentType = row.documentType;
|
|
@@ -13791,7 +13791,7 @@ function resolveCardDestination({
|
|
|
13791
13791
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _306 => _306.fallbackHref, 'optionalCall', _307 => _307(item)]), () => ( null)),
|
|
13792
13792
|
allowComposed: !entry.noComposedHref
|
|
13793
13793
|
});
|
|
13794
|
-
const url = choice ? _nullishCoalesce(
|
|
13794
|
+
const url = choice ? _nullishCoalesce(_chunkTD4CC4KVcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
13795
13795
|
if (choice && url) {
|
|
13796
13796
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
13797
13797
|
}
|
|
@@ -13804,11 +13804,11 @@ function resolveCardDestination({
|
|
|
13804
13804
|
|
|
13805
13805
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
13806
13806
|
const label = entityLabel || "Item";
|
|
13807
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
13808
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13809
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
13810
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13811
|
-
/* @__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: [
|
|
13812
13812
|
label,
|
|
13813
13813
|
" deleted",
|
|
13814
13814
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -13863,7 +13863,7 @@ function GitHubChatCard({
|
|
|
13863
13863
|
description,
|
|
13864
13864
|
icon: githubKindIcon(kind),
|
|
13865
13865
|
status,
|
|
13866
|
-
anchorProps:
|
|
13866
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13867
13867
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13868
13868
|
menuAriaLabel: "Activity actions"
|
|
13869
13869
|
}
|
|
@@ -13986,7 +13986,7 @@ function HubspotTicketChatCard({
|
|
|
13986
13986
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13987
13987
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
13988
13988
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
13989
|
-
anchorProps:
|
|
13989
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13990
13990
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
13991
13991
|
label: "Open Ticket Details",
|
|
13992
13992
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -14009,7 +14009,7 @@ function FaqChatCard({
|
|
|
14009
14009
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14010
14010
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
14011
14011
|
status: { label: statusLabel, variant: "grey" },
|
|
14012
|
-
anchorProps:
|
|
14012
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14013
14013
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14014
14014
|
menuAriaLabel: "FAQ actions"
|
|
14015
14015
|
}
|
|
@@ -14029,7 +14029,7 @@ function SlackChatCard({
|
|
|
14029
14029
|
title,
|
|
14030
14030
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14031
14031
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
14032
|
-
anchorProps:
|
|
14032
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14033
14033
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14034
14034
|
menuAriaLabel: "Message actions"
|
|
14035
14035
|
}
|
|
@@ -14047,7 +14047,7 @@ function GlyphChatCard({
|
|
|
14047
14047
|
title: chatRef.title,
|
|
14048
14048
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14049
14049
|
icon,
|
|
14050
|
-
anchorProps:
|
|
14050
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14051
14051
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14052
14052
|
menuAriaLabel: "Card actions"
|
|
14053
14053
|
}
|
|
@@ -14065,20 +14065,20 @@ function TrustCenterChatCard({
|
|
|
14065
14065
|
}) {
|
|
14066
14066
|
const raw2 = _optionalChain([item, 'optionalAccess', _321 => _321.frameworks]);
|
|
14067
14067
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
14068
|
-
const summary =
|
|
14068
|
+
const summary = _chunkH3WTYAVRcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
14069
14069
|
const leadFramework = frameworks[0];
|
|
14070
14070
|
const lead = leadFramework ? {
|
|
14071
|
-
label:
|
|
14072
|
-
color:
|
|
14071
|
+
label: _chunkH3WTYAVRcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
14072
|
+
color: _chunkH3WTYAVRcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
14073
14073
|
} : void 0;
|
|
14074
14074
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14075
14075
|
MingoInfoCard,
|
|
14076
14076
|
{
|
|
14077
|
-
title:
|
|
14078
|
-
description: summary ||
|
|
14077
|
+
title: _chunkH3WTYAVRcjs.TRUST_CENTER_TITLE,
|
|
14078
|
+
description: summary || _chunkH3WTYAVRcjs.TRUST_CENTER_TAGLINE,
|
|
14079
14079
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
14080
14080
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
14081
|
-
anchorProps:
|
|
14081
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14082
14082
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
14083
14083
|
label: "View trust center",
|
|
14084
14084
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -14100,7 +14100,7 @@ function DataRoomDocChatCard({
|
|
|
14100
14100
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14101
14101
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14102
14102
|
status: { label: badgeText, variant: "grey" },
|
|
14103
|
-
anchorProps:
|
|
14103
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14104
14104
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14105
14105
|
menuAriaLabel: "Document actions"
|
|
14106
14106
|
}
|
|
@@ -14119,7 +14119,7 @@ function GenericFinancialChatCard({
|
|
|
14119
14119
|
title: chatRef.title,
|
|
14120
14120
|
description: subtitle,
|
|
14121
14121
|
icon,
|
|
14122
|
-
anchorProps:
|
|
14122
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14123
14123
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14124
14124
|
menuAriaLabel: "Document actions"
|
|
14125
14125
|
}
|
|
@@ -14210,7 +14210,7 @@ function CampaignChatCard({
|
|
|
14210
14210
|
}) {
|
|
14211
14211
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _327 => _327.goals])) ? item.goals.length : 0;
|
|
14212
14212
|
const meta = [
|
|
14213
|
-
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ?
|
|
14213
|
+
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ? _chunkH3WTYAVRcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
14214
14214
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14215
14215
|
"Marketing campaign"
|
|
14216
14216
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -14249,7 +14249,7 @@ function EntityMingoCard({
|
|
|
14249
14249
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
14250
14250
|
icon: fallbackIcon,
|
|
14251
14251
|
status,
|
|
14252
|
-
anchorProps:
|
|
14252
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14253
14253
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
14254
14254
|
menuAriaLabel
|
|
14255
14255
|
}
|
|
@@ -14261,7 +14261,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
14261
14261
|
function statusPill(status) {
|
|
14262
14262
|
const s = typeof status === "string" ? status.trim() : "";
|
|
14263
14263
|
if (!s) return void 0;
|
|
14264
|
-
const scheme =
|
|
14264
|
+
const scheme = _chunkH3WTYAVRcjs.getStatusColorScheme.call(void 0, s);
|
|
14265
14265
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
14266
14266
|
return { label: s, variant };
|
|
14267
14267
|
}
|
|
@@ -14352,7 +14352,7 @@ function DesignDocChatCard({
|
|
|
14352
14352
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14353
14353
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14354
14354
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
14355
|
-
anchorProps:
|
|
14355
|
+
anchorProps: _chunkAPNONOHYcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab, displayRef.targetPlatform),
|
|
14356
14356
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
14357
14357
|
menuAriaLabel: "Design doc actions"
|
|
14358
14358
|
}
|
|
@@ -14370,7 +14370,7 @@ function InvestorUpdateChatCard({
|
|
|
14370
14370
|
EntityMingoCard,
|
|
14371
14371
|
{
|
|
14372
14372
|
title,
|
|
14373
|
-
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) ||
|
|
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
14374
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _362 => _362.featured_image]), ogPlaceholder),
|
|
14375
14375
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
14376
14376
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -14414,7 +14414,7 @@ function ProgramChatCard({
|
|
|
14414
14414
|
discuss
|
|
14415
14415
|
}) {
|
|
14416
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 });
|
|
14417
|
-
const { line: meta } =
|
|
14417
|
+
const { line: meta } = _chunkH3WTYAVRcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkH3WTYAVRcjs.programMetaFormatters.call(void 0, _chunkH3WTYAVRcjs.PROGRAM_META_RENDERERS));
|
|
14418
14418
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14419
14419
|
EntityMingoCard,
|
|
14420
14420
|
{
|
|
@@ -14440,7 +14440,7 @@ function RoadmapChatCard({
|
|
|
14440
14440
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _372 => _372.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
14441
14441
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _373 => _373.customItemId]) != null;
|
|
14442
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 });
|
|
14443
|
-
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 ? (
|
|
14444
14444
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
14445
14445
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
14446
14446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14449,8 +14449,8 @@ function RoadmapChatCard({
|
|
|
14449
14449
|
src: logoUrl,
|
|
14450
14450
|
alt: "",
|
|
14451
14451
|
className: "size-6 object-contain",
|
|
14452
|
-
width:
|
|
14453
|
-
height:
|
|
14452
|
+
width: _chunkJQCQCE6Ucjs.IMAGE_FIXED_PX.glyph,
|
|
14453
|
+
height: _chunkJQCQCE6Ucjs.IMAGE_FIXED_PX.glyph,
|
|
14454
14454
|
unoptimized: true
|
|
14455
14455
|
}
|
|
14456
14456
|
)
|
|
@@ -14516,11 +14516,11 @@ function refText(ref, key) {
|
|
|
14516
14516
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
14517
14517
|
}
|
|
14518
14518
|
function VendorGlyph({ title, logoUrl }) {
|
|
14519
|
-
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 });
|
|
14520
14520
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
14521
14521
|
}
|
|
14522
14522
|
function SitePageGlyph({ iconName }) {
|
|
14523
|
-
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 });
|
|
14524
14524
|
}
|
|
14525
14525
|
var GITHUB_CARD_CONFIGS = {
|
|
14526
14526
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -14648,7 +14648,7 @@ function programRegistryEntries() {
|
|
|
14648
14648
|
contentRefType: cfg.contentRefType,
|
|
14649
14649
|
bareInline: true,
|
|
14650
14650
|
disclosure: cfg.disclosure,
|
|
14651
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14651
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
14652
14652
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14653
14653
|
ProgramChatCard,
|
|
14654
14654
|
{
|
|
@@ -14689,7 +14689,7 @@ function roadmapRegistryEntries() {
|
|
|
14689
14689
|
bareInline: true,
|
|
14690
14690
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
14691
14691
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
14692
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14692
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
14693
14693
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14694
14694
|
RoadmapChatCard,
|
|
14695
14695
|
{
|
|
@@ -14747,12 +14747,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14747
14747
|
// projection route; `extractCardItems` turns its object payload into the
|
|
14748
14748
|
// single matched row. Destination is the public page unless the host
|
|
14749
14749
|
// re-homes the type (`composeContentUrl` override).
|
|
14750
|
-
[
|
|
14750
|
+
[_chunkH3WTYAVRcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
14751
14751
|
label: "Trust center",
|
|
14752
14752
|
bareInline: true,
|
|
14753
|
-
contentRefType:
|
|
14753
|
+
contentRefType: _chunkH3WTYAVRcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
14754
14754
|
noComposedHref: true,
|
|
14755
|
-
fallbackHref: () =>
|
|
14755
|
+
fallbackHref: () => _chunkH3WTYAVRcjs.TRUST_CENTER_PAGE_PATH,
|
|
14756
14756
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14757
14757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14758
14758
|
},
|
|
@@ -14778,7 +14778,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14778
14778
|
label: "Blog post",
|
|
14779
14779
|
contentRefType: "blog_post_existing",
|
|
14780
14780
|
bareInline: true,
|
|
14781
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14781
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.BlogCard, { loading: true, size: "sm" }),
|
|
14782
14782
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14783
14783
|
BlogChatCard,
|
|
14784
14784
|
{
|
|
@@ -14796,7 +14796,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14796
14796
|
label: "Case study",
|
|
14797
14797
|
contentRefType: "case_study",
|
|
14798
14798
|
bareInline: true,
|
|
14799
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14799
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
14800
14800
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14801
14801
|
CaseStudyChatCard,
|
|
14802
14802
|
{
|
|
@@ -14822,7 +14822,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14822
14822
|
label: "Customer interview",
|
|
14823
14823
|
contentRefType: "customer_interview",
|
|
14824
14824
|
bareInline: true,
|
|
14825
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14825
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
14826
14826
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14827
14827
|
CustomerInterviewChatCard,
|
|
14828
14828
|
{
|
|
@@ -14839,9 +14839,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14839
14839
|
label: "Product release",
|
|
14840
14840
|
contentRefType: "product_release",
|
|
14841
14841
|
bareInline: true,
|
|
14842
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14842
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
14843
14843
|
render: (item, chatRef, opts) => {
|
|
14844
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => (
|
|
14844
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => ( _chunkH3WTYAVRcjs.defaultBuildProductReleaseCardProps));
|
|
14845
14845
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14846
14846
|
ProductReleaseChatCard,
|
|
14847
14847
|
{
|
|
@@ -14860,7 +14860,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14860
14860
|
label: "Investor update",
|
|
14861
14861
|
contentRefType: "investor_update",
|
|
14862
14862
|
bareInline: true,
|
|
14863
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14863
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
14864
14864
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14865
14865
|
InvestorUpdateChatCard,
|
|
14866
14866
|
{
|
|
@@ -14879,7 +14879,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14879
14879
|
bareInline: true,
|
|
14880
14880
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
14881
14881
|
displayAction: true,
|
|
14882
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14882
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
14883
14883
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14884
14884
|
OnboardingGuideChatCard,
|
|
14885
14885
|
{
|
|
@@ -14923,7 +14923,7 @@ function ChatCardNavWrap({
|
|
|
14923
14923
|
if (!_optionalChain([host, 'optionalAccess', _428 => _428.contains, 'call', _429 => _429(targetEl)])) return;
|
|
14924
14924
|
if (_optionalChain([targetEl, 'optionalAccess', _430 => _430.closest, 'optionalCall', _431 => _431("button")])) return;
|
|
14925
14925
|
if (!_optionalChain([targetEl, 'optionalAccess', _432 => _432.closest, 'optionalCall', _433 => _433("a")])) return;
|
|
14926
|
-
const handled =
|
|
14926
|
+
const handled = _chunkZABZIM2Ycjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
|
|
14927
14927
|
if (!handled) return;
|
|
14928
14928
|
e.stopPropagation();
|
|
14929
14929
|
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _434 => _434.closeChat])) panel.closeChat();
|
|
@@ -14961,7 +14961,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14961
14961
|
entry: fetchEntry,
|
|
14962
14962
|
ctx: sourceRowCtxFromRuntime(runtime),
|
|
14963
14963
|
composeContentUrl: runtime.composeContentUrl,
|
|
14964
|
-
resolveHref: (href) =>
|
|
14964
|
+
resolveHref: (href) => _chunkAPNONOHYcjs.navLinkTarget.call(void 0, runtime, href).href
|
|
14965
14965
|
});
|
|
14966
14966
|
const hrefResolvedChatRef = {
|
|
14967
14967
|
...chatRef,
|
|
@@ -14972,13 +14972,13 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14972
14972
|
};
|
|
14973
14973
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
14974
14974
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
14975
|
-
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url &&
|
|
14976
|
-
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;
|
|
14977
14977
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
14978
14978
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
14979
14979
|
const discuss = discussFn ? {
|
|
14980
14980
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
14981
|
-
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" }),
|
|
14982
14982
|
run: () => discussFn(finalChatRef)
|
|
14983
14983
|
} : void 0;
|
|
14984
14984
|
const renderOpts = {
|
|
@@ -15084,12 +15084,12 @@ function makeBatchDedupKey(item) {
|
|
|
15084
15084
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
15085
15085
|
}
|
|
15086
15086
|
function getChatTypeMessageType(chatType) {
|
|
15087
|
-
return chatType ===
|
|
15087
|
+
return chatType === _chunk4JHO2NVIcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
15088
15088
|
}
|
|
15089
15089
|
function useChunkCatchup({
|
|
15090
15090
|
dialogId,
|
|
15091
15091
|
onChunkReceived,
|
|
15092
|
-
chatTypes = [
|
|
15092
|
+
chatTypes = [_chunk4JHO2NVIcjs.CHAT_TYPE.CLIENT],
|
|
15093
15093
|
fetchChunks
|
|
15094
15094
|
}) {
|
|
15095
15095
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -16056,7 +16056,7 @@ function useChatAttachmentImageGallery() {
|
|
|
16056
16056
|
return () => root.removeEventListener("click", onClick);
|
|
16057
16057
|
}, [viewUrlPrefix]);
|
|
16058
16058
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16059
|
-
|
|
16059
|
+
_chunkH3WTYAVRcjs.ImageGalleryModal,
|
|
16060
16060
|
{
|
|
16061
16061
|
images: state.images,
|
|
16062
16062
|
isOpen: state.isOpen,
|
|
@@ -17425,7 +17425,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17425
17425
|
const status = approvalStatuses[requestId] || "pending";
|
|
17426
17426
|
if (!displayInline(approvalType)) {
|
|
17427
17427
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
17428
|
-
const summary = required ?
|
|
17428
|
+
const summary = required ? _chunk5L3UKDC6cjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
17429
17429
|
pendingEscalated.set(requestId, {
|
|
17430
17430
|
command: summary,
|
|
17431
17431
|
explanation: _optionalChain([required, 'optionalAccess', _563 => _563.toolExplanation]),
|
|
@@ -17458,7 +17458,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17458
17458
|
if (!call.requiresApproval) continue;
|
|
17459
17459
|
segments = accumulator.addApprovalRequest(
|
|
17460
17460
|
requestId,
|
|
17461
|
-
|
|
17461
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
17462
17462
|
call.toolExplanation,
|
|
17463
17463
|
approvalType,
|
|
17464
17464
|
status,
|
|
@@ -17537,7 +17537,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17537
17537
|
if (!call.requiresApproval) continue;
|
|
17538
17538
|
segments = accumulator.addApprovalRequest(
|
|
17539
17539
|
requestId,
|
|
17540
|
-
|
|
17540
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
17541
17541
|
call.toolExplanation,
|
|
17542
17542
|
escalatedData.approvalType,
|
|
17543
17543
|
status
|
|
@@ -19546,12 +19546,12 @@ function extractIncompleteTailState(messages) {
|
|
|
19546
19546
|
|
|
19547
19547
|
// src/components/chat/utils/process-historical-messages.ts
|
|
19548
19548
|
function getOwnerDisplayName(owner) {
|
|
19549
|
-
if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) ===
|
|
19549
|
+
if (_optionalChain([owner, 'optionalAccess', _639 => _639.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
19550
19550
|
const { firstName, lastName } = owner.user;
|
|
19551
19551
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
19552
19552
|
if (name) return name;
|
|
19553
19553
|
}
|
|
19554
|
-
return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) ===
|
|
19554
|
+
return _optionalChain([owner, 'optionalAccess', _640 => _640.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
19555
19555
|
}
|
|
19556
19556
|
function getOwnerAvatar(owner) {
|
|
19557
19557
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _641 => _641.user, 'optionalAccess', _642 => _642.image, 'optionalAccess', _643 => _643.imageUrl]), () => ( void 0));
|
|
@@ -19814,7 +19814,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19814
19814
|
if (!call.requiresApproval) continue;
|
|
19815
19815
|
accumulator.addApprovalRequest(
|
|
19816
19816
|
event.requestId,
|
|
19817
|
-
|
|
19817
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
19818
19818
|
call.toolExplanation,
|
|
19819
19819
|
approvalType,
|
|
19820
19820
|
status,
|
|
@@ -19875,7 +19875,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19875
19875
|
if (!call.requiresApproval) continue;
|
|
19876
19876
|
accumulator.addApprovalRequest(
|
|
19877
19877
|
requestId,
|
|
19878
|
-
|
|
19878
|
+
_chunk5L3UKDC6cjs.getCommandText.call(void 0, call),
|
|
19879
19879
|
call.toolExplanation,
|
|
19880
19880
|
escalatedData.approvalType,
|
|
19881
19881
|
status
|
|
@@ -19983,10 +19983,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19983
19983
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
19984
19984
|
return;
|
|
19985
19985
|
}
|
|
19986
|
-
const isUserMessage = _optionalChain([msg, 'access', _656 => _656.owner, 'optionalAccess', _657 => _657.type]) ===
|
|
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;
|
|
19987
19987
|
if (isUserMessage) {
|
|
19988
19988
|
flushAssistantMessage();
|
|
19989
|
-
const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) ===
|
|
19989
|
+
const userAuthorType = _optionalChain([msg, 'access', _660 => _660.owner, 'optionalAccess', _661 => _661.type]) === _chunk4JHO2NVIcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
19990
19990
|
messageDataArray.forEach((data) => {
|
|
19991
19991
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
19992
19992
|
const rawContext = data.contextItems;
|
|
@@ -20037,7 +20037,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
20037
20037
|
});
|
|
20038
20038
|
const nextMsg = messages[index + 1];
|
|
20039
20039
|
const isLastMessage = index === messages.length - 1;
|
|
20040
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _664 => _664.owner, 'optionalAccess', _665 => _665.type]) ===
|
|
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);
|
|
20041
20041
|
if (isLastMessage || nextIsFromUser) {
|
|
20042
20042
|
flushAssistantMessage();
|
|
20043
20043
|
}
|