@flamingo-stack/openframe-frontend-core 0.0.761 → 0.0.762
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/{chunk-7Z4EQOIX.cjs → chunk-22XAPV6N.cjs} +35 -35
- package/dist/{chunk-AXBVN5SW.cjs → chunk-2IFCRPNP.cjs} +38 -38
- package/dist/{chunk-CSJO7ZGN.cjs → chunk-3RYIF4OW.cjs} +3 -3
- package/dist/{chunk-G6IK3HC5.cjs → chunk-3WPWUUFU.cjs} +32 -32
- package/dist/{chunk-35BJY5RR.cjs → chunk-47GZ33ND.cjs} +44 -44
- package/dist/{chunk-HQYWVNQL.cjs → chunk-4NGXJA3V.cjs} +4 -4
- package/dist/{chunk-GLQBCQOF.cjs → chunk-4VAMNI27.cjs} +59 -59
- package/dist/{chunk-4EM7HIIM.cjs → chunk-72XMAKDA.cjs} +566 -566
- package/dist/{chunk-B7AOUPBV.cjs → chunk-AXGTRPF6.cjs} +20 -20
- package/dist/{chunk-6T6O36LT.cjs → chunk-CEJDHCFZ.cjs} +89 -89
- package/dist/{chunk-NOFJH7MA.cjs → chunk-CZ3OVWUL.cjs} +14 -14
- package/dist/{chunk-GKRHGVB4.cjs → chunk-DYJWZIPU.cjs} +100 -100
- package/dist/{chunk-6M54EVOA.cjs → chunk-DZ6BYXQF.cjs} +28 -28
- 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-QU5K52OP.cjs → chunk-GY2JESOC.cjs} +2 -2
- package/dist/{chunk-LOFDIDSD.cjs → chunk-GZKWF6NH.cjs} +9 -9
- package/dist/{chunk-VAZTFCVY.cjs → chunk-J4P47JHM.cjs} +20 -20
- 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-TIV74DVS.cjs → chunk-N52HFJTK.cjs} +43 -43
- package/dist/{chunk-W2RM764D.cjs → chunk-NET74KSQ.cjs} +5 -4
- package/dist/{chunk-B27XV2TC.cjs → chunk-NS64LMVE.cjs} +10 -10
- package/dist/{chunk-OBXZDUC3.cjs → chunk-NSR7K57R.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-EMSOBT6R.cjs → chunk-PFXR3RF3.cjs} +6 -6
- package/dist/{chunk-D252ICCO.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-WI2OTGKC.cjs → chunk-SVP6DJFL.cjs} +2 -2
- package/dist/{chunk-H45OTVYI.cjs → chunk-TGVV7STM.cjs} +22 -22
- package/dist/{chunk-SUHPBFNU.cjs → chunk-TQPQKBBL.cjs} +242 -240
- package/dist/{chunk-5E6JHOGX.cjs → chunk-TSJUL6IH.cjs} +3 -3
- package/dist/{chunk-LOM3S64Z.cjs → chunk-TWAHPTWW.cjs} +8 -8
- package/dist/{chunk-VUWPLQBY.cjs → chunk-XCH7SPGI.cjs} +44 -44
- package/dist/{cloud-tenants-BDGV4N2T.cjs → cloud-tenants-M5SIL6QZ.cjs} +22 -22
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/index.cjs +15 -15
- 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 +22 -22
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +83 -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-Q5YHMXGV.cjs → devices-TZY7RF7M.cjs} +23 -23
- package/dist/{embeddable-chat-ST5IR6VN.cjs → embeddable-chat-HWQSP3DY.cjs} +93 -93
- package/dist/hooks/index.cjs +8 -8
- package/dist/index.cjs +28 -28
- package/dist/{knowledge-UJTJT36J.cjs → knowledge-UKC2BLQP.cjs} +23 -23
- package/dist/{logs-WMNITBLM.cjs → logs-MFVTQ5NN.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-TRXVBOH7.cjs → policies-BETELENB.cjs} +26 -26
- package/dist/{remote-session-SKNXYG6K.cjs → remote-session-F72S6I7J.cjs} +9 -9
- package/dist/{scripts-HECY7XDL.cjs → scripts-XDT3ZAXU.cjs} +29 -29
- package/dist/{software-update-NNFLEMYD.cjs → software-update-EW5X7R2X.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/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") {
|
|
@@ -5055,7 +5055,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5055
5055
|
const isError = role === "error";
|
|
5056
5056
|
const inheritedAppearance = useChatAppearance();
|
|
5057
5057
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5058
|
-
const isV2 = appearance ===
|
|
5058
|
+
const isV2 = appearance === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
5059
5059
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5060
5060
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
5061
5061
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -5241,9 +5241,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5241
5241
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5242
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 ? (
|
|
5243
5243
|
// An agent with no picture shows its packaged mark, never initials.
|
|
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,
|
|
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" }) })
|
|
5245
5245
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5246
|
-
|
|
5246
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
5247
5247
|
{
|
|
5248
5248
|
src: avatar || void 0,
|
|
5249
5249
|
alt: displayName,
|
|
@@ -5324,7 +5324,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5324
5324
|
);
|
|
5325
5325
|
} else if (segment.type === "approval_batch") {
|
|
5326
5326
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5327
|
-
|
|
5327
|
+
_chunkPE26VSWTcjs.ApprovalBatchMessage,
|
|
5328
5328
|
{
|
|
5329
5329
|
data: segment.data,
|
|
5330
5330
|
status: segment.status,
|
|
@@ -5585,7 +5585,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5585
5585
|
assistantType,
|
|
5586
5586
|
approvalVariant,
|
|
5587
5587
|
selfAuthorType,
|
|
5588
|
-
appearance =
|
|
5588
|
+
appearance = _chunkGZKWF6NHcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5589
5589
|
assistantIcon,
|
|
5590
5590
|
pendingApprovals,
|
|
5591
5591
|
hasNextPage,
|
|
@@ -6086,6 +6086,7 @@ var PLATFORM_DOMAINS = [
|
|
|
6086
6086
|
{ key: "product-hub", defaultUrl: "https://product-hub.flamingo.so", envVar: "NEXT_PUBLIC_PRODUCT_HUB_URL" },
|
|
6087
6087
|
{ key: "revenue-hub", defaultUrl: "https://revenue-hub.flamingo.so", envVar: "NEXT_PUBLIC_REVENUE_HUB_URL" },
|
|
6088
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" },
|
|
6089
6090
|
{ key: "openmsp", defaultUrl: "https://www.openmsp.ai", envVar: "NEXT_PUBLIC_OPENMSP_URL" },
|
|
6090
6091
|
// ORDERING INVARIANT (first-wins, load-bearing): `flamingo` MUST precede `universal`.
|
|
6091
6092
|
// Both resolve to www.flamingo.run; the reverse index is first-wins → flamingo claims the shared host,
|
|
@@ -6119,6 +6120,7 @@ var ENV_OVERRIDES = {
|
|
|
6119
6120
|
NEXT_PUBLIC_PRODUCT_HUB_URL: process.env.NEXT_PUBLIC_PRODUCT_HUB_URL,
|
|
6120
6121
|
NEXT_PUBLIC_REVENUE_HUB_URL: process.env.NEXT_PUBLIC_REVENUE_HUB_URL,
|
|
6121
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,
|
|
6122
6124
|
NEXT_PUBLIC_OPENMSP_URL: process.env.NEXT_PUBLIC_OPENMSP_URL,
|
|
6123
6125
|
NEXT_PUBLIC_FLAMINGO_URL: process.env.NEXT_PUBLIC_FLAMINGO_URL,
|
|
6124
6126
|
NEXT_PUBLIC_TMCG_URL: process.env.NEXT_PUBLIC_TMCG_URL,
|
|
@@ -6618,7 +6620,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6618
6620
|
|
|
6619
6621
|
[Attached: ${safeName}](${url})`;
|
|
6620
6622
|
}
|
|
6621
|
-
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);
|
|
6622
6624
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6623
6625
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6624
6626
|
"gm"
|
|
@@ -6868,7 +6870,7 @@ function MarqueeWallFades({
|
|
|
6868
6870
|
}) });
|
|
6869
6871
|
}
|
|
6870
6872
|
function CloneCopy({ className, style, children }) {
|
|
6871
|
-
const ref =
|
|
6873
|
+
const ref = _chunk3RYIF4OWcjs.useSuppressCloneFocus.call(void 0, true);
|
|
6872
6874
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
6873
6875
|
}
|
|
6874
6876
|
function MarqueeWall({
|
|
@@ -6895,7 +6897,7 @@ function MarqueeWall({
|
|
|
6895
6897
|
const containerRef = _react.useRef.call(void 0, null);
|
|
6896
6898
|
const trackRef = _react.useRef.call(void 0, null);
|
|
6897
6899
|
const copyRef = _react.useRef.call(void 0, null);
|
|
6898
|
-
const reducedMotion = _nullishCoalesce(
|
|
6900
|
+
const reducedMotion = _nullishCoalesce(_chunkR3TWQ3ZJcjs.useMediaQuery.call(void 0, "(prefers-reduced-motion: reduce)"), () => ( false));
|
|
6899
6901
|
const [overflows, setOverflows] = _react.useState.call(void 0, false);
|
|
6900
6902
|
const copySizeRef = _react.useRef.call(void 0, 0);
|
|
6901
6903
|
const wrapSizeRef = _react.useRef.call(void 0, 0);
|
|
@@ -6922,7 +6924,7 @@ function MarqueeWall({
|
|
|
6922
6924
|
ro.observe(copy);
|
|
6923
6925
|
return () => ro.disconnect();
|
|
6924
6926
|
}, [measure, marqueeMounted]);
|
|
6925
|
-
const { ref: observe, inView: nearViewport } =
|
|
6927
|
+
const { ref: observe, inView: nearViewport } = _chunk3RYIF4OWcjs.useInView.call(void 0, {
|
|
6926
6928
|
rootMargin: _chunkCW3ML76Ucjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
6927
6929
|
initial: true
|
|
6928
6930
|
});
|
|
@@ -6930,7 +6932,7 @@ function MarqueeWall({
|
|
|
6930
6932
|
observe(containerRef.current);
|
|
6931
6933
|
return () => observe(null);
|
|
6932
6934
|
}, [observe]);
|
|
6933
|
-
const autoplay =
|
|
6935
|
+
const autoplay = _chunk3RYIF4OWcjs.useAutoplay.call(void 0, nearViewport);
|
|
6934
6936
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
6935
6937
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
6936
6938
|
pointerInsideRef.current = false;
|
|
@@ -6943,7 +6945,7 @@ function MarqueeWall({
|
|
|
6943
6945
|
if (e.pointerType === "touch") return;
|
|
6944
6946
|
pointerInsideRef.current = false;
|
|
6945
6947
|
}, []);
|
|
6946
|
-
|
|
6948
|
+
_chunk3RYIF4OWcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
6947
6949
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
6948
6950
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
6949
6951
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -6996,7 +6998,7 @@ function MarqueeWall({
|
|
|
6996
6998
|
if (!sync) return void 0;
|
|
6997
6999
|
return sync.register(member);
|
|
6998
7000
|
}, [sync, member]);
|
|
6999
|
-
const { posRef, wrap } =
|
|
7001
|
+
const { posRef, wrap } = _chunk3RYIF4OWcjs.useMarqueeEngine.call(void 0, {
|
|
7000
7002
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
7001
7003
|
speed,
|
|
7002
7004
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -7565,7 +7567,7 @@ function MingoChatHistoryRow({
|
|
|
7565
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")
|
|
7566
7568
|
),
|
|
7567
7569
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7568
|
-
|
|
7570
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
7569
7571
|
{
|
|
7570
7572
|
variant: "round",
|
|
7571
7573
|
sizePx: 24,
|
|
@@ -7773,7 +7775,7 @@ function MingoWelcome({
|
|
|
7773
7775
|
onScroll: updateScrollFade,
|
|
7774
7776
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7775
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: [
|
|
7776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7778
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7777
7779
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7778
7780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7779
7781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7895,8 +7897,8 @@ function GuideWelcome({
|
|
|
7895
7897
|
icon && (icon.name || icon.url) ? (
|
|
7896
7898
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7897
7899
|
// match the default Mingo mark (48px).
|
|
7898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7899
|
-
) : /* @__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" }),
|
|
7900
7902
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7901
7903
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7902
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
|
|
@@ -8098,9 +8100,9 @@ function MingoArchiveList({
|
|
|
8098
8100
|
title: dialog.title || "Untitled Chat",
|
|
8099
8101
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _177 => _177(dialog.id)]),
|
|
8100
8102
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8101
|
-
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) }),
|
|
8102
8104
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8103
|
-
|
|
8105
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
8104
8106
|
{
|
|
8105
8107
|
variant: "round",
|
|
8106
8108
|
sizePx: 24,
|
|
@@ -8187,7 +8189,7 @@ function MingoChatHeader({
|
|
|
8187
8189
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8188
8190
|
] }),
|
|
8189
8191
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8190
|
-
|
|
8192
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
8191
8193
|
{
|
|
8192
8194
|
variant: "round",
|
|
8193
8195
|
sizePx: 32,
|
|
@@ -8224,7 +8226,7 @@ function ChatHeaderSearchField({
|
|
|
8224
8226
|
className
|
|
8225
8227
|
}) {
|
|
8226
8228
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8227
|
-
const debounced =
|
|
8229
|
+
const debounced = _chunk3RYIF4OWcjs.useDebounce.call(void 0, value, 300);
|
|
8228
8230
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8229
8231
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
8230
8232
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -8463,7 +8465,7 @@ function MingoChatRail({
|
|
|
8463
8465
|
"data-accent": "mingo",
|
|
8464
8466
|
"aria-label": "Mingo chats",
|
|
8465
8467
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8466
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8468
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPE26VSWTcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8467
8469
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8468
8470
|
_chunk2QMBXGMQcjs.Button,
|
|
8469
8471
|
{
|
|
@@ -8743,8 +8745,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8743
8745
|
const save = () => {
|
|
8744
8746
|
if (canSave) onSave(name.trim());
|
|
8745
8747
|
};
|
|
8746
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8747
|
-
/* @__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" }) }),
|
|
8748
8750
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8749
8751
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8750
8752
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8761,27 +8763,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8761
8763
|
}
|
|
8762
8764
|
)
|
|
8763
8765
|
] }),
|
|
8764
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8766
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.ModalFooter, { children: [
|
|
8765
8767
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8766
8768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8767
8769
|
] })
|
|
8768
8770
|
] });
|
|
8769
8771
|
}
|
|
8770
8772
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8771
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8772
|
-
/* @__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" }) }),
|
|
8773
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." }),
|
|
8774
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8776
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.ModalFooter, { children: [
|
|
8775
8777
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8776
8778
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8777
8779
|
] })
|
|
8778
8780
|
] });
|
|
8779
8781
|
}
|
|
8780
8782
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8781
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8782
|
-
/* @__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" }) }),
|
|
8783
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." }),
|
|
8784
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8786
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGZKWF6NHcjs.ModalFooter, { children: [
|
|
8785
8787
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8786
8788
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8787
8789
|
] })
|
|
@@ -8954,7 +8956,7 @@ function ChatPanelHeader({
|
|
|
8954
8956
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8955
8957
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8956
8958
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8957
|
-
|
|
8959
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
8958
8960
|
{
|
|
8959
8961
|
variant: "round",
|
|
8960
8962
|
sizePx: 32,
|
|
@@ -9112,8 +9114,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
9112
9114
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
9113
9115
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
9114
9116
|
status === "sniffing" && "Checking\u2026",
|
|
9115
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
9116
|
-
status === "ready" &&
|
|
9117
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkEQZXJUYVcjs.formatFileSize.call(void 0, file.size)}`,
|
|
9118
|
+
status === "ready" && _chunkEQZXJUYVcjs.formatFileSize.call(void 0, file.size),
|
|
9117
9119
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
9118
9120
|
] })
|
|
9119
9121
|
] }),
|
|
@@ -9361,7 +9363,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9361
9363
|
}, ref) => {
|
|
9362
9364
|
const icon = getProviderIcon(provider);
|
|
9363
9365
|
const name = displayName || modelName;
|
|
9364
|
-
const isV2 = useChatAppearance() ===
|
|
9366
|
+
const isV2 = useChatAppearance() === _chunkGZKWF6NHcjs.CHAT_APPEARANCE.V2;
|
|
9365
9367
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9366
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: [
|
|
9367
9369
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9490,7 +9492,7 @@ function ChatComposer({
|
|
|
9490
9492
|
}, [entityTypes]);
|
|
9491
9493
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9492
9494
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9493
|
-
|
|
9495
|
+
_chunkGZKWF6NHcjs.ChatInput,
|
|
9494
9496
|
{
|
|
9495
9497
|
ref: inputRef,
|
|
9496
9498
|
onSend,
|
|
@@ -9650,17 +9652,17 @@ function ChatArchivePage(props) {
|
|
|
9650
9652
|
|
|
9651
9653
|
// src/components/chat/utils/execute-navigation.ts
|
|
9652
9654
|
function isForeignOriginHref(href) {
|
|
9653
|
-
return /^https?:\/\//i.test(href) && !
|
|
9655
|
+
return /^https?:\/\//i.test(href) && !_chunk22XAPV6Ncjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9654
9656
|
}
|
|
9655
9657
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9656
|
-
const isNewTab = runtime ?
|
|
9658
|
+
const isNewTab = runtime ? _chunk22XAPV6Ncjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9657
9659
|
if (isNewTab) {
|
|
9658
9660
|
if (_optionalChain([runtime, 'optionalAccess', _203 => _203.navigation, 'access', _204 => _204.openExternal])) runtime.navigation.openExternal(href);
|
|
9659
|
-
else window.open(href, "_blank",
|
|
9661
|
+
else window.open(href, "_blank", _chunk22XAPV6Ncjs.NEW_TAB_FEATURES);
|
|
9660
9662
|
return;
|
|
9661
9663
|
}
|
|
9662
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9663
|
-
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 })) {
|
|
9664
9666
|
return;
|
|
9665
9667
|
}
|
|
9666
9668
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.navigate, 'optionalCall', _207 => _207({ href, path, targetPlatform })]), () => ( false));
|
|
@@ -9710,8 +9712,8 @@ function useNavLinkViaRuntime({
|
|
|
9710
9712
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9711
9713
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9712
9714
|
const panel = useChatPanel();
|
|
9713
|
-
const resolvedHref =
|
|
9714
|
-
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)));
|
|
9715
9717
|
const onClick = (e) => {
|
|
9716
9718
|
_optionalChain([onClickProp, 'optionalCall', _208 => _208(e)]);
|
|
9717
9719
|
if (e.defaultPrevented) return;
|
|
@@ -9725,7 +9727,7 @@ function useNavLinkViaRuntime({
|
|
|
9725
9727
|
});
|
|
9726
9728
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
|
|
9727
9729
|
};
|
|
9728
|
-
const attrs =
|
|
9730
|
+
const attrs = _chunk22XAPV6Ncjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9729
9731
|
return {
|
|
9730
9732
|
href: resolvedHref,
|
|
9731
9733
|
...attrs,
|
|
@@ -9870,9 +9872,9 @@ function UserDisplay({
|
|
|
9870
9872
|
}) {
|
|
9871
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: [
|
|
9872
9874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9873
|
-
|
|
9875
|
+
_chunkEQZXJUYVcjs.SquareAvatar,
|
|
9874
9876
|
{
|
|
9875
|
-
src: avatarUrl ?
|
|
9877
|
+
src: avatarUrl ? _chunk22XAPV6Ncjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9876
9878
|
fallback: name,
|
|
9877
9879
|
alt: name,
|
|
9878
9880
|
sizePx: size,
|
|
@@ -9980,7 +9982,7 @@ function ManagedCell({
|
|
|
9980
9982
|
}) {
|
|
9981
9983
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
9982
9984
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
9983
|
-
const cloneRef =
|
|
9985
|
+
const cloneRef = _chunk3RYIF4OWcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
9984
9986
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9985
9987
|
"div",
|
|
9986
9988
|
{
|
|
@@ -10100,12 +10102,12 @@ function CardsStrip(props) {
|
|
|
10100
10102
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
10101
10103
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
10102
10104
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
10103
|
-
const { ref: observe, inView: nearViewport } =
|
|
10105
|
+
const { ref: observe, inView: nearViewport } = _chunk3RYIF4OWcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
10104
10106
|
_react.useEffect.call(void 0, () => {
|
|
10105
10107
|
observe(wrapperRef.current);
|
|
10106
10108
|
return () => observe(null);
|
|
10107
10109
|
}, [observe]);
|
|
10108
|
-
const autoplay =
|
|
10110
|
+
const autoplay = _chunk3RYIF4OWcjs.useAutoplay.call(void 0, nearViewport);
|
|
10109
10111
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
10110
10112
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
10111
10113
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -10152,7 +10154,7 @@ function CardsStrip(props) {
|
|
|
10152
10154
|
const current = activeKeyRef.current;
|
|
10153
10155
|
if (current !== null) deactivate(current);
|
|
10154
10156
|
}, [deactivate]);
|
|
10155
|
-
|
|
10157
|
+
_chunk3RYIF4OWcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
10156
10158
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
10157
10159
|
const scroller = scrollerRef.current;
|
|
10158
10160
|
if (!scroller) return;
|
|
@@ -10173,7 +10175,7 @@ function CardsStrip(props) {
|
|
|
10173
10175
|
},
|
|
10174
10176
|
[reverse, seamBuffer]
|
|
10175
10177
|
);
|
|
10176
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
10178
|
+
const { posRef: marqueePosRef, glideBy } = _chunk3RYIF4OWcjs.useMarqueeEngine.call(void 0, {
|
|
10177
10179
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
10178
10180
|
// engine would keep scheduling frames forever), same treatment as
|
|
10179
10181
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -10322,7 +10324,7 @@ function CardsStrip(props) {
|
|
|
10322
10324
|
},
|
|
10323
10325
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10324
10326
|
children: [
|
|
10325
|
-
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) }),
|
|
10326
10328
|
headerSlot,
|
|
10327
10329
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10328
10330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10474,7 +10476,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10474
10476
|
|
|
10475
10477
|
function VideoBitesStrip({
|
|
10476
10478
|
bites,
|
|
10477
|
-
title =
|
|
10479
|
+
title = _chunk22XAPV6Ncjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10478
10480
|
showTitle = true,
|
|
10479
10481
|
filterPublished = true,
|
|
10480
10482
|
profile = null,
|
|
@@ -10487,7 +10489,7 @@ function VideoBitesStrip({
|
|
|
10487
10489
|
cardHeightMobile = 300,
|
|
10488
10490
|
showChevrons = true,
|
|
10489
10491
|
onBiteNavigate,
|
|
10490
|
-
sortComparator =
|
|
10492
|
+
sortComparator = _chunk22XAPV6Ncjs.sortBitesByCreatedAtDesc,
|
|
10491
10493
|
className
|
|
10492
10494
|
}) {
|
|
10493
10495
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -10653,7 +10655,7 @@ function VideoBiteCard({
|
|
|
10653
10655
|
},
|
|
10654
10656
|
children: [
|
|
10655
10657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10656
|
-
|
|
10658
|
+
_chunk22XAPV6Ncjs.VideoHoverPreviewSurface,
|
|
10657
10659
|
{
|
|
10658
10660
|
url: bite.url,
|
|
10659
10661
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10724,7 +10726,7 @@ function EntityVideoSection({
|
|
|
10724
10726
|
title = "Video",
|
|
10725
10727
|
videoSummary,
|
|
10726
10728
|
videoBites,
|
|
10727
|
-
bitesTitle =
|
|
10729
|
+
bitesTitle = _chunk22XAPV6Ncjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10728
10730
|
filterPublishedBites = true,
|
|
10729
10731
|
bitesProfile = null,
|
|
10730
10732
|
bitesHref,
|
|
@@ -10770,7 +10772,7 @@ function EntityVideoSection({
|
|
|
10770
10772
|
)
|
|
10771
10773
|
] }),
|
|
10772
10774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10773
|
-
|
|
10775
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10774
10776
|
{
|
|
10775
10777
|
kind: fullVideoKind,
|
|
10776
10778
|
url: fullVideoUrl,
|
|
@@ -10782,7 +10784,7 @@ function EntityVideoSection({
|
|
|
10782
10784
|
}
|
|
10783
10785
|
) }),
|
|
10784
10786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10785
|
-
|
|
10787
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10786
10788
|
{
|
|
10787
10789
|
url: highlightVideoUrl,
|
|
10788
10790
|
poster: highlightVideoThumbnail,
|
|
@@ -10791,7 +10793,7 @@ function EntityVideoSection({
|
|
|
10791
10793
|
}
|
|
10792
10794
|
) })
|
|
10793
10795
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10794
|
-
|
|
10796
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10795
10797
|
{
|
|
10796
10798
|
kind: fullVideoKind,
|
|
10797
10799
|
url: fullVideoUrl,
|
|
@@ -10802,7 +10804,7 @@ function EntityVideoSection({
|
|
|
10802
10804
|
priority
|
|
10803
10805
|
}
|
|
10804
10806
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10805
|
-
|
|
10807
|
+
_chunk22XAPV6Ncjs.Video,
|
|
10806
10808
|
{
|
|
10807
10809
|
url: highlightVideoUrl,
|
|
10808
10810
|
poster: highlightVideoThumbnail,
|
|
@@ -10812,7 +10814,7 @@ function EntityVideoSection({
|
|
|
10812
10814
|
}
|
|
10813
10815
|
) : null),
|
|
10814
10816
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10815
|
-
/* @__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" }),
|
|
10816
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 }) })
|
|
10817
10819
|
] }),
|
|
10818
10820
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10874,14 +10876,14 @@ function designDocPeople(doc) {
|
|
|
10874
10876
|
return people;
|
|
10875
10877
|
}
|
|
10876
10878
|
function designDocMetaLine(doc) {
|
|
10877
|
-
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 ");
|
|
10878
10880
|
}
|
|
10879
10881
|
function DesignDocCardSkeleton() {
|
|
10880
10882
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10881
10883
|
"div",
|
|
10882
10884
|
{
|
|
10883
10885
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10884
|
-
|
|
10886
|
+
_chunk22XAPV6Ncjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
10885
10887
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
10886
10888
|
),
|
|
10887
10889
|
children: [
|
|
@@ -10909,7 +10911,7 @@ function DesignDocCardSkeleton() {
|
|
|
10909
10911
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10910
10912
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10911
10913
|
const people = designDocPeople(doc);
|
|
10912
|
-
const link =
|
|
10914
|
+
const link = _chunk22XAPV6Ncjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10913
10915
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10914
10916
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
10915
10917
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -10917,7 +10919,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10917
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) }) })
|
|
10918
10920
|
] }),
|
|
10919
10921
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10920
|
-
|
|
10922
|
+
_chunk22XAPV6Ncjs.StatusBadge,
|
|
10921
10923
|
{
|
|
10922
10924
|
text: readiness.label,
|
|
10923
10925
|
colorScheme: readiness.scheme,
|
|
@@ -10927,16 +10929,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10927
10929
|
}
|
|
10928
10930
|
)
|
|
10929
10931
|
] }),
|
|
10930
|
-
/* @__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 }) }),
|
|
10931
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 || "" }) }),
|
|
10932
10934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10933
10935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
10934
10936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
10935
|
-
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
|
|
10936
10938
|
] })
|
|
10937
10939
|
] });
|
|
10938
10940
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10939
|
-
|
|
10941
|
+
_chunk22XAPV6Ncjs.CONTENT_CARD_FRAME_CLASS,
|
|
10940
10942
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
10941
10943
|
className
|
|
10942
10944
|
);
|
|
@@ -11046,7 +11048,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11046
11048
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11047
11049
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11048
11050
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11049
|
-
const dateText =
|
|
11051
|
+
const dateText = _chunkEQZXJUYVcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11050
11052
|
const idLabel = formatActivityId(item.id, kind);
|
|
11051
11053
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11052
11054
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11080,26 +11082,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11080
11082
|
metaParts.push(
|
|
11081
11083
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11082
11084
|
);
|
|
11083
|
-
const href =
|
|
11085
|
+
const href = _chunk22XAPV6Ncjs.safeHref.call(void 0, item.url);
|
|
11084
11086
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11085
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11086
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11087
|
-
/* @__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: [
|
|
11088
11090
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11089
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk22XAPV6Ncjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11090
11092
|
] }),
|
|
11091
|
-
/* @__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: [
|
|
11092
11094
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11093
11095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11094
11096
|
] }, i)) }) }),
|
|
11095
|
-
/* @__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 }) })
|
|
11096
11098
|
] }),
|
|
11097
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
|
|
11098
11100
|
] });
|
|
11099
11101
|
if (anchorProps) {
|
|
11100
|
-
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 });
|
|
11101
11103
|
}
|
|
11102
|
-
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 });
|
|
11103
11105
|
}
|
|
11104
11106
|
function GitHubActivityCardSkeleton({
|
|
11105
11107
|
variant = "compact",
|
|
@@ -11116,12 +11118,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11116
11118
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-3 w-20 shrink-0 rounded" })
|
|
11117
11119
|
] });
|
|
11118
11120
|
}
|
|
11119
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11120
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className:
|
|
11121
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11122
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11123
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11124
|
-
/* @__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 }) })
|
|
11125
11127
|
] }),
|
|
11126
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" }) })
|
|
11127
11129
|
] });
|
|
@@ -11133,29 +11135,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11133
11135
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11134
11136
|
const goalsCount = _optionalChain([campaign, 'access', _246 => _246.goals, 'optionalAccess', _247 => _247.length]) || 0;
|
|
11135
11137
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11136
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11137
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11139
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11140
|
-
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,
|
|
11141
11143
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11142
11144
|
"Marketing campaign"
|
|
11143
11145
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11144
|
-
/* @__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 }) })
|
|
11145
11147
|
] })
|
|
11146
11148
|
] });
|
|
11147
11149
|
if (anchorProps) {
|
|
11148
|
-
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 });
|
|
11149
11151
|
}
|
|
11150
|
-
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 });
|
|
11151
11153
|
}
|
|
11152
11154
|
function CampaignCardAdminSkeleton({ className }) {
|
|
11153
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { as: "span", className:
|
|
11155
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11158
|
-
/* @__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" }) })
|
|
11159
11161
|
] })
|
|
11160
11162
|
] });
|
|
11161
11163
|
}
|
|
@@ -11246,7 +11248,7 @@ function VendorIcon({
|
|
|
11246
11248
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11247
11249
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11248
11250
|
{
|
|
11249
|
-
src:
|
|
11251
|
+
src: _chunk22XAPV6Ncjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11250
11252
|
alt: `${vendor.title} logo`,
|
|
11251
11253
|
width,
|
|
11252
11254
|
height,
|
|
@@ -11276,8 +11278,8 @@ function useChatCardItem(type, id) {
|
|
|
11276
11278
|
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url);
|
|
11277
11279
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11278
11280
|
const data = await res.json();
|
|
11279
|
-
const items =
|
|
11280
|
-
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);
|
|
11281
11283
|
return _nullishCoalesce(match, () => ( null));
|
|
11282
11284
|
},
|
|
11283
11285
|
enabled: !!url && id.length > 0,
|
|
@@ -11319,7 +11321,7 @@ var TRAILING_BUTTON_CLASS = "flex w-[56px] shrink-0 items-center justify-center
|
|
|
11319
11321
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11320
11322
|
if (imageSrc) {
|
|
11321
11323
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11322
|
-
/* @__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) || "?" }),
|
|
11323
11325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11324
11326
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11325
11327
|
{
|
|
@@ -11388,7 +11390,7 @@ function MingoInfoCard({
|
|
|
11388
11390
|
status ? (
|
|
11389
11391
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11390
11392
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11391
|
-
/* @__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 }) })
|
|
11392
11394
|
) : null
|
|
11393
11395
|
] });
|
|
11394
11396
|
const contentClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -11479,7 +11481,7 @@ function resolveFetchedCardHref({
|
|
|
11479
11481
|
composeContentUrl
|
|
11480
11482
|
}) {
|
|
11481
11483
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11482
|
-
const canonicalType =
|
|
11484
|
+
const canonicalType = _chunk22XAPV6Ncjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11483
11485
|
return composeContentUrl({
|
|
11484
11486
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11485
11487
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11509,7 +11511,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11509
11511
|
}
|
|
11510
11512
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11511
11513
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11512
|
-
const icon = iconName ?
|
|
11514
|
+
const icon = iconName ? _chunkR3TWQ3ZJcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11513
11515
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11514
11516
|
return { icon, iconLabel };
|
|
11515
11517
|
}
|
|
@@ -11529,16 +11531,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11529
11531
|
if (docTarget) {
|
|
11530
11532
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11531
11533
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11532
|
-
href = _nullishCoalesce(
|
|
11534
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11533
11535
|
targetPlatform = docTarget.platform;
|
|
11534
11536
|
} else if (ctx.chipBasePlatform) {
|
|
11535
11537
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11536
|
-
href = _nullishCoalesce(
|
|
11538
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11537
11539
|
targetPlatform = ctx.chipBasePlatform;
|
|
11538
11540
|
} else if (ctx.baseRoute) {
|
|
11539
11541
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11540
11542
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11541
|
-
href = _nullishCoalesce(
|
|
11543
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11542
11544
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11543
11545
|
}
|
|
11544
11546
|
}
|
|
@@ -11547,15 +11549,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11547
11549
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11548
11550
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11549
11551
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11550
|
-
type:
|
|
11552
|
+
type: _chunk22XAPV6Ncjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11551
11553
|
identifier: idValue,
|
|
11552
11554
|
externalUrl: row.externalUrl,
|
|
11553
11555
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11554
11556
|
});
|
|
11555
|
-
href = composed.href ? _nullishCoalesce(
|
|
11557
|
+
href = composed.href ? _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11556
11558
|
targetPlatform = composed.targetPlatform;
|
|
11557
11559
|
} else if (row.externalUrl) {
|
|
11558
|
-
href = _nullishCoalesce(
|
|
11560
|
+
href = _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11559
11561
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11560
11562
|
}
|
|
11561
11563
|
const documentType = row.documentType;
|
|
@@ -11622,7 +11624,7 @@ function resolveCardDestination({
|
|
|
11622
11624
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _261 => _261.fallbackHref, 'optionalCall', _262 => _262(item)]), () => ( null)),
|
|
11623
11625
|
allowComposed: !entry.noComposedHref
|
|
11624
11626
|
});
|
|
11625
|
-
const url = choice ? _nullishCoalesce(
|
|
11627
|
+
const url = choice ? _nullishCoalesce(_chunk22XAPV6Ncjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11626
11628
|
if (choice && url) {
|
|
11627
11629
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11628
11630
|
}
|
|
@@ -11635,11 +11637,11 @@ function resolveCardDestination({
|
|
|
11635
11637
|
|
|
11636
11638
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11637
11639
|
const label = entityLabel || "Item";
|
|
11638
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11640
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11641
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11642
|
-
/* @__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: [
|
|
11643
11645
|
label,
|
|
11644
11646
|
" deleted",
|
|
11645
11647
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11685,7 +11687,7 @@ function GitHubChatCard({
|
|
|
11685
11687
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11686
11688
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11687
11689
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11688
|
-
const dateText =
|
|
11690
|
+
const dateText = _chunkEQZXJUYVcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11689
11691
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11690
11692
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11691
11693
|
MingoInfoCard,
|
|
@@ -11694,7 +11696,7 @@ function GitHubChatCard({
|
|
|
11694
11696
|
description,
|
|
11695
11697
|
icon: githubKindIcon(kind),
|
|
11696
11698
|
status,
|
|
11697
|
-
anchorProps:
|
|
11699
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11698
11700
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11699
11701
|
menuAriaLabel: "Activity actions"
|
|
11700
11702
|
}
|
|
@@ -11841,7 +11843,7 @@ function HubspotTicketChatCard({
|
|
|
11841
11843
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11842
11844
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11843
11845
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11844
|
-
anchorProps:
|
|
11846
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11845
11847
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11846
11848
|
label: "Open Ticket Details",
|
|
11847
11849
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11864,7 +11866,7 @@ function FaqChatCard({
|
|
|
11864
11866
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11865
11867
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11866
11868
|
status: { label: statusLabel, variant: "grey" },
|
|
11867
|
-
anchorProps:
|
|
11869
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11868
11870
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11869
11871
|
menuAriaLabel: "FAQ actions"
|
|
11870
11872
|
}
|
|
@@ -11884,7 +11886,7 @@ function SlackChatCard({
|
|
|
11884
11886
|
title,
|
|
11885
11887
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11886
11888
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11887
|
-
anchorProps:
|
|
11889
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11888
11890
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11889
11891
|
menuAriaLabel: "Message actions"
|
|
11890
11892
|
}
|
|
@@ -11902,7 +11904,7 @@ function GlyphChatCard({
|
|
|
11902
11904
|
title: chatRef.title,
|
|
11903
11905
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11904
11906
|
icon,
|
|
11905
|
-
anchorProps:
|
|
11907
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11906
11908
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11907
11909
|
menuAriaLabel: "Card actions"
|
|
11908
11910
|
}
|
|
@@ -11920,20 +11922,20 @@ function TrustCenterChatCard({
|
|
|
11920
11922
|
}) {
|
|
11921
11923
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11922
11924
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11923
|
-
const summary =
|
|
11925
|
+
const summary = _chunk22XAPV6Ncjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11924
11926
|
const leadFramework = frameworks[0];
|
|
11925
11927
|
const lead = leadFramework ? {
|
|
11926
|
-
label:
|
|
11927
|
-
color:
|
|
11928
|
+
label: _chunk22XAPV6Ncjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11929
|
+
color: _chunk22XAPV6Ncjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11928
11930
|
} : void 0;
|
|
11929
11931
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11930
11932
|
MingoInfoCard,
|
|
11931
11933
|
{
|
|
11932
|
-
title:
|
|
11933
|
-
description: summary ||
|
|
11934
|
+
title: _chunk22XAPV6Ncjs.TRUST_CENTER_TITLE,
|
|
11935
|
+
description: summary || _chunk22XAPV6Ncjs.TRUST_CENTER_TAGLINE,
|
|
11934
11936
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11935
11937
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11936
|
-
anchorProps:
|
|
11938
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11937
11939
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11938
11940
|
label: "View trust center",
|
|
11939
11941
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -11955,7 +11957,7 @@ function DataRoomDocChatCard({
|
|
|
11955
11957
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11956
11958
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
11957
11959
|
status: { label: badgeText, variant: "grey" },
|
|
11958
|
-
anchorProps:
|
|
11960
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11959
11961
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11960
11962
|
menuAriaLabel: "Document actions"
|
|
11961
11963
|
}
|
|
@@ -11974,7 +11976,7 @@ function GenericFinancialChatCard({
|
|
|
11974
11976
|
title: chatRef.title,
|
|
11975
11977
|
description: subtitle,
|
|
11976
11978
|
icon,
|
|
11977
|
-
anchorProps:
|
|
11979
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11978
11980
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11979
11981
|
menuAriaLabel: "Document actions"
|
|
11980
11982
|
}
|
|
@@ -12060,7 +12062,7 @@ function CampaignChatCard({
|
|
|
12060
12062
|
}) {
|
|
12061
12063
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12062
12064
|
const meta = [
|
|
12063
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12065
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunk22XAPV6Ncjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12064
12066
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12065
12067
|
"Marketing campaign"
|
|
12066
12068
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12099,7 +12101,7 @@ function EntityMingoCard({
|
|
|
12099
12101
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12100
12102
|
icon: fallbackIcon,
|
|
12101
12103
|
status,
|
|
12102
|
-
anchorProps:
|
|
12104
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12103
12105
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12104
12106
|
menuAriaLabel
|
|
12105
12107
|
}
|
|
@@ -12111,7 +12113,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12111
12113
|
function statusPill(status) {
|
|
12112
12114
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12113
12115
|
if (!s) return void 0;
|
|
12114
|
-
const scheme =
|
|
12116
|
+
const scheme = _chunk22XAPV6Ncjs.getStatusColorScheme.call(void 0, s);
|
|
12115
12117
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12116
12118
|
return { label: s, variant };
|
|
12117
12119
|
}
|
|
@@ -12202,7 +12204,7 @@ function DesignDocChatCard({
|
|
|
12202
12204
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12203
12205
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12204
12206
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12205
|
-
anchorProps:
|
|
12207
|
+
anchorProps: _chunk22XAPV6Ncjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12206
12208
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12207
12209
|
menuAriaLabel: "Design doc actions"
|
|
12208
12210
|
}
|
|
@@ -12220,7 +12222,7 @@ function InvestorUpdateChatCard({
|
|
|
12220
12222
|
EntityMingoCard,
|
|
12221
12223
|
{
|
|
12222
12224
|
title,
|
|
12223
|
-
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,
|
|
12224
12226
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12225
12227
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12226
12228
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12264,7 +12266,7 @@ function ProgramChatCard({
|
|
|
12264
12266
|
discuss
|
|
12265
12267
|
}) {
|
|
12266
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 });
|
|
12267
|
-
const { line: meta } =
|
|
12269
|
+
const { line: meta } = _chunk22XAPV6Ncjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk22XAPV6Ncjs.programMetaFormatters.call(void 0, _chunk22XAPV6Ncjs.PROGRAM_META_RENDERERS));
|
|
12268
12270
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12269
12271
|
EntityMingoCard,
|
|
12270
12272
|
{
|
|
@@ -12290,7 +12292,7 @@ function RoadmapChatCard({
|
|
|
12290
12292
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12291
12293
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12292
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 });
|
|
12293
|
-
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 ? (
|
|
12294
12296
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12295
12297
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12296
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 })
|
|
@@ -12356,11 +12358,11 @@ function refText(ref, key) {
|
|
|
12356
12358
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12357
12359
|
}
|
|
12358
12360
|
function VendorGlyph({ title, logoUrl }) {
|
|
12359
|
-
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 });
|
|
12360
12362
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12361
12363
|
}
|
|
12362
12364
|
function SitePageGlyph({ iconName }) {
|
|
12363
|
-
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 });
|
|
12364
12366
|
}
|
|
12365
12367
|
var GITHUB_CARD_CONFIGS = {
|
|
12366
12368
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12477,7 +12479,7 @@ function programRegistryEntries() {
|
|
|
12477
12479
|
label: cfg.label,
|
|
12478
12480
|
contentRefType: cfg.contentRefType,
|
|
12479
12481
|
bareInline: true,
|
|
12480
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12482
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12481
12483
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12482
12484
|
ProgramChatCard,
|
|
12483
12485
|
{
|
|
@@ -12518,7 +12520,7 @@ function roadmapRegistryEntries() {
|
|
|
12518
12520
|
bareInline: true,
|
|
12519
12521
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12520
12522
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12521
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12523
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12522
12524
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12523
12525
|
RoadmapChatCard,
|
|
12524
12526
|
{
|
|
@@ -12576,12 +12578,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12576
12578
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12577
12579
|
// single matched row. Destination is the public page unless the host
|
|
12578
12580
|
// re-homes the type (`composeContentUrl` override).
|
|
12579
|
-
[
|
|
12581
|
+
[_chunk22XAPV6Ncjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12580
12582
|
label: "Trust center",
|
|
12581
12583
|
bareInline: true,
|
|
12582
|
-
contentRefType:
|
|
12584
|
+
contentRefType: _chunk22XAPV6Ncjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12583
12585
|
noComposedHref: true,
|
|
12584
|
-
fallbackHref: () =>
|
|
12586
|
+
fallbackHref: () => _chunk22XAPV6Ncjs.TRUST_CENTER_PAGE_PATH,
|
|
12585
12587
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12586
12588
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12587
12589
|
},
|
|
@@ -12607,7 +12609,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12607
12609
|
label: "Blog post",
|
|
12608
12610
|
contentRefType: "blog_post_existing",
|
|
12609
12611
|
bareInline: true,
|
|
12610
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12612
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.BlogCardSkeleton, { size: "sm" }),
|
|
12611
12613
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12612
12614
|
BlogChatCard,
|
|
12613
12615
|
{
|
|
@@ -12624,7 +12626,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12624
12626
|
label: "Case study",
|
|
12625
12627
|
contentRefType: "case_study",
|
|
12626
12628
|
bareInline: true,
|
|
12627
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12629
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12628
12630
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12629
12631
|
CaseStudyChatCard,
|
|
12630
12632
|
{
|
|
@@ -12649,7 +12651,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12649
12651
|
label: "Customer interview",
|
|
12650
12652
|
contentRefType: "customer_interview",
|
|
12651
12653
|
bareInline: true,
|
|
12652
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12654
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12653
12655
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12654
12656
|
CustomerInterviewChatCard,
|
|
12655
12657
|
{
|
|
@@ -12665,9 +12667,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12665
12667
|
label: "Product release",
|
|
12666
12668
|
contentRefType: "product_release",
|
|
12667
12669
|
bareInline: true,
|
|
12668
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12670
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12669
12671
|
render: (item, chatRef, opts) => {
|
|
12670
|
-
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));
|
|
12671
12673
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12672
12674
|
ProductReleaseChatCard,
|
|
12673
12675
|
{
|
|
@@ -12685,7 +12687,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12685
12687
|
label: "Investor update",
|
|
12686
12688
|
contentRefType: "investor_update",
|
|
12687
12689
|
bareInline: true,
|
|
12688
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12690
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12689
12691
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12690
12692
|
InvestorUpdateChatCard,
|
|
12691
12693
|
{
|
|
@@ -12703,7 +12705,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12703
12705
|
bareInline: true,
|
|
12704
12706
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12705
12707
|
displayAction: true,
|
|
12706
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12708
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22XAPV6Ncjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12707
12709
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12708
12710
|
OnboardingGuideChatCard,
|
|
12709
12711
|
{
|
|
@@ -12776,7 +12778,7 @@ function ChatCardLoader({
|
|
|
12776
12778
|
entry: fetchEntry,
|
|
12777
12779
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12778
12780
|
composeContentUrl: runtime.composeContentUrl,
|
|
12779
|
-
resolveHref: (href) =>
|
|
12781
|
+
resolveHref: (href) => _chunk22XAPV6Ncjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12780
12782
|
});
|
|
12781
12783
|
const hrefResolvedChatRef = {
|
|
12782
12784
|
...chatRef,
|
|
@@ -12787,12 +12789,12 @@ function ChatCardLoader({
|
|
|
12787
12789
|
};
|
|
12788
12790
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12789
12791
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12790
|
-
const isNewTab =
|
|
12792
|
+
const isNewTab = _chunk22XAPV6Ncjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12791
12793
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12792
12794
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12793
12795
|
const discuss = discussFn ? {
|
|
12794
12796
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12795
|
-
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" }),
|
|
12796
12798
|
run: () => discussFn(finalChatRef)
|
|
12797
12799
|
} : void 0;
|
|
12798
12800
|
const renderOpts = {
|
|
@@ -12901,12 +12903,12 @@ function makeBatchDedupKey(item) {
|
|
|
12901
12903
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12902
12904
|
}
|
|
12903
12905
|
function getChatTypeMessageType(chatType) {
|
|
12904
|
-
return chatType ===
|
|
12906
|
+
return chatType === _chunkGZKWF6NHcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12905
12907
|
}
|
|
12906
12908
|
function useChunkCatchup({
|
|
12907
12909
|
dialogId,
|
|
12908
12910
|
onChunkReceived,
|
|
12909
|
-
chatTypes = [
|
|
12911
|
+
chatTypes = [_chunkGZKWF6NHcjs.CHAT_TYPE.CLIENT],
|
|
12910
12912
|
fetchChunks
|
|
12911
12913
|
}) {
|
|
12912
12914
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13867,7 +13869,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13867
13869
|
return () => root.removeEventListener("click", onClick);
|
|
13868
13870
|
}, [viewUrlPrefix]);
|
|
13869
13871
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13870
|
-
|
|
13872
|
+
_chunk22XAPV6Ncjs.ImageGalleryModal,
|
|
13871
13873
|
{
|
|
13872
13874
|
images: state.images,
|
|
13873
13875
|
isOpen: state.isOpen,
|
|
@@ -15150,7 +15152,7 @@ function nullableText(value) {
|
|
|
15150
15152
|
}
|
|
15151
15153
|
function httpsUrl(value) {
|
|
15152
15154
|
const candidate = text(value);
|
|
15153
|
-
if (!candidate ||
|
|
15155
|
+
if (!candidate || _chunk22XAPV6Ncjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15154
15156
|
try {
|
|
15155
15157
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15156
15158
|
} catch (e19) {
|
|
@@ -15734,7 +15736,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15734
15736
|
const status = approvalStatuses[requestId] || "pending";
|
|
15735
15737
|
if (!displayInline(approvalType)) {
|
|
15736
15738
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15737
|
-
const summary = required ?
|
|
15739
|
+
const summary = required ? _chunkPE26VSWTcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15738
15740
|
pendingEscalated.set(requestId, {
|
|
15739
15741
|
command: summary,
|
|
15740
15742
|
explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
|
|
@@ -15767,7 +15769,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15767
15769
|
if (!call.requiresApproval) continue;
|
|
15768
15770
|
segments = accumulator.addApprovalRequest(
|
|
15769
15771
|
requestId,
|
|
15770
|
-
|
|
15772
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
15771
15773
|
call.toolExplanation,
|
|
15772
15774
|
approvalType,
|
|
15773
15775
|
status,
|
|
@@ -15846,7 +15848,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15846
15848
|
if (!call.requiresApproval) continue;
|
|
15847
15849
|
segments = accumulator.addApprovalRequest(
|
|
15848
15850
|
requestId,
|
|
15849
|
-
|
|
15851
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
15850
15852
|
call.toolExplanation,
|
|
15851
15853
|
escalatedData.approvalType,
|
|
15852
15854
|
status
|
|
@@ -18023,12 +18025,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18023
18025
|
|
|
18024
18026
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18025
18027
|
function getOwnerDisplayName(owner) {
|
|
18026
|
-
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18028
|
+
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18027
18029
|
const { firstName, lastName } = owner.user;
|
|
18028
18030
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18029
18031
|
if (name) return name;
|
|
18030
18032
|
}
|
|
18031
|
-
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) ===
|
|
18033
|
+
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunkGZKWF6NHcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18032
18034
|
}
|
|
18033
18035
|
function getOwnerAvatar(owner) {
|
|
18034
18036
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
|
|
@@ -18291,7 +18293,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18291
18293
|
if (!call.requiresApproval) continue;
|
|
18292
18294
|
accumulator.addApprovalRequest(
|
|
18293
18295
|
event.requestId,
|
|
18294
|
-
|
|
18296
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
18295
18297
|
call.toolExplanation,
|
|
18296
18298
|
approvalType,
|
|
18297
18299
|
status,
|
|
@@ -18352,7 +18354,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18352
18354
|
if (!call.requiresApproval) continue;
|
|
18353
18355
|
accumulator.addApprovalRequest(
|
|
18354
18356
|
requestId,
|
|
18355
|
-
|
|
18357
|
+
_chunkPE26VSWTcjs.getCommandText.call(void 0, call),
|
|
18356
18358
|
call.toolExplanation,
|
|
18357
18359
|
escalatedData.approvalType,
|
|
18358
18360
|
status
|
|
@@ -18460,10 +18462,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18460
18462
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18461
18463
|
return;
|
|
18462
18464
|
}
|
|
18463
|
-
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;
|
|
18464
18466
|
if (isUserMessage) {
|
|
18465
18467
|
flushAssistantMessage();
|
|
18466
|
-
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";
|
|
18467
18469
|
messageDataArray.forEach((data) => {
|
|
18468
18470
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18469
18471
|
const rawContext = data.contextItems;
|
|
@@ -18514,7 +18516,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18514
18516
|
});
|
|
18515
18517
|
const nextMsg = messages[index + 1];
|
|
18516
18518
|
const isLastMessage = index === messages.length - 1;
|
|
18517
|
-
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);
|
|
18518
18520
|
if (isLastMessage || nextIsFromUser) {
|
|
18519
18521
|
flushAssistantMessage();
|
|
18520
18522
|
}
|