@flamingo-stack/openframe-frontend-core 0.0.732 → 0.0.733
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-MEDDKM3A.cjs → chunk-3HPB4H4C.cjs} +2 -2
- package/dist/{chunk-22ZK7BA3.cjs → chunk-3KGICRH7.cjs} +1127 -1072
- package/dist/{chunk-6KDGIOLP.cjs → chunk-3UTPZW36.cjs} +89 -89
- package/dist/{chunk-GID62YEN.cjs → chunk-AAFW4STC.cjs} +3 -3
- package/dist/{chunk-6HHUU56Y.cjs → chunk-ATMBJBOI.cjs} +14 -14
- package/dist/{chunk-BS4EZZCN.cjs → chunk-AV5533DH.cjs} +15 -15
- package/dist/{chunk-SJRR745G.cjs → chunk-BP6R5WDW.cjs} +44 -44
- package/dist/{chunk-BDTX2OEE.cjs → chunk-CJVAA7KL.cjs} +32 -32
- package/dist/{chunk-RIXGLS5Y.cjs → chunk-DUVOQHQI.cjs} +4 -4
- package/dist/{chunk-E3N24573.cjs → chunk-DUXLZPMJ.cjs} +9 -9
- package/dist/{chunk-N466AJGN.cjs → chunk-E26I4XH6.cjs} +17 -17
- package/dist/{chunk-3BLBWZ6A.cjs → chunk-EMG3T55N.cjs} +7 -7
- package/dist/{chunk-PRWBVIWW.cjs → chunk-EQORT7NK.cjs} +59 -59
- package/dist/{chunk-AEVGCB3Y.cjs → chunk-FCGLSWKR.cjs} +4 -4
- package/dist/{chunk-MANNIJ42.cjs → chunk-FICJS5OA.cjs} +6 -0
- package/dist/{chunk-OI7VCXYU.cjs → chunk-FNRMDDVN.cjs} +40 -40
- package/dist/{chunk-KLXHCNDC.cjs → chunk-FTTLBMHU.cjs} +3 -3
- package/dist/{chunk-C5NERNE6.cjs → chunk-GB3CHAW7.cjs} +93 -93
- package/dist/{chunk-7DUXR4HL.cjs → chunk-GVTDVS5U.cjs} +3 -3
- package/dist/{chunk-5HMGK3N6.cjs → chunk-HSWHOCZ3.cjs} +20 -20
- package/dist/{chunk-CUF3IYIB.cjs → chunk-IC4FT3A6.cjs} +28 -28
- package/dist/{chunk-TLDCSTTQ.cjs → chunk-J7JKPTGO.cjs} +10 -10
- package/dist/{chunk-G37LT2ID.cjs → chunk-L4ZNR5V7.cjs} +38 -38
- package/dist/{chunk-NYY25425.cjs → chunk-MYBTNOS6.cjs} +2 -2
- package/dist/{chunk-HELVKMRG.cjs → chunk-NTJE6SM6.cjs} +2 -2
- package/dist/{chunk-XOQ2UUVS.cjs → chunk-P3R23TOE.cjs} +35 -35
- package/dist/{chunk-CC3LINHF.cjs → chunk-SA7LDEVJ.cjs} +3 -3
- package/dist/{chunk-YGKVHSNQ.cjs → chunk-TIMCHP4X.cjs} +42 -42
- package/dist/{chunk-MVZ6XFPK.cjs → chunk-U4T5NLZD.cjs} +8 -8
- package/dist/{chunk-5HSMTSHU.cjs → chunk-XDWY6HAW.cjs} +24 -24
- package/dist/{chunk-OJ3XU3YZ.cjs → chunk-XY632BCH.cjs} +4 -4
- package/dist/{chunk-ZWMPAFGB.cjs → chunk-YIXKH2JO.cjs} +236 -236
- package/dist/{chunk-I46MQ4R5.cjs → chunk-ZBNA6TCW.cjs} +73 -73
- package/dist/{chunk-QMTC3BK3.cjs → chunk-ZJNYWNCB.cjs} +21 -21
- package/dist/{chunk-HH4BMYDX.cjs → chunk-ZRYKDN2J.cjs} +19 -19
- package/dist/{cloud-tenants-ILRE74JY.cjs → cloud-tenants-3GOGR3EN.cjs} +21 -21
- package/dist/components/case-studies/index.cjs +34 -34
- package/dist/components/chat/embeddable-chat.d.ts +16 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +5 -2
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.js +6 -0
- package/dist/components/contact/index.cjs +22 -22
- package/dist/components/docs/index.cjs +25 -25
- package/dist/components/embeds/index.cjs +22 -22
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +21 -21
- package/dist/components/help-center-pages/index.cjs +137 -137
- package/dist/components/index.cjs +76 -76
- package/dist/components/meeting-scheduler/index.cjs +63 -63
- package/dist/components/navigation/index.cjs +24 -24
- package/dist/components/onboarding-guides/index.cjs +24 -24
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +25 -25
- package/dist/components/ui/index.cjs +21 -21
- package/dist/components/ui/searchable-select.d.ts +29 -3
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +101 -45
- package/dist/{devices-A6SFNGE4.cjs → devices-POZXTP7X.cjs} +22 -22
- package/dist/{embeddable-chat-BKPYNOIM.cjs → embeddable-chat-I3Y5GCCR.cjs} +95 -92
- package/dist/hooks/index.cjs +8 -8
- package/dist/index.cjs +27 -27
- package/dist/{knowledge-5ZCVKUYV.cjs → knowledge-AP34IMXN.cjs} +22 -22
- package/dist/{logs-CL4OJASB.cjs → logs-CEVMIOPW.cjs} +29 -29
- package/dist/{policies-7D44ZVS5.cjs → policies-AMBMRCGB.cjs} +25 -25
- package/dist/{remote-session-QB3CIZRM.cjs → remote-session-Z4YZFG5E.cjs} +9 -9
- package/dist/{software-update-AX6TZL26.cjs → software-update-Z3MWMSHI.cjs} +25 -25
- package/dist/{tickets-board-7FAV2YWF.cjs → tickets-board-JOSYLOS7.cjs} +12 -12
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +29 -2
- package/src/components/chat/utils/icon-library.tsx +7 -0
- package/src/components/ui/searchable-select.tsx +124 -32
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkZRYKDN2Jcjs = require('./chunk-ZRYKDN2J.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkHZJRERJWcjs = require('./chunk-HZJRERJW.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunkHZJRERJWcjs = require('./chunk-HZJRERJW.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkDUXLZPMJcjs = require('./chunk-DUXLZPMJ.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 _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.cjs');
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
var
|
|
245
|
+
var _chunkNTJE6SM6cjs = require('./chunk-NTJE6SM6.cjs');
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -312,10 +312,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
312
312
|
|
|
313
313
|
|
|
314
314
|
|
|
315
|
-
var
|
|
315
|
+
var _chunkP3R23TOEcjs = require('./chunk-P3R23TOE.cjs');
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var _chunkMYBTNOS6cjs = require('./chunk-MYBTNOS6.cjs');
|
|
319
319
|
|
|
320
320
|
|
|
321
321
|
|
|
@@ -323,7 +323,7 @@ var _chunkNYY25425cjs = require('./chunk-NYY25425.cjs');
|
|
|
323
323
|
|
|
324
324
|
|
|
325
325
|
|
|
326
|
-
var
|
|
326
|
+
var _chunkFTTLBMHUcjs = require('./chunk-FTTLBMHU.cjs');
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -334,7 +334,7 @@ var _chunkCW3ML76Ucjs = require('./chunk-CW3ML76U.cjs');
|
|
|
334
334
|
|
|
335
335
|
|
|
336
336
|
|
|
337
|
-
var
|
|
337
|
+
var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
338
338
|
|
|
339
339
|
|
|
340
340
|
|
|
@@ -568,14 +568,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
568
568
|
for (const section of sectionIds) {
|
|
569
569
|
sectionIdMap.set(section.title, section.id);
|
|
570
570
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
571
|
-
sectionIdMap.set(
|
|
571
|
+
sectionIdMap.set(_chunkSA7LDEVJcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
const dedupe =
|
|
574
|
+
const dedupe = _chunkSA7LDEVJcjs.createHeadingIdDeduper.call(void 0, );
|
|
575
575
|
const map = /* @__PURE__ */ new Map();
|
|
576
576
|
let sectionOrdinal = 0;
|
|
577
577
|
let headingOrdinal = 0;
|
|
578
|
-
for (const { line, level, text: rawText } of
|
|
578
|
+
for (const { line, level, text: rawText } of _chunkSA7LDEVJcjs.scanHeadings.call(void 0, content)) {
|
|
579
579
|
const text2 = stripInlineMarkdown(rawText).trim();
|
|
580
580
|
headingOrdinal++;
|
|
581
581
|
if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -584,8 +584,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
584
584
|
for (const variation of [
|
|
585
585
|
text2,
|
|
586
586
|
text2.toLowerCase(),
|
|
587
|
-
|
|
588
|
-
|
|
587
|
+
_chunkSA7LDEVJcjs.stripHeadingEmojis.call(void 0, text2),
|
|
588
|
+
_chunkSA7LDEVJcjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
|
|
589
589
|
]) {
|
|
590
590
|
const id = sectionIdMap.get(variation);
|
|
591
591
|
if (id) {
|
|
@@ -595,7 +595,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
if (assigned === void 0) {
|
|
598
|
-
const baseId =
|
|
598
|
+
const baseId = _chunkSA7LDEVJcjs.slugifyHeadingText.call(void 0, text2);
|
|
599
599
|
assigned = dedupe(
|
|
600
600
|
baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
601
601
|
);
|
|
@@ -1476,7 +1476,7 @@ function findInlineCodeRanges(source) {
|
|
|
1476
1476
|
while (pos <= len) {
|
|
1477
1477
|
let end = source.indexOf("\n", pos);
|
|
1478
1478
|
if (end === -1) end = len;
|
|
1479
|
-
const blank =
|
|
1479
|
+
const blank = _chunkSA7LDEVJcjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
1480
1480
|
if (blank && segStart !== -1) break;
|
|
1481
1481
|
if (!blank) {
|
|
1482
1482
|
if (segStart === -1) segStart = pos;
|
|
@@ -1558,7 +1558,7 @@ function toMaskLines(source) {
|
|
|
1558
1558
|
return out;
|
|
1559
1559
|
}
|
|
1560
1560
|
function blankFencedRegions(masked, lines) {
|
|
1561
|
-
const fences =
|
|
1561
|
+
const fences = _chunkSA7LDEVJcjs.createFenceTracker.call(void 0, );
|
|
1562
1562
|
const ranges = [];
|
|
1563
1563
|
let openStart = null;
|
|
1564
1564
|
let lastEnd = 0;
|
|
@@ -1597,7 +1597,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
1597
1597
|
const listContentCols = [];
|
|
1598
1598
|
const ranges = [];
|
|
1599
1599
|
for (const line of lines) {
|
|
1600
|
-
if (
|
|
1600
|
+
if (_chunkSA7LDEVJcjs.isBlankLine.call(void 0, line.content)) continue;
|
|
1601
1601
|
const indent = leadingIndent(line.content);
|
|
1602
1602
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
1603
1603
|
if (indent >= top + 4) {
|
|
@@ -1688,7 +1688,7 @@ function contPrefixLen(c) {
|
|
|
1688
1688
|
function findLabelClose(lines, i, from) {
|
|
1689
1689
|
for (let j = i; j < lines.length; j++) {
|
|
1690
1690
|
const c = stripCr(lines[j].content);
|
|
1691
|
-
if (j > i &&
|
|
1691
|
+
if (j > i && _chunkSA7LDEVJcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
1692
1692
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
1693
1693
|
if (c[q] === "[") return { stoppedAt: j };
|
|
1694
1694
|
if (c[q] !== "]") continue;
|
|
@@ -1706,7 +1706,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
1706
1706
|
let k = from;
|
|
1707
1707
|
for (; k < lines.length; k++) {
|
|
1708
1708
|
const c = stripCr(lines[k].content);
|
|
1709
|
-
if (
|
|
1709
|
+
if (_chunkSA7LDEVJcjs.isBlankLine.call(void 0, c)) break;
|
|
1710
1710
|
blankLine(lines[k]);
|
|
1711
1711
|
if (stop(c)) {
|
|
1712
1712
|
k++;
|
|
@@ -1749,7 +1749,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
1749
1749
|
const k = j + 1;
|
|
1750
1750
|
if (k >= lines.length) break;
|
|
1751
1751
|
const c = stripCr(lines[k].content);
|
|
1752
|
-
if (
|
|
1752
|
+
if (_chunkSA7LDEVJcjs.isBlankLine.call(void 0, c)) break;
|
|
1753
1753
|
const at = contPrefixLen(c);
|
|
1754
1754
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
1755
1755
|
if (next.k === "decline") break;
|
|
@@ -1819,7 +1819,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
1819
1819
|
let sawBlank = false;
|
|
1820
1820
|
for (let k = i + 1; k < lines.length; k++) {
|
|
1821
1821
|
const c = text2(lines[k]);
|
|
1822
|
-
if (
|
|
1822
|
+
if (_chunkSA7LDEVJcjs.isBlankLine.call(void 0, c)) {
|
|
1823
1823
|
sawBlank = true;
|
|
1824
1824
|
continue;
|
|
1825
1825
|
}
|
|
@@ -1919,7 +1919,7 @@ function paragraphEnd(s, from) {
|
|
|
1919
1919
|
lineStart += 1;
|
|
1920
1920
|
const next = s.indexOf("\n", lineStart);
|
|
1921
1921
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
1922
|
-
if (
|
|
1922
|
+
if (_chunkSA7LDEVJcjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
1923
1923
|
if (next === -1) break;
|
|
1924
1924
|
lineStart = next;
|
|
1925
1925
|
}
|
|
@@ -2073,7 +2073,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2073
2073
|
run = [];
|
|
2074
2074
|
};
|
|
2075
2075
|
for (const line of lines) {
|
|
2076
|
-
if (
|
|
2076
|
+
if (_chunkSA7LDEVJcjs.isBlankLine.call(void 0, line.content)) {
|
|
2077
2077
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2078
2078
|
continue;
|
|
2079
2079
|
}
|
|
@@ -2298,7 +2298,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2298
2298
|
function computeHtmlBlockRanges(text2) {
|
|
2299
2299
|
if (text2.indexOf("<") === -1) return [];
|
|
2300
2300
|
const ranges = [];
|
|
2301
|
-
const fences =
|
|
2301
|
+
const fences = _chunkSA7LDEVJcjs.createFenceTracker.call(void 0, );
|
|
2302
2302
|
let kind = null;
|
|
2303
2303
|
let start = 0;
|
|
2304
2304
|
let lastEnd = 0;
|
|
@@ -2313,9 +2313,9 @@ function computeHtmlBlockRanges(text2) {
|
|
|
2313
2313
|
const expanded = expandTabs(line);
|
|
2314
2314
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2315
2315
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2316
|
-
else if (!
|
|
2317
|
-
const normBlank =
|
|
2318
|
-
const blank = openPrefixLen > 0 ?
|
|
2316
|
+
else if (!_chunkSA7LDEVJcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2317
|
+
const normBlank = _chunkSA7LDEVJcjs.isBlankLine.call(void 0, norm.text);
|
|
2318
|
+
const blank = openPrefixLen > 0 ? _chunkSA7LDEVJcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkSA7LDEVJcjs.isBlankLine.call(void 0, line);
|
|
2319
2319
|
if (kind !== null) {
|
|
2320
2320
|
if (kind >= 6) {
|
|
2321
2321
|
if (blank) {
|
|
@@ -2469,7 +2469,7 @@ var ScanState = class {
|
|
|
2469
2469
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
2470
2470
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
2471
2471
|
*/
|
|
2472
|
-
this.fences =
|
|
2472
|
+
this.fences = _chunkSA7LDEVJcjs.createFenceTracker.call(void 0, );
|
|
2473
2473
|
/** Depth of currently open raw HTML block containers. */
|
|
2474
2474
|
this.htmlDepth = 0;
|
|
2475
2475
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -2542,7 +2542,7 @@ function splitStreamingBlocks(content) {
|
|
|
2542
2542
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
2543
2543
|
const firstNonBlank = (arr) => {
|
|
2544
2544
|
for (const line of arr) {
|
|
2545
|
-
if (!
|
|
2545
|
+
if (!_chunkSA7LDEVJcjs.isBlankLine.call(void 0, line)) return line;
|
|
2546
2546
|
}
|
|
2547
2547
|
return void 0;
|
|
2548
2548
|
};
|
|
@@ -2552,10 +2552,10 @@ function splitStreamingBlocks(content) {
|
|
|
2552
2552
|
state.scanLine(line);
|
|
2553
2553
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
2554
2554
|
current.push(line);
|
|
2555
|
-
const isBlank =
|
|
2555
|
+
const isBlank = _chunkSA7LDEVJcjs.isBlankLine.call(void 0, line);
|
|
2556
2556
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
2557
2557
|
let j = i + 1;
|
|
2558
|
-
while (j < lines.length &&
|
|
2558
|
+
while (j < lines.length && _chunkSA7LDEVJcjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
2559
2559
|
if (j >= lines.length) continue;
|
|
2560
2560
|
const next = lines[j];
|
|
2561
2561
|
if (/^\s/.test(next)) continue;
|
|
@@ -2563,7 +2563,7 @@ function splitStreamingBlocks(content) {
|
|
|
2563
2563
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
2564
2564
|
continue;
|
|
2565
2565
|
}
|
|
2566
|
-
if (current.every(
|
|
2566
|
+
if (current.every(_chunkSA7LDEVJcjs.isBlankLine)) continue;
|
|
2567
2567
|
units.push(current);
|
|
2568
2568
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
2569
2569
|
current = [];
|
|
@@ -2686,7 +2686,7 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
|
|
|
2686
2686
|
// src/components/ui/markdown/base-components.tsx
|
|
2687
2687
|
|
|
2688
2688
|
var MarkdownContentImage = ({ src, alt }) => {
|
|
2689
|
-
const resolvedSrc =
|
|
2689
|
+
const resolvedSrc = _chunkFICJS5OAcjs.useAuthedImageSrc.call(void 0, src);
|
|
2690
2690
|
if (!resolvedSrc) return null;
|
|
2691
2691
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2692
2692
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
@@ -2759,7 +2759,7 @@ function buildBaseComponents({
|
|
|
2759
2759
|
const mapped = useHeadingId(node);
|
|
2760
2760
|
const taken = useAssignedHeadingIds();
|
|
2761
2761
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _38 => _38.properties, 'optionalAccess', _39 => _39.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
2762
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
2762
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkSA7LDEVJcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
2763
2763
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
2764
2764
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
2765
2765
|
}
|
|
@@ -2834,10 +2834,10 @@ function buildBaseComponents({
|
|
|
2834
2834
|
const handleAnchorClick = (e) => {
|
|
2835
2835
|
if (inPageAnchorId === null) return;
|
|
2836
2836
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
2837
|
-
const target =
|
|
2837
|
+
const target = _chunkSA7LDEVJcjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
2838
2838
|
if (!_optionalChain([target, 'optionalAccess', _40 => _40.id])) return;
|
|
2839
2839
|
e.preventDefault();
|
|
2840
|
-
|
|
2840
|
+
_chunkSA7LDEVJcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkSA7LDEVJcjs.HUB_HEADER_OFFSET_PX });
|
|
2841
2841
|
};
|
|
2842
2842
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2843
2843
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -3134,7 +3134,7 @@ function chatListensForAskAiOpens() {
|
|
|
3134
3134
|
|
|
3135
3135
|
// src/components/chat/chat-appearance-context.tsx
|
|
3136
3136
|
|
|
3137
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3137
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkDUXLZPMJcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3138
3138
|
function useChatAppearance() {
|
|
3139
3139
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3140
3140
|
}
|
|
@@ -3173,7 +3173,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3173
3173
|
...props
|
|
3174
3174
|
}, ref) => {
|
|
3175
3175
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3176
|
-
const isV2 = useChatAppearance() ===
|
|
3176
|
+
const isV2 = useChatAppearance() === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
|
|
3177
3177
|
const handleApprove = async () => {
|
|
3178
3178
|
setIsProcessing(true);
|
|
3179
3179
|
try {
|
|
@@ -3196,7 +3196,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3196
3196
|
{
|
|
3197
3197
|
ref,
|
|
3198
3198
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3199
|
-
|
|
3199
|
+
_chunkZRYKDN2Jcjs.CHAT_BLOCK_CLASS,
|
|
3200
3200
|
// v2: the thread owns the space below the card.
|
|
3201
3201
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3202
3202
|
className
|
|
@@ -3204,7 +3204,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3204
3204
|
...props,
|
|
3205
3205
|
children: [
|
|
3206
3206
|
/* @__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" }),
|
|
3207
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3207
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ApprovalWaitingLine, {}),
|
|
3208
3208
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3209
3209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3210
3210
|
_chunkAZL332TKcjs.Button,
|
|
@@ -3236,14 +3236,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3236
3236
|
children: "Reject"
|
|
3237
3237
|
}
|
|
3238
3238
|
)
|
|
3239
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3239
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3240
3240
|
]
|
|
3241
3241
|
}
|
|
3242
3242
|
);
|
|
3243
3243
|
}
|
|
3244
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3244
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkZRYKDN2Jcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3245
3245
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3246
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3246
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ApprovalWaitingLine, {}),
|
|
3247
3247
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3248
3248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3249
3249
|
_chunkAZL332TKcjs.Button,
|
|
@@ -3275,7 +3275,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3275
3275
|
children: "Reject"
|
|
3276
3276
|
}
|
|
3277
3277
|
)
|
|
3278
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3278
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3279
3279
|
] });
|
|
3280
3280
|
}
|
|
3281
3281
|
);
|
|
@@ -3305,7 +3305,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3305
3305
|
|
|
3306
3306
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3307
3307
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3308
|
-
const isV2 = useChatAppearance() ===
|
|
3308
|
+
const isV2 = useChatAppearance() === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
|
|
3309
3309
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3310
3310
|
"div",
|
|
3311
3311
|
{
|
|
@@ -3321,7 +3321,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3321
3321
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3322
3322
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3323
3323
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3324
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3324
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkDUXLZPMJcjs.formatTime.call(void 0, timestamp) })
|
|
3325
3325
|
] }),
|
|
3326
3326
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3327
3327
|
] })
|
|
@@ -3436,7 +3436,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3436
3436
|
AiAssistantInfo,
|
|
3437
3437
|
{
|
|
3438
3438
|
ref,
|
|
3439
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3439
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFTTLBMHUcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3440
3440
|
title: "Technician Joined",
|
|
3441
3441
|
body: `You're now chatting with ${joined}.`,
|
|
3442
3442
|
timestamp,
|
|
@@ -3520,7 +3520,7 @@ var thoughtMdClasses = [
|
|
|
3520
3520
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3521
3521
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3522
3522
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3523
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3523
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkZRYKDN2Jcjs.useCollapsible.call(void 0, {
|
|
3524
3524
|
expanded,
|
|
3525
3525
|
collapsedHeight: 19,
|
|
3526
3526
|
disableTransition: isStreaming
|
|
@@ -3535,7 +3535,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3535
3535
|
setExpanded(!expanded);
|
|
3536
3536
|
}
|
|
3537
3537
|
};
|
|
3538
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3538
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkZRYKDN2Jcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3539
3539
|
"div",
|
|
3540
3540
|
{
|
|
3541
3541
|
role: "button",
|
|
@@ -3553,7 +3553,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3553
3553
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3554
3554
|
] }),
|
|
3555
3555
|
/* @__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" }) }) }),
|
|
3556
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3556
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ExpandChevron, { expanded }) })
|
|
3557
3557
|
]
|
|
3558
3558
|
}
|
|
3559
3559
|
) });
|
|
@@ -3674,9 +3674,9 @@ var iconTint = {
|
|
|
3674
3674
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3675
3675
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3676
3676
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3677
|
-
const { innerRef, containerStyle } =
|
|
3677
|
+
const { innerRef, containerStyle } = _chunkZRYKDN2Jcjs.useCollapsible.call(void 0, { expanded });
|
|
3678
3678
|
const hasDetails = Boolean(details);
|
|
3679
|
-
const isV2 = useChatAppearance() ===
|
|
3679
|
+
const isV2 = useChatAppearance() === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
|
|
3680
3680
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3681
3681
|
"div",
|
|
3682
3682
|
{
|
|
@@ -3713,7 +3713,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
3713
3713
|
children: title
|
|
3714
3714
|
}
|
|
3715
3715
|
),
|
|
3716
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3716
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ExpandChevron, { expanded })
|
|
3717
3717
|
]
|
|
3718
3718
|
}
|
|
3719
3719
|
),
|
|
@@ -3757,7 +3757,7 @@ function MspOrganizationCard({
|
|
|
3757
3757
|
className
|
|
3758
3758
|
),
|
|
3759
3759
|
children: [
|
|
3760
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3760
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFTTLBMHUcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
3761
3761
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3762
3762
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
3763
3763
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -3778,7 +3778,7 @@ function MspOrganizationCard({
|
|
|
3778
3778
|
className
|
|
3779
3779
|
),
|
|
3780
3780
|
children: [
|
|
3781
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3781
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFTTLBMHUcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
3782
3782
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3783
3783
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
3784
3784
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -3912,7 +3912,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3912
3912
|
] })
|
|
3913
3913
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
3914
3914
|
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,
|
|
3915
|
-
|
|
3915
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
3916
3916
|
{
|
|
3917
3917
|
src: userAvatar,
|
|
3918
3918
|
alt: userName,
|
|
@@ -3988,9 +3988,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3988
3988
|
)
|
|
3989
3989
|
] }),
|
|
3990
3990
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3991
|
-
|
|
3991
|
+
_chunkZRYKDN2Jcjs.TicketStatusTag,
|
|
3992
3992
|
{
|
|
3993
|
-
...
|
|
3993
|
+
..._chunkZRYKDN2Jcjs.resolveStatusTagProps.call(void 0, {
|
|
3994
3994
|
status: ticketInfo.status,
|
|
3995
3995
|
statusKind: ticketInfo.statusKind,
|
|
3996
3996
|
statusName: ticketInfo.statusName,
|
|
@@ -4547,11 +4547,11 @@ var remarkMentionChips = () => {
|
|
|
4547
4547
|
// src/components/chat/tool-execution-display.tsx
|
|
4548
4548
|
|
|
4549
4549
|
|
|
4550
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4550
|
+
var COMMAND_BODY_KEYS = new Set(_chunkZRYKDN2Jcjs.COMMAND_BODY_ARG_KEYS);
|
|
4551
4551
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4552
4552
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4553
4553
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4554
|
-
const { innerRef, containerStyle } =
|
|
4554
|
+
const { innerRef, containerStyle } = _chunkZRYKDN2Jcjs.useCollapsible.call(void 0, { expanded });
|
|
4555
4555
|
const isClient = assistantType === "fae";
|
|
4556
4556
|
const isClientView = variant === "client";
|
|
4557
4557
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4581,7 +4581,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4581
4581
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
4582
4582
|
const statusLabel = _optionalChain([message, 'access', _79 => _79.statusLabel, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
4583
4583
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4584
|
-
!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,
|
|
4584
|
+
!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, _chunkNTJE6SM6cjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
4585
4585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4586
4586
|
"div",
|
|
4587
4587
|
{
|
|
@@ -4593,7 +4593,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4593
4593
|
}
|
|
4594
4594
|
),
|
|
4595
4595
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4596
|
-
!isStaticRow && /* @__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,
|
|
4596
|
+
!isStaticRow && /* @__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, _chunkZRYKDN2Jcjs.ExpandChevron, { expanded }) })
|
|
4597
4597
|
] });
|
|
4598
4598
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4599
4599
|
"div",
|
|
@@ -4603,7 +4603,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4603
4603
|
// The command running block keeps its bordered box in both chats
|
|
4604
4604
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4605
4605
|
"flex w-full flex-col overflow-hidden",
|
|
4606
|
-
|
|
4606
|
+
_chunkZRYKDN2Jcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4607
4607
|
className
|
|
4608
4608
|
),
|
|
4609
4609
|
...props,
|
|
@@ -4614,7 +4614,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4614
4614
|
// It reads as a card: what was done, then one status line under it.
|
|
4615
4615
|
/* @__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: [
|
|
4616
4616
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4617
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4618
4618
|
] })
|
|
4619
4619
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4620
4620
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4627,9 +4627,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4627
4627
|
}
|
|
4628
4628
|
),
|
|
4629
4629
|
/* @__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: [
|
|
4630
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4630
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.ArgRow, { argKey: key, value }, key)),
|
|
4631
4631
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4632
|
-
|
|
4632
|
+
_chunkZRYKDN2Jcjs.ResultBlock,
|
|
4633
4633
|
{
|
|
4634
4634
|
result: message.result,
|
|
4635
4635
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4683,8 +4683,8 @@ var remarkStripCitations = () => {
|
|
|
4683
4683
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
4684
4684
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
4685
4685
|
function formatMessageTimestamp(timestamp) {
|
|
4686
|
-
const time =
|
|
4687
|
-
return
|
|
4686
|
+
const time = _chunkDUXLZPMJcjs.formatTime.call(void 0, timestamp);
|
|
4687
|
+
return _chunkZRYKDN2Jcjs.isToday.call(void 0, timestamp) ? time : `${_chunkDUXLZPMJcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
4688
4688
|
}
|
|
4689
4689
|
function normalizeContent(content) {
|
|
4690
4690
|
if (typeof content === "string") {
|
|
@@ -4738,7 +4738,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4738
4738
|
const isError = role === "error";
|
|
4739
4739
|
const inheritedAppearance = useChatAppearance();
|
|
4740
4740
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
4741
|
-
const isV2 = appearance ===
|
|
4741
|
+
const isV2 = appearance === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
|
|
4742
4742
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
4743
4743
|
const hasMarkerSupport = !!renderEntityCard;
|
|
4744
4744
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -4922,9 +4922,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4922
4922
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
4923
4923
|
const face = !showAvatar || isSystem ? null : !isUser && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isUser && !avatar && assistantType ? (
|
|
4924
4924
|
// An agent with no picture shows its packaged mark, never initials.
|
|
4925
|
-
/* @__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,
|
|
4925
|
+
/* @__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, _chunkZRYKDN2Jcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
4926
4926
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4927
|
-
|
|
4927
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
4928
4928
|
{
|
|
4929
4929
|
src: avatar || void 0,
|
|
4930
4930
|
alt: displayName,
|
|
@@ -5003,7 +5003,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5003
5003
|
);
|
|
5004
5004
|
} else if (segment.type === "approval_batch") {
|
|
5005
5005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5006
|
-
|
|
5006
|
+
_chunkZRYKDN2Jcjs.ApprovalBatchMessage,
|
|
5007
5007
|
{
|
|
5008
5008
|
data: segment.data,
|
|
5009
5009
|
status: segment.status,
|
|
@@ -5262,7 +5262,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5262
5262
|
contentClassName,
|
|
5263
5263
|
assistantType,
|
|
5264
5264
|
approvalVariant,
|
|
5265
|
-
appearance =
|
|
5265
|
+
appearance = _chunkDUXLZPMJcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5266
5266
|
assistantIcon,
|
|
5267
5267
|
pendingApprovals,
|
|
5268
5268
|
hasNextPage,
|
|
@@ -5781,7 +5781,7 @@ function renderQuickActionIcon(icon) {
|
|
|
5781
5781
|
if (!spec.name && !spec.url) return void 0;
|
|
5782
5782
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
5783
5783
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
5784
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5784
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
5785
5785
|
}
|
|
5786
5786
|
function composeChipLabel(label, lozenge) {
|
|
5787
5787
|
if (!lozenge) return label;
|
|
@@ -5818,7 +5818,7 @@ function QuickActionChipSkeleton({
|
|
|
5818
5818
|
}) {
|
|
5819
5819
|
const question = variant === "question";
|
|
5820
5820
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5821
|
-
|
|
5821
|
+
_chunkFTTLBMHUcjs.Tag,
|
|
5822
5822
|
{
|
|
5823
5823
|
variant: "outline",
|
|
5824
5824
|
size: question ? "sentence" : size,
|
|
@@ -5854,7 +5854,7 @@ function QuickActionChipButton({
|
|
|
5854
5854
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
5855
5855
|
const tagSize = question ? "sentence" : size;
|
|
5856
5856
|
if (!interactive) {
|
|
5857
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5857
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFTTLBMHUcjs.Tag, { variant: tagVariant, size: tagSize, icon: resolvedIcon, label: resolvedLabel, className });
|
|
5858
5858
|
}
|
|
5859
5859
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5860
5860
|
"button",
|
|
@@ -5873,7 +5873,7 @@ function QuickActionChipButton({
|
|
|
5873
5873
|
className
|
|
5874
5874
|
),
|
|
5875
5875
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5876
|
-
|
|
5876
|
+
_chunkFTTLBMHUcjs.Tag,
|
|
5877
5877
|
{
|
|
5878
5878
|
variant: tagVariant,
|
|
5879
5879
|
size: tagSize,
|
|
@@ -6450,7 +6450,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6450
6450
|
|
|
6451
6451
|
[Attached: ${safeName}](${url})`;
|
|
6452
6452
|
}
|
|
6453
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6453
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkP3R23TOEcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6454
6454
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6455
6455
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6456
6456
|
"gm"
|
|
@@ -6700,7 +6700,7 @@ function MarqueeWallFades({
|
|
|
6700
6700
|
}) });
|
|
6701
6701
|
}
|
|
6702
6702
|
function CloneCopy({ className, style, children }) {
|
|
6703
|
-
const ref =
|
|
6703
|
+
const ref = _chunkSA7LDEVJcjs.useSuppressCloneFocus.call(void 0, true);
|
|
6704
6704
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
6705
6705
|
}
|
|
6706
6706
|
function MarqueeWall({
|
|
@@ -6727,7 +6727,7 @@ function MarqueeWall({
|
|
|
6727
6727
|
const containerRef = _react.useRef.call(void 0, null);
|
|
6728
6728
|
const trackRef = _react.useRef.call(void 0, null);
|
|
6729
6729
|
const copyRef = _react.useRef.call(void 0, null);
|
|
6730
|
-
const reducedMotion = _nullishCoalesce(
|
|
6730
|
+
const reducedMotion = _nullishCoalesce(_chunkFICJS5OAcjs.useMediaQuery.call(void 0, "(prefers-reduced-motion: reduce)"), () => ( false));
|
|
6731
6731
|
const [overflows, setOverflows] = _react.useState.call(void 0, false);
|
|
6732
6732
|
const copySizeRef = _react.useRef.call(void 0, 0);
|
|
6733
6733
|
const wrapSizeRef = _react.useRef.call(void 0, 0);
|
|
@@ -6754,7 +6754,7 @@ function MarqueeWall({
|
|
|
6754
6754
|
ro.observe(copy);
|
|
6755
6755
|
return () => ro.disconnect();
|
|
6756
6756
|
}, [measure, marqueeMounted]);
|
|
6757
|
-
const { ref: observe, inView: nearViewport } =
|
|
6757
|
+
const { ref: observe, inView: nearViewport } = _chunkSA7LDEVJcjs.useInView.call(void 0, {
|
|
6758
6758
|
rootMargin: _chunkCW3ML76Ucjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
6759
6759
|
initial: true
|
|
6760
6760
|
});
|
|
@@ -6762,7 +6762,7 @@ function MarqueeWall({
|
|
|
6762
6762
|
observe(containerRef.current);
|
|
6763
6763
|
return () => observe(null);
|
|
6764
6764
|
}, [observe]);
|
|
6765
|
-
const autoplay =
|
|
6765
|
+
const autoplay = _chunkSA7LDEVJcjs.useAutoplay.call(void 0, nearViewport);
|
|
6766
6766
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
6767
6767
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
6768
6768
|
pointerInsideRef.current = false;
|
|
@@ -6775,7 +6775,7 @@ function MarqueeWall({
|
|
|
6775
6775
|
if (e.pointerType === "touch") return;
|
|
6776
6776
|
pointerInsideRef.current = false;
|
|
6777
6777
|
}, []);
|
|
6778
|
-
|
|
6778
|
+
_chunkSA7LDEVJcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
6779
6779
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
6780
6780
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
6781
6781
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -6828,7 +6828,7 @@ function MarqueeWall({
|
|
|
6828
6828
|
if (!sync) return void 0;
|
|
6829
6829
|
return sync.register(member);
|
|
6830
6830
|
}, [sync, member]);
|
|
6831
|
-
const { posRef, wrap } =
|
|
6831
|
+
const { posRef, wrap } = _chunkSA7LDEVJcjs.useMarqueeEngine.call(void 0, {
|
|
6832
6832
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
6833
6833
|
speed,
|
|
6834
6834
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -7398,7 +7398,7 @@ function MingoChatHistoryRow({
|
|
|
7398
7398
|
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")
|
|
7399
7399
|
),
|
|
7400
7400
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7401
|
-
|
|
7401
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
7402
7402
|
{
|
|
7403
7403
|
variant: "round",
|
|
7404
7404
|
sizePx: 24,
|
|
@@ -7602,7 +7602,7 @@ function MingoWelcome({
|
|
|
7602
7602
|
onScroll: updateScrollFade,
|
|
7603
7603
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7604
7604
|
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: [
|
|
7605
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7605
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7606
7606
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7607
7607
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7608
7608
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7724,8 +7724,8 @@ function GuideWelcome({
|
|
|
7724
7724
|
icon && (icon.name || icon.url) ? (
|
|
7725
7725
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7726
7726
|
// match the default Mingo mark (48px).
|
|
7727
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7728
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7727
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7728
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7729
7729
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7730
7730
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7731
7731
|
subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5M5C6UV4cjs.Skeleton, { className: "h-5 w-3/4 max-w-80 rounded-sm" }) }) : null
|
|
@@ -7927,9 +7927,9 @@ function MingoArchiveList({
|
|
|
7927
7927
|
title: dialog.title || "Untitled Chat",
|
|
7928
7928
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _176 => _176(dialog.id)]),
|
|
7929
7929
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
7930
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
7930
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkZRYKDN2Jcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
7931
7931
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7932
|
-
|
|
7932
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
7933
7933
|
{
|
|
7934
7934
|
variant: "round",
|
|
7935
7935
|
sizePx: 24,
|
|
@@ -8011,7 +8011,7 @@ function MingoChatHeader({
|
|
|
8011
8011
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8012
8012
|
] }),
|
|
8013
8013
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8014
|
-
|
|
8014
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
8015
8015
|
{
|
|
8016
8016
|
variant: "round",
|
|
8017
8017
|
sizePx: 32,
|
|
@@ -8048,7 +8048,7 @@ function ChatHeaderSearchField({
|
|
|
8048
8048
|
className
|
|
8049
8049
|
}) {
|
|
8050
8050
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8051
|
-
const debounced =
|
|
8051
|
+
const debounced = _chunkSA7LDEVJcjs.useDebounce.call(void 0, value, 300);
|
|
8052
8052
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8053
8053
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
8054
8054
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -8287,7 +8287,7 @@ function MingoChatRail({
|
|
|
8287
8287
|
"data-accent": "mingo",
|
|
8288
8288
|
"aria-label": "Mingo chats",
|
|
8289
8289
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8291
8291
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8292
8292
|
_chunkAZL332TKcjs.Button,
|
|
8293
8293
|
{
|
|
@@ -8567,8 +8567,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8567
8567
|
const save = () => {
|
|
8568
8568
|
if (canSave) onSave(name.trim());
|
|
8569
8569
|
};
|
|
8570
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8571
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8570
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDUXLZPMJcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8571
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDUXLZPMJcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDUXLZPMJcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8572
8572
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8573
8573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8574
8574
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8585,27 +8585,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8585
8585
|
}
|
|
8586
8586
|
)
|
|
8587
8587
|
] }),
|
|
8588
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8588
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDUXLZPMJcjs.ModalFooter, { children: [
|
|
8589
8589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8590
8590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8591
8591
|
] })
|
|
8592
8592
|
] });
|
|
8593
8593
|
}
|
|
8594
8594
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8595
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8596
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8595
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDUXLZPMJcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8596
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDUXLZPMJcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDUXLZPMJcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8597
8597
|
/* @__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." }),
|
|
8598
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8598
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDUXLZPMJcjs.ModalFooter, { children: [
|
|
8599
8599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8600
8600
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8601
8601
|
] })
|
|
8602
8602
|
] });
|
|
8603
8603
|
}
|
|
8604
8604
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8605
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8606
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8605
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDUXLZPMJcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8606
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDUXLZPMJcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDUXLZPMJcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8607
8607
|
/* @__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." }),
|
|
8608
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8608
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDUXLZPMJcjs.ModalFooter, { children: [
|
|
8609
8609
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8610
8610
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8611
8611
|
] })
|
|
@@ -8778,7 +8778,7 @@ function ChatPanelHeader({
|
|
|
8778
8778
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8779
8779
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8780
8780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8781
|
-
|
|
8781
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
8782
8782
|
{
|
|
8783
8783
|
variant: "round",
|
|
8784
8784
|
sizePx: 32,
|
|
@@ -8936,8 +8936,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
8936
8936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
8937
8937
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
8938
8938
|
status === "sniffing" && "Checking\u2026",
|
|
8939
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
8940
|
-
status === "ready" &&
|
|
8939
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkFTTLBMHUcjs.formatFileSize.call(void 0, file.size)}`,
|
|
8940
|
+
status === "ready" && _chunkFTTLBMHUcjs.formatFileSize.call(void 0, file.size),
|
|
8941
8941
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
8942
8942
|
] })
|
|
8943
8943
|
] }),
|
|
@@ -9185,7 +9185,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9185
9185
|
}, ref) => {
|
|
9186
9186
|
const icon = getProviderIcon(provider);
|
|
9187
9187
|
const name = displayName || modelName;
|
|
9188
|
-
const isV2 = useChatAppearance() ===
|
|
9188
|
+
const isV2 = useChatAppearance() === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
|
|
9189
9189
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9190
9190
|
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: [
|
|
9191
9191
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9314,7 +9314,7 @@ function ChatComposer({
|
|
|
9314
9314
|
}, [entityTypes]);
|
|
9315
9315
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9316
9316
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9317
|
-
|
|
9317
|
+
_chunkDUXLZPMJcjs.ChatInput,
|
|
9318
9318
|
{
|
|
9319
9319
|
ref: inputRef,
|
|
9320
9320
|
onSend,
|
|
@@ -9528,17 +9528,17 @@ function resolveExternalNavigation(args) {
|
|
|
9528
9528
|
|
|
9529
9529
|
// src/components/chat/utils/execute-navigation.ts
|
|
9530
9530
|
function isForeignOriginHref(href) {
|
|
9531
|
-
return /^https?:\/\//i.test(href) && !
|
|
9531
|
+
return /^https?:\/\//i.test(href) && !_chunkP3R23TOEcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9532
9532
|
}
|
|
9533
9533
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9534
|
-
const isNewTab = runtime ?
|
|
9534
|
+
const isNewTab = runtime ? _chunkP3R23TOEcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9535
9535
|
if (isNewTab) {
|
|
9536
9536
|
if (_optionalChain([runtime, 'optionalAccess', _202 => _202.navigation, 'access', _203 => _203.openExternal])) runtime.navigation.openExternal(href);
|
|
9537
9537
|
else window.open(href, "_blank", NEW_TAB_FEATURES);
|
|
9538
9538
|
return;
|
|
9539
9539
|
}
|
|
9540
9540
|
const target = isForeignOriginHref(href) ? href : stripSameOriginToPath(href);
|
|
9541
|
-
if (target.includes("#") &&
|
|
9541
|
+
if (target.includes("#") && _chunkSA7LDEVJcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkSA7LDEVJcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9542
9542
|
return;
|
|
9543
9543
|
}
|
|
9544
9544
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.navigate, 'optionalCall', _206 => _206({ href, path, targetPlatform })]), () => ( false));
|
|
@@ -9589,7 +9589,7 @@ function useNavLinkViaRuntime({
|
|
|
9589
9589
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9590
9590
|
const panel = useChatPanel();
|
|
9591
9591
|
const resolvedHref = resolveHrefForRuntime(href, runtime);
|
|
9592
|
-
const isNewTab =
|
|
9592
|
+
const isNewTab = _chunkP3R23TOEcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9593
9593
|
const onClick = (e) => {
|
|
9594
9594
|
_optionalChain([onClickProp, 'optionalCall', _207 => _207(e)]);
|
|
9595
9595
|
if (e.defaultPrevented) return;
|
|
@@ -9603,7 +9603,7 @@ function useNavLinkViaRuntime({
|
|
|
9603
9603
|
});
|
|
9604
9604
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _208 => _208.closeChat])) panel.closeChat();
|
|
9605
9605
|
};
|
|
9606
|
-
const attrs =
|
|
9606
|
+
const attrs = _chunkP3R23TOEcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9607
9607
|
return {
|
|
9608
9608
|
href: resolvedHref,
|
|
9609
9609
|
...attrs,
|
|
@@ -9748,9 +9748,9 @@ function UserDisplay({
|
|
|
9748
9748
|
}) {
|
|
9749
9749
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
9750
9750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9751
|
-
|
|
9751
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
9752
9752
|
{
|
|
9753
|
-
src: avatarUrl ?
|
|
9753
|
+
src: avatarUrl ? _chunkP3R23TOEcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9754
9754
|
fallback: name,
|
|
9755
9755
|
alt: name,
|
|
9756
9756
|
sizePx: size,
|
|
@@ -9858,7 +9858,7 @@ function ManagedCell({
|
|
|
9858
9858
|
}) {
|
|
9859
9859
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
9860
9860
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
9861
|
-
const cloneRef =
|
|
9861
|
+
const cloneRef = _chunkSA7LDEVJcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
9862
9862
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9863
9863
|
"div",
|
|
9864
9864
|
{
|
|
@@ -9974,12 +9974,12 @@ function CardsStrip(props) {
|
|
|
9974
9974
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
9975
9975
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
9976
9976
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
9977
|
-
const { ref: observe, inView: nearViewport } =
|
|
9977
|
+
const { ref: observe, inView: nearViewport } = _chunkSA7LDEVJcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
9978
9978
|
_react.useEffect.call(void 0, () => {
|
|
9979
9979
|
observe(wrapperRef.current);
|
|
9980
9980
|
return () => observe(null);
|
|
9981
9981
|
}, [observe]);
|
|
9982
|
-
const autoplay =
|
|
9982
|
+
const autoplay = _chunkSA7LDEVJcjs.useAutoplay.call(void 0, nearViewport);
|
|
9983
9983
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
9984
9984
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
9985
9985
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -10026,7 +10026,7 @@ function CardsStrip(props) {
|
|
|
10026
10026
|
const current = activeKeyRef.current;
|
|
10027
10027
|
if (current !== null) deactivate(current);
|
|
10028
10028
|
}, [deactivate]);
|
|
10029
|
-
|
|
10029
|
+
_chunkSA7LDEVJcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
10030
10030
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
10031
10031
|
const scroller = scrollerRef.current;
|
|
10032
10032
|
if (!scroller) return;
|
|
@@ -10047,7 +10047,7 @@ function CardsStrip(props) {
|
|
|
10047
10047
|
},
|
|
10048
10048
|
[reverse, seamBuffer]
|
|
10049
10049
|
);
|
|
10050
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
10050
|
+
const { posRef: marqueePosRef, glideBy } = _chunkSA7LDEVJcjs.useMarqueeEngine.call(void 0, {
|
|
10051
10051
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
10052
10052
|
// engine would keep scheduling frames forever), same treatment as
|
|
10053
10053
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -10196,7 +10196,7 @@ function CardsStrip(props) {
|
|
|
10196
10196
|
},
|
|
10197
10197
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10198
10198
|
children: [
|
|
10199
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10199
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkP3R23TOEcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkP3R23TOEcjs.accentSentenceMarks.call(void 0, title) }),
|
|
10200
10200
|
headerSlot,
|
|
10201
10201
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10202
10202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10348,7 +10348,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10348
10348
|
|
|
10349
10349
|
function VideoBitesStrip({
|
|
10350
10350
|
bites,
|
|
10351
|
-
title =
|
|
10351
|
+
title = _chunkP3R23TOEcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10352
10352
|
showTitle = true,
|
|
10353
10353
|
filterPublished = true,
|
|
10354
10354
|
profile = null,
|
|
@@ -10361,7 +10361,7 @@ function VideoBitesStrip({
|
|
|
10361
10361
|
cardHeightMobile = 300,
|
|
10362
10362
|
showChevrons = true,
|
|
10363
10363
|
onBiteNavigate,
|
|
10364
|
-
sortComparator =
|
|
10364
|
+
sortComparator = _chunkP3R23TOEcjs.sortBitesByCreatedAtDesc,
|
|
10365
10365
|
className
|
|
10366
10366
|
}) {
|
|
10367
10367
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -10515,7 +10515,7 @@ function VideoBiteCard({
|
|
|
10515
10515
|
style: { aspectRatio: cssAspect, ...height !== void 0 ? { height, maxWidth: STRIP_CELL_MAX_WIDTH } : {} },
|
|
10516
10516
|
children: [
|
|
10517
10517
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10518
|
-
|
|
10518
|
+
_chunkP3R23TOEcjs.VideoHoverPreviewSurface,
|
|
10519
10519
|
{
|
|
10520
10520
|
url: bite.url,
|
|
10521
10521
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10586,7 +10586,7 @@ function EntityVideoSection({
|
|
|
10586
10586
|
title = "Video",
|
|
10587
10587
|
videoSummary,
|
|
10588
10588
|
videoBites,
|
|
10589
|
-
bitesTitle =
|
|
10589
|
+
bitesTitle = _chunkP3R23TOEcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10590
10590
|
filterPublishedBites = true,
|
|
10591
10591
|
bitesProfile = null,
|
|
10592
10592
|
bitesHref,
|
|
@@ -10632,7 +10632,7 @@ function EntityVideoSection({
|
|
|
10632
10632
|
)
|
|
10633
10633
|
] }),
|
|
10634
10634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10635
|
-
|
|
10635
|
+
_chunkP3R23TOEcjs.Video,
|
|
10636
10636
|
{
|
|
10637
10637
|
kind: fullVideoKind,
|
|
10638
10638
|
url: fullVideoUrl,
|
|
@@ -10644,7 +10644,7 @@ function EntityVideoSection({
|
|
|
10644
10644
|
}
|
|
10645
10645
|
) }),
|
|
10646
10646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10647
|
-
|
|
10647
|
+
_chunkP3R23TOEcjs.Video,
|
|
10648
10648
|
{
|
|
10649
10649
|
url: highlightVideoUrl,
|
|
10650
10650
|
poster: highlightVideoThumbnail,
|
|
@@ -10653,7 +10653,7 @@ function EntityVideoSection({
|
|
|
10653
10653
|
}
|
|
10654
10654
|
) })
|
|
10655
10655
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10656
|
-
|
|
10656
|
+
_chunkP3R23TOEcjs.Video,
|
|
10657
10657
|
{
|
|
10658
10658
|
kind: fullVideoKind,
|
|
10659
10659
|
url: fullVideoUrl,
|
|
@@ -10664,7 +10664,7 @@ function EntityVideoSection({
|
|
|
10664
10664
|
priority
|
|
10665
10665
|
}
|
|
10666
10666
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10667
|
-
|
|
10667
|
+
_chunkP3R23TOEcjs.Video,
|
|
10668
10668
|
{
|
|
10669
10669
|
url: highlightVideoUrl,
|
|
10670
10670
|
poster: highlightVideoThumbnail,
|
|
@@ -10674,7 +10674,7 @@ function EntityVideoSection({
|
|
|
10674
10674
|
}
|
|
10675
10675
|
) : null),
|
|
10676
10676
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkP3R23TOEcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10678
10678
|
/* @__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 }) })
|
|
10679
10679
|
] }),
|
|
10680
10680
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10934,14 +10934,14 @@ function designDocPeople(doc) {
|
|
|
10934
10934
|
return people;
|
|
10935
10935
|
}
|
|
10936
10936
|
function designDocMetaLine(doc) {
|
|
10937
|
-
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10937
|
+
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkP3R23TOEcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10938
10938
|
}
|
|
10939
10939
|
function DesignDocCardSkeleton() {
|
|
10940
10940
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10941
10941
|
"div",
|
|
10942
10942
|
{
|
|
10943
10943
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10944
|
-
|
|
10944
|
+
_chunkP3R23TOEcjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
10945
10945
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
10946
10946
|
),
|
|
10947
10947
|
role: "status",
|
|
@@ -10971,7 +10971,7 @@ function DesignDocCardSkeleton() {
|
|
|
10971
10971
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10972
10972
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10973
10973
|
const people = designDocPeople(doc);
|
|
10974
|
-
const link =
|
|
10974
|
+
const link = _chunkP3R23TOEcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10975
10975
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10976
10976
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
10977
10977
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -10979,7 +10979,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10979
10979
|
/* @__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) }) })
|
|
10980
10980
|
] }),
|
|
10981
10981
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10982
|
-
|
|
10982
|
+
_chunkP3R23TOEcjs.StatusBadge,
|
|
10983
10983
|
{
|
|
10984
10984
|
text: readiness.label,
|
|
10985
10985
|
colorScheme: readiness.scheme,
|
|
@@ -10989,16 +10989,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10989
10989
|
}
|
|
10990
10990
|
)
|
|
10991
10991
|
] }),
|
|
10992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
10993
10993
|
/* @__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 || "" }) }),
|
|
10994
10994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10995
10995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
10996
10996
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
10997
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10997
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMYBTNOS6cjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10998
10998
|
] })
|
|
10999
10999
|
] });
|
|
11000
11000
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11001
|
-
|
|
11001
|
+
_chunkP3R23TOEcjs.CONTENT_CARD_FRAME_CLASS,
|
|
11002
11002
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
11003
11003
|
className
|
|
11004
11004
|
);
|
|
@@ -11108,7 +11108,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11108
11108
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11109
11109
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11110
11110
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11111
|
-
const dateText =
|
|
11111
|
+
const dateText = _chunkFTTLBMHUcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11112
11112
|
const idLabel = formatActivityId(item.id, kind);
|
|
11113
11113
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11114
11114
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11142,26 +11142,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11142
11142
|
metaParts.push(
|
|
11143
11143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11144
11144
|
);
|
|
11145
|
-
const href =
|
|
11145
|
+
const href = _chunkP3R23TOEcjs.safeHref.call(void 0, item.url);
|
|
11146
11146
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11147
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11148
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11149
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11147
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11148
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11149
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11150
11150
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11151
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11151
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11152
11152
|
] }),
|
|
11153
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11153
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11154
11154
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11155
11155
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11156
11156
|
] }, i)) }) }),
|
|
11157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_SUMMARY, children: _chunkP3R23TOEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11158
11158
|
] }),
|
|
11159
11159
|
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
|
|
11160
11160
|
] });
|
|
11161
11161
|
if (anchorProps) {
|
|
11162
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11162
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkP3R23TOEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11163
11163
|
}
|
|
11164
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11164
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkP3R23TOEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11165
11165
|
}
|
|
11166
11166
|
function GitHubActivityCardSkeleton({
|
|
11167
11167
|
variant = "compact",
|
|
@@ -11178,12 +11178,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11178
11178
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
11179
11179
|
] });
|
|
11180
11180
|
}
|
|
11181
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11182
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11183
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11184
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11185
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11186
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11181
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11182
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11183
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11184
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
11185
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11186
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_SUMMARY, children: _chunkP3R23TOEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11187
11187
|
] }),
|
|
11188
11188
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
|
|
11189
11189
|
] });
|
|
@@ -11195,29 +11195,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11195
11195
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11196
11196
|
const goalsCount = _optionalChain([campaign, 'access', _245 => _245.goals, 'optionalAccess', _246 => _246.length]) || 0;
|
|
11197
11197
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11198
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11199
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11200
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11201
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11202
|
-
campaign.start_date ?
|
|
11198
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
11199
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11200
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
11201
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
11202
|
+
campaign.start_date ? _chunkP3R23TOEcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
11203
11203
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11204
11204
|
"Marketing campaign"
|
|
11205
11205
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11206
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11206
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkP3R23TOEcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11207
11207
|
] })
|
|
11208
11208
|
] });
|
|
11209
11209
|
if (anchorProps) {
|
|
11210
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11210
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkP3R23TOEcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
11211
11211
|
}
|
|
11212
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
11212
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
11213
11213
|
}
|
|
11214
11214
|
function CampaignCardAdminSkeleton({ className }) {
|
|
11215
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11216
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11217
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11218
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11219
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11220
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11215
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11216
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11217
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11218
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
11219
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11220
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
11221
11221
|
] })
|
|
11222
11222
|
] });
|
|
11223
11223
|
}
|
|
@@ -11308,7 +11308,7 @@ function VendorIcon({
|
|
|
11308
11308
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11309
11309
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
11310
11310
|
{
|
|
11311
|
-
src:
|
|
11311
|
+
src: _chunkP3R23TOEcjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11312
11312
|
alt: `${vendor.title} logo`,
|
|
11313
11313
|
width,
|
|
11314
11314
|
height,
|
|
@@ -11338,8 +11338,8 @@ function useChatCardItem(type, id) {
|
|
|
11338
11338
|
const res = await _chunkVOX4E6AXcjs.embedAuthedFetch.call(void 0, url);
|
|
11339
11339
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11340
11340
|
const data = await res.json();
|
|
11341
|
-
const items =
|
|
11342
|
-
const match = items.find((it) =>
|
|
11341
|
+
const items = _chunkP3R23TOEcjs.extractCardItems.call(void 0, type, data);
|
|
11342
|
+
const match = items.find((it) => _chunkP3R23TOEcjs.extractItemId.call(void 0, type, it) === id);
|
|
11343
11343
|
return _nullishCoalesce(match, () => ( null));
|
|
11344
11344
|
},
|
|
11345
11345
|
enabled: !!url && id.length > 0,
|
|
@@ -11418,7 +11418,7 @@ function resolveFetchedCardHref({
|
|
|
11418
11418
|
composeContentUrl
|
|
11419
11419
|
}) {
|
|
11420
11420
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11421
|
-
const canonicalType =
|
|
11421
|
+
const canonicalType = _chunkP3R23TOEcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11422
11422
|
return composeContentUrl({
|
|
11423
11423
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11424
11424
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11448,7 +11448,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11448
11448
|
}
|
|
11449
11449
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11450
11450
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11451
|
-
const icon = iconName ?
|
|
11451
|
+
const icon = iconName ? _chunkFICJS5OAcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11452
11452
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11453
11453
|
return { icon, iconLabel };
|
|
11454
11454
|
}
|
|
@@ -11468,16 +11468,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11468
11468
|
if (docTarget) {
|
|
11469
11469
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11470
11470
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11471
|
-
href = _nullishCoalesce(
|
|
11471
|
+
href = _nullishCoalesce(_chunkP3R23TOEcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11472
11472
|
targetPlatform = docTarget.platform;
|
|
11473
11473
|
} else if (ctx.chipBasePlatform) {
|
|
11474
11474
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11475
|
-
href = _nullishCoalesce(
|
|
11475
|
+
href = _nullishCoalesce(_chunkP3R23TOEcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11476
11476
|
targetPlatform = ctx.chipBasePlatform;
|
|
11477
11477
|
} else if (ctx.baseRoute) {
|
|
11478
11478
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11479
11479
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11480
|
-
href = _nullishCoalesce(
|
|
11480
|
+
href = _nullishCoalesce(_chunkP3R23TOEcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11481
11481
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11482
11482
|
}
|
|
11483
11483
|
}
|
|
@@ -11486,15 +11486,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11486
11486
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11487
11487
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11488
11488
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11489
|
-
type:
|
|
11489
|
+
type: _chunkP3R23TOEcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11490
11490
|
identifier: idValue,
|
|
11491
11491
|
externalUrl: row.externalUrl,
|
|
11492
11492
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11493
11493
|
});
|
|
11494
|
-
href = composed.href ? _nullishCoalesce(
|
|
11494
|
+
href = composed.href ? _nullishCoalesce(_chunkP3R23TOEcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11495
11495
|
targetPlatform = composed.targetPlatform;
|
|
11496
11496
|
} else if (row.externalUrl) {
|
|
11497
|
-
href = _nullishCoalesce(
|
|
11497
|
+
href = _nullishCoalesce(_chunkP3R23TOEcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11498
11498
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11499
11499
|
}
|
|
11500
11500
|
const documentType = row.documentType;
|
|
@@ -11561,7 +11561,7 @@ function resolveCardDestination({
|
|
|
11561
11561
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11562
11562
|
allowComposed: !entry.noComposedHref
|
|
11563
11563
|
});
|
|
11564
|
-
const url = choice ? _nullishCoalesce(
|
|
11564
|
+
const url = choice ? _nullishCoalesce(_chunkP3R23TOEcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11565
11565
|
if (choice && url) {
|
|
11566
11566
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11567
11567
|
}
|
|
@@ -11574,7 +11574,7 @@ function resolveCardDestination({
|
|
|
11574
11574
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11575
11575
|
if (imageSrc) {
|
|
11576
11576
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11577
|
-
/* @__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:
|
|
11577
|
+
/* @__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: _chunkFTTLBMHUcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11578
11578
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11579
11579
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
11580
11580
|
{
|
|
@@ -11642,7 +11642,7 @@ function MingoInfoCard({
|
|
|
11642
11642
|
status ? (
|
|
11643
11643
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11644
11644
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11645
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11645
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkFTTLBMHUcjs.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 }) })
|
|
11646
11646
|
) : null
|
|
11647
11647
|
] });
|
|
11648
11648
|
const contentClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -11686,11 +11686,11 @@ function MingoInfoCard({
|
|
|
11686
11686
|
|
|
11687
11687
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11688
11688
|
const label = entityLabel || "Item";
|
|
11689
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11690
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11691
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11692
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11693
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11689
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkP3R23TOEcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11691
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11692
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkP3R23TOEcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkP3R23TOEcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11693
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkP3R23TOEcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11694
11694
|
label,
|
|
11695
11695
|
" deleted",
|
|
11696
11696
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11736,7 +11736,7 @@ function GitHubChatCard({
|
|
|
11736
11736
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11737
11737
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11738
11738
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11739
|
-
const dateText =
|
|
11739
|
+
const dateText = _chunkFTTLBMHUcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11740
11740
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11741
11741
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11742
11742
|
MingoInfoCard,
|
|
@@ -11745,7 +11745,7 @@ function GitHubChatCard({
|
|
|
11745
11745
|
description,
|
|
11746
11746
|
icon: githubKindIcon(kind),
|
|
11747
11747
|
status,
|
|
11748
|
-
anchorProps:
|
|
11748
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11749
11749
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11750
11750
|
menuAriaLabel: "Activity actions"
|
|
11751
11751
|
}
|
|
@@ -11892,7 +11892,7 @@ function HubspotTicketChatCard({
|
|
|
11892
11892
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11893
11893
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11894
11894
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11895
|
-
anchorProps:
|
|
11895
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11896
11896
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11897
11897
|
label: "Open Ticket Details",
|
|
11898
11898
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11915,7 +11915,7 @@ function FaqChatCard({
|
|
|
11915
11915
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11916
11916
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11917
11917
|
status: { label: statusLabel, variant: "grey" },
|
|
11918
|
-
anchorProps:
|
|
11918
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11919
11919
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11920
11920
|
menuAriaLabel: "FAQ actions"
|
|
11921
11921
|
}
|
|
@@ -11935,7 +11935,7 @@ function SlackChatCard({
|
|
|
11935
11935
|
title,
|
|
11936
11936
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11937
11937
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11938
|
-
anchorProps:
|
|
11938
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11939
11939
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11940
11940
|
menuAriaLabel: "Message actions"
|
|
11941
11941
|
}
|
|
@@ -11953,7 +11953,7 @@ function GlyphChatCard({
|
|
|
11953
11953
|
title: chatRef.title,
|
|
11954
11954
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11955
11955
|
icon,
|
|
11956
|
-
anchorProps:
|
|
11956
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11957
11957
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11958
11958
|
menuAriaLabel: "Card actions"
|
|
11959
11959
|
}
|
|
@@ -11971,20 +11971,20 @@ function TrustCenterChatCard({
|
|
|
11971
11971
|
}) {
|
|
11972
11972
|
const raw = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
11973
11973
|
const frameworks = Array.isArray(raw) ? raw : [];
|
|
11974
|
-
const summary =
|
|
11974
|
+
const summary = _chunkP3R23TOEcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11975
11975
|
const leadFramework = frameworks[0];
|
|
11976
11976
|
const lead = leadFramework ? {
|
|
11977
|
-
label:
|
|
11978
|
-
color:
|
|
11977
|
+
label: _chunkP3R23TOEcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11978
|
+
color: _chunkP3R23TOEcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11979
11979
|
} : void 0;
|
|
11980
11980
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11981
11981
|
MingoInfoCard,
|
|
11982
11982
|
{
|
|
11983
|
-
title:
|
|
11984
|
-
description: summary ||
|
|
11983
|
+
title: _chunkP3R23TOEcjs.TRUST_CENTER_TITLE,
|
|
11984
|
+
description: summary || _chunkP3R23TOEcjs.TRUST_CENTER_TAGLINE,
|
|
11985
11985
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11986
11986
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11987
|
-
anchorProps:
|
|
11987
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11988
11988
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11989
11989
|
label: "View trust center",
|
|
11990
11990
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12006,7 +12006,7 @@ function DataRoomDocChatCard({
|
|
|
12006
12006
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12007
12007
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12008
12008
|
status: { label: badgeText, variant: "grey" },
|
|
12009
|
-
anchorProps:
|
|
12009
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12010
12010
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12011
12011
|
menuAriaLabel: "Document actions"
|
|
12012
12012
|
}
|
|
@@ -12025,7 +12025,7 @@ function GenericFinancialChatCard({
|
|
|
12025
12025
|
title: chatRef.title,
|
|
12026
12026
|
description: subtitle,
|
|
12027
12027
|
icon,
|
|
12028
|
-
anchorProps:
|
|
12028
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12029
12029
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12030
12030
|
menuAriaLabel: "Document actions"
|
|
12031
12031
|
}
|
|
@@ -12111,7 +12111,7 @@ function CampaignChatCard({
|
|
|
12111
12111
|
}) {
|
|
12112
12112
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12113
12113
|
const meta = [
|
|
12114
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12114
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunkP3R23TOEcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12115
12115
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12116
12116
|
"Marketing campaign"
|
|
12117
12117
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12150,7 +12150,7 @@ function EntityMingoCard({
|
|
|
12150
12150
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12151
12151
|
icon: fallbackIcon,
|
|
12152
12152
|
status,
|
|
12153
|
-
anchorProps:
|
|
12153
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12154
12154
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12155
12155
|
menuAriaLabel
|
|
12156
12156
|
}
|
|
@@ -12162,7 +12162,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12162
12162
|
function statusPill(status) {
|
|
12163
12163
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12164
12164
|
if (!s) return void 0;
|
|
12165
|
-
const scheme =
|
|
12165
|
+
const scheme = _chunkP3R23TOEcjs.getStatusColorScheme.call(void 0, s);
|
|
12166
12166
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12167
12167
|
return { label: s, variant };
|
|
12168
12168
|
}
|
|
@@ -12253,7 +12253,7 @@ function DesignDocChatCard({
|
|
|
12253
12253
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12254
12254
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12255
12255
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12256
|
-
anchorProps:
|
|
12256
|
+
anchorProps: _chunkP3R23TOEcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12257
12257
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12258
12258
|
menuAriaLabel: "Design doc actions"
|
|
12259
12259
|
}
|
|
@@ -12271,7 +12271,7 @@ function InvestorUpdateChatCard({
|
|
|
12271
12271
|
EntityMingoCard,
|
|
12272
12272
|
{
|
|
12273
12273
|
title,
|
|
12274
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12274
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunkP3R23TOEcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_end]), () => ( null))) || void 0,
|
|
12275
12275
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12276
12276
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12277
12277
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12315,7 +12315,7 @@ function ProgramChatCard({
|
|
|
12315
12315
|
discuss
|
|
12316
12316
|
}) {
|
|
12317
12317
|
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 });
|
|
12318
|
-
const { line: meta } =
|
|
12318
|
+
const { line: meta } = _chunkP3R23TOEcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkP3R23TOEcjs.programMetaFormatters.call(void 0, _chunkP3R23TOEcjs.PROGRAM_META_RENDERERS));
|
|
12319
12319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12320
12320
|
EntityMingoCard,
|
|
12321
12321
|
{
|
|
@@ -12341,7 +12341,7 @@ function RoadmapChatCard({
|
|
|
12341
12341
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12342
12342
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12343
12343
|
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 });
|
|
12344
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12344
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12345
12345
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12346
12346
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12347
12347
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUR4K2NSLcjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12407,11 +12407,11 @@ function refText(ref, key) {
|
|
|
12407
12407
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12408
12408
|
}
|
|
12409
12409
|
function VendorGlyph({ title, logoUrl }) {
|
|
12410
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12410
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12411
12411
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12412
12412
|
}
|
|
12413
12413
|
function SitePageGlyph({ iconName }) {
|
|
12414
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12414
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12415
12415
|
}
|
|
12416
12416
|
var GITHUB_CARD_CONFIGS = {
|
|
12417
12417
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12528,7 +12528,7 @@ function programRegistryEntries() {
|
|
|
12528
12528
|
label: cfg.label,
|
|
12529
12529
|
contentRefType: cfg.contentRefType,
|
|
12530
12530
|
bareInline: true,
|
|
12531
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12531
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12532
12532
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12533
12533
|
ProgramChatCard,
|
|
12534
12534
|
{
|
|
@@ -12569,7 +12569,7 @@ function roadmapRegistryEntries() {
|
|
|
12569
12569
|
bareInline: true,
|
|
12570
12570
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12571
12571
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12572
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12572
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12573
12573
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12574
12574
|
RoadmapChatCard,
|
|
12575
12575
|
{
|
|
@@ -12627,12 +12627,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12627
12627
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12628
12628
|
// single matched row. Destination is the public page unless the host
|
|
12629
12629
|
// re-homes the type (`composeContentUrl` override).
|
|
12630
|
-
[
|
|
12630
|
+
[_chunkP3R23TOEcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12631
12631
|
label: "Trust center",
|
|
12632
12632
|
bareInline: true,
|
|
12633
|
-
contentRefType:
|
|
12633
|
+
contentRefType: _chunkP3R23TOEcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12634
12634
|
noComposedHref: true,
|
|
12635
|
-
fallbackHref: () =>
|
|
12635
|
+
fallbackHref: () => _chunkP3R23TOEcjs.TRUST_CENTER_PAGE_PATH,
|
|
12636
12636
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12637
12637
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12638
12638
|
},
|
|
@@ -12658,7 +12658,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12658
12658
|
label: "Blog post",
|
|
12659
12659
|
contentRefType: "blog_post_existing",
|
|
12660
12660
|
bareInline: true,
|
|
12661
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12661
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.BlogCardSkeleton, { size: "sm" }),
|
|
12662
12662
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12663
12663
|
BlogChatCard,
|
|
12664
12664
|
{
|
|
@@ -12675,7 +12675,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12675
12675
|
label: "Case study",
|
|
12676
12676
|
contentRefType: "case_study",
|
|
12677
12677
|
bareInline: true,
|
|
12678
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12678
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12679
12679
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12680
12680
|
CaseStudyChatCard,
|
|
12681
12681
|
{
|
|
@@ -12700,7 +12700,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12700
12700
|
label: "Customer interview",
|
|
12701
12701
|
contentRefType: "customer_interview",
|
|
12702
12702
|
bareInline: true,
|
|
12703
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12703
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12704
12704
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12705
12705
|
CustomerInterviewChatCard,
|
|
12706
12706
|
{
|
|
@@ -12716,9 +12716,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12716
12716
|
label: "Product release",
|
|
12717
12717
|
contentRefType: "product_release",
|
|
12718
12718
|
bareInline: true,
|
|
12719
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12719
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12720
12720
|
render: (item, chatRef, opts) => {
|
|
12721
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12721
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunkP3R23TOEcjs.defaultBuildProductReleaseCardProps));
|
|
12722
12722
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12723
12723
|
ProductReleaseChatCard,
|
|
12724
12724
|
{
|
|
@@ -12736,7 +12736,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12736
12736
|
label: "Investor update",
|
|
12737
12737
|
contentRefType: "investor_update",
|
|
12738
12738
|
bareInline: true,
|
|
12739
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12739
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12740
12740
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12741
12741
|
InvestorUpdateChatCard,
|
|
12742
12742
|
{
|
|
@@ -12754,7 +12754,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12754
12754
|
bareInline: true,
|
|
12755
12755
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12756
12756
|
displayAction: true,
|
|
12757
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12757
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12758
12758
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12759
12759
|
OnboardingGuideChatCard,
|
|
12760
12760
|
{
|
|
@@ -12838,12 +12838,12 @@ function ChatCardLoader({
|
|
|
12838
12838
|
};
|
|
12839
12839
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12840
12840
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12841
|
-
const isNewTab =
|
|
12841
|
+
const isNewTab = _chunkP3R23TOEcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12842
12842
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12843
12843
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12844
12844
|
const discuss = discussFn ? {
|
|
12845
12845
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12846
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12846
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12847
12847
|
run: () => discussFn(finalChatRef)
|
|
12848
12848
|
} : void 0;
|
|
12849
12849
|
const renderOpts = {
|
|
@@ -12952,12 +12952,12 @@ function makeBatchDedupKey(item) {
|
|
|
12952
12952
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12953
12953
|
}
|
|
12954
12954
|
function getChatTypeMessageType(chatType) {
|
|
12955
|
-
return chatType ===
|
|
12955
|
+
return chatType === _chunkDUXLZPMJcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12956
12956
|
}
|
|
12957
12957
|
function useChunkCatchup({
|
|
12958
12958
|
dialogId,
|
|
12959
12959
|
onChunkReceived,
|
|
12960
|
-
chatTypes = [
|
|
12960
|
+
chatTypes = [_chunkDUXLZPMJcjs.CHAT_TYPE.CLIENT],
|
|
12961
12961
|
fetchChunks
|
|
12962
12962
|
}) {
|
|
12963
12963
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13918,7 +13918,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13918
13918
|
return () => root.removeEventListener("click", onClick);
|
|
13919
13919
|
}, [viewUrlPrefix]);
|
|
13920
13920
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13921
|
-
|
|
13921
|
+
_chunkP3R23TOEcjs.ImageGalleryModal,
|
|
13922
13922
|
{
|
|
13923
13923
|
images: state.images,
|
|
13924
13924
|
isOpen: state.isOpen,
|
|
@@ -15096,7 +15096,7 @@ function nullableText(value) {
|
|
|
15096
15096
|
}
|
|
15097
15097
|
function httpsUrl(value) {
|
|
15098
15098
|
const candidate = text(value);
|
|
15099
|
-
if (!candidate ||
|
|
15099
|
+
if (!candidate || _chunkP3R23TOEcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15100
15100
|
try {
|
|
15101
15101
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15102
15102
|
} catch (e20) {
|
|
@@ -15680,7 +15680,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15680
15680
|
const status = approvalStatuses[requestId] || "pending";
|
|
15681
15681
|
if (!displayInline(approvalType)) {
|
|
15682
15682
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15683
|
-
const summary = required ?
|
|
15683
|
+
const summary = required ? _chunkZRYKDN2Jcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15684
15684
|
pendingEscalated.set(requestId, {
|
|
15685
15685
|
command: summary,
|
|
15686
15686
|
explanation: _optionalChain([required, 'optionalAccess', _521 => _521.toolExplanation]),
|
|
@@ -15713,7 +15713,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15713
15713
|
if (!call.requiresApproval) continue;
|
|
15714
15714
|
segments = accumulator.addApprovalRequest(
|
|
15715
15715
|
requestId,
|
|
15716
|
-
|
|
15716
|
+
_chunkZRYKDN2Jcjs.getCommandText.call(void 0, call),
|
|
15717
15717
|
call.toolExplanation,
|
|
15718
15718
|
approvalType,
|
|
15719
15719
|
status,
|
|
@@ -15792,7 +15792,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15792
15792
|
if (!call.requiresApproval) continue;
|
|
15793
15793
|
segments = accumulator.addApprovalRequest(
|
|
15794
15794
|
requestId,
|
|
15795
|
-
|
|
15795
|
+
_chunkZRYKDN2Jcjs.getCommandText.call(void 0, call),
|
|
15796
15796
|
call.toolExplanation,
|
|
15797
15797
|
escalatedData.approvalType,
|
|
15798
15798
|
status
|
|
@@ -17967,12 +17967,12 @@ function decodeNatsChunk(chunk) {
|
|
|
17967
17967
|
|
|
17968
17968
|
// src/components/chat/utils/process-historical-messages.ts
|
|
17969
17969
|
function getOwnerDisplayName(owner) {
|
|
17970
|
-
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) ===
|
|
17970
|
+
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
17971
17971
|
const { firstName, lastName } = owner.user;
|
|
17972
17972
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
17973
17973
|
if (name) return name;
|
|
17974
17974
|
}
|
|
17975
|
-
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) ===
|
|
17975
|
+
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
17976
17976
|
}
|
|
17977
17977
|
function getOwnerAvatar(owner) {
|
|
17978
17978
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _601 => _601.user, 'optionalAccess', _602 => _602.image, 'optionalAccess', _603 => _603.imageUrl]), () => ( void 0));
|
|
@@ -18235,7 +18235,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18235
18235
|
if (!call.requiresApproval) continue;
|
|
18236
18236
|
accumulator.addApprovalRequest(
|
|
18237
18237
|
event.requestId,
|
|
18238
|
-
|
|
18238
|
+
_chunkZRYKDN2Jcjs.getCommandText.call(void 0, call),
|
|
18239
18239
|
call.toolExplanation,
|
|
18240
18240
|
approvalType,
|
|
18241
18241
|
status,
|
|
@@ -18296,7 +18296,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18296
18296
|
if (!call.requiresApproval) continue;
|
|
18297
18297
|
accumulator.addApprovalRequest(
|
|
18298
18298
|
requestId,
|
|
18299
|
-
|
|
18299
|
+
_chunkZRYKDN2Jcjs.getCommandText.call(void 0, call),
|
|
18300
18300
|
call.toolExplanation,
|
|
18301
18301
|
escalatedData.approvalType,
|
|
18302
18302
|
status
|
|
@@ -18404,10 +18404,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18404
18404
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18405
18405
|
return;
|
|
18406
18406
|
}
|
|
18407
|
-
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) ===
|
|
18407
|
+
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _618 => _618.owner, 'optionalAccess', _619 => _619.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.ADMIN;
|
|
18408
18408
|
if (isUserMessage) {
|
|
18409
18409
|
flushAssistantMessage();
|
|
18410
|
-
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) ===
|
|
18410
|
+
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18411
18411
|
messageDataArray.forEach((data) => {
|
|
18412
18412
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18413
18413
|
const rawContext = data.contextItems;
|
|
@@ -18458,7 +18458,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18458
18458
|
});
|
|
18459
18459
|
const nextMsg = messages[index + 1];
|
|
18460
18460
|
const isLastMessage = index === messages.length - 1;
|
|
18461
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) ===
|
|
18461
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _626 => _626.owner, 'optionalAccess', _627 => _627.type]) === _chunkDUXLZPMJcjs.OWNER_TYPE.ADMIN);
|
|
18462
18462
|
if (isLastMessage || nextIsFromUser) {
|
|
18463
18463
|
flushAssistantMessage();
|
|
18464
18464
|
}
|