@flamingo-stack/openframe-frontend-core 0.0.741 → 0.0.743
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-SFY4UYPY.cjs → chunk-4A6OF4HI.cjs} +44 -44
- package/dist/{chunk-VA7OMDZO.cjs → chunk-4FWURR3W.cjs} +50 -50
- package/dist/{chunk-WBANGORJ.cjs → chunk-4N7KGOBS.cjs} +3 -3
- package/dist/{chunk-PQ2M7P2U.cjs → chunk-5TCIRWHL.cjs} +9 -9
- package/dist/{chunk-FQN6STIM.cjs → chunk-6XCQXGQA.cjs} +20 -20
- package/dist/{chunk-BV5WZVOP.cjs → chunk-7YDF3QBN.cjs} +258 -257
- package/dist/{chunk-7ZFCR7UY.cjs → chunk-ABLUMGCI.cjs} +3 -3
- package/dist/{chunk-PX7FY655.cjs → chunk-ASMNNSUQ.cjs} +3 -3
- package/dist/{chunk-CWRVTQUO.cjs → chunk-BM6JZRVD.cjs} +101 -101
- package/dist/{chunk-LZ6NOVXX.cjs → chunk-BNTELSHZ.cjs} +103 -103
- package/dist/{chunk-SA7LDEVJ.cjs → chunk-CSJO7ZGN.cjs} +3 -3
- package/dist/{chunk-VOX4E6AX.cjs → chunk-DGFDBPO7.cjs} +7 -5
- package/dist/{chunk-KLI4OSRA.cjs → chunk-GAGNKWOC.cjs} +2 -2
- package/dist/{chunk-QEUGYHFB.cjs → chunk-IRWJKVVZ.cjs} +20 -20
- package/dist/{chunk-YRE3O65E.cjs → chunk-JGZEHBBD.cjs} +12 -12
- package/dist/{chunk-FICJS5OA.cjs → chunk-KTPR66EE.cjs} +4 -4
- package/dist/{chunk-YXKB5WRE.cjs → chunk-LJ46XYYP.cjs} +60 -48
- package/dist/{chunk-AAFW4STC.cjs → chunk-LU7TD6QS.cjs} +5 -5
- package/dist/{chunk-JFS6TZDX.cjs → chunk-MLZKPDPZ.cjs} +64 -64
- package/dist/{chunk-EKGL5K5K.cjs → chunk-MT7ELGCV.cjs} +17 -17
- package/dist/{chunk-HYBMADYO.cjs → chunk-NGUJVM6O.cjs} +22 -22
- package/dist/{chunk-3HPB4H4C.cjs → chunk-NTGIQP7O.cjs} +7 -7
- package/dist/{chunk-GABDE3FM.cjs → chunk-OWGLRE74.cjs} +19 -19
- package/dist/{chunk-IFS4AH77.cjs → chunk-QYLIHZKZ.cjs} +10 -10
- package/dist/{chunk-GVTDVS5U.cjs → chunk-R34JD6NP.cjs} +3 -3
- package/dist/{chunk-YQ37ZCD2.cjs → chunk-SQHTX5XP.cjs} +16 -16
- package/dist/{chunk-XJ36TEGE.cjs → chunk-TKASH5YC.cjs} +47 -47
- package/dist/{chunk-DSVNFRY5.cjs → chunk-U2O5YQRP.cjs} +38 -38
- package/dist/{chunk-5SVOGLNK.cjs → chunk-UL6ZZSL4.cjs} +6 -6
- package/dist/{chunk-O67V3HJR.cjs → chunk-URVIPSAJ.cjs} +24 -24
- package/dist/{chunk-GSWQZX23.cjs → chunk-UY6A6TEY.cjs} +2 -2
- package/dist/{chunk-DUVOQHQI.cjs → chunk-W2RM764D.cjs} +7 -7
- package/dist/{chunk-IK2RJUEA.cjs → chunk-WCY35GB5.cjs} +845 -810
- package/dist/{chunk-NTJE6SM6.cjs → chunk-WI2OTGKC.cjs} +2 -2
- package/dist/{chunk-ITPEFCQ2.cjs → chunk-XJO5ZHO6.cjs} +32 -32
- package/dist/{chunk-I6UE6YVM.cjs → chunk-Y2FN3E32.cjs} +6 -6
- package/dist/{chunk-4XL4YEZM.cjs → chunk-YDFKFLDQ.cjs} +8 -8
- package/dist/{chunk-HF7Z2E4W.cjs → chunk-YIOWV7LS.cjs} +2 -2
- package/dist/{chunk-B3XBJCOD.cjs → chunk-YJRMCFX3.cjs} +7 -7
- package/dist/{chunk-ZYOS7LVQ.cjs → chunk-YWMUZLU2.cjs} +89 -89
- package/dist/{chunk-ZJPDGVA6.cjs → chunk-ZP5DFF3Q.cjs} +28 -28
- package/dist/{cloud-tenants-MVJK52I2.cjs → cloud-tenants-DZC3ACG6.cjs} +24 -24
- package/dist/components/case-studies/index.cjs +37 -37
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.js +22 -12
- package/dist/components/chat/index.cjs +17 -17
- package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
- package/dist/components/chat/tool-execution-display.js +5 -4
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/index.cjs +24 -24
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.js +15 -13
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +9 -7
- package/dist/components/help-center-pages/index.cjs +144 -144
- package/dist/components/index.cjs +87 -85
- package/dist/components/meeting-scheduler/booking-form.d.ts +11 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/booking-form.js +15 -3
- package/dist/components/meeting-scheduler/index.cjs +452 -158
- package/dist/components/meeting-scheduler/index.d.ts +16 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +157 -5
- package/dist/components/meeting-scheduler/modal-header.d.ts +27 -0
- package/dist/components/meeting-scheduler/modal-header.d.ts.map +1 -0
- package/dist/components/meeting-scheduler/modal-header.js +104 -0
- package/dist/components/meeting-scheduler/slot-picker.d.ts +13 -2
- package/dist/components/meeting-scheduler/slot-picker.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/slot-picker.js +112 -73
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-release-card.js +2 -0
- package/dist/components/tickets/index.cjs +30 -30
- package/dist/components/ui/index.cjs +26 -24
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +65 -58
- package/dist/components/ui/tab-navigation.d.ts +19 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +32 -8
- package/dist/{devices-W3S7Q2PG.cjs → devices-MFGE2JQV.cjs} +25 -25
- package/dist/{embeddable-chat-6JKKFQEB.cjs → embeddable-chat-7ZEGCDVF.cjs} +92 -92
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +32 -30
- package/dist/{knowledge-AIYQ4FC3.cjs → knowledge-7VPS2ZBU.cjs} +25 -25
- package/dist/{logs-7SHJ2ARE.cjs → logs-M3QPAUH7.cjs} +32 -32
- package/dist/{policies-EIZJ5SUP.cjs → policies-UAVE6X62.cjs} +28 -28
- package/dist/{remote-session-BZMNE6D2.cjs → remote-session-N4PJB5FW.cjs} +10 -10
- package/dist/{scripts-J2FWC7E4.cjs → scripts-EDQ3IQKW.cjs} +31 -31
- package/dist/{software-update-QAMNASVF.cjs → software-update-B2MZVNPK.cjs} +28 -28
- package/dist/{tickets-board-CEDHD3KB.cjs → tickets-board-O753S4ZB.cjs} +14 -14
- package/dist/utils/embed-authed-fetch.d.ts +33 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +3 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/{video-file-player-ZH2ILAPO.cjs → video-file-player-QZ3YOLHO.cjs} +2 -2
- package/package.json +1 -1
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +8 -1
- package/src/components/chat/tool-execution-display.tsx +21 -10
- package/src/components/features/scripts/schedule-form/schedule-interval-input.tsx +20 -13
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +9 -5
- package/src/components/meeting-scheduler/booking-form.tsx +29 -3
- package/src/components/meeting-scheduler/index.tsx +224 -3
- package/src/components/meeting-scheduler/modal-header.tsx +145 -0
- package/src/components/meeting-scheduler/slot-picker.tsx +72 -8
- package/src/components/shared/product-release/product-release-card.tsx +2 -0
- package/src/components/ui/radio-group.tsx +51 -36
- package/src/components/ui/tab-navigation.tsx +54 -5
- package/src/utils/embed-authed-fetch.ts +42 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkOWGLRE74cjs = require('./chunk-OWGLRE74.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunk5TCIRWHLcjs = require('./chunk-5TCIRWHL.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 _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
var
|
|
245
|
+
var _chunkWI2OTGKCcjs = require('./chunk-WI2OTGKC.cjs');
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -315,10 +315,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
315
315
|
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var _chunkLJ46XYYPcjs = require('./chunk-LJ46XYYP.cjs');
|
|
319
319
|
|
|
320
320
|
|
|
321
|
-
var
|
|
321
|
+
var _chunkUY6A6TEYcjs = require('./chunk-UY6A6TEY.cjs');
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
|
|
@@ -326,7 +326,7 @@ var _chunkGSWQZX23cjs = require('./chunk-GSWQZX23.cjs');
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
var
|
|
329
|
+
var _chunkABLUMGCIcjs = require('./chunk-ABLUMGCI.cjs');
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -337,13 +337,13 @@ var _chunkCW3ML76Ucjs = require('./chunk-CW3ML76U.cjs');
|
|
|
337
337
|
|
|
338
338
|
|
|
339
339
|
|
|
340
|
-
var
|
|
340
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
341
341
|
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
|
|
345
345
|
|
|
346
|
-
var
|
|
346
|
+
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
@@ -571,14 +571,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
571
571
|
for (const section of sectionIds) {
|
|
572
572
|
sectionIdMap.set(section.title, section.id);
|
|
573
573
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
574
|
-
sectionIdMap.set(
|
|
574
|
+
sectionIdMap.set(_chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
const dedupe =
|
|
577
|
+
const dedupe = _chunkCSJO7ZGNcjs.createHeadingIdDeduper.call(void 0, );
|
|
578
578
|
const map = /* @__PURE__ */ new Map();
|
|
579
579
|
let sectionOrdinal = 0;
|
|
580
580
|
let headingOrdinal = 0;
|
|
581
|
-
for (const { line, level, text: rawText } of
|
|
581
|
+
for (const { line, level, text: rawText } of _chunkCSJO7ZGNcjs.scanHeadings.call(void 0, content)) {
|
|
582
582
|
const text2 = stripInlineMarkdown(rawText).trim();
|
|
583
583
|
headingOrdinal++;
|
|
584
584
|
if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -587,8 +587,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
587
587
|
for (const variation of [
|
|
588
588
|
text2,
|
|
589
589
|
text2.toLowerCase(),
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
_chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, text2),
|
|
591
|
+
_chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
|
|
592
592
|
]) {
|
|
593
593
|
const id = sectionIdMap.get(variation);
|
|
594
594
|
if (id) {
|
|
@@ -598,7 +598,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
if (assigned === void 0) {
|
|
601
|
-
const baseId =
|
|
601
|
+
const baseId = _chunkCSJO7ZGNcjs.slugifyHeadingText.call(void 0, text2);
|
|
602
602
|
assigned = dedupe(
|
|
603
603
|
baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
604
604
|
);
|
|
@@ -1479,7 +1479,7 @@ function findInlineCodeRanges(source) {
|
|
|
1479
1479
|
while (pos <= len) {
|
|
1480
1480
|
let end = source.indexOf("\n", pos);
|
|
1481
1481
|
if (end === -1) end = len;
|
|
1482
|
-
const blank =
|
|
1482
|
+
const blank = _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
1483
1483
|
if (blank && segStart !== -1) break;
|
|
1484
1484
|
if (!blank) {
|
|
1485
1485
|
if (segStart === -1) segStart = pos;
|
|
@@ -1561,7 +1561,7 @@ function toMaskLines(source) {
|
|
|
1561
1561
|
return out;
|
|
1562
1562
|
}
|
|
1563
1563
|
function blankFencedRegions(masked, lines) {
|
|
1564
|
-
const fences =
|
|
1564
|
+
const fences = _chunkCSJO7ZGNcjs.createFenceTracker.call(void 0, );
|
|
1565
1565
|
const ranges = [];
|
|
1566
1566
|
let openStart = null;
|
|
1567
1567
|
let lastEnd = 0;
|
|
@@ -1600,7 +1600,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
1600
1600
|
const listContentCols = [];
|
|
1601
1601
|
const ranges = [];
|
|
1602
1602
|
for (const line of lines) {
|
|
1603
|
-
if (
|
|
1603
|
+
if (_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, line.content)) continue;
|
|
1604
1604
|
const indent = leadingIndent(line.content);
|
|
1605
1605
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
1606
1606
|
if (indent >= top + 4) {
|
|
@@ -1691,7 +1691,7 @@ function contPrefixLen(c) {
|
|
|
1691
1691
|
function findLabelClose(lines, i, from) {
|
|
1692
1692
|
for (let j = i; j < lines.length; j++) {
|
|
1693
1693
|
const c = stripCr(lines[j].content);
|
|
1694
|
-
if (j > i &&
|
|
1694
|
+
if (j > i && _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
1695
1695
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
1696
1696
|
if (c[q] === "[") return { stoppedAt: j };
|
|
1697
1697
|
if (c[q] !== "]") continue;
|
|
@@ -1709,7 +1709,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
1709
1709
|
let k = from;
|
|
1710
1710
|
for (; k < lines.length; k++) {
|
|
1711
1711
|
const c = stripCr(lines[k].content);
|
|
1712
|
-
if (
|
|
1712
|
+
if (_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, c)) break;
|
|
1713
1713
|
blankLine(lines[k]);
|
|
1714
1714
|
if (stop(c)) {
|
|
1715
1715
|
k++;
|
|
@@ -1752,7 +1752,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
1752
1752
|
const k = j + 1;
|
|
1753
1753
|
if (k >= lines.length) break;
|
|
1754
1754
|
const c = stripCr(lines[k].content);
|
|
1755
|
-
if (
|
|
1755
|
+
if (_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, c)) break;
|
|
1756
1756
|
const at = contPrefixLen(c);
|
|
1757
1757
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
1758
1758
|
if (next.k === "decline") break;
|
|
@@ -1822,7 +1822,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
1822
1822
|
let sawBlank = false;
|
|
1823
1823
|
for (let k = i + 1; k < lines.length; k++) {
|
|
1824
1824
|
const c = text2(lines[k]);
|
|
1825
|
-
if (
|
|
1825
|
+
if (_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, c)) {
|
|
1826
1826
|
sawBlank = true;
|
|
1827
1827
|
continue;
|
|
1828
1828
|
}
|
|
@@ -1922,7 +1922,7 @@ function paragraphEnd(s, from) {
|
|
|
1922
1922
|
lineStart += 1;
|
|
1923
1923
|
const next = s.indexOf("\n", lineStart);
|
|
1924
1924
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
1925
|
-
if (
|
|
1925
|
+
if (_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
1926
1926
|
if (next === -1) break;
|
|
1927
1927
|
lineStart = next;
|
|
1928
1928
|
}
|
|
@@ -2076,7 +2076,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2076
2076
|
run = [];
|
|
2077
2077
|
};
|
|
2078
2078
|
for (const line of lines) {
|
|
2079
|
-
if (
|
|
2079
|
+
if (_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, line.content)) {
|
|
2080
2080
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2081
2081
|
continue;
|
|
2082
2082
|
}
|
|
@@ -2301,7 +2301,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2301
2301
|
function computeHtmlBlockRanges(text2) {
|
|
2302
2302
|
if (text2.indexOf("<") === -1) return [];
|
|
2303
2303
|
const ranges = [];
|
|
2304
|
-
const fences =
|
|
2304
|
+
const fences = _chunkCSJO7ZGNcjs.createFenceTracker.call(void 0, );
|
|
2305
2305
|
let kind = null;
|
|
2306
2306
|
let start = 0;
|
|
2307
2307
|
let lastEnd = 0;
|
|
@@ -2316,9 +2316,9 @@ function computeHtmlBlockRanges(text2) {
|
|
|
2316
2316
|
const expanded = expandTabs(line);
|
|
2317
2317
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2318
2318
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2319
|
-
else if (!
|
|
2320
|
-
const normBlank =
|
|
2321
|
-
const blank = openPrefixLen > 0 ?
|
|
2319
|
+
else if (!_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2320
|
+
const normBlank = _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, norm.text);
|
|
2321
|
+
const blank = openPrefixLen > 0 ? _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, line);
|
|
2322
2322
|
if (kind !== null) {
|
|
2323
2323
|
if (kind >= 6) {
|
|
2324
2324
|
if (blank) {
|
|
@@ -2472,7 +2472,7 @@ var ScanState = class {
|
|
|
2472
2472
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
2473
2473
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
2474
2474
|
*/
|
|
2475
|
-
this.fences =
|
|
2475
|
+
this.fences = _chunkCSJO7ZGNcjs.createFenceTracker.call(void 0, );
|
|
2476
2476
|
/** Depth of currently open raw HTML block containers. */
|
|
2477
2477
|
this.htmlDepth = 0;
|
|
2478
2478
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -2545,7 +2545,7 @@ function splitStreamingBlocks(content) {
|
|
|
2545
2545
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
2546
2546
|
const firstNonBlank = (arr) => {
|
|
2547
2547
|
for (const line of arr) {
|
|
2548
|
-
if (!
|
|
2548
|
+
if (!_chunkCSJO7ZGNcjs.isBlankLine.call(void 0, line)) return line;
|
|
2549
2549
|
}
|
|
2550
2550
|
return void 0;
|
|
2551
2551
|
};
|
|
@@ -2555,10 +2555,10 @@ function splitStreamingBlocks(content) {
|
|
|
2555
2555
|
state.scanLine(line);
|
|
2556
2556
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
2557
2557
|
current.push(line);
|
|
2558
|
-
const isBlank =
|
|
2558
|
+
const isBlank = _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, line);
|
|
2559
2559
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
2560
2560
|
let j = i + 1;
|
|
2561
|
-
while (j < lines.length &&
|
|
2561
|
+
while (j < lines.length && _chunkCSJO7ZGNcjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
2562
2562
|
if (j >= lines.length) continue;
|
|
2563
2563
|
const next = lines[j];
|
|
2564
2564
|
if (/^\s/.test(next)) continue;
|
|
@@ -2566,7 +2566,7 @@ function splitStreamingBlocks(content) {
|
|
|
2566
2566
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
2567
2567
|
continue;
|
|
2568
2568
|
}
|
|
2569
|
-
if (current.every(
|
|
2569
|
+
if (current.every(_chunkCSJO7ZGNcjs.isBlankLine)) continue;
|
|
2570
2570
|
units.push(current);
|
|
2571
2571
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
2572
2572
|
current = [];
|
|
@@ -2689,7 +2689,7 @@ var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault
|
|
|
2689
2689
|
// src/components/ui/markdown/base-components.tsx
|
|
2690
2690
|
|
|
2691
2691
|
var MarkdownContentImage = ({ src, alt }) => {
|
|
2692
|
-
const resolvedSrc =
|
|
2692
|
+
const resolvedSrc = _chunkKTPR66EEcjs.useAuthedImageSrc.call(void 0, src);
|
|
2693
2693
|
if (!resolvedSrc) return null;
|
|
2694
2694
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2695
2695
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
@@ -2762,7 +2762,7 @@ function buildBaseComponents({
|
|
|
2762
2762
|
const mapped = useHeadingId(node);
|
|
2763
2763
|
const taken = useAssignedHeadingIds();
|
|
2764
2764
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _38 => _38.properties, 'optionalAccess', _39 => _39.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
2765
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
2765
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkCSJO7ZGNcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
2766
2766
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
2767
2767
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
2768
2768
|
}
|
|
@@ -2837,10 +2837,10 @@ function buildBaseComponents({
|
|
|
2837
2837
|
const handleAnchorClick = (e) => {
|
|
2838
2838
|
if (inPageAnchorId === null) return;
|
|
2839
2839
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
2840
|
-
const target =
|
|
2840
|
+
const target = _chunkCSJO7ZGNcjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
2841
2841
|
if (!_optionalChain([target, 'optionalAccess', _40 => _40.id])) return;
|
|
2842
2842
|
e.preventDefault();
|
|
2843
|
-
|
|
2843
|
+
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
2844
2844
|
};
|
|
2845
2845
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2846
2846
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -3137,7 +3137,7 @@ function chatListensForAskAiOpens() {
|
|
|
3137
3137
|
|
|
3138
3138
|
// src/components/chat/chat-appearance-context.tsx
|
|
3139
3139
|
|
|
3140
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3140
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunk5TCIRWHLcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3141
3141
|
function useChatAppearance() {
|
|
3142
3142
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3143
3143
|
}
|
|
@@ -3176,7 +3176,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3176
3176
|
...props
|
|
3177
3177
|
}, ref) => {
|
|
3178
3178
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3179
|
-
const isV2 = useChatAppearance() ===
|
|
3179
|
+
const isV2 = useChatAppearance() === _chunk5TCIRWHLcjs.CHAT_APPEARANCE.V2;
|
|
3180
3180
|
const handleApprove = async () => {
|
|
3181
3181
|
setIsProcessing(true);
|
|
3182
3182
|
try {
|
|
@@ -3199,7 +3199,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3199
3199
|
{
|
|
3200
3200
|
ref,
|
|
3201
3201
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3202
|
-
|
|
3202
|
+
_chunkOWGLRE74cjs.CHAT_BLOCK_CLASS,
|
|
3203
3203
|
// v2: the thread owns the space below the card.
|
|
3204
3204
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3205
3205
|
className
|
|
@@ -3207,7 +3207,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3207
3207
|
...props,
|
|
3208
3208
|
children: [
|
|
3209
3209
|
/* @__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" }),
|
|
3210
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3210
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ApprovalWaitingLine, {}),
|
|
3211
3211
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3212
3212
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3213
3213
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3239,14 +3239,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3239
3239
|
children: "Reject"
|
|
3240
3240
|
}
|
|
3241
3241
|
)
|
|
3242
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3242
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3243
3243
|
]
|
|
3244
3244
|
}
|
|
3245
3245
|
);
|
|
3246
3246
|
}
|
|
3247
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3247
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkOWGLRE74cjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3248
3248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3249
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3249
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ApprovalWaitingLine, {}),
|
|
3250
3250
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3251
3251
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3252
3252
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3278,7 +3278,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3278
3278
|
children: "Reject"
|
|
3279
3279
|
}
|
|
3280
3280
|
)
|
|
3281
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3281
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3282
3282
|
] });
|
|
3283
3283
|
}
|
|
3284
3284
|
);
|
|
@@ -3308,7 +3308,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3308
3308
|
|
|
3309
3309
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3310
3310
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3311
|
-
const isV2 = useChatAppearance() ===
|
|
3311
|
+
const isV2 = useChatAppearance() === _chunk5TCIRWHLcjs.CHAT_APPEARANCE.V2;
|
|
3312
3312
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3313
3313
|
"div",
|
|
3314
3314
|
{
|
|
@@ -3324,7 +3324,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3324
3324
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3325
3325
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3326
3326
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3327
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3327
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunk5TCIRWHLcjs.formatTime.call(void 0, timestamp) })
|
|
3328
3328
|
] }),
|
|
3329
3329
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3330
3330
|
] })
|
|
@@ -3439,7 +3439,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
|
|
|
3439
3439
|
AiAssistantInfo,
|
|
3440
3440
|
{
|
|
3441
3441
|
ref,
|
|
3442
|
-
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3442
|
+
leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
|
|
3443
3443
|
title: "Technician Joined",
|
|
3444
3444
|
body: `You're now chatting with ${joined}.`,
|
|
3445
3445
|
timestamp,
|
|
@@ -3523,7 +3523,7 @@ var thoughtMdClasses = [
|
|
|
3523
3523
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3524
3524
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3525
3525
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3526
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3526
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkOWGLRE74cjs.useCollapsible.call(void 0, {
|
|
3527
3527
|
expanded,
|
|
3528
3528
|
collapsedHeight: 19,
|
|
3529
3529
|
disableTransition: isStreaming
|
|
@@ -3538,7 +3538,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3538
3538
|
setExpanded(!expanded);
|
|
3539
3539
|
}
|
|
3540
3540
|
};
|
|
3541
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3541
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkOWGLRE74cjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3542
3542
|
"div",
|
|
3543
3543
|
{
|
|
3544
3544
|
role: "button",
|
|
@@ -3556,7 +3556,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3556
3556
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3557
3557
|
] }),
|
|
3558
3558
|
/* @__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" }) }) }),
|
|
3559
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3559
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ExpandChevron, { expanded }) })
|
|
3560
3560
|
]
|
|
3561
3561
|
}
|
|
3562
3562
|
) });
|
|
@@ -3677,9 +3677,9 @@ var iconTint = {
|
|
|
3677
3677
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3678
3678
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3679
3679
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3680
|
-
const { innerRef, containerStyle } =
|
|
3680
|
+
const { innerRef, containerStyle } = _chunkOWGLRE74cjs.useCollapsible.call(void 0, { expanded });
|
|
3681
3681
|
const hasDetails = Boolean(details);
|
|
3682
|
-
const isV2 = useChatAppearance() ===
|
|
3682
|
+
const isV2 = useChatAppearance() === _chunk5TCIRWHLcjs.CHAT_APPEARANCE.V2;
|
|
3683
3683
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3684
3684
|
"div",
|
|
3685
3685
|
{
|
|
@@ -3716,7 +3716,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
3716
3716
|
children: title
|
|
3717
3717
|
}
|
|
3718
3718
|
),
|
|
3719
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3719
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ExpandChevron, { expanded })
|
|
3720
3720
|
]
|
|
3721
3721
|
}
|
|
3722
3722
|
),
|
|
@@ -3760,7 +3760,7 @@ function MspOrganizationCard({
|
|
|
3760
3760
|
className
|
|
3761
3761
|
),
|
|
3762
3762
|
children: [
|
|
3763
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3763
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
|
|
3764
3764
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3765
3765
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Your IT is managed by" }),
|
|
3766
3766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
|
|
@@ -3781,7 +3781,7 @@ function MspOrganizationCard({
|
|
|
3781
3781
|
className
|
|
3782
3782
|
),
|
|
3783
3783
|
children: [
|
|
3784
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3784
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
|
|
3785
3785
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3786
3786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
|
|
3787
3787
|
website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
|
|
@@ -3915,7 +3915,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3915
3915
|
] })
|
|
3916
3916
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
3917
3917
|
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,
|
|
3918
|
-
|
|
3918
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
3919
3919
|
{
|
|
3920
3920
|
src: userAvatar,
|
|
3921
3921
|
alt: userName,
|
|
@@ -3991,9 +3991,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
3991
3991
|
)
|
|
3992
3992
|
] }),
|
|
3993
3993
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3994
|
-
|
|
3994
|
+
_chunkOWGLRE74cjs.TicketStatusTag,
|
|
3995
3995
|
{
|
|
3996
|
-
...
|
|
3996
|
+
..._chunkOWGLRE74cjs.resolveStatusTagProps.call(void 0, {
|
|
3997
3997
|
status: ticketInfo.status,
|
|
3998
3998
|
statusKind: ticketInfo.statusKind,
|
|
3999
3999
|
statusName: ticketInfo.statusName,
|
|
@@ -4550,11 +4550,11 @@ var remarkMentionChips = () => {
|
|
|
4550
4550
|
// src/components/chat/tool-execution-display.tsx
|
|
4551
4551
|
|
|
4552
4552
|
|
|
4553
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4553
|
+
var COMMAND_BODY_KEYS = new Set(_chunkOWGLRE74cjs.COMMAND_BODY_ARG_KEYS);
|
|
4554
4554
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4555
4555
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4556
4556
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4557
|
-
const { innerRef, containerStyle } =
|
|
4557
|
+
const { innerRef, containerStyle } = _chunkOWGLRE74cjs.useCollapsible.call(void 0, { expanded });
|
|
4558
4558
|
const isClient = assistantType === "fae";
|
|
4559
4559
|
const isClientView = variant === "client";
|
|
4560
4560
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4575,6 +4575,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4575
4575
|
const isConciseRemoteRead = !message.integratedToolType && !!previewText && argEntries.length === 0 && !hasResult;
|
|
4576
4576
|
const isStaticRow = isClientView || isConciseRemoteRead;
|
|
4577
4577
|
const hasBody = argEntries.length > 0 || hasResult || isExecuting;
|
|
4578
|
+
const isExpanded = expanded && hasBody;
|
|
4578
4579
|
const renderStatusIcon = () => {
|
|
4579
4580
|
if (isExecuting) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" });
|
|
4580
4581
|
if (isExecuted && message.success === true) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "h-4 w-4 text-ods-success" });
|
|
@@ -4584,19 +4585,19 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4584
4585
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
4585
4586
|
const statusLabel = _optionalChain([message, 'access', _79 => _79.statusLabel, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
4586
4587
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4587
|
-
!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,
|
|
4588
|
+
!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, _chunkWI2OTGKCcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
4588
4589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4589
4590
|
"div",
|
|
4590
4591
|
{
|
|
4591
4592
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
4592
4593
|
"min-w-0 flex-1 text-h6",
|
|
4593
|
-
isClientView ? "whitespace-pre-wrap break-words text-ods-text-primary" :
|
|
4594
|
+
isClientView ? "whitespace-pre-wrap break-words text-ods-text-primary" : isExpanded ? "whitespace-pre-wrap break-all text-ods-text-primary" : "line-clamp-2 max-h-10 break-all text-ods-text-secondary"
|
|
4594
4595
|
),
|
|
4595
4596
|
children: previewText
|
|
4596
4597
|
}
|
|
4597
4598
|
),
|
|
4598
4599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4599
|
-
!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,
|
|
4600
|
+
!isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4600
4601
|
] });
|
|
4601
4602
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4602
4603
|
"div",
|
|
@@ -4606,7 +4607,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4606
4607
|
// The command running block keeps its bordered box in both chats
|
|
4607
4608
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4608
4609
|
"flex w-full flex-col overflow-hidden",
|
|
4609
|
-
|
|
4610
|
+
_chunkOWGLRE74cjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4610
4611
|
className
|
|
4611
4612
|
),
|
|
4612
4613
|
...props,
|
|
@@ -4617,10 +4618,10 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4617
4618
|
// It reads as a card: what was done, then one status line under it.
|
|
4618
4619
|
/* @__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: [
|
|
4619
4620
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4621
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4621
4622
|
] })
|
|
4622
4623
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4623
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4624
|
+
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4624
4625
|
"button",
|
|
4625
4626
|
{
|
|
4626
4627
|
type: "button",
|
|
@@ -4628,11 +4629,11 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4628
4629
|
onClick: () => setExpanded((prev) => !prev),
|
|
4629
4630
|
children: headerContent
|
|
4630
4631
|
}
|
|
4631
|
-
),
|
|
4632
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-start gap-[var(--spacing-system-xs)] p-[var(--spacing-system-s)] text-left", children: headerContent }),
|
|
4632
4633
|
/* @__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: [
|
|
4633
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4634
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.ArgRow, { argKey: key, value }, key)),
|
|
4634
4635
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4635
|
-
|
|
4636
|
+
_chunkOWGLRE74cjs.ResultBlock,
|
|
4636
4637
|
{
|
|
4637
4638
|
result: message.result,
|
|
4638
4639
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4686,8 +4687,8 @@ var remarkStripCitations = () => {
|
|
|
4686
4687
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
4687
4688
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
4688
4689
|
function formatMessageTimestamp(timestamp) {
|
|
4689
|
-
const time =
|
|
4690
|
-
return
|
|
4690
|
+
const time = _chunk5TCIRWHLcjs.formatTime.call(void 0, timestamp);
|
|
4691
|
+
return _chunkOWGLRE74cjs.isToday.call(void 0, timestamp) ? time : `${_chunk5TCIRWHLcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
4691
4692
|
}
|
|
4692
4693
|
function normalizeContent(content) {
|
|
4693
4694
|
if (typeof content === "string") {
|
|
@@ -4741,7 +4742,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4741
4742
|
const isError = role === "error";
|
|
4742
4743
|
const inheritedAppearance = useChatAppearance();
|
|
4743
4744
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
4744
|
-
const isV2 = appearance ===
|
|
4745
|
+
const isV2 = appearance === _chunk5TCIRWHLcjs.CHAT_APPEARANCE.V2;
|
|
4745
4746
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
4746
4747
|
const hasMarkerSupport = !!renderEntityCard;
|
|
4747
4748
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -4925,9 +4926,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
4925
4926
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
4926
4927
|
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 ? (
|
|
4927
4928
|
// An agent with no picture shows its packaged mark, never initials.
|
|
4928
|
-
/* @__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,
|
|
4929
|
+
/* @__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, _chunkOWGLRE74cjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
4929
4930
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4930
|
-
|
|
4931
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
4931
4932
|
{
|
|
4932
4933
|
src: avatar || void 0,
|
|
4933
4934
|
alt: displayName,
|
|
@@ -5006,7 +5007,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5006
5007
|
);
|
|
5007
5008
|
} else if (segment.type === "approval_batch") {
|
|
5008
5009
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5009
|
-
|
|
5010
|
+
_chunkOWGLRE74cjs.ApprovalBatchMessage,
|
|
5010
5011
|
{
|
|
5011
5012
|
data: segment.data,
|
|
5012
5013
|
status: segment.status,
|
|
@@ -5265,7 +5266,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5265
5266
|
contentClassName,
|
|
5266
5267
|
assistantType,
|
|
5267
5268
|
approvalVariant,
|
|
5268
|
-
appearance =
|
|
5269
|
+
appearance = _chunk5TCIRWHLcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5269
5270
|
assistantIcon,
|
|
5270
5271
|
pendingApprovals,
|
|
5271
5272
|
hasNextPage,
|
|
@@ -5784,7 +5785,7 @@ function renderQuickActionIcon(icon) {
|
|
|
5784
5785
|
if (!spec.name && !spec.url) return void 0;
|
|
5785
5786
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
5786
5787
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
5787
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5788
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
5788
5789
|
}
|
|
5789
5790
|
function composeChipLabel(label, lozenge) {
|
|
5790
5791
|
if (!lozenge) return label;
|
|
@@ -5821,7 +5822,7 @@ function QuickActionChipSkeleton({
|
|
|
5821
5822
|
}) {
|
|
5822
5823
|
const question = variant === "question";
|
|
5823
5824
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5824
|
-
|
|
5825
|
+
_chunkABLUMGCIcjs.Tag,
|
|
5825
5826
|
{
|
|
5826
5827
|
variant: "outline",
|
|
5827
5828
|
size: question ? "sentence" : size,
|
|
@@ -5857,7 +5858,7 @@ function QuickActionChipButton({
|
|
|
5857
5858
|
const tagVariant = selected ? selectedAccent === "cyan" ? "selectedCyan" : "selected" : question ? "outline" : variant;
|
|
5858
5859
|
const tagSize = question ? "sentence" : size;
|
|
5859
5860
|
if (!interactive) {
|
|
5860
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5861
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkABLUMGCIcjs.Tag, { variant: tagVariant, size: tagSize, icon: resolvedIcon, label: resolvedLabel, className });
|
|
5861
5862
|
}
|
|
5862
5863
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5863
5864
|
"button",
|
|
@@ -5876,7 +5877,7 @@ function QuickActionChipButton({
|
|
|
5876
5877
|
className
|
|
5877
5878
|
),
|
|
5878
5879
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5879
|
-
|
|
5880
|
+
_chunkABLUMGCIcjs.Tag,
|
|
5880
5881
|
{
|
|
5881
5882
|
variant: tagVariant,
|
|
5882
5883
|
size: tagSize,
|
|
@@ -6453,7 +6454,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6453
6454
|
|
|
6454
6455
|
[Attached: ${safeName}](${url})`;
|
|
6455
6456
|
}
|
|
6456
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6457
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkLJ46XYYPcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6457
6458
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6458
6459
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6459
6460
|
"gm"
|
|
@@ -6703,7 +6704,7 @@ function MarqueeWallFades({
|
|
|
6703
6704
|
}) });
|
|
6704
6705
|
}
|
|
6705
6706
|
function CloneCopy({ className, style, children }) {
|
|
6706
|
-
const ref =
|
|
6707
|
+
const ref = _chunkCSJO7ZGNcjs.useSuppressCloneFocus.call(void 0, true);
|
|
6707
6708
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
6708
6709
|
}
|
|
6709
6710
|
function MarqueeWall({
|
|
@@ -6730,7 +6731,7 @@ function MarqueeWall({
|
|
|
6730
6731
|
const containerRef = _react.useRef.call(void 0, null);
|
|
6731
6732
|
const trackRef = _react.useRef.call(void 0, null);
|
|
6732
6733
|
const copyRef = _react.useRef.call(void 0, null);
|
|
6733
|
-
const reducedMotion = _nullishCoalesce(
|
|
6734
|
+
const reducedMotion = _nullishCoalesce(_chunkKTPR66EEcjs.useMediaQuery.call(void 0, "(prefers-reduced-motion: reduce)"), () => ( false));
|
|
6734
6735
|
const [overflows, setOverflows] = _react.useState.call(void 0, false);
|
|
6735
6736
|
const copySizeRef = _react.useRef.call(void 0, 0);
|
|
6736
6737
|
const wrapSizeRef = _react.useRef.call(void 0, 0);
|
|
@@ -6757,7 +6758,7 @@ function MarqueeWall({
|
|
|
6757
6758
|
ro.observe(copy);
|
|
6758
6759
|
return () => ro.disconnect();
|
|
6759
6760
|
}, [measure, marqueeMounted]);
|
|
6760
|
-
const { ref: observe, inView: nearViewport } =
|
|
6761
|
+
const { ref: observe, inView: nearViewport } = _chunkCSJO7ZGNcjs.useInView.call(void 0, {
|
|
6761
6762
|
rootMargin: _chunkCW3ML76Ucjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
6762
6763
|
initial: true
|
|
6763
6764
|
});
|
|
@@ -6765,7 +6766,7 @@ function MarqueeWall({
|
|
|
6765
6766
|
observe(containerRef.current);
|
|
6766
6767
|
return () => observe(null);
|
|
6767
6768
|
}, [observe]);
|
|
6768
|
-
const autoplay =
|
|
6769
|
+
const autoplay = _chunkCSJO7ZGNcjs.useAutoplay.call(void 0, nearViewport);
|
|
6769
6770
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
6770
6771
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
6771
6772
|
pointerInsideRef.current = false;
|
|
@@ -6778,7 +6779,7 @@ function MarqueeWall({
|
|
|
6778
6779
|
if (e.pointerType === "touch") return;
|
|
6779
6780
|
pointerInsideRef.current = false;
|
|
6780
6781
|
}, []);
|
|
6781
|
-
|
|
6782
|
+
_chunkCSJO7ZGNcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
6782
6783
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
6783
6784
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
6784
6785
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -6831,7 +6832,7 @@ function MarqueeWall({
|
|
|
6831
6832
|
if (!sync) return void 0;
|
|
6832
6833
|
return sync.register(member);
|
|
6833
6834
|
}, [sync, member]);
|
|
6834
|
-
const { posRef, wrap } =
|
|
6835
|
+
const { posRef, wrap } = _chunkCSJO7ZGNcjs.useMarqueeEngine.call(void 0, {
|
|
6835
6836
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
6836
6837
|
speed,
|
|
6837
6838
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -7401,7 +7402,7 @@ function MingoChatHistoryRow({
|
|
|
7401
7402
|
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")
|
|
7402
7403
|
),
|
|
7403
7404
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7404
|
-
|
|
7405
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
7405
7406
|
{
|
|
7406
7407
|
variant: "round",
|
|
7407
7408
|
sizePx: 24,
|
|
@@ -7605,7 +7606,7 @@ function MingoWelcome({
|
|
|
7605
7606
|
onScroll: updateScrollFade,
|
|
7606
7607
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7607
7608
|
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: [
|
|
7608
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7609
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7609
7610
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7610
7611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7611
7612
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7727,8 +7728,8 @@ function GuideWelcome({
|
|
|
7727
7728
|
icon && (icon.name || icon.url) ? (
|
|
7728
7729
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7729
7730
|
// match the default Mingo mark (48px).
|
|
7730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7731
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7731
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7732
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7732
7733
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7733
7734
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7734
7735
|
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
|
|
@@ -7930,9 +7931,9 @@ function MingoArchiveList({
|
|
|
7930
7931
|
title: dialog.title || "Untitled Chat",
|
|
7931
7932
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _176 => _176(dialog.id)]),
|
|
7932
7933
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
7933
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
7934
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkOWGLRE74cjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
7934
7935
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7935
|
-
|
|
7936
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
7936
7937
|
{
|
|
7937
7938
|
variant: "round",
|
|
7938
7939
|
sizePx: 24,
|
|
@@ -8014,7 +8015,7 @@ function MingoChatHeader({
|
|
|
8014
8015
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
|
|
8015
8016
|
] }),
|
|
8016
8017
|
avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8017
|
-
|
|
8018
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
8018
8019
|
{
|
|
8019
8020
|
variant: "round",
|
|
8020
8021
|
sizePx: 32,
|
|
@@ -8051,7 +8052,7 @@ function ChatHeaderSearchField({
|
|
|
8051
8052
|
className
|
|
8052
8053
|
}) {
|
|
8053
8054
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8054
|
-
const debounced =
|
|
8055
|
+
const debounced = _chunkCSJO7ZGNcjs.useDebounce.call(void 0, value, 300);
|
|
8055
8056
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8056
8057
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
8057
8058
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -8290,7 +8291,7 @@ function MingoChatRail({
|
|
|
8290
8291
|
"data-accent": "mingo",
|
|
8291
8292
|
"aria-label": "Mingo chats",
|
|
8292
8293
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8293
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8294
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8294
8295
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8295
8296
|
_chunk2QMBXGMQcjs.Button,
|
|
8296
8297
|
{
|
|
@@ -8570,8 +8571,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8570
8571
|
const save = () => {
|
|
8571
8572
|
if (canSave) onSave(name.trim());
|
|
8572
8573
|
};
|
|
8573
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8574
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8574
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8575
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8575
8576
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8576
8577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8577
8578
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8588,27 +8589,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8588
8589
|
}
|
|
8589
8590
|
)
|
|
8590
8591
|
] }),
|
|
8591
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8592
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
8592
8593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8593
8594
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8594
8595
|
] })
|
|
8595
8596
|
] });
|
|
8596
8597
|
}
|
|
8597
8598
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8598
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8599
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8599
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8600
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8600
8601
|
/* @__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." }),
|
|
8601
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8602
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
8602
8603
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8603
8604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8604
8605
|
] })
|
|
8605
8606
|
] });
|
|
8606
8607
|
}
|
|
8607
8608
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8608
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8609
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8609
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8610
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TCIRWHLcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8610
8611
|
/* @__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." }),
|
|
8611
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8612
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5TCIRWHLcjs.ModalFooter, { children: [
|
|
8612
8613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8613
8614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8614
8615
|
] })
|
|
@@ -8781,7 +8782,7 @@ function ChatPanelHeader({
|
|
|
8781
8782
|
avatar && (avatar.name || avatar.avatarUrl) ? (
|
|
8782
8783
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
8783
8784
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8784
|
-
|
|
8785
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
8785
8786
|
{
|
|
8786
8787
|
variant: "round",
|
|
8787
8788
|
sizePx: 32,
|
|
@@ -8939,8 +8940,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
|
|
|
8939
8940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
|
|
8940
8941
|
(!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
|
|
8941
8942
|
status === "sniffing" && "Checking\u2026",
|
|
8942
|
-
status === "uploading" && `${progress}% \xB7 ${
|
|
8943
|
-
status === "ready" &&
|
|
8943
|
+
status === "uploading" && `${progress}% \xB7 ${_chunkABLUMGCIcjs.formatFileSize.call(void 0, file.size)}`,
|
|
8944
|
+
status === "ready" && _chunkABLUMGCIcjs.formatFileSize.call(void 0, file.size),
|
|
8944
8945
|
status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
|
|
8945
8946
|
] })
|
|
8946
8947
|
] }),
|
|
@@ -9188,7 +9189,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9188
9189
|
}, ref) => {
|
|
9189
9190
|
const icon = getProviderIcon(provider);
|
|
9190
9191
|
const name = displayName || modelName;
|
|
9191
|
-
const isV2 = useChatAppearance() ===
|
|
9192
|
+
const isV2 = useChatAppearance() === _chunk5TCIRWHLcjs.CHAT_APPEARANCE.V2;
|
|
9192
9193
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9193
9194
|
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: [
|
|
9194
9195
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9317,7 +9318,7 @@ function ChatComposer({
|
|
|
9317
9318
|
}, [entityTypes]);
|
|
9318
9319
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9319
9320
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9320
|
-
|
|
9321
|
+
_chunk5TCIRWHLcjs.ChatInput,
|
|
9321
9322
|
{
|
|
9322
9323
|
ref: inputRef,
|
|
9323
9324
|
onSend,
|
|
@@ -9484,17 +9485,17 @@ function useChatPanel() {
|
|
|
9484
9485
|
|
|
9485
9486
|
// src/components/chat/utils/execute-navigation.ts
|
|
9486
9487
|
function isForeignOriginHref(href) {
|
|
9487
|
-
return /^https?:\/\//i.test(href) && !
|
|
9488
|
+
return /^https?:\/\//i.test(href) && !_chunkLJ46XYYPcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9488
9489
|
}
|
|
9489
9490
|
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9490
|
-
const isNewTab = runtime ?
|
|
9491
|
+
const isNewTab = runtime ? _chunkLJ46XYYPcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9491
9492
|
if (isNewTab) {
|
|
9492
9493
|
if (_optionalChain([runtime, 'optionalAccess', _202 => _202.navigation, 'access', _203 => _203.openExternal])) runtime.navigation.openExternal(href);
|
|
9493
|
-
else window.open(href, "_blank",
|
|
9494
|
+
else window.open(href, "_blank", _chunkLJ46XYYPcjs.NEW_TAB_FEATURES);
|
|
9494
9495
|
return;
|
|
9495
9496
|
}
|
|
9496
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9497
|
-
if (target.includes("#") &&
|
|
9497
|
+
const target = isForeignOriginHref(href) ? href : _chunkLJ46XYYPcjs.stripSameOriginToPath.call(void 0, href);
|
|
9498
|
+
if (target.includes("#") && _chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9498
9499
|
return;
|
|
9499
9500
|
}
|
|
9500
9501
|
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.navigate, 'optionalCall', _206 => _206({ href, path, targetPlatform })]), () => ( false));
|
|
@@ -9544,8 +9545,8 @@ function useNavLinkViaRuntime({
|
|
|
9544
9545
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9545
9546
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9546
9547
|
const panel = useChatPanel();
|
|
9547
|
-
const resolvedHref =
|
|
9548
|
-
const isNewTab =
|
|
9548
|
+
const resolvedHref = _chunkLJ46XYYPcjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9549
|
+
const isNewTab = _chunkLJ46XYYPcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9549
9550
|
const onClick = (e) => {
|
|
9550
9551
|
_optionalChain([onClickProp, 'optionalCall', _207 => _207(e)]);
|
|
9551
9552
|
if (e.defaultPrevented) return;
|
|
@@ -9559,7 +9560,7 @@ function useNavLinkViaRuntime({
|
|
|
9559
9560
|
});
|
|
9560
9561
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _208 => _208.closeChat])) panel.closeChat();
|
|
9561
9562
|
};
|
|
9562
|
-
const attrs =
|
|
9563
|
+
const attrs = _chunkLJ46XYYPcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9563
9564
|
return {
|
|
9564
9565
|
href: resolvedHref,
|
|
9565
9566
|
...attrs,
|
|
@@ -9704,9 +9705,9 @@ function UserDisplay({
|
|
|
9704
9705
|
}) {
|
|
9705
9706
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
9706
9707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9707
|
-
|
|
9708
|
+
_chunkABLUMGCIcjs.SquareAvatar,
|
|
9708
9709
|
{
|
|
9709
|
-
src: avatarUrl ?
|
|
9710
|
+
src: avatarUrl ? _chunkLJ46XYYPcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
|
|
9710
9711
|
fallback: name,
|
|
9711
9712
|
alt: name,
|
|
9712
9713
|
sizePx: size,
|
|
@@ -9814,7 +9815,7 @@ function ManagedCell({
|
|
|
9814
9815
|
}) {
|
|
9815
9816
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
9816
9817
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
9817
|
-
const cloneRef =
|
|
9818
|
+
const cloneRef = _chunkCSJO7ZGNcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
9818
9819
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9819
9820
|
"div",
|
|
9820
9821
|
{
|
|
@@ -9934,12 +9935,12 @@ function CardsStrip(props) {
|
|
|
9934
9935
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
9935
9936
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
9936
9937
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
9937
|
-
const { ref: observe, inView: nearViewport } =
|
|
9938
|
+
const { ref: observe, inView: nearViewport } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
9938
9939
|
_react.useEffect.call(void 0, () => {
|
|
9939
9940
|
observe(wrapperRef.current);
|
|
9940
9941
|
return () => observe(null);
|
|
9941
9942
|
}, [observe]);
|
|
9942
|
-
const autoplay =
|
|
9943
|
+
const autoplay = _chunkCSJO7ZGNcjs.useAutoplay.call(void 0, nearViewport);
|
|
9943
9944
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
9944
9945
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
9945
9946
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -9986,7 +9987,7 @@ function CardsStrip(props) {
|
|
|
9986
9987
|
const current = activeKeyRef.current;
|
|
9987
9988
|
if (current !== null) deactivate(current);
|
|
9988
9989
|
}, [deactivate]);
|
|
9989
|
-
|
|
9990
|
+
_chunkCSJO7ZGNcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
9990
9991
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
9991
9992
|
const scroller = scrollerRef.current;
|
|
9992
9993
|
if (!scroller) return;
|
|
@@ -10007,7 +10008,7 @@ function CardsStrip(props) {
|
|
|
10007
10008
|
},
|
|
10008
10009
|
[reverse, seamBuffer]
|
|
10009
10010
|
);
|
|
10010
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
10011
|
+
const { posRef: marqueePosRef, glideBy } = _chunkCSJO7ZGNcjs.useMarqueeEngine.call(void 0, {
|
|
10011
10012
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
10012
10013
|
// engine would keep scheduling frames forever), same treatment as
|
|
10013
10014
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -10156,7 +10157,7 @@ function CardsStrip(props) {
|
|
|
10156
10157
|
},
|
|
10157
10158
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full min-w-0 flex-col gap-6", className),
|
|
10158
10159
|
children: [
|
|
10159
|
-
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10160
|
+
showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkLJ46XYYPcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkLJ46XYYPcjs.accentSentenceMarks.call(void 0, title) }),
|
|
10160
10161
|
headerSlot,
|
|
10161
10162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative", style: bled ? { marginLeft: -insets.left, marginRight: -insets.right } : void 0, children: [
|
|
10162
10163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10308,7 +10309,7 @@ function groupByAspectRatio(items, getAspectRatio) {
|
|
|
10308
10309
|
|
|
10309
10310
|
function VideoBitesStrip({
|
|
10310
10311
|
bites,
|
|
10311
|
-
title =
|
|
10312
|
+
title = _chunkLJ46XYYPcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10312
10313
|
showTitle = true,
|
|
10313
10314
|
filterPublished = true,
|
|
10314
10315
|
profile = null,
|
|
@@ -10321,7 +10322,7 @@ function VideoBitesStrip({
|
|
|
10321
10322
|
cardHeightMobile = 300,
|
|
10322
10323
|
showChevrons = true,
|
|
10323
10324
|
onBiteNavigate,
|
|
10324
|
-
sortComparator =
|
|
10325
|
+
sortComparator = _chunkLJ46XYYPcjs.sortBitesByCreatedAtDesc,
|
|
10325
10326
|
className
|
|
10326
10327
|
}) {
|
|
10327
10328
|
const items = _react.useMemo.call(void 0, () => {
|
|
@@ -10400,7 +10401,7 @@ function VideoBiteCard({
|
|
|
10400
10401
|
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _233 => _233(key)]) : setSelfActive(true);
|
|
10401
10402
|
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _234 => _234(key)]) : setSelfActive(false);
|
|
10402
10403
|
const titleInputRef = _react.useRef.call(void 0, null);
|
|
10403
|
-
|
|
10404
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
10404
10405
|
const el = titleInputRef.current;
|
|
10405
10406
|
if (!el) return;
|
|
10406
10407
|
el.style.height = "auto";
|
|
@@ -10487,7 +10488,7 @@ function VideoBiteCard({
|
|
|
10487
10488
|
},
|
|
10488
10489
|
children: [
|
|
10489
10490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10490
|
-
|
|
10491
|
+
_chunkLJ46XYYPcjs.VideoHoverPreviewSurface,
|
|
10491
10492
|
{
|
|
10492
10493
|
url: bite.url,
|
|
10493
10494
|
posterUrl: bite.thumbnail_url,
|
|
@@ -10558,7 +10559,7 @@ function EntityVideoSection({
|
|
|
10558
10559
|
title = "Video",
|
|
10559
10560
|
videoSummary,
|
|
10560
10561
|
videoBites,
|
|
10561
|
-
bitesTitle =
|
|
10562
|
+
bitesTitle = _chunkLJ46XYYPcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10562
10563
|
filterPublishedBites = true,
|
|
10563
10564
|
bitesProfile = null,
|
|
10564
10565
|
bitesHref,
|
|
@@ -10604,7 +10605,7 @@ function EntityVideoSection({
|
|
|
10604
10605
|
)
|
|
10605
10606
|
] }),
|
|
10606
10607
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10607
|
-
|
|
10608
|
+
_chunkLJ46XYYPcjs.Video,
|
|
10608
10609
|
{
|
|
10609
10610
|
kind: fullVideoKind,
|
|
10610
10611
|
url: fullVideoUrl,
|
|
@@ -10616,7 +10617,7 @@ function EntityVideoSection({
|
|
|
10616
10617
|
}
|
|
10617
10618
|
) }),
|
|
10618
10619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10619
|
-
|
|
10620
|
+
_chunkLJ46XYYPcjs.Video,
|
|
10620
10621
|
{
|
|
10621
10622
|
url: highlightVideoUrl,
|
|
10622
10623
|
poster: highlightVideoThumbnail,
|
|
@@ -10625,7 +10626,7 @@ function EntityVideoSection({
|
|
|
10625
10626
|
}
|
|
10626
10627
|
) })
|
|
10627
10628
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10628
|
-
|
|
10629
|
+
_chunkLJ46XYYPcjs.Video,
|
|
10629
10630
|
{
|
|
10630
10631
|
kind: fullVideoKind,
|
|
10631
10632
|
url: fullVideoUrl,
|
|
@@ -10636,7 +10637,7 @@ function EntityVideoSection({
|
|
|
10636
10637
|
priority
|
|
10637
10638
|
}
|
|
10638
10639
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10639
|
-
|
|
10640
|
+
_chunkLJ46XYYPcjs.Video,
|
|
10640
10641
|
{
|
|
10641
10642
|
url: highlightVideoUrl,
|
|
10642
10643
|
poster: highlightVideoThumbnail,
|
|
@@ -10646,7 +10647,7 @@ function EntityVideoSection({
|
|
|
10646
10647
|
}
|
|
10647
10648
|
) : null),
|
|
10648
10649
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10649
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10650
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkLJ46XYYPcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10650
10651
|
/* @__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 }) })
|
|
10651
10652
|
] }),
|
|
10652
10653
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10906,14 +10907,14 @@ function designDocPeople(doc) {
|
|
|
10906
10907
|
return people;
|
|
10907
10908
|
}
|
|
10908
10909
|
function designDocMetaLine(doc) {
|
|
10909
|
-
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10910
|
+
return [_optionalChain([doc, 'access', _243 => _243.author, 'optionalAccess', _244 => _244.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkLJ46XYYPcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10910
10911
|
}
|
|
10911
10912
|
function DesignDocCardSkeleton() {
|
|
10912
10913
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10913
10914
|
"div",
|
|
10914
10915
|
{
|
|
10915
10916
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10916
|
-
|
|
10917
|
+
_chunkLJ46XYYPcjs.CONTENT_CARD_SKELETON_FRAME_CLASS,
|
|
10917
10918
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]"
|
|
10918
10919
|
),
|
|
10919
10920
|
role: "status",
|
|
@@ -10943,7 +10944,7 @@ function DesignDocCardSkeleton() {
|
|
|
10943
10944
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
10944
10945
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
10945
10946
|
const people = designDocPeople(doc);
|
|
10946
|
-
const link =
|
|
10947
|
+
const link = _chunkLJ46XYYPcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
10947
10948
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10948
10949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[16px]", children: [
|
|
10949
10950
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -10951,7 +10952,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10951
10952
|
/* @__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) }) })
|
|
10952
10953
|
] }),
|
|
10953
10954
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10954
|
-
|
|
10955
|
+
_chunkLJ46XYYPcjs.StatusBadge,
|
|
10955
10956
|
{
|
|
10956
10957
|
text: readiness.label,
|
|
10957
10958
|
colorScheme: readiness.scheme,
|
|
@@ -10961,16 +10962,16 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
10961
10962
|
}
|
|
10962
10963
|
)
|
|
10963
10964
|
] }),
|
|
10964
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10965
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
10965
10966
|
/* @__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 || "" }) }),
|
|
10966
10967
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
10967
10968
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
10968
10969
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
|
|
10969
|
-
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10970
|
+
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUY6A6TEYcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
10970
10971
|
] })
|
|
10971
10972
|
] });
|
|
10972
10973
|
const outer = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
10973
|
-
|
|
10974
|
+
_chunkLJ46XYYPcjs.CONTENT_CARD_FRAME_CLASS,
|
|
10974
10975
|
"flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]",
|
|
10975
10976
|
className
|
|
10976
10977
|
);
|
|
@@ -11080,7 +11081,7 @@ function ReviewStateBadge({ state, className = "" }) {
|
|
|
11080
11081
|
function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
|
|
11081
11082
|
const kind = _nullishCoalesce(item.kind, () => ( "commit"));
|
|
11082
11083
|
const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
|
|
11083
|
-
const dateText =
|
|
11084
|
+
const dateText = _chunkABLUMGCIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
11084
11085
|
const idLabel = formatActivityId(item.id, kind);
|
|
11085
11086
|
const { display: title, reviewState } = parseGithubTitle(item.title, kind);
|
|
11086
11087
|
const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
|
|
@@ -11114,26 +11115,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11114
11115
|
metaParts.push(
|
|
11115
11116
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11116
11117
|
);
|
|
11117
|
-
const href =
|
|
11118
|
+
const href = _chunkLJ46XYYPcjs.safeHref.call(void 0, item.url);
|
|
11118
11119
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11119
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11120
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11121
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11120
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11121
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11122
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11122
11123
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11123
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11124
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11124
11125
|
] }),
|
|
11125
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11126
11127
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11127
11128
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11128
11129
|
] }, i)) }) }),
|
|
11129
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11130
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_SUMMARY, children: _chunkLJ46XYYPcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11130
11131
|
] }),
|
|
11131
11132
|
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
|
|
11132
11133
|
] });
|
|
11133
11134
|
if (anchorProps) {
|
|
11134
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11135
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11135
11136
|
}
|
|
11136
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11137
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11137
11138
|
}
|
|
11138
11139
|
function GitHubActivityCardSkeleton({
|
|
11139
11140
|
variant = "compact",
|
|
@@ -11150,12 +11151,12 @@ function GitHubActivityCardSkeleton({
|
|
|
11150
11151
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
|
|
11151
11152
|
] });
|
|
11152
11153
|
}
|
|
11153
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11155
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11156
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11157
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11158
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11154
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11155
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11156
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11157
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
|
|
11158
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11159
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_SUMMARY, children: _chunkLJ46XYYPcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11159
11160
|
] }),
|
|
11160
11161
|
/* @__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" }) })
|
|
11161
11162
|
] });
|
|
@@ -11167,29 +11168,29 @@ function GitHubActivityCardSkeleton({
|
|
|
11167
11168
|
function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
11168
11169
|
const goalsCount = _optionalChain([campaign, 'access', _245 => _245.goals, 'optionalAccess', _246 => _246.length]) || 0;
|
|
11169
11170
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11170
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11171
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11172
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11173
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11174
|
-
campaign.start_date ?
|
|
11171
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
11172
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11173
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
11174
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
11175
|
+
campaign.start_date ? _chunkLJ46XYYPcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
11175
11176
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
11176
11177
|
"Marketing campaign"
|
|
11177
11178
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
11178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11179
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkLJ46XYYPcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11179
11180
|
] })
|
|
11180
11181
|
] });
|
|
11181
11182
|
if (anchorProps) {
|
|
11182
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11183
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
11183
11184
|
}
|
|
11184
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
11185
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
11185
11186
|
}
|
|
11186
11187
|
function CampaignCardAdminSkeleton({ className }) {
|
|
11187
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11188
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11189
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11190
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11191
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11192
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11188
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11189
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
|
|
11190
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11191
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
|
|
11192
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
|
|
11193
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
|
|
11193
11194
|
] })
|
|
11194
11195
|
] });
|
|
11195
11196
|
}
|
|
@@ -11280,7 +11281,7 @@ function VendorIcon({
|
|
|
11280
11281
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11281
11282
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11282
11283
|
{
|
|
11283
|
-
src:
|
|
11284
|
+
src: _chunkLJ46XYYPcjs.getProxiedImageUrl2.call(void 0, logoUrl) || logoUrl,
|
|
11284
11285
|
alt: `${vendor.title} logo`,
|
|
11285
11286
|
width,
|
|
11286
11287
|
height,
|
|
@@ -11307,11 +11308,11 @@ function useChatCardItem(type, id) {
|
|
|
11307
11308
|
queryKey: ["chat-card-item", type, id],
|
|
11308
11309
|
queryFn: async () => {
|
|
11309
11310
|
if (!url) return null;
|
|
11310
|
-
const res = await
|
|
11311
|
+
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url);
|
|
11311
11312
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11312
11313
|
const data = await res.json();
|
|
11313
|
-
const items =
|
|
11314
|
-
const match = items.find((it) =>
|
|
11314
|
+
const items = _chunkLJ46XYYPcjs.extractCardItems.call(void 0, type, data);
|
|
11315
|
+
const match = items.find((it) => _chunkLJ46XYYPcjs.extractItemId.call(void 0, type, it) === id);
|
|
11315
11316
|
return _nullishCoalesce(match, () => ( null));
|
|
11316
11317
|
},
|
|
11317
11318
|
enabled: !!url && id.length > 0,
|
|
@@ -11353,7 +11354,7 @@ var TRAILING_BUTTON_CLASS = "flex w-[56px] shrink-0 items-center justify-center
|
|
|
11353
11354
|
function CardMedia({ imageSrc, imageAlt, icon }) {
|
|
11354
11355
|
if (imageSrc) {
|
|
11355
11356
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
|
|
11356
|
-
/* @__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:
|
|
11357
|
+
/* @__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: _chunkABLUMGCIcjs.personInitials.call(void 0, imageAlt) || "?" }),
|
|
11357
11358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11358
11359
|
_chunkHOTM4UM6cjs.next_image_default,
|
|
11359
11360
|
{
|
|
@@ -11422,7 +11423,7 @@ function MingoInfoCard({
|
|
|
11422
11423
|
status ? (
|
|
11423
11424
|
// Reuse the shared Tag palette (single source of truth for colours)
|
|
11424
11425
|
// without rendering Tag's `<div>` — span-only for `<p>` validity.
|
|
11425
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
11426
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkABLUMGCIcjs.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 }) })
|
|
11426
11427
|
) : null
|
|
11427
11428
|
] });
|
|
11428
11429
|
const contentClass = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -11513,7 +11514,7 @@ function resolveFetchedCardHref({
|
|
|
11513
11514
|
composeContentUrl
|
|
11514
11515
|
}) {
|
|
11515
11516
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11516
|
-
const canonicalType =
|
|
11517
|
+
const canonicalType = _chunkLJ46XYYPcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11517
11518
|
return composeContentUrl({
|
|
11518
11519
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11519
11520
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11543,7 +11544,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
|
|
|
11543
11544
|
}
|
|
11544
11545
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11545
11546
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
11546
|
-
const icon = iconName ?
|
|
11547
|
+
const icon = iconName ? _chunkKTPR66EEcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
11547
11548
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11548
11549
|
return { icon, iconLabel };
|
|
11549
11550
|
}
|
|
@@ -11563,16 +11564,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11563
11564
|
if (docTarget) {
|
|
11564
11565
|
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11565
11566
|
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11566
|
-
href = _nullishCoalesce(
|
|
11567
|
+
href = _nullishCoalesce(_chunkLJ46XYYPcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11567
11568
|
targetPlatform = docTarget.platform;
|
|
11568
11569
|
} else if (ctx.chipBasePlatform) {
|
|
11569
11570
|
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11570
|
-
href = _nullishCoalesce(
|
|
11571
|
+
href = _nullishCoalesce(_chunkLJ46XYYPcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11571
11572
|
targetPlatform = ctx.chipBasePlatform;
|
|
11572
11573
|
} else if (ctx.baseRoute) {
|
|
11573
11574
|
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11574
11575
|
const absolute = new URL(safePath, synthetic).toString();
|
|
11575
|
-
href = _nullishCoalesce(
|
|
11576
|
+
href = _nullishCoalesce(_chunkLJ46XYYPcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11576
11577
|
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11577
11578
|
}
|
|
11578
11579
|
}
|
|
@@ -11581,15 +11582,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11581
11582
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11582
11583
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11583
11584
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11584
|
-
type:
|
|
11585
|
+
type: _chunkLJ46XYYPcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11585
11586
|
identifier: idValue,
|
|
11586
11587
|
externalUrl: row.externalUrl,
|
|
11587
11588
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11588
11589
|
});
|
|
11589
|
-
href = composed.href ? _nullishCoalesce(
|
|
11590
|
+
href = composed.href ? _nullishCoalesce(_chunkLJ46XYYPcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11590
11591
|
targetPlatform = composed.targetPlatform;
|
|
11591
11592
|
} else if (row.externalUrl) {
|
|
11592
|
-
href = _nullishCoalesce(
|
|
11593
|
+
href = _nullishCoalesce(_chunkLJ46XYYPcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
11593
11594
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
11594
11595
|
}
|
|
11595
11596
|
const documentType = row.documentType;
|
|
@@ -11656,7 +11657,7 @@ function resolveCardDestination({
|
|
|
11656
11657
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _260 => _260.fallbackHref, 'optionalCall', _261 => _261(item)]), () => ( null)),
|
|
11657
11658
|
allowComposed: !entry.noComposedHref
|
|
11658
11659
|
});
|
|
11659
|
-
const url = choice ? _nullishCoalesce(
|
|
11660
|
+
const url = choice ? _nullishCoalesce(_chunkLJ46XYYPcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
11660
11661
|
if (choice && url) {
|
|
11661
11662
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
11662
11663
|
}
|
|
@@ -11669,11 +11670,11 @@ function resolveCardDestination({
|
|
|
11669
11670
|
|
|
11670
11671
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
11671
11672
|
const label = entityLabel || "Item";
|
|
11672
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
11673
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11674
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
11675
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11676
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11673
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11674
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11675
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11676
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkLJ46XYYPcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkLJ46XYYPcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
11677
11678
|
label,
|
|
11678
11679
|
" deleted",
|
|
11679
11680
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -11719,7 +11720,7 @@ function GitHubChatCard({
|
|
|
11719
11720
|
const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
|
|
11720
11721
|
const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
|
|
11721
11722
|
const idLabel = formatActivityId(chatRef.id, kind);
|
|
11722
|
-
const dateText =
|
|
11723
|
+
const dateText = _chunkABLUMGCIcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
|
|
11723
11724
|
const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
|
|
11724
11725
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11725
11726
|
MingoInfoCard,
|
|
@@ -11728,7 +11729,7 @@ function GitHubChatCard({
|
|
|
11728
11729
|
description,
|
|
11729
11730
|
icon: githubKindIcon(kind),
|
|
11730
11731
|
status,
|
|
11731
|
-
anchorProps:
|
|
11732
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11732
11733
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11733
11734
|
menuAriaLabel: "Activity actions"
|
|
11734
11735
|
}
|
|
@@ -11875,7 +11876,7 @@ function HubspotTicketChatCard({
|
|
|
11875
11876
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11876
11877
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
11877
11878
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
11878
|
-
anchorProps:
|
|
11879
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11879
11880
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11880
11881
|
label: "Open Ticket Details",
|
|
11881
11882
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -11898,7 +11899,7 @@ function FaqChatCard({
|
|
|
11898
11899
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11899
11900
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
11900
11901
|
status: { label: statusLabel, variant: "grey" },
|
|
11901
|
-
anchorProps:
|
|
11902
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11902
11903
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11903
11904
|
menuAriaLabel: "FAQ actions"
|
|
11904
11905
|
}
|
|
@@ -11918,7 +11919,7 @@ function SlackChatCard({
|
|
|
11918
11919
|
title,
|
|
11919
11920
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11920
11921
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
11921
|
-
anchorProps:
|
|
11922
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11922
11923
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11923
11924
|
menuAriaLabel: "Message actions"
|
|
11924
11925
|
}
|
|
@@ -11936,7 +11937,7 @@ function GlyphChatCard({
|
|
|
11936
11937
|
title: chatRef.title,
|
|
11937
11938
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11938
11939
|
icon,
|
|
11939
|
-
anchorProps:
|
|
11940
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11940
11941
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11941
11942
|
menuAriaLabel: "Card actions"
|
|
11942
11943
|
}
|
|
@@ -11954,20 +11955,20 @@ function TrustCenterChatCard({
|
|
|
11954
11955
|
}) {
|
|
11955
11956
|
const raw = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
11956
11957
|
const frameworks = Array.isArray(raw) ? raw : [];
|
|
11957
|
-
const summary =
|
|
11958
|
+
const summary = _chunkLJ46XYYPcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11958
11959
|
const leadFramework = frameworks[0];
|
|
11959
11960
|
const lead = leadFramework ? {
|
|
11960
|
-
label:
|
|
11961
|
-
color:
|
|
11961
|
+
label: _chunkLJ46XYYPcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11962
|
+
color: _chunkLJ46XYYPcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11962
11963
|
} : void 0;
|
|
11963
11964
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11964
11965
|
MingoInfoCard,
|
|
11965
11966
|
{
|
|
11966
|
-
title:
|
|
11967
|
-
description: summary ||
|
|
11967
|
+
title: _chunkLJ46XYYPcjs.TRUST_CENTER_TITLE,
|
|
11968
|
+
description: summary || _chunkLJ46XYYPcjs.TRUST_CENTER_TAGLINE,
|
|
11968
11969
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11969
11970
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11970
|
-
anchorProps:
|
|
11971
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11971
11972
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
11972
11973
|
label: "View trust center",
|
|
11973
11974
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -11989,7 +11990,7 @@ function DataRoomDocChatCard({
|
|
|
11989
11990
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
11990
11991
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
11991
11992
|
status: { label: badgeText, variant: "grey" },
|
|
11992
|
-
anchorProps:
|
|
11993
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
11993
11994
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
11994
11995
|
menuAriaLabel: "Document actions"
|
|
11995
11996
|
}
|
|
@@ -12008,7 +12009,7 @@ function GenericFinancialChatCard({
|
|
|
12008
12009
|
title: chatRef.title,
|
|
12009
12010
|
description: subtitle,
|
|
12010
12011
|
icon,
|
|
12011
|
-
anchorProps:
|
|
12012
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12012
12013
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12013
12014
|
menuAriaLabel: "Document actions"
|
|
12014
12015
|
}
|
|
@@ -12094,7 +12095,7 @@ function CampaignChatCard({
|
|
|
12094
12095
|
}) {
|
|
12095
12096
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _291 => _291.goals])) ? item.goals.length : 0;
|
|
12096
12097
|
const meta = [
|
|
12097
|
-
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ?
|
|
12098
|
+
_optionalChain([item, 'optionalAccess', _292 => _292.start_date]) ? _chunkLJ46XYYPcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12098
12099
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12099
12100
|
"Marketing campaign"
|
|
12100
12101
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12133,7 +12134,7 @@ function EntityMingoCard({
|
|
|
12133
12134
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12134
12135
|
icon: fallbackIcon,
|
|
12135
12136
|
status,
|
|
12136
|
-
anchorProps:
|
|
12137
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
12137
12138
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12138
12139
|
menuAriaLabel
|
|
12139
12140
|
}
|
|
@@ -12145,7 +12146,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12145
12146
|
function statusPill(status) {
|
|
12146
12147
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12147
12148
|
if (!s) return void 0;
|
|
12148
|
-
const scheme =
|
|
12149
|
+
const scheme = _chunkLJ46XYYPcjs.getStatusColorScheme.call(void 0, s);
|
|
12149
12150
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12150
12151
|
return { label: s, variant };
|
|
12151
12152
|
}
|
|
@@ -12236,7 +12237,7 @@ function DesignDocChatCard({
|
|
|
12236
12237
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12237
12238
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12238
12239
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12239
|
-
anchorProps:
|
|
12240
|
+
anchorProps: _chunkLJ46XYYPcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
|
|
12240
12241
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12241
12242
|
menuAriaLabel: "Design doc actions"
|
|
12242
12243
|
}
|
|
@@ -12254,7 +12255,7 @@ function InvestorUpdateChatCard({
|
|
|
12254
12255
|
EntityMingoCard,
|
|
12255
12256
|
{
|
|
12256
12257
|
title,
|
|
12257
|
-
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) ||
|
|
12258
|
+
description: _optionalChain([item, 'optionalAccess', _322 => _322.strategic_update]) || _optionalChain([item, 'optionalAccess', _323 => _323.content]) || _chunkLJ46XYYPcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _324 => _324.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_end]), () => ( null))) || void 0,
|
|
12258
12259
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.featured_image]), ogPlaceholder),
|
|
12259
12260
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12260
12261
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12298,7 +12299,7 @@ function ProgramChatCard({
|
|
|
12298
12299
|
discuss
|
|
12299
12300
|
}) {
|
|
12300
12301
|
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 });
|
|
12301
|
-
const { line: meta } =
|
|
12302
|
+
const { line: meta } = _chunkLJ46XYYPcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkLJ46XYYPcjs.programMetaFormatters.call(void 0, _chunkLJ46XYYPcjs.PROGRAM_META_RENDERERS));
|
|
12302
12303
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12303
12304
|
EntityMingoCard,
|
|
12304
12305
|
{
|
|
@@ -12324,7 +12325,7 @@ function RoadmapChatCard({
|
|
|
12324
12325
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _336 => _336.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12325
12326
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _337 => _337.customItemId]) != null;
|
|
12326
12327
|
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 });
|
|
12327
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12328
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12328
12329
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12329
12330
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12330
12331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12390,11 +12391,11 @@ function refText(ref, key) {
|
|
|
12390
12391
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12391
12392
|
}
|
|
12392
12393
|
function VendorGlyph({ title, logoUrl }) {
|
|
12393
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12394
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12394
12395
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12395
12396
|
}
|
|
12396
12397
|
function SitePageGlyph({ iconName }) {
|
|
12397
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12398
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12398
12399
|
}
|
|
12399
12400
|
var GITHUB_CARD_CONFIGS = {
|
|
12400
12401
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12511,7 +12512,7 @@ function programRegistryEntries() {
|
|
|
12511
12512
|
label: cfg.label,
|
|
12512
12513
|
contentRefType: cfg.contentRefType,
|
|
12513
12514
|
bareInline: true,
|
|
12514
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12515
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.ProgramCardSkeleton, { size: "sm" }),
|
|
12515
12516
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12516
12517
|
ProgramChatCard,
|
|
12517
12518
|
{
|
|
@@ -12552,7 +12553,7 @@ function roadmapRegistryEntries() {
|
|
|
12552
12553
|
bareInline: true,
|
|
12553
12554
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12554
12555
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12555
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12556
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.RoadmapCardSkeleton, { size: "sm" }),
|
|
12556
12557
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12557
12558
|
RoadmapChatCard,
|
|
12558
12559
|
{
|
|
@@ -12610,12 +12611,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12610
12611
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12611
12612
|
// single matched row. Destination is the public page unless the host
|
|
12612
12613
|
// re-homes the type (`composeContentUrl` override).
|
|
12613
|
-
[
|
|
12614
|
+
[_chunkLJ46XYYPcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12614
12615
|
label: "Trust center",
|
|
12615
12616
|
bareInline: true,
|
|
12616
|
-
contentRefType:
|
|
12617
|
+
contentRefType: _chunkLJ46XYYPcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12617
12618
|
noComposedHref: true,
|
|
12618
|
-
fallbackHref: () =>
|
|
12619
|
+
fallbackHref: () => _chunkLJ46XYYPcjs.TRUST_CENTER_PAGE_PATH,
|
|
12619
12620
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
|
|
12620
12621
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12621
12622
|
},
|
|
@@ -12641,7 +12642,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12641
12642
|
label: "Blog post",
|
|
12642
12643
|
contentRefType: "blog_post_existing",
|
|
12643
12644
|
bareInline: true,
|
|
12644
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12645
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.BlogCardSkeleton, { size: "sm" }),
|
|
12645
12646
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12646
12647
|
BlogChatCard,
|
|
12647
12648
|
{
|
|
@@ -12658,7 +12659,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12658
12659
|
label: "Case study",
|
|
12659
12660
|
contentRefType: "case_study",
|
|
12660
12661
|
bareInline: true,
|
|
12661
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12662
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.CaseStudyCardSkeleton, { size: "sm" }),
|
|
12662
12663
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12663
12664
|
CaseStudyChatCard,
|
|
12664
12665
|
{
|
|
@@ -12683,7 +12684,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12683
12684
|
label: "Customer interview",
|
|
12684
12685
|
contentRefType: "customer_interview",
|
|
12685
12686
|
bareInline: true,
|
|
12686
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12687
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
|
|
12687
12688
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12688
12689
|
CustomerInterviewChatCard,
|
|
12689
12690
|
{
|
|
@@ -12699,9 +12700,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12699
12700
|
label: "Product release",
|
|
12700
12701
|
contentRefType: "product_release",
|
|
12701
12702
|
bareInline: true,
|
|
12702
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12703
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.ProductReleaseCardSkeleton, { size: "sm" }),
|
|
12703
12704
|
render: (item, chatRef, opts) => {
|
|
12704
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => (
|
|
12705
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildProductReleaseCardProps]), () => ( _chunkLJ46XYYPcjs.defaultBuildProductReleaseCardProps));
|
|
12705
12706
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12706
12707
|
ProductReleaseChatCard,
|
|
12707
12708
|
{
|
|
@@ -12719,7 +12720,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12719
12720
|
label: "Investor update",
|
|
12720
12721
|
contentRefType: "investor_update",
|
|
12721
12722
|
bareInline: true,
|
|
12722
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12723
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
|
|
12723
12724
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12724
12725
|
InvestorUpdateChatCard,
|
|
12725
12726
|
{
|
|
@@ -12737,7 +12738,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12737
12738
|
bareInline: true,
|
|
12738
12739
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12739
12740
|
displayAction: true,
|
|
12740
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12741
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJ46XYYPcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
|
|
12741
12742
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12742
12743
|
OnboardingGuideChatCard,
|
|
12743
12744
|
{
|
|
@@ -12810,7 +12811,7 @@ function ChatCardLoader({
|
|
|
12810
12811
|
entry: fetchEntry,
|
|
12811
12812
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12812
12813
|
composeContentUrl: runtime.composeContentUrl,
|
|
12813
|
-
resolveHref: (href) =>
|
|
12814
|
+
resolveHref: (href) => _chunkLJ46XYYPcjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12814
12815
|
});
|
|
12815
12816
|
const hrefResolvedChatRef = {
|
|
12816
12817
|
...chatRef,
|
|
@@ -12821,12 +12822,12 @@ function ChatCardLoader({
|
|
|
12821
12822
|
};
|
|
12822
12823
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
12823
12824
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
12824
|
-
const isNewTab =
|
|
12825
|
+
const isNewTab = _chunkLJ46XYYPcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
|
|
12825
12826
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
12826
12827
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12827
12828
|
const discuss = discussFn ? {
|
|
12828
12829
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12829
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12830
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWGLRE74cjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12830
12831
|
run: () => discussFn(finalChatRef)
|
|
12831
12832
|
} : void 0;
|
|
12832
12833
|
const renderOpts = {
|
|
@@ -12935,12 +12936,12 @@ function makeBatchDedupKey(item) {
|
|
|
12935
12936
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12936
12937
|
}
|
|
12937
12938
|
function getChatTypeMessageType(chatType) {
|
|
12938
|
-
return chatType ===
|
|
12939
|
+
return chatType === _chunk5TCIRWHLcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12939
12940
|
}
|
|
12940
12941
|
function useChunkCatchup({
|
|
12941
12942
|
dialogId,
|
|
12942
12943
|
onChunkReceived,
|
|
12943
|
-
chatTypes = [
|
|
12944
|
+
chatTypes = [_chunk5TCIRWHLcjs.CHAT_TYPE.CLIENT],
|
|
12944
12945
|
fetchChunks
|
|
12945
12946
|
}) {
|
|
12946
12947
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -13508,7 +13509,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
13508
13509
|
try {
|
|
13509
13510
|
const url = new URL(commandsUrl, window.location.origin);
|
|
13510
13511
|
if (prefix) url.searchParams.set("q", prefix);
|
|
13511
|
-
const res = await
|
|
13512
|
+
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
|
|
13512
13513
|
if (!res.ok) return [];
|
|
13513
13514
|
const data = await res.json();
|
|
13514
13515
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
@@ -13585,7 +13586,7 @@ var EMPTY_STATE_FALLBACK = {
|
|
|
13585
13586
|
async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
13586
13587
|
try {
|
|
13587
13588
|
const url = new URL(emptyStateUrl, window.location.origin);
|
|
13588
|
-
const res = await
|
|
13589
|
+
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
|
|
13589
13590
|
if (!res.ok) {
|
|
13590
13591
|
if (res.status >= 500) {
|
|
13591
13592
|
console.error(`[chat] empty-state config fetch failed (${res.status}): ${url.pathname}`);
|
|
@@ -13737,7 +13738,7 @@ function useChatAttachments() {
|
|
|
13737
13738
|
);
|
|
13738
13739
|
}
|
|
13739
13740
|
updateOne(att.id, { status: "uploading", progress: 5 });
|
|
13740
|
-
const urlResp = await
|
|
13741
|
+
const urlResp = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
13741
13742
|
method: "POST",
|
|
13742
13743
|
headers: { "Content-Type": "application/json" },
|
|
13743
13744
|
signal: _optionalChain([ctrl, 'optionalAccess', _458 => _458.signal]),
|
|
@@ -13901,7 +13902,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13901
13902
|
return () => root.removeEventListener("click", onClick);
|
|
13902
13903
|
}, [viewUrlPrefix]);
|
|
13903
13904
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13904
|
-
|
|
13905
|
+
_chunkLJ46XYYPcjs.ImageGalleryModal,
|
|
13905
13906
|
{
|
|
13906
13907
|
images: state.images,
|
|
13907
13908
|
isOpen: state.isOpen,
|
|
@@ -13928,7 +13929,7 @@ var ANON_DEFAULTS = {
|
|
|
13928
13929
|
function useResolveChatIdentity(enabled) {
|
|
13929
13930
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
13930
13931
|
const url = runtime.endpoints.identityUrl;
|
|
13931
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([
|
|
13932
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkDGFDBPO7cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _464 => _464.email]), () => ( null));
|
|
13932
13933
|
const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
|
|
13933
13934
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
13934
13935
|
const data = _optionalChain([resolved, 'optionalAccess', _465 => _465.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
|
|
@@ -13937,7 +13938,7 @@ function useResolveChatIdentity(enabled) {
|
|
|
13937
13938
|
if (requestKey === null) return void 0;
|
|
13938
13939
|
let cancelled = false;
|
|
13939
13940
|
const ctrl = new AbortController();
|
|
13940
|
-
|
|
13941
|
+
_chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, url, { signal: ctrl.signal }).then(async (resp) => {
|
|
13941
13942
|
if (!resp.ok) return ANON_DEFAULTS;
|
|
13942
13943
|
return await resp.json();
|
|
13943
13944
|
}).then((next) => {
|
|
@@ -15079,7 +15080,7 @@ function nullableText(value) {
|
|
|
15079
15080
|
}
|
|
15080
15081
|
function httpsUrl(value) {
|
|
15081
15082
|
const candidate = text(value);
|
|
15082
|
-
if (!candidate ||
|
|
15083
|
+
if (!candidate || _chunkLJ46XYYPcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15083
15084
|
try {
|
|
15084
15085
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15085
15086
|
} catch (e19) {
|
|
@@ -15663,7 +15664,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15663
15664
|
const status = approvalStatuses[requestId] || "pending";
|
|
15664
15665
|
if (!displayInline(approvalType)) {
|
|
15665
15666
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15666
|
-
const summary = required ?
|
|
15667
|
+
const summary = required ? _chunkOWGLRE74cjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15667
15668
|
pendingEscalated.set(requestId, {
|
|
15668
15669
|
command: summary,
|
|
15669
15670
|
explanation: _optionalChain([required, 'optionalAccess', _521 => _521.toolExplanation]),
|
|
@@ -15696,7 +15697,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15696
15697
|
if (!call.requiresApproval) continue;
|
|
15697
15698
|
segments = accumulator.addApprovalRequest(
|
|
15698
15699
|
requestId,
|
|
15699
|
-
|
|
15700
|
+
_chunkOWGLRE74cjs.getCommandText.call(void 0, call),
|
|
15700
15701
|
call.toolExplanation,
|
|
15701
15702
|
approvalType,
|
|
15702
15703
|
status,
|
|
@@ -15775,7 +15776,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15775
15776
|
if (!call.requiresApproval) continue;
|
|
15776
15777
|
segments = accumulator.addApprovalRequest(
|
|
15777
15778
|
requestId,
|
|
15778
|
-
|
|
15779
|
+
_chunkOWGLRE74cjs.getCommandText.call(void 0, call),
|
|
15779
15780
|
call.toolExplanation,
|
|
15780
15781
|
escalatedData.approvalType,
|
|
15781
15782
|
status
|
|
@@ -16718,7 +16719,7 @@ async function failWith(response, fallback) {
|
|
|
16718
16719
|
function createChatConversationsApi(baseUrl) {
|
|
16719
16720
|
const base = baseUrl.replace(/\/+$/, "");
|
|
16720
16721
|
const patch = async (id, body, what) => {
|
|
16721
|
-
const response = await
|
|
16722
|
+
const response = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, `${base}/${encodeURIComponent(id)}`, {
|
|
16722
16723
|
method: "PATCH",
|
|
16723
16724
|
body: JSON.stringify(body)
|
|
16724
16725
|
});
|
|
@@ -16731,7 +16732,7 @@ function createChatConversationsApi(baseUrl) {
|
|
|
16731
16732
|
if (limit !== void 0) qs.set("limit", String(limit));
|
|
16732
16733
|
if (cursor) qs.set("cursor", cursor);
|
|
16733
16734
|
if (search) qs.set("search", search);
|
|
16734
|
-
const response = await
|
|
16735
|
+
const response = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, `${base}?${qs.toString()}`, { method: "GET" });
|
|
16735
16736
|
if (!response.ok) await failWith(response, "Conversation list failed");
|
|
16736
16737
|
const body = unwrapEnvelope(await response.json());
|
|
16737
16738
|
const rawDialogs = isRecord(body) && Array.isArray(body.dialogs) ? body.dialogs : [];
|
|
@@ -16951,11 +16952,11 @@ function useManagedDialogList({
|
|
|
16951
16952
|
var STORAGE_KEY = "conversation";
|
|
16952
16953
|
var namespaceFor = (source) => {
|
|
16953
16954
|
const base = `mingo-chat-${source}`;
|
|
16954
|
-
const auth =
|
|
16955
|
+
const auth = _chunkDGFDBPO7cjs.getEmbedProxyAuth.call(void 0, );
|
|
16955
16956
|
return _optionalChain([auth, 'optionalAccess', _553 => _553.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
16956
16957
|
};
|
|
16957
16958
|
function createChatConversationStorage(source) {
|
|
16958
|
-
return
|
|
16959
|
+
return _chunkDGFDBPO7cjs.createLocalStorageAdapter.call(void 0, {
|
|
16959
16960
|
key: STORAGE_KEY,
|
|
16960
16961
|
namespace: () => namespaceFor(source),
|
|
16961
16962
|
validate: (parsed) => !!parsed && typeof parsed.conversationId === "string" && parsed.conversationId.length > 0,
|
|
@@ -17011,7 +17012,7 @@ function useChatHistoryHydration({
|
|
|
17011
17012
|
setIsHydratingHistory(true);
|
|
17012
17013
|
void (async () => {
|
|
17013
17014
|
try {
|
|
17014
|
-
const res = await
|
|
17015
|
+
const res = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, `${historyUrl}?conversationId=${encodeURIComponent(conversationId)}`, {
|
|
17015
17016
|
method: "GET"
|
|
17016
17017
|
});
|
|
17017
17018
|
if (!res.ok) {
|
|
@@ -17322,7 +17323,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17322
17323
|
abortControllerRef.current = ctrl;
|
|
17323
17324
|
let mintedThisTurn = false;
|
|
17324
17325
|
try {
|
|
17325
|
-
const response = await
|
|
17326
|
+
const response = await _chunkDGFDBPO7cjs.embedAuthedFetch.call(void 0, targetPath, {
|
|
17326
17327
|
method: "POST",
|
|
17327
17328
|
body: JSON.stringify(requestBody),
|
|
17328
17329
|
signal: ctrl.signal
|
|
@@ -17950,12 +17951,12 @@ function decodeNatsChunk(chunk) {
|
|
|
17950
17951
|
|
|
17951
17952
|
// src/components/chat/utils/process-historical-messages.ts
|
|
17952
17953
|
function getOwnerDisplayName(owner) {
|
|
17953
|
-
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) ===
|
|
17954
|
+
if (_optionalChain([owner, 'optionalAccess', _599 => _599.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
17954
17955
|
const { firstName, lastName } = owner.user;
|
|
17955
17956
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
17956
17957
|
if (name) return name;
|
|
17957
17958
|
}
|
|
17958
|
-
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) ===
|
|
17959
|
+
return _optionalChain([owner, 'optionalAccess', _600 => _600.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
17959
17960
|
}
|
|
17960
17961
|
function getOwnerAvatar(owner) {
|
|
17961
17962
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _601 => _601.user, 'optionalAccess', _602 => _602.image, 'optionalAccess', _603 => _603.imageUrl]), () => ( void 0));
|
|
@@ -18218,7 +18219,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18218
18219
|
if (!call.requiresApproval) continue;
|
|
18219
18220
|
accumulator.addApprovalRequest(
|
|
18220
18221
|
event.requestId,
|
|
18221
|
-
|
|
18222
|
+
_chunkOWGLRE74cjs.getCommandText.call(void 0, call),
|
|
18222
18223
|
call.toolExplanation,
|
|
18223
18224
|
approvalType,
|
|
18224
18225
|
status,
|
|
@@ -18279,7 +18280,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18279
18280
|
if (!call.requiresApproval) continue;
|
|
18280
18281
|
accumulator.addApprovalRequest(
|
|
18281
18282
|
requestId,
|
|
18282
|
-
|
|
18283
|
+
_chunkOWGLRE74cjs.getCommandText.call(void 0, call),
|
|
18283
18284
|
call.toolExplanation,
|
|
18284
18285
|
escalatedData.approvalType,
|
|
18285
18286
|
status
|
|
@@ -18387,10 +18388,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18387
18388
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18388
18389
|
return;
|
|
18389
18390
|
}
|
|
18390
|
-
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) ===
|
|
18391
|
+
const isUserMessage = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _618 => _618.owner, 'optionalAccess', _619 => _619.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.ADMIN;
|
|
18391
18392
|
if (isUserMessage) {
|
|
18392
18393
|
flushAssistantMessage();
|
|
18393
|
-
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) ===
|
|
18394
|
+
const userAuthorType = _optionalChain([msg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18394
18395
|
messageDataArray.forEach((data) => {
|
|
18395
18396
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18396
18397
|
const rawContext = data.contextItems;
|
|
@@ -18441,7 +18442,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18441
18442
|
});
|
|
18442
18443
|
const nextMsg = messages[index + 1];
|
|
18443
18444
|
const isLastMessage = index === messages.length - 1;
|
|
18444
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) ===
|
|
18445
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _624 => _624.owner, 'optionalAccess', _625 => _625.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _626 => _626.owner, 'optionalAccess', _627 => _627.type]) === _chunk5TCIRWHLcjs.OWNER_TYPE.ADMIN);
|
|
18445
18446
|
if (isLastMessage || nextIsFromUser) {
|
|
18446
18447
|
flushAssistantMessage();
|
|
18447
18448
|
}
|