@flamingo-stack/openframe-frontend-core 0.0.760 → 0.0.763
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-7Z4EQOIX.cjs → chunk-22XAPV6N.cjs} +35 -35
- package/dist/{chunk-AXBVN5SW.cjs → chunk-2IFCRPNP.cjs} +38 -38
- package/dist/{chunk-4ZMCKCXN.cjs → chunk-3JUIDOHB.cjs} +43 -43
- package/dist/{chunk-CSJO7ZGN.cjs → chunk-3RYIF4OW.cjs} +3 -3
- package/dist/{chunk-35BJY5RR.cjs → chunk-47GZ33ND.cjs} +44 -44
- package/dist/{chunk-EMKGOU54.cjs → chunk-4NGXJA3V.cjs} +4 -4
- package/dist/{chunk-QCXE7BSY.cjs → chunk-66FQUWKF.cjs} +59 -59
- package/dist/{chunk-SULCTARW.cjs → chunk-6XCE2VLH.cjs} +8 -8
- package/dist/{chunk-GL5KJ4PK.cjs → chunk-AXGTRPF6.cjs} +20 -20
- package/dist/{chunk-PSLL4FAS.cjs → chunk-CEJDHCFZ.cjs} +89 -89
- package/dist/{chunk-2ANICXS7.cjs → chunk-E4LA4BEH.cjs} +21 -21
- package/dist/{chunk-JHQNUWFM.cjs → chunk-EQZXJUYV.cjs} +3 -3
- package/dist/{chunk-LU7TD6QS.cjs → chunk-FQSXZC2K.cjs} +3 -3
- package/dist/{chunk-BDCEMTWU.cjs → chunk-G5NCY5IE.cjs} +100 -100
- package/dist/{chunk-QU5K52OP.cjs → chunk-GY2JESOC.cjs} +2 -2
- package/dist/{chunk-LOFDIDSD.cjs → chunk-GZKWF6NH.cjs} +9 -9
- package/dist/{chunk-4VRXTQVZ.cjs → chunk-IJMPXTGV.cjs} +14 -14
- package/dist/{chunk-EYVYPX5N.cjs → chunk-IUIDZS6W.cjs} +574 -567
- package/dist/{chunk-EC7VXTJ3.cjs → chunk-J4P47JHM.cjs} +20 -20
- package/dist/{chunk-D2HMQUK5.cjs → chunk-LUNXHJ53.cjs} +32 -32
- package/dist/{chunk-WBOHLXFC.cjs → chunk-LVKUMVUJ.cjs} +2 -2
- package/dist/{chunk-L2IQESTQ.cjs → chunk-M7YZGRAV.cjs} +2 -2
- package/dist/{chunk-R34JD6NP.cjs → chunk-MWLD6NXV.cjs} +3 -3
- package/dist/{chunk-W2RM764D.cjs → chunk-NET74KSQ.cjs} +5 -4
- package/dist/{chunk-B27XV2TC.cjs → chunk-NS64LMVE.cjs} +10 -10
- package/dist/{chunk-UT4W73YG.cjs → chunk-O2VRIGDI.cjs} +83 -83
- package/dist/{chunk-QYLIHZKZ.cjs → chunk-OJJ4RL2T.cjs} +4 -4
- package/dist/{chunk-F64VMOIB.cjs → chunk-PE26VSWT.cjs} +19 -19
- package/dist/{chunk-ITO3JRVB.cjs → chunk-QCO32MEE.cjs} +17 -17
- package/dist/{chunk-KTPR66EE.cjs → chunk-R3TWQ3ZJ.cjs} +10 -0
- package/dist/{chunk-VUSXDMCE.cjs → chunk-RM6AHNM4.cjs} +7 -7
- package/dist/{chunk-T4BBZ5ST.cjs → chunk-RO72PRQI.cjs} +2 -2
- package/dist/{chunk-PIV4FVTR.cjs → chunk-SU3EXXVC.cjs} +22 -22
- package/dist/{chunk-WI2OTGKC.cjs → chunk-SVP6DJFL.cjs} +2 -2
- package/dist/{chunk-QTYSYEHK.cjs → chunk-TQPQKBBL.cjs} +253 -246
- package/dist/{chunk-5E6JHOGX.cjs → chunk-TSJUL6IH.cjs} +3 -3
- package/dist/{chunk-3LNKXYMI.cjs → chunk-UUBHKQOH.cjs} +6 -6
- package/dist/{chunk-VUWPLQBY.cjs → chunk-XCH7SPGI.cjs} +44 -44
- package/dist/{chunk-NC4QUV73.cjs → chunk-ZUF5WDGE.cjs} +28 -28
- package/dist/{cloud-tenants-2NMXXIA6.cjs → cloud-tenants-4AGSRBJ2.cjs} +22 -22
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +9 -6
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/chat/types/component.types.d.ts +10 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +23 -23
- package/dist/components/docs/index.cjs +26 -26
- package/dist/components/embeds/index.cjs +23 -23
- package/dist/components/faq/index.cjs +24 -24
- package/dist/components/features/index.cjs +24 -22
- package/dist/components/features/walkthrough-video.d.ts +7 -0
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +9 -1
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +85 -83
- package/dist/components/meeting-scheduler/index.cjs +77 -77
- package/dist/components/navigation/index.cjs +25 -25
- package/dist/components/onboarding-guides/index.cjs +25 -25
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/tickets/index.cjs +28 -28
- package/dist/components/ui/index.cjs +22 -22
- package/dist/{devices-5XZVTD7G.cjs → devices-FKRZIBJP.cjs} +23 -23
- package/dist/{embeddable-chat-LTXUQWEK.cjs → embeddable-chat-HWQSP3DY.cjs} +93 -93
- package/dist/hooks/index.cjs +8 -8
- package/dist/index.cjs +30 -28
- package/dist/{knowledge-7QSJQB4P.cjs → knowledge-25CBYZ7E.cjs} +23 -23
- package/dist/{logs-URLNW334.cjs → logs-HQ7NDBVV.cjs} +30 -30
- package/dist/platform-domains.cjs +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +2 -0
- package/dist/{policies-NNW6PMAN.cjs → policies-2RV2CQD3.cjs} +26 -26
- package/dist/{remote-session-SKNXYG6K.cjs → remote-session-F72S6I7J.cjs} +9 -9
- package/dist/{scripts-WPYKAZYF.cjs → scripts-32EM4WDI.cjs} +29 -29
- package/dist/{software-update-KB6BIWUT.cjs → software-update-WVIARIUG.cjs} +26 -26
- package/dist/{tickets-board-B2FH7Z4B.cjs → tickets-board-4PBXPSGJ.cjs} +12 -12
- package/dist/types/platform.d.ts +1 -1
- package/dist/types/platform.d.ts.map +1 -1
- package/dist/utils/index.cjs +13 -0
- package/dist/utils/platform-config.d.ts.map +1 -1
- package/dist/utils/platform-config.js +1 -0
- package/dist/utils/platform-identity.cjs +10 -0
- package/dist/utils/platform-identity.d.ts +3 -2
- package/dist/utils/platform-identity.d.ts.map +1 -1
- package/dist/utils/platform-identity.js +10 -0
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +19 -9
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +10 -0
- package/src/components/features/walkthrough-video.tsx +17 -0
- package/src/platform-domains.ts +2 -0
- package/src/styles/README.md +1 -0
- package/src/styles/ods-colors.css +16 -0
- package/src/types/platform.ts +1 -0
- package/src/utils/platform-config.tsx +1 -0
- package/src/utils/platform-identity.ts +19 -2
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkPE26VSWTcjs = require('./chunk-PE26VSWT.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkGZKWF6NHcjs = require('./chunk-GZKWF6NH.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -239,10 +239,10 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
|
|
242
|
-
var
|
|
242
|
+
var _chunk3RYIF4OWcjs = require('./chunk-3RYIF4OW.cjs');
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
var
|
|
245
|
+
var _chunkSVP6DJFLcjs = require('./chunk-SVP6DJFL.cjs');
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -315,10 +315,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
315
315
|
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var _chunk22XAPV6Ncjs = require('./chunk-22XAPV6N.cjs');
|
|
319
319
|
|
|
320
320
|
|
|
321
|
-
var
|
|
321
|
+
var _chunkM7YZGRAVcjs = require('./chunk-M7YZGRAV.cjs');
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
|
|
@@ -326,7 +326,7 @@ var _chunkL2IQESTQcjs = require('./chunk-L2IQESTQ.cjs');
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
var
|
|
329
|
+
var _chunkEQZXJUYVcjs = require('./chunk-EQZXJUYV.cjs');
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -337,7 +337,7 @@ var _chunkCW3ML76Ucjs = require('./chunk-CW3ML76U.cjs');
|
|
|
337
337
|
|
|
338
338
|
|
|
339
339
|
|
|
340
|
-
var
|
|
340
|
+
var _chunkR3TWQ3ZJcjs = require('./chunk-R3TWQ3ZJ.cjs');
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
|
|
@@ -691,14 +691,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
691
691
|
for (const section of sectionIds) {
|
|
692
692
|
sectionIdMap.set(section.title, section.id);
|
|
693
693
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
694
|
-
sectionIdMap.set(
|
|
694
|
+
sectionIdMap.set(_chunk3RYIF4OWcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
const dedupe =
|
|
697
|
+
const dedupe = _chunk3RYIF4OWcjs.createHeadingIdDeduper.call(void 0, );
|
|
698
698
|
const map = /* @__PURE__ */ new Map();
|
|
699
699
|
let sectionOrdinal = 0;
|
|
700
700
|
let headingOrdinal = 0;
|
|
701
|
-
for (const { line, level, text: rawText } of
|
|
701
|
+
for (const { line, level, text: rawText } of _chunk3RYIF4OWcjs.scanHeadings.call(void 0, content)) {
|
|
702
702
|
const text2 = stripInlineMarkdown(rawText).trim();
|
|
703
703
|
headingOrdinal++;
|
|
704
704
|
if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -707,8 +707,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
707
707
|
for (const variation of [
|
|
708
708
|
text2,
|
|
709
709
|
text2.toLowerCase(),
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
_chunk3RYIF4OWcjs.stripHeadingEmojis.call(void 0, text2),
|
|
711
|
+
_chunk3RYIF4OWcjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
|
|
712
712
|
]) {
|
|
713
713
|
const id = sectionIdMap.get(variation);
|
|
714
714
|
if (id) {
|
|
@@ -718,7 +718,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
if (assigned === void 0) {
|
|
721
|
-
const baseId =
|
|
721
|
+
const baseId = _chunk3RYIF4OWcjs.slugifyHeadingText.call(void 0, text2);
|
|
722
722
|
assigned = dedupe(
|
|
723
723
|
baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
724
724
|
);
|
|
@@ -1599,7 +1599,7 @@ function findInlineCodeRanges(source) {
|
|
|
1599
1599
|
while (pos <= len) {
|
|
1600
1600
|
let end = source.indexOf("\n", pos);
|
|
1601
1601
|
if (end === -1) end = len;
|
|
1602
|
-
const blank =
|
|
1602
|
+
const blank = _chunk3RYIF4OWcjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
1603
1603
|
if (blank && segStart !== -1) break;
|
|
1604
1604
|
if (!blank) {
|
|
1605
1605
|
if (segStart === -1) segStart = pos;
|
|
@@ -1681,7 +1681,7 @@ function toMaskLines(source) {
|
|
|
1681
1681
|
return out;
|
|
1682
1682
|
}
|
|
1683
1683
|
function blankFencedRegions(masked, lines) {
|
|
1684
|
-
const fences =
|
|
1684
|
+
const fences = _chunk3RYIF4OWcjs.createFenceTracker.call(void 0, );
|
|
1685
1685
|
const ranges = [];
|
|
1686
1686
|
let openStart = null;
|
|
1687
1687
|
let lastEnd = 0;
|
|
@@ -1720,7 +1720,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
1720
1720
|
const listContentCols = [];
|
|
1721
1721
|
const ranges = [];
|
|
1722
1722
|
for (const line of lines) {
|
|
1723
|
-
if (
|
|
1723
|
+
if (_chunk3RYIF4OWcjs.isBlankLine.call(void 0, line.content)) continue;
|
|
1724
1724
|
const indent = leadingIndent(line.content);
|
|
1725
1725
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
1726
1726
|
if (indent >= top + 4) {
|
|
@@ -1811,7 +1811,7 @@ function contPrefixLen(c) {
|
|
|
1811
1811
|
function findLabelClose(lines, i, from) {
|
|
1812
1812
|
for (let j = i; j < lines.length; j++) {
|
|
1813
1813
|
const c = stripCr(lines[j].content);
|
|
1814
|
-
if (j > i &&
|
|
1814
|
+
if (j > i && _chunk3RYIF4OWcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
1815
1815
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
1816
1816
|
if (c[q] === "[") return { stoppedAt: j };
|
|
1817
1817
|
if (c[q] !== "]") continue;
|
|
@@ -1829,7 +1829,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
1829
1829
|
let k = from;
|
|
1830
1830
|
for (; k < lines.length; k++) {
|
|
1831
1831
|
const c = stripCr(lines[k].content);
|
|
1832
|
-
if (
|
|
1832
|
+
if (_chunk3RYIF4OWcjs.isBlankLine.call(void 0, c)) break;
|
|
1833
1833
|
blankLine(lines[k]);
|
|
1834
1834
|
if (stop(c)) {
|
|
1835
1835
|
k++;
|
|
@@ -1872,7 +1872,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
1872
1872
|
const k = j + 1;
|
|
1873
1873
|
if (k >= lines.length) break;
|
|
1874
1874
|
const c = stripCr(lines[k].content);
|
|
1875
|
-
if (
|
|
1875
|
+
if (_chunk3RYIF4OWcjs.isBlankLine.call(void 0, c)) break;
|
|
1876
1876
|
const at = contPrefixLen(c);
|
|
1877
1877
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
1878
1878
|
if (next.k === "decline") break;
|
|
@@ -1942,7 +1942,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
1942
1942
|
let sawBlank = false;
|
|
1943
1943
|
for (let k = i + 1; k < lines.length; k++) {
|
|
1944
1944
|
const c = text2(lines[k]);
|
|
1945
|
-
if (
|
|
1945
|
+
if (_chunk3RYIF4OWcjs.isBlankLine.call(void 0, c)) {
|
|
1946
1946
|
sawBlank = true;
|
|
1947
1947
|
continue;
|
|
1948
1948
|
}
|
|
@@ -2042,7 +2042,7 @@ function paragraphEnd(s, from) {
|
|
|
2042
2042
|
lineStart += 1;
|
|
2043
2043
|
const next = s.indexOf("\n", lineStart);
|
|
2044
2044
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
2045
|
-
if (
|
|
2045
|
+
if (_chunk3RYIF4OWcjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
2046
2046
|
if (next === -1) break;
|
|
2047
2047
|
lineStart = next;
|
|
2048
2048
|
}
|
|
@@ -2196,7 +2196,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2196
2196
|
run = [];
|
|
2197
2197
|
};
|
|
2198
2198
|
for (const line of lines) {
|
|
2199
|
-
if (
|
|
2199
|
+
if (_chunk3RYIF4OWcjs.isBlankLine.call(void 0, line.content)) {
|
|
2200
2200
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2201
2201
|
continue;
|
|
2202
2202
|
}
|
|
@@ -2421,7 +2421,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2421
2421
|
function computeHtmlBlockRanges(text2) {
|
|
2422
2422
|
if (text2.indexOf("<") === -1) return [];
|
|
2423
2423
|
const ranges = [];
|
|
2424
|
-
const fences =
|
|
2424
|
+
const fences = _chunk3RYIF4OWcjs.createFenceTracker.call(void 0, );
|
|
2425
2425
|
let kind = null;
|
|
2426
2426
|
let start = 0;
|
|
2427
2427
|
let lastEnd = 0;
|
|
@@ -2436,9 +2436,9 @@ function computeHtmlBlockRanges(text2) {
|
|
|
2436
2436
|
const expanded = expandTabs(line);
|
|
2437
2437
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2438
2438
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2439
|
-
else if (!
|
|
2440
|
-
const normBlank =
|
|
2441
|
-
const blank = openPrefixLen > 0 ?
|
|
2439
|
+
else if (!_chunk3RYIF4OWcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2440
|
+
const normBlank = _chunk3RYIF4OWcjs.isBlankLine.call(void 0, norm.text);
|
|
2441
|
+
const blank = openPrefixLen > 0 ? _chunk3RYIF4OWcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunk3RYIF4OWcjs.isBlankLine.call(void 0, line);
|
|
2442
2442
|
if (kind !== null) {
|
|
2443
2443
|
if (kind >= 6) {
|
|
2444
2444
|
if (blank) {
|
|
@@ -2592,7 +2592,7 @@ var ScanState = class {
|
|
|
2592
2592
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
2593
2593
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
2594
2594
|
*/
|
|
2595
|
-
this.fences =
|
|
2595
|
+
this.fences = _chunk3RYIF4OWcjs.createFenceTracker.call(void 0, );
|
|
2596
2596
|
/** Depth of currently open raw HTML block containers. */
|
|
2597
2597
|
this.htmlDepth = 0;
|
|
2598
2598
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -2665,7 +2665,7 @@ function splitStreamingBlocks(content) {
|
|
|
2665
2665
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
2666
2666
|
const firstNonBlank = (arr) => {
|
|
2667
2667
|
for (const line of arr) {
|
|
2668
|
-
if (!
|
|
2668
|
+
if (!_chunk3RYIF4OWcjs.isBlankLine.call(void 0, line)) return line;
|
|
2669
2669
|
}
|
|
2670
2670
|
return void 0;
|
|
2671
2671
|
};
|
|
@@ -2675,10 +2675,10 @@ function splitStreamingBlocks(content) {
|
|
|
2675
2675
|
state.scanLine(line);
|
|
2676
2676
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
2677
2677
|
current.push(line);
|
|
2678
|
-
const isBlank =
|
|
2678
|
+
const isBlank = _chunk3RYIF4OWcjs.isBlankLine.call(void 0, line);
|
|
2679
2679
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
2680
2680
|
let j = i + 1;
|
|
2681
|
-
while (j < lines.length &&
|
|
2681
|
+
while (j < lines.length && _chunk3RYIF4OWcjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
2682
2682
|
if (j >= lines.length) continue;
|
|
2683
2683
|
const next = lines[j];
|
|
2684
2684
|
if (/^\s/.test(next)) continue;
|
|
@@ -2686,7 +2686,7 @@ function splitStreamingBlocks(content) {
|
|
|
2686
2686
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
2687
2687
|
continue;
|
|
2688
2688
|
}
|
|
2689
|
-
if (current.every(
|
|
2689
|
+
if (current.every(_chunk3RYIF4OWcjs.isBlankLine)) continue;
|
|
2690
2690
|
units.push(current);
|
|
2691
2691
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
2692
2692
|
current = [];
|
|
@@ -2809,7 +2809,7 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
|
|
|
2809
2809
|
// src/components/ui/markdown/base-components.tsx
|
|
2810
2810
|
|
|
2811
2811
|
var MarkdownContentImage = ({ src, alt }) => {
|
|
2812
|
-
const resolvedSrc =
|
|
2812
|
+
const resolvedSrc = _chunkR3TWQ3ZJcjs.useAuthedImageSrc.call(void 0, src);
|
|
2813
2813
|
if (!resolvedSrc) return null;
|
|
2814
2814
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2815
2815
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
@@ -2882,7 +2882,7 @@ function buildBaseComponents({
|
|
|
2882
2882
|
const mapped = useHeadingId(node);
|
|
2883
2883
|
const taken = useAssignedHeadingIds();
|
|
2884
2884
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _38 => _38.properties, 'optionalAccess', _39 => _39.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
2885
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
2885
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunk3RYIF4OWcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
2886
2886
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
2887
2887
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
2888
2888
|
}
|
|
@@ -2957,10 +2957,10 @@ function buildBaseComponents({
|
|
|
2957
2957
|
const handleAnchorClick = (e) => {
|
|
2958
2958
|
if (inPageAnchorId === null) return;
|
|
2959
2959
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
2960
|
-
const target =
|
|
2960
|
+
const target = _chunk3RYIF4OWcjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
2961
2961
|
if (!_optionalChain([target, 'optionalAccess', _40 => _40.id])) return;
|
|
2962
2962
|
e.preventDefault();
|
|
2963
|
-
|
|
2963
|
+
_chunk3RYIF4OWcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunk3RYIF4OWcjs.HUB_HEADER_OFFSET_PX });
|
|
2964
2964
|
};
|
|
2965
2965
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2966
2966
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -3257,7 +3257,7 @@ function chatListensForAskAiOpens() {
|
|
|
3257
3257
|
|
|
3258
3258
|
// src/components/chat/chat-appearance-context.tsx
|
|
3259
3259
|
|
|
3260
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3260
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkGZKWF6NHcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3261
3261
|
function useChatAppearance() {
|
|
3262
3262
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3263
3263
|
}
|
|
@@ -3296,7 +3296,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3296
3296
|
...props
|
|
3297
3297
|
}, ref) => {
|
|
3298
3298
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3299
|
-
const isV2 = useChatAppearance() ===
|
|
3299
|
+
const isV2 = useChatAppearance() === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
3300
3300
|
const handleApprove = async () => {
|
|
3301
3301
|
setIsProcessing(true);
|
|
3302
3302
|
try {
|
|
@@ -3319,7 +3319,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3319
3319
|
{
|
|
3320
3320
|
ref,
|
|
3321
3321
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3322
|
-
|
|
3322
|
+
_chunkPE26VSWTcjs.CHAT_BLOCK_CLASS,
|
|
3323
3323
|
// v2: the thread owns the space below the card.
|
|
3324
3324
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3325
3325
|
className
|
|
@@ -3327,7 +3327,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3327
3327
|
...props,
|
|
3328
3328
|
children: [
|
|
3329
3329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _49 => _49.explanation, 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]) || "Approval required" }),
|
|
3330
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3330
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ApprovalWaitingLine, {}),
|
|
3331
3331
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3332
3332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3333
3333
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3359,14 +3359,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3359
3359
|
children: "Reject"
|
|
3360
3360
|
}
|
|
3361
3361
|
)
|
|
3362
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3362
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3363
3363
|
]
|
|
3364
3364
|
}
|
|
3365
3365
|
);
|
|
3366
3366
|
}
|
|
3367
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3367
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkPE26VSWTcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3368
3368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3369
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3369
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ApprovalWaitingLine, {}),
|
|
3370
3370
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3371
3371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3372
3372
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3398,7 +3398,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3398
3398
|
children: "Reject"
|
|
3399
3399
|
}
|
|
3400
3400
|
)
|
|
3401
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3401
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3402
3402
|
] });
|
|
3403
3403
|
}
|
|
3404
3404
|
);
|
|
@@ -3428,7 +3428,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3428
3428
|
|
|
3429
3429
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3430
3430
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3431
|
-
const isV2 = useChatAppearance() ===
|
|
3431
|
+
const isV2 = useChatAppearance() === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
3432
3432
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3433
3433
|
"div",
|
|
3434
3434
|
{
|
|
@@ -3444,7 +3444,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3444
3444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3445
3445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3446
3446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3447
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3447
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkGZKWF6NHcjs.formatTime.call(void 0, timestamp) })
|
|
3448
3448
|
] }),
|
|
3449
3449
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3450
3450
|
] })
|
|
@@ -3559,7 +3559,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3559
3559
|
AiAssistantInfo,
|
|
3560
3560
|
{
|
|
3561
3561
|
ref,
|
|
3562
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3562
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQZXJUYVcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3563
3563
|
title: "Technician Joined",
|
|
3564
3564
|
body: `You're now chatting with ${joined}.`,
|
|
3565
3565
|
timestamp,
|
|
@@ -3643,7 +3643,7 @@ var thoughtMdClasses = [
|
|
|
3643
3643
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3644
3644
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3645
3645
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3646
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3646
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkPE26VSWTcjs.useCollapsible.call(void 0, {
|
|
3647
3647
|
expanded,
|
|
3648
3648
|
collapsedHeight: 19,
|
|
3649
3649
|
disableTransition: isStreaming
|
|
@@ -3658,7 +3658,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3658
3658
|
setExpanded(!expanded);
|
|
3659
3659
|
}
|
|
3660
3660
|
};
|
|
3661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3661
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkPE26VSWTcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3662
3662
|
"div",
|
|
3663
3663
|
{
|
|
3664
3664
|
role: "button",
|
|
@@ -3676,7 +3676,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3676
3676
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3677
3677
|
] }),
|
|
3678
3678
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk3ATAYP36cjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: text2, textSize: "compact" }) }) }),
|
|
3679
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3679
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ExpandChevron, { expanded }) })
|
|
3680
3680
|
]
|
|
3681
3681
|
}
|
|
3682
3682
|
) });
|
|
@@ -3819,7 +3819,7 @@ function renderQuickActionIcon(icon) {
|
|
|
3819
3819
|
if (!spec.name && !spec.url) return void 0;
|
|
3820
3820
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
3821
3821
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
3822
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3822
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
3823
3823
|
}
|
|
3824
3824
|
function composeChipLabel(label, lozenge) {
|
|
3825
3825
|
if (!lozenge) return label;
|
|
@@ -3853,7 +3853,7 @@ function QuickActionChipSkeleton({
|
|
|
3853
3853
|
}) {
|
|
3854
3854
|
const question = variant === "question";
|
|
3855
3855
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3856
|
-
|
|
3856
|
+
_chunkEQZXJUYVcjs.Tag,
|
|
3857
3857
|
{
|
|
3858
3858
|
variant: "outline",
|
|
3859
3859
|
size: question ? "sentence" : size,
|
|
@@ -3897,7 +3897,7 @@ function QuickActionChipButton({
|
|
|
3897
3897
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
3898
3898
|
const tagSize = question ? "sentence" : size;
|
|
3899
3899
|
if (!interactive) {
|
|
3900
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3900
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQZXJUYVcjs.Tag, { variant: tagVariant, size: tagSize, icon: resolvedIcon, label: resolvedLabel, className });
|
|
3901
3901
|
}
|
|
3902
3902
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3903
3903
|
"button",
|
|
@@ -3916,7 +3916,7 @@ function QuickActionChipButton({
|
|
|
3916
3916
|
className
|
|
3917
3917
|
),
|
|
3918
3918
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3919
|
-
|
|
3919
|
+
_chunkEQZXJUYVcjs.Tag,
|
|
3920
3920
|
{
|
|
3921
3921
|
variant: tagVariant,
|
|
3922
3922
|
size: tagSize,
|
|
@@ -3988,9 +3988,9 @@ var iconTint = {
|
|
|
3988
3988
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3989
3989
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3990
3990
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3991
|
-
const { innerRef, containerStyle } =
|
|
3991
|
+
const { innerRef, containerStyle } = _chunkPE26VSWTcjs.useCollapsible.call(void 0, { expanded });
|
|
3992
3992
|
const hasDetails = Boolean(details);
|
|
3993
|
-
const isV2 = useChatAppearance() ===
|
|
3993
|
+
const isV2 = useChatAppearance() === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
3994
3994
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3995
3995
|
"div",
|
|
3996
3996
|
{
|
|
@@ -4027,7 +4027,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4027
4027
|
children: title
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4030
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ExpandChevron, { expanded })
|
|
4031
4031
|
]
|
|
4032
4032
|
}
|
|
4033
4033
|
),
|
|
@@ -4071,7 +4071,7 @@ function MspOrganizationCard({
|
|
|
4071
4071
|
className
|
|
4072
4072
|
),
|
|
4073
4073
|
children: [
|
|
4074
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4074
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQZXJUYVcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
4075
4075
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4076
4076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
4077
4077
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -4092,7 +4092,7 @@ function MspOrganizationCard({
|
|
|
4092
4092
|
className
|
|
4093
4093
|
),
|
|
4094
4094
|
children: [
|
|
4095
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4095
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQZXJUYVcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
4096
4096
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
4097
4097
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
4098
4098
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -4226,7 +4226,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4226
4226
|
] })
|
|
4227
4227
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
4228
4228
|
userIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4229
|
-
|
|
4229
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
4230
4230
|
{
|
|
4231
4231
|
src: userAvatar,
|
|
4232
4232
|
alt: userName,
|
|
@@ -4302,9 +4302,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4302
4302
|
)
|
|
4303
4303
|
] }),
|
|
4304
4304
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4305
|
-
|
|
4305
|
+
_chunkPE26VSWTcjs.TicketStatusTag,
|
|
4306
4306
|
{
|
|
4307
|
-
...
|
|
4307
|
+
..._chunkPE26VSWTcjs.resolveStatusTagProps.call(void 0, {
|
|
4308
4308
|
status: ticketInfo.status,
|
|
4309
4309
|
statusKind: ticketInfo.statusKind,
|
|
4310
4310
|
statusName: ticketInfo.statusName,
|
|
@@ -4862,11 +4862,11 @@ var remarkMentionChips = () => {
|
|
|
4862
4862
|
// src/components/chat/tool-execution-display.tsx
|
|
4863
4863
|
|
|
4864
4864
|
|
|
4865
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4865
|
+
var COMMAND_BODY_KEYS = new Set(_chunkPE26VSWTcjs.COMMAND_BODY_ARG_KEYS);
|
|
4866
4866
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4867
4867
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4868
4868
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4869
|
-
const { innerRef, containerStyle } =
|
|
4869
|
+
const { innerRef, containerStyle } = _chunkPE26VSWTcjs.useCollapsible.call(void 0, { expanded });
|
|
4870
4870
|
const isClient = assistantType === "fae";
|
|
4871
4871
|
const isClientView = variant === "client";
|
|
4872
4872
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4897,7 +4897,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4897
4897
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
4898
4898
|
const statusLabel = _optionalChain([message, 'access', _83 => _83.statusLabel, 'optionalAccess', _84 => _84.trim, 'call', _85 => _85()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
4899
4899
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4900
|
-
!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,
|
|
4900
|
+
!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, _chunkSVP6DJFLcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
4901
4901
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4902
4902
|
"div",
|
|
4903
4903
|
{
|
|
@@ -4909,7 +4909,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4909
4909
|
}
|
|
4910
4910
|
),
|
|
4911
4911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4912
|
-
!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,
|
|
4912
|
+
!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, _chunkPE26VSWTcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4913
4913
|
] });
|
|
4914
4914
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4915
4915
|
"div",
|
|
@@ -4919,7 +4919,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4919
4919
|
// The command running block keeps its bordered box in both chats
|
|
4920
4920
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4921
4921
|
"flex w-full flex-col overflow-hidden",
|
|
4922
|
-
|
|
4922
|
+
_chunkPE26VSWTcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4923
4923
|
className
|
|
4924
4924
|
),
|
|
4925
4925
|
...props,
|
|
@@ -4930,7 +4930,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4930
4930
|
// It reads as a card: what was done, then one status line under it.
|
|
4931
4931
|
/* @__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: [
|
|
4932
4932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4934
4934
|
] })
|
|
4935
4935
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4936
4936
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4943,9 +4943,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4943
4943
|
}
|
|
4944
4944
|
) : /* @__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 }),
|
|
4945
4945
|
/* @__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: [
|
|
4946
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4946
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.ArgRow, { argKey: key, value }, key)),
|
|
4947
4947
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4948
|
-
|
|
4948
|
+
_chunkPE26VSWTcjs.ResultBlock,
|
|
4949
4949
|
{
|
|
4950
4950
|
result: message.result,
|
|
4951
4951
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4999,8 +4999,8 @@ var remarkStripCitations = () => {
|
|
|
4999
4999
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5000
5000
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5001
5001
|
function formatMessageTimestamp(timestamp) {
|
|
5002
|
-
const time =
|
|
5003
|
-
return
|
|
5002
|
+
const time = _chunkGZKWF6NHcjs.formatTime.call(void 0, timestamp);
|
|
5003
|
+
return _chunkPE26VSWTcjs.isToday.call(void 0, timestamp) ? time : `${_chunkGZKWF6NHcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5004
5004
|
}
|
|
5005
5005
|
function normalizeContent(content) {
|
|
5006
5006
|
if (typeof content === "string") {
|
|
@@ -5039,6 +5039,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5039
5039
|
approvalVariant,
|
|
5040
5040
|
appearance: appearanceProp,
|
|
5041
5041
|
authorType: authorTypeProp,
|
|
5042
|
+
selfAuthorType,
|
|
5042
5043
|
assistantIcon,
|
|
5043
5044
|
contextItems,
|
|
5044
5045
|
resolveContextIcon,
|
|
@@ -5050,12 +5051,14 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5050
5051
|
NavLinkAnchor,
|
|
5051
5052
|
...props
|
|
5052
5053
|
}, ref) => {
|
|
5053
|
-
const
|
|
5054
|
+
const isHuman = role === "user";
|
|
5054
5055
|
const isError = role === "error";
|
|
5055
5056
|
const inheritedAppearance = useChatAppearance();
|
|
5056
5057
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5057
|
-
const isV2 = appearance ===
|
|
5058
|
-
const authorType = _nullishCoalesce(authorTypeProp, () => ( (
|
|
5058
|
+
const isV2 = appearance === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
5059
|
+
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5060
|
+
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5061
|
+
const isUser = isHuman && !isOtherPerson;
|
|
5059
5062
|
const hasMarkerSupport = !!renderEntityCard;
|
|
5060
5063
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
5061
5064
|
const askRuns = _react.useMemo.call(void 0, () => groupAskRuns(segments), [segments]);
|
|
@@ -5233,14 +5236,14 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5233
5236
|
});
|
|
5234
5237
|
};
|
|
5235
5238
|
const isSystem = authorType === "system";
|
|
5236
|
-
const showName = isSystem || authorType === "admin" && !isUser;
|
|
5237
|
-
const displayName = name || (
|
|
5239
|
+
const showName = isSystem || isOtherPerson || authorType === "admin" && !isUser;
|
|
5240
|
+
const displayName = name || (isHuman ? "User" : assistantType === "mingo" ? "Mingo" : "Fae");
|
|
5238
5241
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5239
|
-
const face = !showAvatar || isSystem ? null : !
|
|
5242
|
+
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
5240
5243
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5241
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5244
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5242
5245
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5243
|
-
|
|
5246
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
5244
5247
|
{
|
|
5245
5248
|
src: avatar || void 0,
|
|
5246
5249
|
alt: displayName,
|
|
@@ -5321,7 +5324,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5321
5324
|
);
|
|
5322
5325
|
} else if (segment.type === "approval_batch") {
|
|
5323
5326
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5324
|
-
|
|
5327
|
+
_chunkPE26VSWTcjs.ApprovalBatchMessage,
|
|
5325
5328
|
{
|
|
5326
5329
|
data: segment.data,
|
|
5327
5330
|
status: segment.status,
|
|
@@ -5376,7 +5379,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5376
5379
|
);
|
|
5377
5380
|
ChatMessageEnhanced.displayName = "ChatMessageEnhanced";
|
|
5378
5381
|
var MemoizedChatMessageEnhanced = _react.memo.call(void 0, ChatMessageEnhanced, (prevProps, nextProps) => {
|
|
5379
|
-
return prevProps.role === nextProps.role && prevProps.content === nextProps.content && prevProps.name === nextProps.name && prevProps.avatar === nextProps.avatar && prevProps.isTyping === nextProps.isTyping && _optionalChain([prevProps, 'access', _99 => _99.timestamp, 'optionalAccess', _100 => _100.getTime, 'call', _101 => _101()]) === _optionalChain([nextProps, 'access', _102 => _102.timestamp, 'optionalAccess', _103 => _103.getTime, 'call', _104 => _104()]) && prevProps.showAvatar === nextProps.showAvatar && prevProps.assistantType === nextProps.assistantType && prevProps.approvalVariant === nextProps.approvalVariant && prevProps.appearance === nextProps.appearance && prevProps.authorType === nextProps.authorType && prevProps.assistantIcon === nextProps.assistantIcon && prevProps.className === nextProps.className && // Reference equality — the host re-uses the same array instance per
|
|
5382
|
+
return prevProps.role === nextProps.role && prevProps.content === nextProps.content && prevProps.name === nextProps.name && prevProps.avatar === nextProps.avatar && prevProps.isTyping === nextProps.isTyping && _optionalChain([prevProps, 'access', _99 => _99.timestamp, 'optionalAccess', _100 => _100.getTime, 'call', _101 => _101()]) === _optionalChain([nextProps, 'access', _102 => _102.timestamp, 'optionalAccess', _103 => _103.getTime, 'call', _104 => _104()]) && prevProps.showAvatar === nextProps.showAvatar && prevProps.assistantType === nextProps.assistantType && prevProps.approvalVariant === nextProps.approvalVariant && prevProps.appearance === nextProps.appearance && prevProps.authorType === nextProps.authorType && prevProps.selfAuthorType === nextProps.selfAuthorType && prevProps.assistantIcon === nextProps.assistantIcon && prevProps.className === nextProps.className && // Reference equality — the host re-uses the same array instance per
|
|
5380
5383
|
// message (it's set once on the optimistic send and never mutated).
|
|
5381
5384
|
prevProps.contextItems === nextProps.contextItems && prevProps.resolveContextIcon === nextProps.resolveContextIcon && prevProps.renderContextItem === nextProps.renderContextItem && // Host keeps this stable (module const / useCallback), so reference
|
|
5382
5385
|
// equality holds across streaming chunks.
|
|
@@ -5581,7 +5584,8 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5581
5584
|
contentClassName,
|
|
5582
5585
|
assistantType,
|
|
5583
5586
|
approvalVariant,
|
|
5584
|
-
|
|
5587
|
+
selfAuthorType,
|
|
5588
|
+
appearance = _chunkGZKWF6NHcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5585
5589
|
assistantIcon,
|
|
5586
5590
|
pendingApprovals,
|
|
5587
5591
|
hasNextPage,
|
|
@@ -5986,6 +5990,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5986
5990
|
assistantType: message.assistantType || assistantType,
|
|
5987
5991
|
approvalVariant,
|
|
5988
5992
|
authorType: message.authorType,
|
|
5993
|
+
selfAuthorType,
|
|
5989
5994
|
assistantIcon: message.role !== "user" ? assistantIcon : void 0,
|
|
5990
5995
|
contextItems: message.contextItems,
|
|
5991
5996
|
resolveContextIcon,
|
|
@@ -6081,6 +6086,7 @@ var PLATFORM_DOMAINS = [
|
|
|
6081
6086
|
{ key: "product-hub", defaultUrl: "https://product-hub.flamingo.so", envVar: "NEXT_PUBLIC_PRODUCT_HUB_URL" },
|
|
6082
6087
|
{ key: "revenue-hub", defaultUrl: "https://revenue-hub.flamingo.so", envVar: "NEXT_PUBLIC_REVENUE_HUB_URL" },
|
|
6083
6088
|
{ key: "people-hub", defaultUrl: "https://people-hub.flamingo.so", envVar: "NEXT_PUBLIC_PEOPLE_HUB_URL" },
|
|
6089
|
+
{ key: "coding-hub", defaultUrl: "https://coding-hub.flamingo.so", envVar: "NEXT_PUBLIC_CODING_HUB_URL" },
|
|
6084
6090
|
{ key: "openmsp", defaultUrl: "https://www.openmsp.ai", envVar: "NEXT_PUBLIC_OPENMSP_URL" },
|
|
6085
6091
|
// ORDERING INVARIANT (first-wins, load-bearing): `flamingo` MUST precede `universal`.
|
|
6086
6092
|
// Both resolve to www.flamingo.run; the reverse index is first-wins → flamingo claims the shared host,
|
|
@@ -6114,6 +6120,7 @@ var ENV_OVERRIDES = {
|
|
|
6114
6120
|
NEXT_PUBLIC_PRODUCT_HUB_URL: process.env.NEXT_PUBLIC_PRODUCT_HUB_URL,
|
|
6115
6121
|
NEXT_PUBLIC_REVENUE_HUB_URL: process.env.NEXT_PUBLIC_REVENUE_HUB_URL,
|
|
6116
6122
|
NEXT_PUBLIC_PEOPLE_HUB_URL: process.env.NEXT_PUBLIC_PEOPLE_HUB_URL,
|
|
6123
|
+
NEXT_PUBLIC_CODING_HUB_URL: process.env.NEXT_PUBLIC_CODING_HUB_URL,
|
|
6117
6124
|
NEXT_PUBLIC_OPENMSP_URL: process.env.NEXT_PUBLIC_OPENMSP_URL,
|
|
6118
6125
|
NEXT_PUBLIC_FLAMINGO_URL: process.env.NEXT_PUBLIC_FLAMINGO_URL,
|
|
6119
6126
|
NEXT_PUBLIC_TMCG_URL: process.env.NEXT_PUBLIC_TMCG_URL,
|
|
@@ -6613,7 +6620,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6613
6620
|
|
|
6614
6621
|
[Attached: ${safeName}](${url})`;
|
|
6615
6622
|
}
|
|
6616
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6623
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk22XAPV6Ncjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6617
6624
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6618
6625
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6619
6626
|
"gm"
|
|
@@ -6863,7 +6870,7 @@ function MarqueeWallFades({
|
|
|
6863
6870
|
}) });
|
|
6864
6871
|
}
|
|
6865
6872
|
function CloneCopy({ className, style, children }) {
|
|
6866
|
-
const ref =
|
|
6873
|
+
const ref = _chunk3RYIF4OWcjs.useSuppressCloneFocus.call(void 0, true);
|
|
6867
6874
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
6868
6875
|
}
|
|
6869
6876
|
function MarqueeWall({
|
|
@@ -6890,7 +6897,7 @@ function MarqueeWall({
|
|
|
6890
6897
|
const containerRef = _react.useRef.call(void 0, null);
|
|
6891
6898
|
const trackRef = _react.useRef.call(void 0, null);
|
|
6892
6899
|
const copyRef = _react.useRef.call(void 0, null);
|
|
6893
|
-
const reducedMotion = _nullishCoalesce(
|
|
6900
|
+
const reducedMotion = _nullishCoalesce(_chunkR3TWQ3ZJcjs.useMediaQuery.call(void 0, "(prefers-reduced-motion: reduce)"), () => ( false));
|
|
6894
6901
|
const [overflows, setOverflows] = _react.useState.call(void 0, false);
|
|
6895
6902
|
const copySizeRef = _react.useRef.call(void 0, 0);
|
|
6896
6903
|
const wrapSizeRef = _react.useRef.call(void 0, 0);
|
|
@@ -6917,7 +6924,7 @@ function MarqueeWall({
|
|
|
6917
6924
|
ro.observe(copy);
|
|
6918
6925
|
return () => ro.disconnect();
|
|
6919
6926
|
}, [measure, marqueeMounted]);
|
|
6920
|
-
const { ref: observe, inView: nearViewport } =
|
|
6927
|
+
const { ref: observe, inView: nearViewport } = _chunk3RYIF4OWcjs.useInView.call(void 0, {
|
|
6921
6928
|
rootMargin: _chunkCW3ML76Ucjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
6922
6929
|
initial: true
|
|
6923
6930
|
});
|
|
@@ -6925,7 +6932,7 @@ function MarqueeWall({
|
|
|
6925
6932
|
observe(containerRef.current);
|
|
6926
6933
|
return () => observe(null);
|
|
6927
6934
|
}, [observe]);
|
|
6928
|
-
const autoplay =
|
|
6935
|
+
const autoplay = _chunk3RYIF4OWcjs.useAutoplay.call(void 0, nearViewport);
|
|
6929
6936
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
6930
6937
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
6931
6938
|
pointerInsideRef.current = false;
|
|
@@ -6938,7 +6945,7 @@ function MarqueeWall({
|
|
|
6938
6945
|
if (e.pointerType === "touch") return;
|
|
6939
6946
|
pointerInsideRef.current = false;
|
|
6940
6947
|
}, []);
|
|
6941
|
-
|
|
6948
|
+
_chunk3RYIF4OWcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
6942
6949
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
6943
6950
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
6944
6951
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -6991,7 +6998,7 @@ function MarqueeWall({
|
|
|
6991
6998
|
if (!sync) return void 0;
|
|
6992
6999
|
return sync.register(member);
|
|
6993
7000
|
}, [sync, member]);
|
|
6994
|
-
const { posRef, wrap } =
|
|
7001
|
+
const { posRef, wrap } = _chunk3RYIF4OWcjs.useMarqueeEngine.call(void 0, {
|
|
6995
7002
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
6996
7003
|
speed,
|
|
6997
7004
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -7560,7 +7567,7 @@ function MingoChatHistoryRow({
|
|
|
7560
7567
|
hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
|
|
7561
7568
|
),
|
|
7562
7569
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7563
|
-
|
|
7570
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
7564
7571
|
{
|
|
7565
7572
|
variant: "round",
|
|
7566
7573
|
sizePx: 24,
|
|
@@ -7768,7 +7775,7 @@ function MingoWelcome({
|
|
|
7768
7775
|
onScroll: updateScrollFade,
|
|
7769
7776
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7770
7777
|
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: [
|
|
7771
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7772
7779
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7773
7780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7774
7781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7890,8 +7897,8 @@ function GuideWelcome({
|
|
|
7890
7897
|
icon && (icon.name || icon.url) ? (
|
|
7891
7898
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7892
7899
|
// match the default Mingo mark (48px).
|
|
7893
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7894
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7901
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7895
7902
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7896
7903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7897
7904
|
subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-3/4 max-w-80 rounded-sm" }) }) : null
|
|
@@ -8093,9 +8100,9 @@ function MingoArchiveList({
|
|
|
8093
8100
|
title: dialog.title || "Untitled Chat",
|
|
8094
8101
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _177 => _177(dialog.id)]),
|
|
8095
8102
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8096
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8103
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkPE26VSWTcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8097
8104
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8098
|
-
|
|
8105
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
8099
8106
|
{
|
|
8100
8107
|
variant: "round",
|
|
8101
8108
|
sizePx: 24,
|
|
@@ -8182,7 +8189,7 @@ function MingoChatHeader({
|
|
|
8182
8189
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8183
8190
|
] }),
|
|
8184
8191
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8185
|
-
|
|
8192
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
8186
8193
|
{
|
|
8187
8194
|
variant: "round",
|
|
8188
8195
|
sizePx: 32,
|
|
@@ -8219,7 +8226,7 @@ function ChatHeaderSearchField({
|
|
|
8219
8226
|
className
|
|
8220
8227
|
}) {
|
|
8221
8228
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8222
|
-
const debounced =
|
|
8229
|
+
const debounced = _chunk3RYIF4OWcjs.useDebounce.call(void 0, value, 300);
|
|
8223
8230
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8224
8231
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
8225
8232
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -8458,7 +8465,7 @@ function MingoChatRail({
|
|
|
8458
8465
|
"data-accent": "mingo",
|
|
8459
8466
|
"aria-label": "Mingo chats",
|
|
8460
8467
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8468
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8462
8469
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8463
8470
|
_chunk2QMBXGMQcjs.Button,
|
|
8464
8471
|
{
|
|
@@ -8738,8 +8745,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8738
8745
|
const save = () => {
|
|
8739
8746
|
if (canSave) onSave(name.trim());
|
|
8740
8747
|
};
|
|
8741
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8748
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8749
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZKWF6NHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZKWF6NHcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8743
8750
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8744
8751
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8745
8752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8756,27 +8763,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8756
8763
|
}
|
|
8757
8764
|
)
|
|
8758
8765
|
] }),
|
|
8759
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8766
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.ModalFooter, { children: [
|
|
8760
8767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8761
8768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8762
8769
|
] })
|
|
8763
8770
|
] });
|
|
8764
8771
|
}
|
|
8765
8772
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8766
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8767
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8773
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZKWF6NHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZKWF6NHcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8768
8775
|
/* @__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." }),
|
|
8769
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8776
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.ModalFooter, { children: [
|
|
8770
8777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8771
8778
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8772
8779
|
] })
|
|
8773
8780
|
] });
|
|
8774
8781
|
}
|
|
8775
8782
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8776
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8777
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8783
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8784
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZKWF6NHcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZKWF6NHcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8778
8785
|
/* @__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." }),
|
|
8779
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8786
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.ModalFooter, { children: [
|
|
8780
8787
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8781
8788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8782
8789
|
] })
|
|
@@ -8949,7 +8956,7 @@ function ChatPanelHeader({
|
|
|
8949
8956
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8950
8957
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8951
8958
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8952
|
-
|
|
8959
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
8953
8960
|
{
|
|
8954
8961
|
variant: "round",
|
|
8955
8962
|
sizePx: 32,
|
|
@@ -9107,8 +9114,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9107
9114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9108
9115
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9109
9116
|
status === "sniffing" && "Checking\u2026",
|
|
9110
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9111
|
-
status === "ready" &&
|
|
9117
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkEQZXJUYVcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9118
|
+
status === "ready" && _chunkEQZXJUYVcjs.formatFileSize.call(void 0, file.size),
|
|
9112
9119
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9113
9120
|
] })
|
|
9114
9121
|
] }),
|
|
@@ -9356,7 +9363,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9356
9363
|
}, ref) => {
|
|
9357
9364
|
const icon = getProviderIcon(provider);
|
|
9358
9365
|
const name = displayName || modelName;
|
|
9359
|
-
const isV2 = useChatAppearance() ===
|
|
9366
|
+
const isV2 = useChatAppearance() === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
9360
9367
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9361
9368
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", "text-h6", className), ...props, children: [
|
|
9362
9369
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9485,7 +9492,7 @@ function ChatComposer({
|
|
|
9485
9492
|
}, [entityTypes]);
|
|
9486
9493
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9487
9494
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9488
|
-
|
|
9495
|
+
_chunkGZKWF6NHcjs.ChatInput,
|
|
9489
9496
|
{
|
|
9490
9497
|
ref: inputRef,
|
|
9491
9498
|
onSend,
|
|
@@ -9645,17 +9652,17 @@ function ChatArchivePage(props) {
|
|
|
9645
9652
|
|
|
9646
9653
|
// src/components/chat/utils/execute-navigation.ts
|
|
9647
9654
|
function isForeignOriginHref(href) {
|
|
9648
|
-
return /^https?:\/\//i.test(href) && !
|
|
9655
|
+
return /^https?:\/\//i.test(href) && !_chunk22XAPV6Ncjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9649
9656
|
}
|
|
9650
9657
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9651
|
-
const isNewTab = runtime ?
|
|
9658
|
+
const isNewTab = runtime ? _chunk22XAPV6Ncjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9652
9659
|
if (isNewTab) {
|
|
9653
9660
|
if (_optionalChain([runtime, 'optionalAccess', _203 => _203.navigation, 'access', _204 => _204.openExternal])) runtime.navigation.openExternal(href);
|
|
9654
|
-
else window.open(href, "_blank",
|
|
9661
|
+
else window.open(href, "_blank", _chunk22XAPV6Ncjs.NEW_TAB_FEATURES);
|
|
9655
9662
|
return;
|
|
9656
9663
|
}
|
|
9657
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9658
|
-
if (target.includes("#") &&
|
|
9664
|
+
const target = isForeignOriginHref(href) ? href : _chunk22XAPV6Ncjs.stripSameOriginToPath.call(void 0, href);
|
|
9665
|
+
if (target.includes("#") && _chunk3RYIF4OWcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunk3RYIF4OWcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9659
9666
|
return;
|
|
9660
9667
|
}
|
|
9661
9668
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.navigate, 'optionalCall', _207 => _207({ href, path, targetPlatform })]), () => ( false));
|
|
@@ -9705,8 +9712,8 @@ function useNavLinkViaRuntime({
|
|
|
9705
9712
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9706
9713
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9707
9714
|
const panel = useChatPanel();
|
|
9708
|
-
const resolvedHref =
|
|
9709
|
-
const isNewTab =
|
|
9715
|
+
const resolvedHref = _chunk22XAPV6Ncjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9716
|
+
const isNewTab = _chunk22XAPV6Ncjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9710
9717
|
const onClick = (e) => {
|
|
9711
9718
|
_optionalChain([onClickProp, 'optionalCall', _208 => _208(e)]);
|
|
9712
9719
|
if (e.defaultPrevented) return;
|
|
@@ -9720,7 +9727,7 @@ function useNavLinkViaRuntime({
|
|
|
9720
9727
|
});
|
|
9721
9728
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
|
|
9722
9729
|
};
|
|
9723
|
-
const attrs =
|
|
9730
|
+
const attrs = _chunk22XAPV6Ncjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9724
9731
|
return {
|
|
9725
9732
|
href: resolvedHref,
|
|
9726
9733
|
...attrs,
|
|
@@ -9865,9 +9872,9 @@ function UserDisplay({
|
|
|
9865
9872
|
}) {
|
|
9866
9873
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
9867
9874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9868
|
-
|
|
9875
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
9869
9876
|
{
|
|
9870
|
-
src: avatarUrl ?
|
|
9877
|
+
src: avatarUrl ? _chunk22XAPV6Ncjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9871
9878
|
fallback: name,
|
|
9872
9879
|
alt: name,
|
|
9873
9880
|
sizePx: size,
|
|
@@ -9975,7 +9982,7 @@ function ManagedCell({
|
|
|
9975
9982
|
}) {
|
|
9976
9983
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
9977
9984
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
9978
|
-
const cloneRef =
|
|
9985
|
+
const cloneRef = _chunk3RYIF4OWcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
9979
9986
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9980
9987
|
"div",
|
|
9981
9988
|
{
|
|
@@ -10095,12 +10102,12 @@ function CardsStrip(props) {
|
|
|
10095
10102
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
10096
10103
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
10097
10104
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
10098
|
-
const { ref: observe, inView: nearViewport } =
|
|
10105
|
+
const { ref: observe, inView: nearViewport } = _chunk3RYIF4OWcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
10099
10106
|
_react.useEffect.call(void 0, () => {
|
|
10100
10107
|
observe(wrapperRef.current);
|
|
10101
10108
|
return () => observe(null);
|
|
10102
10109
|
}, [observe]);
|
|
10103
|
-
const autoplay =
|
|
10110
|
+
const autoplay = _chunk3RYIF4OWcjs.useAutoplay.call(void 0, nearViewport);
|
|
10104
10111
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
10105
10112
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
10106
10113
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -10147,7 +10154,7 @@ function CardsStrip(props) {
|
|
|
10147
10154
|
const current = activeKeyRef.current;
|
|
10148
10155
|
if (current !== null) deactivate(current);
|
|
10149
10156
|
}, [deactivate]);
|
|
10150
|
-
|
|
10157
|
+
_chunk3RYIF4OWcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
10151
10158
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
10152
10159
|
const scroller = scrollerRef.current;
|
|
10153
10160
|
if (!scroller) return;
|
|
@@ -10168,7 +10175,7 @@ function CardsStrip(props) {
|
|
|
10168
10175
|
},
|
|
10169
10176
|
[reverse, seamBuffer]
|
|
10170
10177
|
);
|
|
10171
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
10178
|
+
const { posRef: marqueePosRef, glideBy } = _chunk3RYIF4OWcjs.useMarqueeEngine.call(void 0, {
|
|
10172
10179
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
10173
10180
|
// engine would keep scheduling frames forever), same treatment as
|
|
10174
10181
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -10317,7 +10324,7 @@ function CardsStrip(props) {
|
|
|
10317
10324
|
},
|
|
10318
10325
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10319
10326
|
children: [
|
|
10320
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10327
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk22XAPV6Ncjs.SECTION_HEADING_CLASS} break-words`, children: _chunk22XAPV6Ncjs.accentSentenceMarks.call(void 0, title) }),
|
|
10321
10328
|
headerSlot,
|
|
10322
10329
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10323
10330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10469,7 +10476,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10469
10476
|
|
|
10470
10477
|
function VideoBitesStrip({
|
|
10471
10478
|
bites,
|
|
10472
|
-
title =
|
|
10479
|
+
title = _chunk22XAPV6Ncjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10473
10480
|
showTitle = true,
|
|
10474
10481
|
filterPublished = true,
|
|
10475
10482
|
profile = null,
|
|
@@ -10482,7 +10489,7 @@ function VideoBitesStrip({
|
|
|
10482
10489
|
cardHeightMobile = 300,
|
|
10483
10490
|
showChevrons = true,
|
|
10484
10491
|
onBiteNavigate,
|
|
10485
|
-
sortComparator =
|
|
10492
|
+
sortComparator = _chunk22XAPV6Ncjs.sortBitesByCreatedAtDesc,
|
|
10486
10493
|
className
|
|
10487
10494
|
}) {
|
|
10488
10495
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -10648,7 +10655,7 @@ function VideoBiteCard({
|
|
|
10648
10655
|
},
|
|
10649
10656
|
children: [
|
|
10650
10657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10651
|
-
|
|
10658
|
+
_chunk22XAPV6Ncjs.VideoHoverPreviewSurface,
|
|
10652
10659
|
{
|
|
10653
10660
|
url: bite.url,
|
|
10654
10661
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10719,7 +10726,7 @@ function EntityVideoSection({
|
|
|
10719
10726
|
title = "Video",
|
|
10720
10727
|
videoSummary,
|
|
10721
10728
|
videoBites,
|
|
10722
|
-
bitesTitle =
|
|
10729
|
+
bitesTitle = _chunk22XAPV6Ncjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10723
10730
|
filterPublishedBites = true,
|
|
10724
10731
|
bitesProfile = null,
|
|
10725
10732
|
bitesHref,
|
|
@@ -10765,7 +10772,7 @@ function EntityVideoSection({
|
|
|
10765
10772
|
)
|
|
10766
10773
|
] }),
|
|
10767
10774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10768
|
-
|
|
10775
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10769
10776
|
{
|
|
10770
10777
|
kind: fullVideoKind,
|
|
10771
10778
|
url: fullVideoUrl,
|
|
@@ -10777,7 +10784,7 @@ function EntityVideoSection({
|
|
|
10777
10784
|
}
|
|
10778
10785
|
) }),
|
|
10779
10786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10780
|
-
|
|
10787
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10781
10788
|
{
|
|
10782
10789
|
url: highlightVideoUrl,
|
|
10783
10790
|
poster: highlightVideoThumbnail,
|
|
@@ -10786,7 +10793,7 @@ function EntityVideoSection({
|
|
|
10786
10793
|
}
|
|
10787
10794
|
) })
|
|
10788
10795
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10789
|
-
|
|
10796
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10790
10797
|
{
|
|
10791
10798
|
kind: fullVideoKind,
|
|
10792
10799
|
url: fullVideoUrl,
|
|
@@ -10797,7 +10804,7 @@ function EntityVideoSection({
|
|
|
10797
10804
|
priority
|
|
10798
10805
|
}
|
|
10799
10806
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10800
|
-
|
|
10807
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10801
10808
|
{
|
|
10802
10809
|
url: highlightVideoUrl,
|
|
10803
10810
|
poster: highlightVideoThumbnail,
|
|
@@ -10807,7 +10814,7 @@ function EntityVideoSection({
|
|
|
10807
10814
|
}
|
|
10808
10815
|
) : null),
|
|
10809
10816
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10810
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10817
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunk22XAPV6Ncjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10811
10818
|
/* @__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 }) })
|
|
10812
10819
|
] }),
|
|
10813
10820
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10869,14 +10876,14 @@ function designDocPeople(doc) {
|
|
|
10869
10876
|
return people;
|
|
10870
10877
|
}
|
|
10871
10878
|
function designDocMetaLine(doc) {
|
|
10872
|
-
return [_optionalChain([doc, 'access', _244 => _244.author, 'optionalAccess', _245 => _245.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10879
|
+
return [_optionalChain([doc, 'access', _244 => _244.author, 'optionalAccess', _245 => _245.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunk22XAPV6Ncjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10873
10880
|
}
|
|
10874
10881
|
function DesignDocCardSkeleton() {
|
|
10875
10882
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10876
10883
|
"div",
|
|
10877
10884
|
{
|
|
10878
10885
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10879
|
-
|
|
10886
|
+
_chunk22XAPV6Ncjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
10880
10887
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
10881
10888
|
),
|
|
10882
10889
|
children: [
|
|
@@ -10904,7 +10911,7 @@ function DesignDocCardSkeleton() {
|
|
|
10904
10911
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10905
10912
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10906
10913
|
const people = designDocPeople(doc);
|
|
10907
|
-
const link =
|
|
10914
|
+
const link = _chunk22XAPV6Ncjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10908
10915
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10909
10916
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
10910
10917
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -10912,7 +10919,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10912
10919
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[20px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
10913
10920
|
] }),
|
|
10914
10921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10915
|
-
|
|
10922
|
+
_chunk22XAPV6Ncjs.StatusBadge,
|
|
10916
10923
|
{
|
|
10917
10924
|
text: readiness.label,
|
|
10918
10925
|
colorScheme: readiness.scheme,
|
|
@@ -10922,16 +10929,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10922
10929
|
}
|
|
10923
10930
|
)
|
|
10924
10931
|
] }),
|
|
10925
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
10926
10933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-[72px] items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
10927
10934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10928
10935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
10929
10936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
10930
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10937
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7YZGRAVcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10931
10938
|
] })
|
|
10932
10939
|
] });
|
|
10933
10940
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10934
|
-
|
|
10941
|
+
_chunk22XAPV6Ncjs.CONTENT_CARD_FRAME_CLASS,
|
|
10935
10942
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
10936
10943
|
className
|
|
10937
10944
|
);
|
|
@@ -11041,7 +11048,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11041
11048
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11042
11049
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11043
11050
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11044
|
-
const dateText =
|
|
11051
|
+
const dateText = _chunkEQZXJUYVcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11045
11052
|
const idLabel = formatActivityId(item.id, kind);
|
|
11046
11053
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11047
11054
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11075,26 +11082,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11075
11082
|
metaParts.push(
|
|
11076
11083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11077
11084
|
);
|
|
11078
|
-
const href =
|
|
11085
|
+
const href = _chunk22XAPV6Ncjs.safeHref.call(void 0, item.url);
|
|
11079
11086
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11080
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11081
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11082
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11087
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11088
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11089
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11083
11090
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11084
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11085
11092
|
] }),
|
|
11086
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11093
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11087
11094
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11088
11095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11089
11096
|
] }, i)) }) }),
|
|
11090
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11097
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_SUMMARY, children: _chunk22XAPV6Ncjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11091
11098
|
] }),
|
|
11092
11099
|
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
|
|
11093
11100
|
] });
|
|
11094
11101
|
if (anchorProps) {
|
|
11095
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11102
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11096
11103
|
}
|
|
11097
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11104
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11098
11105
|
}
|
|
11099
11106
|
function GitHubActivityCardSkeleton({
|
|
11100
11107
|
variant = "compact",
|
|
@@ -11111,12 +11118,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11111
11118
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-3 w-20 shrink-0 rounded" })
|
|
11112
11119
|
] });
|
|
11113
11120
|
}
|
|
11114
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11115
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className:
|
|
11116
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11117
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11118
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11121
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11122
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: _chunk22XAPV6Ncjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11123
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: "h-3.5 w-2/3 rounded" }) }),
|
|
11125
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: "h-3 w-1/2 rounded" }) }),
|
|
11126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_SUMMARY, children: _chunk22XAPV6Ncjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11120
11127
|
] }),
|
|
11121
11128
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: "h-3.5 w-3.5 rounded" }) })
|
|
11122
11129
|
] });
|
|
@@ -11128,29 +11135,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11128
11135
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11129
11136
|
const goalsCount = _optionalChain([campaign, 'access', _246 => _246.goals, 'optionalAccess', _247 => _247.length]) || 0;
|
|
11130
11137
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11131
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11132
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11133
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11134
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11135
|
-
campaign.start_date ?
|
|
11138
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
11139
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
11141
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_SUBTITLE, children: [
|
|
11142
|
+
campaign.start_date ? _chunk22XAPV6Ncjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
11136
11143
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11137
11144
|
"Marketing campaign"
|
|
11138
11145
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk22XAPV6Ncjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11140
11147
|
] })
|
|
11141
11148
|
] });
|
|
11142
11149
|
if (anchorProps) {
|
|
11143
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11150
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
11144
11151
|
}
|
|
11145
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
11152
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
11146
11153
|
}
|
|
11147
11154
|
function CampaignCardAdminSkeleton({ className }) {
|
|
11148
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11149
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className:
|
|
11150
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11152
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11153
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11155
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11156
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: _chunk22XAPV6Ncjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11157
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: "h-3.5 w-3/5 rounded" }) }),
|
|
11159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: "h-3 w-1/2 rounded" }) }),
|
|
11160
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className: "h-3 w-11/12 rounded" }) })
|
|
11154
11161
|
] })
|
|
11155
11162
|
] });
|
|
11156
11163
|
}
|
|
@@ -11241,7 +11248,7 @@ function VendorIcon({
|
|
|
11241
11248
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11242
11249
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11243
11250
|
{
|
|
11244
|
-
src:
|
|
11251
|
+
src: _chunk22XAPV6Ncjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11245
11252
|
alt: `${vendor.title} logo`,
|
|
11246
11253
|
width,
|
|
11247
11254
|
height,
|
|
@@ -11271,8 +11278,8 @@ function useChatCardItem(type, id) {
|
|
|
11271
11278
|
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url);
|
|
11272
11279
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11273
11280
|
const data = await res.json();
|
|
11274
|
-
const items =
|
|
11275
|
-
const match = items.find((it) =>
|
|
11281
|
+
const items = _chunk22XAPV6Ncjs.extractCardItems.call(void 0, type, data);
|
|
11282
|
+
const match = items.find((it) => _chunk22XAPV6Ncjs.extractItemId.call(void 0, type, it) === id);
|
|
11276
11283
|
return _nullishCoalesce(match, () => ( null));
|
|
11277
11284
|
},
|
|
11278
11285
|
enabled: !!url && id.length > 0,
|
|
@@ -11314,7 +11321,7 @@ var TRAILING_BUTTON_CLASS = "flex w-[56px] shrink-0 items-center justify-center
|
|
|
11314
11321
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11315
11322
|
if (imageSrc) {
|
|
11316
11323
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11317
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children:
|
|
11324
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunkEQZXJUYVcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11318
11325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11319
11326
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11320
11327
|
{
|
|
@@ -11383,7 +11390,7 @@ function MingoInfoCard({
|
|
|
11383
11390
|
status ? (
|
|
11384
11391
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11385
11392
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkEQZXJUYVcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
|
|
11387
11394
|
) : null
|
|
11388
11395
|
] });
|
|
11389
11396
|
const contentClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -11474,7 +11481,7 @@ function resolveFetchedCardHref({
|
|
|
11474
11481
|
composeContentUrl
|
|
11475
11482
|
}) {
|
|
11476
11483
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11477
|
-
const canonicalType =
|
|
11484
|
+
const canonicalType = _chunk22XAPV6Ncjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11478
11485
|
return composeContentUrl({
|
|
11479
11486
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11480
11487
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11504,7 +11511,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11504
11511
|
}
|
|
11505
11512
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11506
11513
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11507
|
-
const icon = iconName ?
|
|
11514
|
+
const icon = iconName ? _chunkR3TWQ3ZJcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11508
11515
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11509
11516
|
return { icon, iconLabel };
|
|
11510
11517
|
}
|
|
@@ -11524,16 +11531,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11524
11531
|
if (docTarget) {
|
|
11525
11532
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11526
11533
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11527
|
-
href = _nullishCoalesce(
|
|
11534
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11528
11535
|
targetPlatform = docTarget.platform;
|
|
11529
11536
|
} else if (ctx.chipBasePlatform) {
|
|
11530
11537
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11531
|
-
href = _nullishCoalesce(
|
|
11538
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11532
11539
|
targetPlatform = ctx.chipBasePlatform;
|
|
11533
11540
|
} else if (ctx.baseRoute) {
|
|
11534
11541
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11535
11542
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11536
|
-
href = _nullishCoalesce(
|
|
11543
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11537
11544
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11538
11545
|
}
|
|
11539
11546
|
}
|
|
@@ -11542,15 +11549,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11542
11549
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11543
11550
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11544
11551
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11545
|
-
type:
|
|
11552
|
+
type: _chunk22XAPV6Ncjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11546
11553
|
identifier: idValue,
|
|
11547
11554
|
externalUrl: row.externalUrl,
|
|
11548
11555
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11549
11556
|
});
|
|
11550
|
-
href = composed.href ? _nullishCoalesce(
|
|
11557
|
+
href = composed.href ? _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11551
11558
|
targetPlatform = composed.targetPlatform;
|
|
11552
11559
|
} else if (row.externalUrl) {
|
|
11553
|
-
href = _nullishCoalesce(
|
|
11560
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11554
11561
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11555
11562
|
}
|
|
11556
11563
|
const documentType = row.documentType;
|
|
@@ -11617,7 +11624,7 @@ function resolveCardDestination({
|
|
|
11617
11624
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _261 => _261.fallbackHref, 'optionalCall', _262 => _262(item)]), () => ( null)),
|
|
11618
11625
|
allowComposed: !entry.noComposedHref
|
|
11619
11626
|
});
|
|
11620
|
-
const url = choice ? _nullishCoalesce(
|
|
11627
|
+
const url = choice ? _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11621
11628
|
if (choice && url) {
|
|
11622
11629
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11623
11630
|
}
|
|
@@ -11630,11 +11637,11 @@ function resolveCardDestination({
|
|
|
11630
11637
|
|
|
11631
11638
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11632
11639
|
const label = entityLabel || "Item";
|
|
11633
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11634
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11635
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11636
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11640
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11642
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11643
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk22XAPV6Ncjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11638
11645
|
label,
|
|
11639
11646
|
" deleted",
|
|
11640
11647
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11680,7 +11687,7 @@ function GitHubChatCard({
|
|
|
11680
11687
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11681
11688
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11682
11689
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11683
|
-
const dateText =
|
|
11690
|
+
const dateText = _chunkEQZXJUYVcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11684
11691
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11685
11692
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11686
11693
|
MingoInfoCard,
|
|
@@ -11689,7 +11696,7 @@ function GitHubChatCard({
|
|
|
11689
11696
|
description,
|
|
11690
11697
|
icon: githubKindIcon(kind),
|
|
11691
11698
|
status,
|
|
11692
|
-
anchorProps:
|
|
11699
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11693
11700
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11694
11701
|
menuAriaLabel: "Activity actions"
|
|
11695
11702
|
}
|
|
@@ -11836,7 +11843,7 @@ function HubspotTicketChatCard({
|
|
|
11836
11843
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11837
11844
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11838
11845
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11839
|
-
anchorProps:
|
|
11846
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11840
11847
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11841
11848
|
label: "Open Ticket Details",
|
|
11842
11849
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11859,7 +11866,7 @@ function FaqChatCard({
|
|
|
11859
11866
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11860
11867
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11861
11868
|
status: { label: statusLabel, variant: "grey" },
|
|
11862
|
-
anchorProps:
|
|
11869
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11863
11870
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11864
11871
|
menuAriaLabel: "FAQ actions"
|
|
11865
11872
|
}
|
|
@@ -11879,7 +11886,7 @@ function SlackChatCard({
|
|
|
11879
11886
|
title,
|
|
11880
11887
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11881
11888
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11882
|
-
anchorProps:
|
|
11889
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11883
11890
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11884
11891
|
menuAriaLabel: "Message actions"
|
|
11885
11892
|
}
|
|
@@ -11897,7 +11904,7 @@ function GlyphChatCard({
|
|
|
11897
11904
|
title: chatRef.title,
|
|
11898
11905
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11899
11906
|
icon,
|
|
11900
|
-
anchorProps:
|
|
11907
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11901
11908
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11902
11909
|
menuAriaLabel: "Card actions"
|
|
11903
11910
|
}
|
|
@@ -11915,20 +11922,20 @@ function TrustCenterChatCard({
|
|
|
11915
11922
|
}) {
|
|
11916
11923
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11917
11924
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11918
|
-
const summary =
|
|
11925
|
+
const summary = _chunk22XAPV6Ncjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11919
11926
|
const leadFramework = frameworks[0];
|
|
11920
11927
|
const lead = leadFramework ? {
|
|
11921
|
-
label:
|
|
11922
|
-
color:
|
|
11928
|
+
label: _chunk22XAPV6Ncjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11929
|
+
color: _chunk22XAPV6Ncjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11923
11930
|
} : void 0;
|
|
11924
11931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11925
11932
|
MingoInfoCard,
|
|
11926
11933
|
{
|
|
11927
|
-
title:
|
|
11928
|
-
description: summary ||
|
|
11934
|
+
title: _chunk22XAPV6Ncjs.TRUST_CENTER_TITLE,
|
|
11935
|
+
description: summary || _chunk22XAPV6Ncjs.TRUST_CENTER_TAGLINE,
|
|
11929
11936
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11930
11937
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11931
|
-
anchorProps:
|
|
11938
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11932
11939
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11933
11940
|
label: "View trust center",
|
|
11934
11941
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -11950,7 +11957,7 @@ function DataRoomDocChatCard({
|
|
|
11950
11957
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11951
11958
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
11952
11959
|
status: { label: badgeText, variant: "grey" },
|
|
11953
|
-
anchorProps:
|
|
11960
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11954
11961
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11955
11962
|
menuAriaLabel: "Document actions"
|
|
11956
11963
|
}
|
|
@@ -11969,7 +11976,7 @@ function GenericFinancialChatCard({
|
|
|
11969
11976
|
title: chatRef.title,
|
|
11970
11977
|
description: subtitle,
|
|
11971
11978
|
icon,
|
|
11972
|
-
anchorProps:
|
|
11979
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11973
11980
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11974
11981
|
menuAriaLabel: "Document actions"
|
|
11975
11982
|
}
|
|
@@ -12055,7 +12062,7 @@ function CampaignChatCard({
|
|
|
12055
12062
|
}) {
|
|
12056
12063
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12057
12064
|
const meta = [
|
|
12058
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12065
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunk22XAPV6Ncjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12059
12066
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12060
12067
|
"Marketing campaign"
|
|
12061
12068
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12094,7 +12101,7 @@ function EntityMingoCard({
|
|
|
12094
12101
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12095
12102
|
icon: fallbackIcon,
|
|
12096
12103
|
status,
|
|
12097
|
-
anchorProps:
|
|
12104
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12098
12105
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12099
12106
|
menuAriaLabel
|
|
12100
12107
|
}
|
|
@@ -12106,7 +12113,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12106
12113
|
function statusPill(status) {
|
|
12107
12114
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12108
12115
|
if (!s) return void 0;
|
|
12109
|
-
const scheme =
|
|
12116
|
+
const scheme = _chunk22XAPV6Ncjs.getStatusColorScheme.call(void 0, s);
|
|
12110
12117
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12111
12118
|
return { label: s, variant };
|
|
12112
12119
|
}
|
|
@@ -12197,7 +12204,7 @@ function DesignDocChatCard({
|
|
|
12197
12204
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12198
12205
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12199
12206
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12200
|
-
anchorProps:
|
|
12207
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12201
12208
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12202
12209
|
menuAriaLabel: "Design doc actions"
|
|
12203
12210
|
}
|
|
@@ -12215,7 +12222,7 @@ function InvestorUpdateChatCard({
|
|
|
12215
12222
|
EntityMingoCard,
|
|
12216
12223
|
{
|
|
12217
12224
|
title,
|
|
12218
|
-
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) ||
|
|
12225
|
+
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunk22XAPV6Ncjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
|
|
12219
12226
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12220
12227
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12221
12228
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12259,7 +12266,7 @@ function ProgramChatCard({
|
|
|
12259
12266
|
discuss
|
|
12260
12267
|
}) {
|
|
12261
12268
|
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 });
|
|
12262
|
-
const { line: meta } =
|
|
12269
|
+
const { line: meta } = _chunk22XAPV6Ncjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk22XAPV6Ncjs.programMetaFormatters.call(void 0, _chunk22XAPV6Ncjs.PROGRAM_META_RENDERERS));
|
|
12263
12270
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12264
12271
|
EntityMingoCard,
|
|
12265
12272
|
{
|
|
@@ -12285,7 +12292,7 @@ function RoadmapChatCard({
|
|
|
12285
12292
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12286
12293
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12287
12294
|
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 });
|
|
12288
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12295
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12289
12296
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12290
12297
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12291
12298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12351,11 +12358,11 @@ function refText(ref, key) {
|
|
|
12351
12358
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12352
12359
|
}
|
|
12353
12360
|
function VendorGlyph({ title, logoUrl }) {
|
|
12354
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12361
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12355
12362
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12356
12363
|
}
|
|
12357
12364
|
function SitePageGlyph({ iconName }) {
|
|
12358
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12365
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12359
12366
|
}
|
|
12360
12367
|
var GITHUB_CARD_CONFIGS = {
|
|
12361
12368
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12472,7 +12479,7 @@ function programRegistryEntries() {
|
|
|
12472
12479
|
label: cfg.label,
|
|
12473
12480
|
contentRefType: cfg.contentRefType,
|
|
12474
12481
|
bareInline: true,
|
|
12475
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12482
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12476
12483
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12477
12484
|
ProgramChatCard,
|
|
12478
12485
|
{
|
|
@@ -12513,7 +12520,7 @@ function roadmapRegistryEntries() {
|
|
|
12513
12520
|
bareInline: true,
|
|
12514
12521
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12515
12522
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12516
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12523
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12517
12524
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12518
12525
|
RoadmapChatCard,
|
|
12519
12526
|
{
|
|
@@ -12571,12 +12578,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12571
12578
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12572
12579
|
// single matched row. Destination is the public page unless the host
|
|
12573
12580
|
// re-homes the type (`composeContentUrl` override).
|
|
12574
|
-
[
|
|
12581
|
+
[_chunk22XAPV6Ncjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12575
12582
|
label: "Trust center",
|
|
12576
12583
|
bareInline: true,
|
|
12577
|
-
contentRefType:
|
|
12584
|
+
contentRefType: _chunk22XAPV6Ncjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12578
12585
|
noComposedHref: true,
|
|
12579
|
-
fallbackHref: () =>
|
|
12586
|
+
fallbackHref: () => _chunk22XAPV6Ncjs.TRUST_CENTER_PAGE_PATH,
|
|
12580
12587
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12581
12588
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12582
12589
|
},
|
|
@@ -12602,7 +12609,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12602
12609
|
label: "Blog post",
|
|
12603
12610
|
contentRefType: "blog_post_existing",
|
|
12604
12611
|
bareInline: true,
|
|
12605
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12612
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.BlogCardSkeleton, { size: "sm" }),
|
|
12606
12613
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12607
12614
|
BlogChatCard,
|
|
12608
12615
|
{
|
|
@@ -12619,7 +12626,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12619
12626
|
label: "Case study",
|
|
12620
12627
|
contentRefType: "case_study",
|
|
12621
12628
|
bareInline: true,
|
|
12622
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12629
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12623
12630
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12624
12631
|
CaseStudyChatCard,
|
|
12625
12632
|
{
|
|
@@ -12644,7 +12651,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12644
12651
|
label: "Customer interview",
|
|
12645
12652
|
contentRefType: "customer_interview",
|
|
12646
12653
|
bareInline: true,
|
|
12647
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12654
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12648
12655
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12649
12656
|
CustomerInterviewChatCard,
|
|
12650
12657
|
{
|
|
@@ -12660,9 +12667,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12660
12667
|
label: "Product release",
|
|
12661
12668
|
contentRefType: "product_release",
|
|
12662
12669
|
bareInline: true,
|
|
12663
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12670
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12664
12671
|
render: (item, chatRef, opts) => {
|
|
12665
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => (
|
|
12672
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunk22XAPV6Ncjs.defaultBuildProductReleaseCardProps));
|
|
12666
12673
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12667
12674
|
ProductReleaseChatCard,
|
|
12668
12675
|
{
|
|
@@ -12680,7 +12687,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12680
12687
|
label: "Investor update",
|
|
12681
12688
|
contentRefType: "investor_update",
|
|
12682
12689
|
bareInline: true,
|
|
12683
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12690
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12684
12691
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12685
12692
|
InvestorUpdateChatCard,
|
|
12686
12693
|
{
|
|
@@ -12698,7 +12705,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12698
12705
|
bareInline: true,
|
|
12699
12706
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12700
12707
|
displayAction: true,
|
|
12701
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12708
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12702
12709
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12703
12710
|
OnboardingGuideChatCard,
|
|
12704
12711
|
{
|
|
@@ -12771,7 +12778,7 @@ function ChatCardLoader({
|
|
|
12771
12778
|
entry: fetchEntry,
|
|
12772
12779
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12773
12780
|
composeContentUrl: runtime.composeContentUrl,
|
|
12774
|
-
resolveHref: (href) =>
|
|
12781
|
+
resolveHref: (href) => _chunk22XAPV6Ncjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12775
12782
|
});
|
|
12776
12783
|
const hrefResolvedChatRef = {
|
|
12777
12784
|
...chatRef,
|
|
@@ -12782,12 +12789,12 @@ function ChatCardLoader({
|
|
|
12782
12789
|
};
|
|
12783
12790
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12784
12791
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12785
|
-
const isNewTab =
|
|
12792
|
+
const isNewTab = _chunk22XAPV6Ncjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12786
12793
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12787
12794
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12788
12795
|
const discuss = discussFn ? {
|
|
12789
12796
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12790
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12797
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12791
12798
|
run: () => discussFn(finalChatRef)
|
|
12792
12799
|
} : void 0;
|
|
12793
12800
|
const renderOpts = {
|
|
@@ -12896,12 +12903,12 @@ function makeBatchDedupKey(item) {
|
|
|
12896
12903
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12897
12904
|
}
|
|
12898
12905
|
function getChatTypeMessageType(chatType) {
|
|
12899
|
-
return chatType ===
|
|
12906
|
+
return chatType === _chunkGZKWF6NHcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12900
12907
|
}
|
|
12901
12908
|
function useChunkCatchup({
|
|
12902
12909
|
dialogId,
|
|
12903
12910
|
onChunkReceived,
|
|
12904
|
-
chatTypes = [
|
|
12911
|
+
chatTypes = [_chunkGZKWF6NHcjs.CHAT_TYPE.CLIENT],
|
|
12905
12912
|
fetchChunks
|
|
12906
12913
|
}) {
|
|
12907
12914
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13862,7 +13869,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13862
13869
|
return () => root.removeEventListener("click", onClick);
|
|
13863
13870
|
}, [viewUrlPrefix]);
|
|
13864
13871
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13865
|
-
|
|
13872
|
+
_chunk22XAPV6Ncjs.ImageGalleryModal,
|
|
13866
13873
|
{
|
|
13867
13874
|
images: state.images,
|
|
13868
13875
|
isOpen: state.isOpen,
|
|
@@ -15145,7 +15152,7 @@ function nullableText(value) {
|
|
|
15145
15152
|
}
|
|
15146
15153
|
function httpsUrl(value) {
|
|
15147
15154
|
const candidate = text(value);
|
|
15148
|
-
if (!candidate ||
|
|
15155
|
+
if (!candidate || _chunk22XAPV6Ncjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15149
15156
|
try {
|
|
15150
15157
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15151
15158
|
} catch (e19) {
|
|
@@ -15729,7 +15736,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15729
15736
|
const status = approvalStatuses[requestId] || "pending";
|
|
15730
15737
|
if (!displayInline(approvalType)) {
|
|
15731
15738
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15732
|
-
const summary = required ?
|
|
15739
|
+
const summary = required ? _chunkPE26VSWTcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15733
15740
|
pendingEscalated.set(requestId, {
|
|
15734
15741
|
command: summary,
|
|
15735
15742
|
explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
|
|
@@ -15762,7 +15769,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15762
15769
|
if (!call.requiresApproval) continue;
|
|
15763
15770
|
segments = accumulator.addApprovalRequest(
|
|
15764
15771
|
requestId,
|
|
15765
|
-
|
|
15772
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
15766
15773
|
call.toolExplanation,
|
|
15767
15774
|
approvalType,
|
|
15768
15775
|
status,
|
|
@@ -15841,7 +15848,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15841
15848
|
if (!call.requiresApproval) continue;
|
|
15842
15849
|
segments = accumulator.addApprovalRequest(
|
|
15843
15850
|
requestId,
|
|
15844
|
-
|
|
15851
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
15845
15852
|
call.toolExplanation,
|
|
15846
15853
|
escalatedData.approvalType,
|
|
15847
15854
|
status
|
|
@@ -18018,12 +18025,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18018
18025
|
|
|
18019
18026
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18020
18027
|
function getOwnerDisplayName(owner) {
|
|
18021
|
-
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18028
|
+
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18022
18029
|
const { firstName, lastName } = owner.user;
|
|
18023
18030
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18024
18031
|
if (name) return name;
|
|
18025
18032
|
}
|
|
18026
|
-
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) ===
|
|
18033
|
+
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18027
18034
|
}
|
|
18028
18035
|
function getOwnerAvatar(owner) {
|
|
18029
18036
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
|
|
@@ -18286,7 +18293,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18286
18293
|
if (!call.requiresApproval) continue;
|
|
18287
18294
|
accumulator.addApprovalRequest(
|
|
18288
18295
|
event.requestId,
|
|
18289
|
-
|
|
18296
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
18290
18297
|
call.toolExplanation,
|
|
18291
18298
|
approvalType,
|
|
18292
18299
|
status,
|
|
@@ -18347,7 +18354,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18347
18354
|
if (!call.requiresApproval) continue;
|
|
18348
18355
|
accumulator.addApprovalRequest(
|
|
18349
18356
|
requestId,
|
|
18350
|
-
|
|
18357
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
18351
18358
|
call.toolExplanation,
|
|
18352
18359
|
escalatedData.approvalType,
|
|
18353
18360
|
status
|
|
@@ -18455,10 +18462,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18455
18462
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18456
18463
|
return;
|
|
18457
18464
|
}
|
|
18458
|
-
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) ===
|
|
18465
|
+
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN;
|
|
18459
18466
|
if (isUserMessage) {
|
|
18460
18467
|
flushAssistantMessage();
|
|
18461
|
-
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) ===
|
|
18468
|
+
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18462
18469
|
messageDataArray.forEach((data) => {
|
|
18463
18470
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18464
18471
|
const rawContext = data.contextItems;
|
|
@@ -18509,7 +18516,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18509
18516
|
});
|
|
18510
18517
|
const nextMsg = messages[index + 1];
|
|
18511
18518
|
const isLastMessage = index === messages.length - 1;
|
|
18512
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) ===
|
|
18519
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN);
|
|
18513
18520
|
if (isLastMessage || nextIsFromUser) {
|
|
18514
18521
|
flushAssistantMessage();
|
|
18515
18522
|
}
|