@flamingo-stack/openframe-frontend-core 0.0.851 → 0.0.852
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/{case-study-card-X2HKPKT7.cjs → case-study-card-WP5Z234Q.cjs} +5 -5
- package/dist/{chunk-BU2PSRAS.cjs → chunk-2W22LY3W.cjs} +11 -11
- package/dist/{chunk-2NGW73T2.cjs → chunk-3SJVF3HW.cjs} +6 -6
- package/dist/{chunk-VXIZCUNZ.cjs → chunk-3ZQESOPJ.cjs} +65 -65
- package/dist/{chunk-VU6N3NZS.cjs → chunk-477P6AQH.cjs} +6 -6
- package/dist/{chunk-PJNEBSP5.cjs → chunk-5RMBLOJ5.cjs} +12 -12
- package/dist/{chunk-36DUCHI7.cjs → chunk-6GWRPW6B.cjs} +4 -4
- package/dist/{chunk-SOSIXRQ3.cjs → chunk-AZEO7HBB.cjs} +2 -2
- package/dist/{chunk-KRTTH3ET.cjs → chunk-BNHTBLAG.cjs} +17 -17
- package/dist/{chunk-OUP7L3U5.cjs → chunk-CHGIACIP.cjs} +91 -91
- package/dist/{chunk-U4RTWH5D.cjs → chunk-COJG2ATY.cjs} +19 -19
- package/dist/{chunk-ZEPEFKHA.cjs → chunk-D3H6AI7O.cjs} +540 -540
- package/dist/{chunk-ALRYVZ3E.cjs → chunk-DLTPSP5F.cjs} +2 -2
- package/dist/{chunk-WYROOMUZ.cjs → chunk-EIACEY2L.cjs} +2 -2
- package/dist/{chunk-TIVPOVIM.cjs → chunk-ETZFBB7O.cjs} +2 -2
- package/dist/{chunk-GRCOEICK.cjs → chunk-G7GF4PWA.cjs} +6 -6
- package/dist/{chunk-UQK6J3ZS.cjs → chunk-GEZ3UXCA.cjs} +25 -25
- package/dist/chunk-GGUFVIJ6.cjs +28 -0
- package/dist/{chunk-B6D4WWKD.cjs → chunk-IC4IJJB2.cjs} +95 -95
- package/dist/{chunk-BUEEQD3G.cjs → chunk-IGVAPIEW.cjs} +2 -2
- package/dist/{chunk-IG6ROHPS.cjs → chunk-IO6NN3SL.cjs} +54 -54
- package/dist/{chunk-DN227KZH.cjs → chunk-KHOB3TES.cjs} +4 -4
- package/dist/{chunk-JQCQCE6U.cjs → chunk-KKFDRCQF.cjs} +2 -2
- package/dist/{chunk-PPCRLSVR.cjs → chunk-KNN2GCMW.cjs} +21 -21
- package/dist/{chunk-CDW6JTAQ.cjs → chunk-LFEURIZN.cjs} +245 -245
- package/dist/{chunk-SPKAXETT.cjs → chunk-MFDRCTM3.cjs} +47 -47
- package/dist/{chunk-ODMZSAIY.cjs → chunk-MXY2OGEV.cjs} +28 -28
- package/dist/{chunk-533QK4R6.cjs → chunk-NMWLXHFH.cjs} +130 -130
- package/dist/{chunk-MDLT6D46.cjs → chunk-O3EKOXFZ.cjs} +20 -20
- package/dist/{chunk-HLJXCOMA.cjs → chunk-OH5TXFRR.cjs} +4 -4
- package/dist/{chunk-QCSA7GIX.cjs → chunk-P63CRPWI.cjs} +12 -12
- package/dist/{chunk-5SEJEBAB.cjs → chunk-QOW2GP3V.cjs} +21 -21
- package/dist/{chunk-JBTH3O2C.cjs → chunk-SSKMGH5O.cjs} +4 -4
- package/dist/{chunk-LM7EL3UQ.cjs → chunk-U767P4JU.cjs} +11 -11
- package/dist/{chunk-FNQWL4W4.cjs → chunk-UO2EJGRJ.cjs} +45 -45
- package/dist/{chunk-UFGPLXH6.cjs → chunk-USPUZO53.cjs} +2 -2
- package/dist/{chunk-IN3LA2FU.cjs → chunk-UV45EPXN.cjs} +2 -2
- package/dist/{chunk-2WZHNMQY.cjs → chunk-VUHHLRAY.cjs} +84 -84
- package/dist/{chunk-FGSN5UNY.cjs → chunk-WFAZMASF.cjs} +3 -3
- package/dist/{chunk-NQEPLUUW.cjs → chunk-X3WIOMEE.cjs} +36 -36
- package/dist/{cloud-tenants-XH6GV4EI.cjs → cloud-tenants-O33HCUYB.cjs} +47 -46
- package/dist/components/case-studies/index.cjs +66 -65
- package/dist/components/chat/index.cjs +42 -41
- package/dist/components/contact/index.cjs +48 -47
- package/dist/components/docs/index.cjs +51 -50
- package/dist/components/embeds/index.cjs +48 -47
- package/dist/components/faq/index.cjs +49 -48
- package/dist/components/features/index.cjs +48 -47
- package/dist/components/help-center-pages/index.cjs +153 -152
- package/dist/components/icons-v2-generated/brand-logos/index.d.ts +1 -0
- package/dist/components/icons-v2-generated/brand-logos/index.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/brand-logos/index.js +2 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts +8 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts.map +1 -0
- package/dist/components/icons-v2-generated/brand-logos/stripe-icon.js +24 -0
- package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
- package/dist/components/icons-v2-generated/icon-names.js +1 -1
- package/dist/components/icons-v2-generated/index.cjs +33 -29
- package/dist/components/index.cjs +110 -109
- package/dist/components/meeting-scheduler/index.cjs +97 -96
- package/dist/components/navigation/index.cjs +51 -50
- package/dist/components/onboarding-guides/index.cjs +50 -49
- package/dist/components/product-demo/index.cjs +58 -57
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +54 -53
- package/dist/components/ui/index.cjs +48 -47
- package/dist/{devices-7PT6MPJI.cjs → devices-2RGGMC2B.cjs} +48 -47
- package/dist/{embeddable-chat-5NY76K7K.cjs → embeddable-chat-SJEEJI4N.cjs} +118 -117
- package/dist/hooks/index.cjs +9 -9
- package/dist/{icon-loaders-SUPEKMBJ.cjs → icon-loaders-CTH6E7OP.cjs} +1 -0
- package/dist/index.cjs +54 -53
- package/dist/{knowledge-J6N7IEVI.cjs → knowledge-5TJIXVMD.cjs} +49 -48
- package/dist/{logs-D6KQP2BX.cjs → logs-HGQOTRKZ.cjs} +54 -53
- package/dist/{policies-J7MCOL3C.cjs → policies-GWFSLVSM.cjs} +51 -50
- package/dist/{remote-session-PXHA5KFK.cjs → remote-session-SG44CNOK.cjs} +33 -32
- package/dist/{scripts-VURXIHVS.cjs → scripts-PGJNAZF4.cjs} +54 -53
- package/dist/{software-update-6SHUBDIE.cjs → software-update-KKLSYHDI.cjs} +51 -50
- package/dist/stripe-icon-YKVABTNI.cjs +7 -0
- package/dist/{tickets-board-NLCN7WNX.cjs → tickets-board-SQY2Y6QV.cjs} +37 -36
- package/dist/utils/index.cjs +32 -1
- package/package.json +1 -1
- package/src/components/icons-v2/icon-colors.json +3 -0
- package/src/components/icons-v2-generated/brand-logos/index.ts +1 -0
- package/src/components/icons-v2-generated/brand-logos/stripe-icon.tsx +27 -0
- package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
- package/src/components/icons-v2-generated/icon-names.ts +1 -1
- package/src/styles/ods-colors.css +1 -0
- /package/dist/{chunk-46547WQW.cjs → chunk-7HH4Y27U.cjs} +0 -0
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkEIACEY2Lcjs = require('./chunk-EIACEY2L.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -42,7 +42,7 @@ var _chunkWYROOMUZcjs = require('./chunk-WYROOMUZ.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkU767P4JUcjs = require('./chunk-U767P4JU.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -59,10 +59,10 @@ var _chunkPGAMWM6Ccjs = require('./chunk-PGAMWM6C.cjs');
|
|
|
59
59
|
var _chunkREEXZ35Ocjs = require('./chunk-REEXZ35O.cjs');
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkJQEOUB5Fcjs = require('./chunk-JQEOUB5F.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkA65PRT7Fcjs = require('./chunk-A65PRT7F.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
var _chunk44URXY24cjs = require('./chunk-44URXY24.cjs');
|
|
@@ -277,14 +277,14 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
|
|
280
|
-
var
|
|
280
|
+
var _chunkG7GF4PWAcjs = require('./chunk-G7GF4PWA.cjs');
|
|
281
281
|
|
|
282
282
|
|
|
283
283
|
|
|
284
284
|
var _chunkFW7RKWPYcjs = require('./chunk-FW7RKWPY.cjs');
|
|
285
285
|
|
|
286
286
|
|
|
287
|
-
var
|
|
287
|
+
var _chunkIGVAPIEWcjs = require('./chunk-IGVAPIEW.cjs');
|
|
288
288
|
|
|
289
289
|
|
|
290
290
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -327,7 +327,7 @@ var _chunkIX2E3AN7cjs = require('./chunk-IX2E3AN7.cjs');
|
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
|
|
330
|
-
var
|
|
330
|
+
var _chunkNMWLXHFHcjs = require('./chunk-NMWLXHFH.cjs');
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
var _chunkHTYJUMFBcjs = require('./chunk-HTYJUMFB.cjs');
|
|
@@ -366,7 +366,7 @@ var _chunkW7OFAROYcjs = require('./chunk-W7OFAROY.cjs');
|
|
|
366
366
|
|
|
367
367
|
|
|
368
368
|
|
|
369
|
-
var
|
|
369
|
+
var _chunkO3EKOXFZcjs = require('./chunk-O3EKOXFZ.cjs');
|
|
370
370
|
|
|
371
371
|
|
|
372
372
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -383,12 +383,12 @@ var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
|
|
386
|
-
var
|
|
386
|
+
var _chunkETZFBB7Ocjs = require('./chunk-ETZFBB7O.cjs');
|
|
387
387
|
|
|
388
388
|
|
|
389
389
|
|
|
390
390
|
|
|
391
|
-
var
|
|
391
|
+
var _chunkKKFDRCQFcjs = require('./chunk-KKFDRCQF.cjs');
|
|
392
392
|
|
|
393
393
|
|
|
394
394
|
var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
|
|
@@ -688,14 +688,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
688
688
|
for (const section of sectionIds) {
|
|
689
689
|
sectionIdMap.set(section.title, section.id);
|
|
690
690
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
691
|
-
sectionIdMap.set(
|
|
691
|
+
sectionIdMap.set(_chunkG7GF4PWAcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
const dedupe =
|
|
694
|
+
const dedupe = _chunkG7GF4PWAcjs.createHeadingIdDeduper.call(void 0, );
|
|
695
695
|
const map = /* @__PURE__ */ new Map();
|
|
696
696
|
let sectionOrdinal = 0;
|
|
697
697
|
let headingOrdinal = 0;
|
|
698
|
-
for (const { line, level: level2, text: rawText } of
|
|
698
|
+
for (const { line, level: level2, text: rawText } of _chunkG7GF4PWAcjs.scanHeadings.call(void 0, content)) {
|
|
699
699
|
const text3 = stripInlineMarkdown(rawText).trim();
|
|
700
700
|
headingOrdinal++;
|
|
701
701
|
if (level2 <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -704,8 +704,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
704
704
|
for (const variation of [
|
|
705
705
|
text3,
|
|
706
706
|
text3.toLowerCase(),
|
|
707
|
-
|
|
708
|
-
|
|
707
|
+
_chunkG7GF4PWAcjs.stripHeadingEmojis.call(void 0, text3),
|
|
708
|
+
_chunkG7GF4PWAcjs.stripHeadingEmojis.call(void 0, text3).toLowerCase()
|
|
709
709
|
]) {
|
|
710
710
|
const id = sectionIdMap.get(variation);
|
|
711
711
|
if (id) {
|
|
@@ -715,7 +715,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
if (assigned === void 0) {
|
|
718
|
-
const baseId =
|
|
718
|
+
const baseId = _chunkG7GF4PWAcjs.slugifyHeadingText.call(void 0, text3);
|
|
719
719
|
assigned = dedupe(
|
|
720
720
|
baseId || (level2 <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
721
721
|
);
|
|
@@ -1266,7 +1266,7 @@ var MarkdownContentImage = ({ src, alt }) => {
|
|
|
1266
1266
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
1267
1267
|
width: 400,
|
|
1268
1268
|
height: 400,
|
|
1269
|
-
sizes:
|
|
1269
|
+
sizes: _chunkKKFDRCQFcjs.IMAGE_SLOT.inline,
|
|
1270
1270
|
className: "h-auto max-h-[400px] w-auto max-w-full rounded-lg object-contain",
|
|
1271
1271
|
style: { width: "auto", height: "auto" }
|
|
1272
1272
|
}
|
|
@@ -1330,7 +1330,7 @@ function buildBaseComponents({
|
|
|
1330
1330
|
const mapped = useHeadingId(node);
|
|
1331
1331
|
const taken = useAssignedHeadingIds();
|
|
1332
1332
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _27 => _27.properties, 'optionalAccess', _28 => _28.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
1333
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
1333
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkG7GF4PWAcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
1334
1334
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
1335
1335
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
1336
1336
|
}
|
|
@@ -1402,10 +1402,10 @@ function buildBaseComponents({
|
|
|
1402
1402
|
const handleAnchorClick = (e) => {
|
|
1403
1403
|
if (inPageAnchorId === null) return;
|
|
1404
1404
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
1405
|
-
const target =
|
|
1405
|
+
const target = _chunkG7GF4PWAcjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
1406
1406
|
if (!_optionalChain([target, 'optionalAccess', _29 => _29.id])) return;
|
|
1407
1407
|
e.preventDefault();
|
|
1408
|
-
|
|
1408
|
+
_chunkG7GF4PWAcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
|
|
1409
1409
|
};
|
|
1410
1410
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1411
1411
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -2014,7 +2014,7 @@ function findInlineCodeRanges(source) {
|
|
|
2014
2014
|
while (pos <= len) {
|
|
2015
2015
|
let end = source.indexOf("\n", pos);
|
|
2016
2016
|
if (end === -1) end = len;
|
|
2017
|
-
const blank =
|
|
2017
|
+
const blank = _chunkG7GF4PWAcjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
2018
2018
|
if (blank && segStart !== -1) break;
|
|
2019
2019
|
if (!blank) {
|
|
2020
2020
|
if (segStart === -1) segStart = pos;
|
|
@@ -2096,7 +2096,7 @@ function toMaskLines(source) {
|
|
|
2096
2096
|
return out;
|
|
2097
2097
|
}
|
|
2098
2098
|
function blankFencedRegions(masked, lines) {
|
|
2099
|
-
const fences =
|
|
2099
|
+
const fences = _chunkG7GF4PWAcjs.createFenceTracker.call(void 0, );
|
|
2100
2100
|
const ranges = [];
|
|
2101
2101
|
let openStart = null;
|
|
2102
2102
|
let lastEnd = 0;
|
|
@@ -2135,7 +2135,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
2135
2135
|
const listContentCols = [];
|
|
2136
2136
|
const ranges = [];
|
|
2137
2137
|
for (const line of lines) {
|
|
2138
|
-
if (
|
|
2138
|
+
if (_chunkG7GF4PWAcjs.isBlankLine.call(void 0, line.content)) continue;
|
|
2139
2139
|
const indent = leadingIndent(line.content);
|
|
2140
2140
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
2141
2141
|
if (indent >= top + 4) {
|
|
@@ -2226,7 +2226,7 @@ function contPrefixLen(c) {
|
|
|
2226
2226
|
function findLabelClose(lines, i, from) {
|
|
2227
2227
|
for (let j = i; j < lines.length; j++) {
|
|
2228
2228
|
const c = stripCr(lines[j].content);
|
|
2229
|
-
if (j > i &&
|
|
2229
|
+
if (j > i && _chunkG7GF4PWAcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
2230
2230
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
2231
2231
|
if (c[q] === "[") return { stoppedAt: j };
|
|
2232
2232
|
if (c[q] !== "]") continue;
|
|
@@ -2244,7 +2244,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2244
2244
|
let k = from;
|
|
2245
2245
|
for (; k < lines.length; k++) {
|
|
2246
2246
|
const c = stripCr(lines[k].content);
|
|
2247
|
-
if (
|
|
2247
|
+
if (_chunkG7GF4PWAcjs.isBlankLine.call(void 0, c)) break;
|
|
2248
2248
|
blankLine(lines[k]);
|
|
2249
2249
|
if (stop(c)) {
|
|
2250
2250
|
k++;
|
|
@@ -2287,7 +2287,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2287
2287
|
const k = j + 1;
|
|
2288
2288
|
if (k >= lines.length) break;
|
|
2289
2289
|
const c = stripCr(lines[k].content);
|
|
2290
|
-
if (
|
|
2290
|
+
if (_chunkG7GF4PWAcjs.isBlankLine.call(void 0, c)) break;
|
|
2291
2291
|
const at = contPrefixLen(c);
|
|
2292
2292
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
2293
2293
|
if (next.k === "decline") break;
|
|
@@ -2357,7 +2357,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
2357
2357
|
let sawBlank = false;
|
|
2358
2358
|
for (let k = i + 1; k < lines.length; k++) {
|
|
2359
2359
|
const c = text3(lines[k]);
|
|
2360
|
-
if (
|
|
2360
|
+
if (_chunkG7GF4PWAcjs.isBlankLine.call(void 0, c)) {
|
|
2361
2361
|
sawBlank = true;
|
|
2362
2362
|
continue;
|
|
2363
2363
|
}
|
|
@@ -2457,7 +2457,7 @@ function paragraphEnd(s, from) {
|
|
|
2457
2457
|
lineStart += 1;
|
|
2458
2458
|
const next = s.indexOf("\n", lineStart);
|
|
2459
2459
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
2460
|
-
if (
|
|
2460
|
+
if (_chunkG7GF4PWAcjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
2461
2461
|
if (next === -1) break;
|
|
2462
2462
|
lineStart = next;
|
|
2463
2463
|
}
|
|
@@ -2611,7 +2611,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2611
2611
|
run = [];
|
|
2612
2612
|
};
|
|
2613
2613
|
for (const line of lines) {
|
|
2614
|
-
if (
|
|
2614
|
+
if (_chunkG7GF4PWAcjs.isBlankLine.call(void 0, line.content)) {
|
|
2615
2615
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2616
2616
|
continue;
|
|
2617
2617
|
}
|
|
@@ -2836,7 +2836,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2836
2836
|
function computeHtmlBlockRanges(text3) {
|
|
2837
2837
|
if (text3.indexOf("<") === -1) return [];
|
|
2838
2838
|
const ranges = [];
|
|
2839
|
-
const fences =
|
|
2839
|
+
const fences = _chunkG7GF4PWAcjs.createFenceTracker.call(void 0, );
|
|
2840
2840
|
let kind = null;
|
|
2841
2841
|
let start = 0;
|
|
2842
2842
|
let lastEnd = 0;
|
|
@@ -2851,9 +2851,9 @@ function computeHtmlBlockRanges(text3) {
|
|
|
2851
2851
|
const expanded = expandTabs(line);
|
|
2852
2852
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2853
2853
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2854
|
-
else if (!
|
|
2855
|
-
const normBlank =
|
|
2856
|
-
const blank = openPrefixLen > 0 ?
|
|
2854
|
+
else if (!_chunkG7GF4PWAcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2855
|
+
const normBlank = _chunkG7GF4PWAcjs.isBlankLine.call(void 0, norm.text);
|
|
2856
|
+
const blank = openPrefixLen > 0 ? _chunkG7GF4PWAcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkG7GF4PWAcjs.isBlankLine.call(void 0, line);
|
|
2857
2857
|
if (kind !== null) {
|
|
2858
2858
|
if (kind >= 6) {
|
|
2859
2859
|
if (blank) {
|
|
@@ -3007,7 +3007,7 @@ var ScanState = class {
|
|
|
3007
3007
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
3008
3008
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
3009
3009
|
*/
|
|
3010
|
-
this.fences =
|
|
3010
|
+
this.fences = _chunkG7GF4PWAcjs.createFenceTracker.call(void 0, );
|
|
3011
3011
|
/** Depth of currently open raw HTML block containers. */
|
|
3012
3012
|
this.htmlDepth = 0;
|
|
3013
3013
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -3080,7 +3080,7 @@ function splitStreamingBlocks(content) {
|
|
|
3080
3080
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
3081
3081
|
const firstNonBlank = (arr) => {
|
|
3082
3082
|
for (const line of arr) {
|
|
3083
|
-
if (!
|
|
3083
|
+
if (!_chunkG7GF4PWAcjs.isBlankLine.call(void 0, line)) return line;
|
|
3084
3084
|
}
|
|
3085
3085
|
return void 0;
|
|
3086
3086
|
};
|
|
@@ -3090,10 +3090,10 @@ function splitStreamingBlocks(content) {
|
|
|
3090
3090
|
state.scanLine(line);
|
|
3091
3091
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
3092
3092
|
current.push(line);
|
|
3093
|
-
const isBlank =
|
|
3093
|
+
const isBlank = _chunkG7GF4PWAcjs.isBlankLine.call(void 0, line);
|
|
3094
3094
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
3095
3095
|
let j = i + 1;
|
|
3096
|
-
while (j < lines.length &&
|
|
3096
|
+
while (j < lines.length && _chunkG7GF4PWAcjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
3097
3097
|
if (j >= lines.length) continue;
|
|
3098
3098
|
const next = lines[j];
|
|
3099
3099
|
if (/^\s/.test(next)) continue;
|
|
@@ -3101,7 +3101,7 @@ function splitStreamingBlocks(content) {
|
|
|
3101
3101
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
3102
3102
|
continue;
|
|
3103
3103
|
}
|
|
3104
|
-
if (current.every(
|
|
3104
|
+
if (current.every(_chunkG7GF4PWAcjs.isBlankLine)) continue;
|
|
3105
3105
|
units.push(current);
|
|
3106
3106
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
3107
3107
|
current = [];
|
|
@@ -3511,7 +3511,7 @@ function onAskAiIntent(run) {
|
|
|
3511
3511
|
|
|
3512
3512
|
// src/components/chat/chat-appearance-context.tsx
|
|
3513
3513
|
|
|
3514
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3514
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkEIACEY2Lcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3515
3515
|
function useChatAppearance() {
|
|
3516
3516
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3517
3517
|
}
|
|
@@ -3550,7 +3550,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3550
3550
|
...props
|
|
3551
3551
|
}, ref) => {
|
|
3552
3552
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3553
|
-
const isV2 = useChatAppearance() ===
|
|
3553
|
+
const isV2 = useChatAppearance() === _chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2;
|
|
3554
3554
|
const handleApprove = async () => {
|
|
3555
3555
|
setIsProcessing(true);
|
|
3556
3556
|
try {
|
|
@@ -3573,7 +3573,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3573
3573
|
{
|
|
3574
3574
|
ref,
|
|
3575
3575
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3576
|
-
|
|
3576
|
+
_chunkU767P4JUcjs.CHAT_BLOCK_CLASS,
|
|
3577
3577
|
// v2: the thread owns the space below the card.
|
|
3578
3578
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3579
3579
|
className
|
|
@@ -3581,7 +3581,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3581
3581
|
...props,
|
|
3582
3582
|
children: [
|
|
3583
3583
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _51 => _51.explanation, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]) || "Approval required" }),
|
|
3584
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3584
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ApprovalWaitingLine, {}),
|
|
3585
3585
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3586
3586
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3587
3587
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3613,14 +3613,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3613
3613
|
children: "Reject"
|
|
3614
3614
|
}
|
|
3615
3615
|
)
|
|
3616
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3616
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3617
3617
|
]
|
|
3618
3618
|
}
|
|
3619
3619
|
);
|
|
3620
3620
|
}
|
|
3621
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3621
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkU767P4JUcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3622
3622
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3623
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3623
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ApprovalWaitingLine, {}),
|
|
3624
3624
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3625
3625
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3626
3626
|
_chunkFCZAUK4Dcjs.Button,
|
|
@@ -3652,7 +3652,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3652
3652
|
children: "Reject"
|
|
3653
3653
|
}
|
|
3654
3654
|
)
|
|
3655
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3655
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3656
3656
|
] });
|
|
3657
3657
|
}
|
|
3658
3658
|
);
|
|
@@ -3682,7 +3682,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3682
3682
|
|
|
3683
3683
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3684
3684
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3685
|
-
const isV2 = useChatAppearance() ===
|
|
3685
|
+
const isV2 = useChatAppearance() === _chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2;
|
|
3686
3686
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3687
3687
|
"div",
|
|
3688
3688
|
{
|
|
@@ -3698,7 +3698,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3698
3698
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3699
3699
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3700
3700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3701
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3701
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkEIACEY2Lcjs.formatTime.call(void 0, timestamp) })
|
|
3702
3702
|
] }),
|
|
3703
3703
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3704
3704
|
] })
|
|
@@ -3988,7 +3988,7 @@ function nullableText(value) {
|
|
|
3988
3988
|
}
|
|
3989
3989
|
function httpsUrl(value) {
|
|
3990
3990
|
const candidate = text2(value);
|
|
3991
|
-
if (!candidate ||
|
|
3991
|
+
if (!candidate || _chunkO3EKOXFZcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
3992
3992
|
try {
|
|
3993
3993
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
3994
3994
|
} catch (e4) {
|
|
@@ -4598,7 +4598,7 @@ var thoughtMdClasses = [
|
|
|
4598
4598
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
4599
4599
|
({ className, text: text3, isStreaming = false, ...props }, ref) => {
|
|
4600
4600
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4601
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
4601
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkU767P4JUcjs.useCollapsible.call(void 0, {
|
|
4602
4602
|
expanded,
|
|
4603
4603
|
collapsedHeight: 19,
|
|
4604
4604
|
disableTransition: isStreaming
|
|
@@ -4613,7 +4613,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4613
4613
|
setExpanded(!expanded);
|
|
4614
4614
|
}
|
|
4615
4615
|
};
|
|
4616
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
4616
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkU767P4JUcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4617
4617
|
"div",
|
|
4618
4618
|
{
|
|
4619
4619
|
role: "button",
|
|
@@ -4631,7 +4631,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
4631
4631
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOEP5KAT6cjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
4632
4632
|
] }),
|
|
4633
4633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk63A4GZMBcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: escapeThinkingTags(text3), textSize: "compact" }) }) }),
|
|
4634
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4634
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ExpandChevron, { expanded }) })
|
|
4635
4635
|
]
|
|
4636
4636
|
}
|
|
4637
4637
|
) });
|
|
@@ -4770,7 +4770,7 @@ function renderQuickActionIcon(icon) {
|
|
|
4770
4770
|
if (!spec.name && !spec.url) return void 0;
|
|
4771
4771
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
4772
4772
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
4773
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4773
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
4774
4774
|
}
|
|
4775
4775
|
function composeChipLabel(label, lozenge) {
|
|
4776
4776
|
if (!lozenge) return label;
|
|
@@ -4982,9 +4982,9 @@ var iconTint = {
|
|
|
4982
4982
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
4983
4983
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
4984
4984
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4985
|
-
const { innerRef, containerStyle } =
|
|
4985
|
+
const { innerRef, containerStyle } = _chunkU767P4JUcjs.useCollapsible.call(void 0, { expanded });
|
|
4986
4986
|
const hasDetails = Boolean(details);
|
|
4987
|
-
const isV2 = useChatAppearance() ===
|
|
4987
|
+
const isV2 = useChatAppearance() === _chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2;
|
|
4988
4988
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4989
4989
|
"div",
|
|
4990
4990
|
{
|
|
@@ -5018,7 +5018,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
5018
5018
|
children: title
|
|
5019
5019
|
}
|
|
5020
5020
|
),
|
|
5021
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5021
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ExpandChevron, { expanded })
|
|
5022
5022
|
]
|
|
5023
5023
|
}
|
|
5024
5024
|
),
|
|
@@ -5267,9 +5267,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
5267
5267
|
)
|
|
5268
5268
|
] }),
|
|
5269
5269
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5270
|
-
|
|
5270
|
+
_chunkU767P4JUcjs.TicketStatusTag,
|
|
5271
5271
|
{
|
|
5272
|
-
...
|
|
5272
|
+
..._chunkU767P4JUcjs.resolveStatusTagProps.call(void 0, {
|
|
5273
5273
|
status: ticketInfo.status,
|
|
5274
5274
|
statusKind: ticketInfo.statusKind,
|
|
5275
5275
|
statusName: ticketInfo.statusName,
|
|
@@ -5908,11 +5908,11 @@ var remarkMentionChips = () => {
|
|
|
5908
5908
|
// src/components/chat/tool-execution-display.tsx
|
|
5909
5909
|
|
|
5910
5910
|
|
|
5911
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
5911
|
+
var COMMAND_BODY_KEYS = new Set(_chunkU767P4JUcjs.COMMAND_BODY_ARG_KEYS);
|
|
5912
5912
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
5913
5913
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
5914
5914
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
5915
|
-
const { innerRef, containerStyle } =
|
|
5915
|
+
const { innerRef, containerStyle } = _chunkU767P4JUcjs.useCollapsible.call(void 0, { expanded });
|
|
5916
5916
|
const isClient = assistantType === "fae";
|
|
5917
5917
|
const isClientView = variant === "client";
|
|
5918
5918
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -5931,8 +5931,8 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5931
5931
|
}, [message.parameters, variant]);
|
|
5932
5932
|
const hasResult = isExecuted && typeof message.result === "string" && message.result.length > 0;
|
|
5933
5933
|
const review = message.policyReview;
|
|
5934
|
-
const reviewRows =
|
|
5935
|
-
const isConciseRemoteRead = !message.integratedToolType && !!previewText && argEntries.length === 0 && !hasResult && !reviewRows && !
|
|
5934
|
+
const reviewRows = _chunkU767P4JUcjs.hasPolicyReviewRows.call(void 0, review);
|
|
5935
|
+
const isConciseRemoteRead = !message.integratedToolType && !!previewText && argEntries.length === 0 && !hasResult && !reviewRows && !_chunkU767P4JUcjs.isPolicyEscalated.call(void 0, review);
|
|
5936
5936
|
const isStaticRow = isClientView || isConciseRemoteRead;
|
|
5937
5937
|
const hasBody = argEntries.length > 0 || reviewRows || hasResult || isExecuting;
|
|
5938
5938
|
const isExpanded = expanded && hasBody;
|
|
@@ -5945,7 +5945,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5945
5945
|
const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
|
|
5946
5946
|
const statusLabel = _optionalChain([message, 'access', _98 => _98.statusLabel, 'optionalAccess', _99 => _99.trim, 'call', _100 => _100()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
|
|
5947
5947
|
const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5948
|
-
!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,
|
|
5948
|
+
!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, _chunkIGVAPIEWcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
|
|
5949
5949
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5950
5950
|
"div",
|
|
5951
5951
|
{
|
|
@@ -5957,7 +5957,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5957
5957
|
}
|
|
5958
5958
|
),
|
|
5959
5959
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
5960
|
-
!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,
|
|
5960
|
+
!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, _chunkU767P4JUcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
5961
5961
|
] });
|
|
5962
5962
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5963
5963
|
"div",
|
|
@@ -5967,7 +5967,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5967
5967
|
// The command running block keeps its bordered box in both chats
|
|
5968
5968
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
5969
5969
|
"flex w-full flex-col overflow-hidden",
|
|
5970
|
-
|
|
5970
|
+
_chunkU767P4JUcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
5971
5971
|
className
|
|
5972
5972
|
),
|
|
5973
5973
|
...props,
|
|
@@ -5978,7 +5978,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5978
5978
|
// It reads as a card: what was done, then one status line under it.
|
|
5979
5979
|
/* @__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: [
|
|
5980
5980
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
5981
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5981
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
5982
5982
|
] })
|
|
5983
5983
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
5984
5984
|
hasBody ? (
|
|
@@ -5997,16 +5997,16 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
5997
5997
|
)
|
|
5998
5998
|
) : /* @__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 }),
|
|
5999
5999
|
/* @__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: [
|
|
6000
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6000
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ArgRow, { argKey: key, value }, key)),
|
|
6001
6001
|
reviewRows && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6002
|
-
|
|
6002
|
+
_chunkU767P4JUcjs.PolicyReviewRows,
|
|
6003
6003
|
{
|
|
6004
6004
|
review,
|
|
6005
6005
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
6006
6006
|
}
|
|
6007
6007
|
),
|
|
6008
6008
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6009
|
-
|
|
6009
|
+
_chunkU767P4JUcjs.ResultBlock,
|
|
6010
6010
|
{
|
|
6011
6011
|
result: message.result,
|
|
6012
6012
|
className: argEntries.length > 0 || reviewRows ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -6026,7 +6026,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
6026
6026
|
}
|
|
6027
6027
|
)
|
|
6028
6028
|
] }) }) }),
|
|
6029
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6029
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.PolicyEscalationAlert, { review, className: "border-t border-ods-border" })
|
|
6030
6030
|
] })
|
|
6031
6031
|
}
|
|
6032
6032
|
);
|
|
@@ -6047,7 +6047,7 @@ function ChatMarkdownLink({
|
|
|
6047
6047
|
...anchorProps
|
|
6048
6048
|
}) {
|
|
6049
6049
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
6050
|
-
if (!runtime ||
|
|
6050
|
+
if (!runtime || _chunkETZFBB7Ocjs.navLinkTarget.call(void 0, runtime, href).isNewTab) {
|
|
6051
6051
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, className, ...anchorProps, children });
|
|
6052
6052
|
}
|
|
6053
6053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor2, { href, ...anchorProps, className: "no-underline", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineChip, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRD4RFX3Kcjs.BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" }) });
|
|
@@ -6055,8 +6055,8 @@ function ChatMarkdownLink({
|
|
|
6055
6055
|
|
|
6056
6056
|
// src/components/chat/chat-message-layout.ts
|
|
6057
6057
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
6058
|
-
[
|
|
6059
|
-
[
|
|
6058
|
+
[_chunkEIACEY2Lcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
6059
|
+
[_chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
|
|
6060
6060
|
};
|
|
6061
6061
|
var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
|
|
6062
6062
|
var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
|
|
@@ -6113,8 +6113,8 @@ var remarkStripCitations = () => {
|
|
|
6113
6113
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
6114
6114
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
6115
6115
|
function formatMessageTimestamp(timestamp) {
|
|
6116
|
-
const time =
|
|
6117
|
-
return
|
|
6116
|
+
const time = _chunkEIACEY2Lcjs.formatTime.call(void 0, timestamp);
|
|
6117
|
+
return _chunkU767P4JUcjs.isToday.call(void 0, timestamp) ? time : `${_chunkEIACEY2Lcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
6118
6118
|
}
|
|
6119
6119
|
function normalizeContent(content) {
|
|
6120
6120
|
if (typeof content === "string") {
|
|
@@ -6170,7 +6170,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6170
6170
|
const isError = role === "error";
|
|
6171
6171
|
const inheritedAppearance = useChatAppearance();
|
|
6172
6172
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
6173
|
-
const isV2 = appearance ===
|
|
6173
|
+
const isV2 = appearance === _chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2;
|
|
6174
6174
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
6175
6175
|
const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
|
|
6176
6176
|
const isUser = isHuman && !isOtherPerson;
|
|
@@ -6358,7 +6358,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6358
6358
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
6359
6359
|
const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
|
|
6360
6360
|
// An agent with no picture shows its packaged mark, never initials.
|
|
6361
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6361
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
6362
6362
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6363
6363
|
_chunkW7OFAROYcjs.SquareAvatar,
|
|
6364
6364
|
{
|
|
@@ -6376,7 +6376,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6376
6376
|
"div",
|
|
6377
6377
|
{
|
|
6378
6378
|
ref,
|
|
6379
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[
|
|
6379
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2], className),
|
|
6380
6380
|
...props,
|
|
6381
6381
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
|
|
6382
6382
|
}
|
|
@@ -6388,7 +6388,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6388
6388
|
ref,
|
|
6389
6389
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
6390
6390
|
"relative",
|
|
6391
|
-
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ?
|
|
6391
|
+
CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2 : _chunkEIACEY2Lcjs.CHAT_APPEARANCE.CLASSIC],
|
|
6392
6392
|
className
|
|
6393
6393
|
),
|
|
6394
6394
|
...props,
|
|
@@ -6445,7 +6445,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
6445
6445
|
);
|
|
6446
6446
|
} else if (segment.type === "approval_batch") {
|
|
6447
6447
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6448
|
-
|
|
6448
|
+
_chunkU767P4JUcjs.ApprovalBatchMessage,
|
|
6449
6449
|
{
|
|
6450
6450
|
data: segment.data,
|
|
6451
6451
|
status: segment.status,
|
|
@@ -6719,7 +6719,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6719
6719
|
approvalVariant,
|
|
6720
6720
|
selfAuthorType,
|
|
6721
6721
|
nameEveryTurn,
|
|
6722
|
-
appearance =
|
|
6722
|
+
appearance = _chunkEIACEY2Lcjs.CHAT_APPEARANCE.CLASSIC,
|
|
6723
6723
|
assistantIcon,
|
|
6724
6724
|
pendingApprovals,
|
|
6725
6725
|
hasNextPage,
|
|
@@ -7584,7 +7584,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
7584
7584
|
|
|
7585
7585
|
[Attached: ${safeName}](${url})`;
|
|
7586
7586
|
}
|
|
7587
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
7587
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkNMWLXHFHcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
7588
7588
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
7589
7589
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
7590
7590
|
"gm"
|
|
@@ -7848,7 +7848,7 @@ function MarqueeWallFades({
|
|
|
7848
7848
|
}) });
|
|
7849
7849
|
}
|
|
7850
7850
|
function CloneCopy({ className, style, children }) {
|
|
7851
|
-
const ref =
|
|
7851
|
+
const ref = _chunkG7GF4PWAcjs.useSuppressCloneFocus.call(void 0, true);
|
|
7852
7852
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
7853
7853
|
}
|
|
7854
7854
|
function MarqueeWall({
|
|
@@ -7902,7 +7902,7 @@ function MarqueeWall({
|
|
|
7902
7902
|
ro.observe(copy);
|
|
7903
7903
|
return () => ro.disconnect();
|
|
7904
7904
|
}, [measure, marqueeMounted]);
|
|
7905
|
-
const { ref: observe, inView: nearViewport } =
|
|
7905
|
+
const { ref: observe, inView: nearViewport } = _chunkG7GF4PWAcjs.useInView.call(void 0, {
|
|
7906
7906
|
rootMargin: _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
7907
7907
|
initial: true
|
|
7908
7908
|
});
|
|
@@ -7910,7 +7910,7 @@ function MarqueeWall({
|
|
|
7910
7910
|
observe(containerRef.current);
|
|
7911
7911
|
return () => observe(null);
|
|
7912
7912
|
}, [observe]);
|
|
7913
|
-
const autoplay =
|
|
7913
|
+
const autoplay = _chunkG7GF4PWAcjs.useAutoplay.call(void 0, nearViewport);
|
|
7914
7914
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
7915
7915
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
7916
7916
|
pointerInsideRef.current = false;
|
|
@@ -7923,7 +7923,7 @@ function MarqueeWall({
|
|
|
7923
7923
|
if (e.pointerType === "touch") return;
|
|
7924
7924
|
pointerInsideRef.current = false;
|
|
7925
7925
|
}, []);
|
|
7926
|
-
|
|
7926
|
+
_chunkG7GF4PWAcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
7927
7927
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
7928
7928
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
7929
7929
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -7976,7 +7976,7 @@ function MarqueeWall({
|
|
|
7976
7976
|
if (!sync) return void 0;
|
|
7977
7977
|
return sync.register(member);
|
|
7978
7978
|
}, [sync, member]);
|
|
7979
|
-
const { posRef, wrap } =
|
|
7979
|
+
const { posRef, wrap } = _chunkG7GF4PWAcjs.useMarqueeEngine.call(void 0, {
|
|
7980
7980
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
7981
7981
|
speed,
|
|
7982
7982
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -8690,7 +8690,7 @@ function MingoChatHistoryRow({
|
|
|
8690
8690
|
!loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
|
|
8691
8691
|
),
|
|
8692
8692
|
children: [
|
|
8693
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className:
|
|
8693
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: _chunkEIACEY2Lcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkEIACEY2Lcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
|
|
8694
8694
|
!loading && unread > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-8 min-w-8 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xsf)] text-ods-text-on-accent text-h5", children: unread > 99 ? "99+" : unread }) : null,
|
|
8695
8695
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8696
8696
|
"span",
|
|
@@ -8817,7 +8817,7 @@ function MingoChatHistory({
|
|
|
8817
8817
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
8818
8818
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
8819
8819
|
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _171 => _171.trim, 'call', _172 => _172()]);
|
|
8820
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
8820
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkEIACEY2Lcjs.useScrollFade.call(void 0, );
|
|
8821
8821
|
const onScroll = loadMore === "scroll";
|
|
8822
8822
|
const sentinelRef = useLoadMoreSentinel({
|
|
8823
8823
|
hasMore: hasMore && onScroll,
|
|
@@ -8880,8 +8880,8 @@ function MingoChatHistory({
|
|
|
8880
8880
|
]
|
|
8881
8881
|
}
|
|
8882
8882
|
),
|
|
8883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
|
|
8884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
|
|
8885
8885
|
] }) });
|
|
8886
8886
|
}
|
|
8887
8887
|
|
|
@@ -8935,7 +8935,7 @@ function MingoWelcome({
|
|
|
8935
8935
|
} catch (e8) {
|
|
8936
8936
|
}
|
|
8937
8937
|
}, [promoStorage, promoStorageKey]);
|
|
8938
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
8938
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkEIACEY2Lcjs.useScrollFade.call(void 0, );
|
|
8939
8939
|
const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
|
|
8940
8940
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8941
8941
|
"div",
|
|
@@ -8967,7 +8967,7 @@ function MingoWelcome({
|
|
|
8967
8967
|
onScroll: updateScrollFade,
|
|
8968
8968
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
8969
8969
|
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: [
|
|
8970
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8970
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8971
8971
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8972
8972
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
8973
8973
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -8975,8 +8975,8 @@ function MingoWelcome({
|
|
|
8975
8975
|
] })
|
|
8976
8976
|
}
|
|
8977
8977
|
),
|
|
8978
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8979
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8978
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
8979
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
8980
8980
|
] }) })))),
|
|
8981
8981
|
showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
|
|
8982
8982
|
resolvedPromo && !promoDismissed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex shrink-0 items-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)] pr-[var(--spacing-system-xl)]", children: [
|
|
@@ -9039,7 +9039,7 @@ function GuideWelcome({
|
|
|
9039
9039
|
children,
|
|
9040
9040
|
className
|
|
9041
9041
|
}) {
|
|
9042
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } =
|
|
9042
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkEIACEY2Lcjs.useScrollFade.call(void 0, );
|
|
9043
9043
|
const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
9044
9044
|
const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
|
|
9045
9045
|
const chipsAreLoading = inLoadingScope || quickActionsLoading && quickActions.length === 0;
|
|
@@ -9075,8 +9075,8 @@ function GuideWelcome({
|
|
|
9075
9075
|
icon && (icon.name || icon.url) ? (
|
|
9076
9076
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
9077
9077
|
// match the default Mingo mark (48px).
|
|
9078
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9079
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9078
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
9079
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
9080
9080
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
9081
9081
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
9082
9082
|
subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", className: "w-3/4 max-w-80" }) }) : subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : null
|
|
@@ -9086,8 +9086,8 @@ function GuideWelcome({
|
|
|
9086
9086
|
]
|
|
9087
9087
|
}
|
|
9088
9088
|
),
|
|
9089
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9090
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9089
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
9090
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
9091
9091
|
] }),
|
|
9092
9092
|
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
|
|
9093
9093
|
] });
|
|
@@ -9157,15 +9157,15 @@ function MingoArchiveList({
|
|
|
9157
9157
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
|
|
9158
9158
|
children: [
|
|
9159
9159
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 px-[var(--spacing-system-xs)] pt-[var(--spacing-system-xs)] text-ods-text-secondary text-h5", children: "Archived Chats" }),
|
|
9160
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9160
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9161
9161
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9162
|
-
|
|
9162
|
+
_chunkEIACEY2Lcjs.ChatListItem,
|
|
9163
9163
|
{
|
|
9164
9164
|
"data-loading-item": true,
|
|
9165
9165
|
title: dialog.title || "Untitled Chat",
|
|
9166
9166
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _178 => _178(dialog.id)]),
|
|
9167
9167
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
9168
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
9168
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkU767P4JUcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
9169
9169
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9170
9170
|
_chunkW7OFAROYcjs.SquareAvatar,
|
|
9171
9171
|
{
|
|
@@ -9349,7 +9349,7 @@ function ChatHeaderSearchField({
|
|
|
9349
9349
|
className
|
|
9350
9350
|
}) {
|
|
9351
9351
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9352
|
-
const debounced =
|
|
9352
|
+
const debounced = _chunkG7GF4PWAcjs.useDebounce.call(void 0, value, 300);
|
|
9353
9353
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
9354
9354
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
9355
9355
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -9506,7 +9506,7 @@ function SearchInput({
|
|
|
9506
9506
|
}) {
|
|
9507
9507
|
const [internalValue, setInternalValue] = _react.useState.call(void 0, defaultValue);
|
|
9508
9508
|
const currentValue = onChange ? _nullishCoalesce(value, () => ( "")) : internalValue;
|
|
9509
|
-
const debouncedValue =
|
|
9509
|
+
const debouncedValue = _chunkG7GF4PWAcjs.useDebounce.call(void 0, currentValue, debounceMs);
|
|
9510
9510
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
9511
9511
|
const [highlightedIndex, setHighlightedIndex] = _react.useState.call(void 0, -1);
|
|
9512
9512
|
const keyboardPadding = _chunkFW7RKWPYcjs.useKeyboardCollisionPadding.call(void 0, );
|
|
@@ -9809,7 +9809,7 @@ function SearchInput({
|
|
|
9809
9809
|
)
|
|
9810
9810
|
] }),
|
|
9811
9811
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9812
|
-
|
|
9812
|
+
_chunkEIACEY2Lcjs.HiddenTagsPopup,
|
|
9813
9813
|
{
|
|
9814
9814
|
ref: hiddenTagsPopupRef,
|
|
9815
9815
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -9979,7 +9979,7 @@ function MingoChatHistorySection({
|
|
|
9979
9979
|
className
|
|
9980
9980
|
}) {
|
|
9981
9981
|
const captionId = _react.useId.call(void 0, );
|
|
9982
|
-
const visitor =
|
|
9982
|
+
const visitor = _chunkG7GF4PWAcjs.useVisitorOs.call(void 0, );
|
|
9983
9983
|
const [searchOpen, setSearchOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
|
|
9984
9984
|
prop: searchOpenProp,
|
|
9985
9985
|
defaultProp: false,
|
|
@@ -9987,7 +9987,7 @@ function MingoChatHistorySection({
|
|
|
9987
9987
|
});
|
|
9988
9988
|
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _216 => _216.trim, 'call', _217 => _217()]);
|
|
9989
9989
|
const showSearch = searchOpen && !!onSearchChange;
|
|
9990
|
-
const shortcut = visitor.known ?
|
|
9990
|
+
const shortcut = visitor.known ? _chunkG7GF4PWAcjs.shortcutLabel.call(void 0, visitor.os, "K") : null;
|
|
9991
9991
|
const listProps = {
|
|
9992
9992
|
dialogs,
|
|
9993
9993
|
activeDialogId,
|
|
@@ -10052,7 +10052,7 @@ function MingoChatHistorySection({
|
|
|
10052
10052
|
variant: "transparent",
|
|
10053
10053
|
size: "icon",
|
|
10054
10054
|
"aria-label": "Search chats",
|
|
10055
|
-
"aria-keyshortcuts": shortcut ?
|
|
10055
|
+
"aria-keyshortcuts": shortcut ? _chunkG7GF4PWAcjs.usesCommandKey.call(void 0, visitor.os) ? "Meta+K" : "Control+K" : void 0,
|
|
10056
10056
|
onClick: () => setSearchOpen(true),
|
|
10057
10057
|
className: ICON_BUTTON_CLASS,
|
|
10058
10058
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { size: 20 })
|
|
@@ -10153,7 +10153,7 @@ function MingoChatSearchModal({
|
|
|
10153
10153
|
}
|
|
10154
10154
|
function SearchModalContent({ initialValue, onSearchChange, onClose, children }) {
|
|
10155
10155
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10156
|
-
const debounced =
|
|
10156
|
+
const debounced = _chunkG7GF4PWAcjs.useDebounce.call(void 0, value, 300);
|
|
10157
10157
|
const lastSent = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
10158
10158
|
const fieldRef = _react.useRef.call(void 0, null);
|
|
10159
10159
|
const send = (term) => {
|
|
@@ -10174,8 +10174,8 @@ function SearchModalContent({ initialValue, onSearchChange, onClose, children })
|
|
|
10174
10174
|
send("");
|
|
10175
10175
|
onClose();
|
|
10176
10176
|
};
|
|
10177
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10177
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.Modal, { isOpen: true, onClose: close, className: "md:max-w-[600px]", children: [
|
|
10178
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalTitle, { children: "Search chats" }) }),
|
|
10179
10179
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: fieldRef, role: "search", "aria-label": "Search chats", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10180
10180
|
SearchInput,
|
|
10181
10181
|
{
|
|
@@ -10231,7 +10231,7 @@ function SectionRow({
|
|
|
10231
10231
|
// A row that lands in a day already on screen (the next page) fades in too.
|
|
10232
10232
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "group/row relative shrink-0 duration-300 animate-in fade-in motion-reduce:animate-none", children: [
|
|
10233
10233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10234
|
-
|
|
10234
|
+
_chunkEIACEY2Lcjs.ChatListItem,
|
|
10235
10235
|
{
|
|
10236
10236
|
active,
|
|
10237
10237
|
title,
|
|
@@ -10398,7 +10398,7 @@ function MingoChatRailPanel({
|
|
|
10398
10398
|
if (loadError) {
|
|
10399
10399
|
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatListLoadError, { onRetry, className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-l)]" });
|
|
10400
10400
|
} else if (loading) {
|
|
10401
|
-
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10401
|
+
list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ChatListItemLoadingPage, { count: pageSize });
|
|
10402
10402
|
} else if (dialogs.length === 0 && !draftTitle) {
|
|
10403
10403
|
list = hasSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h6", children: "No chats found" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10404
10404
|
ChatListEmptyState,
|
|
@@ -10410,7 +10410,7 @@ function MingoChatRailPanel({
|
|
|
10410
10410
|
);
|
|
10411
10411
|
} else {
|
|
10412
10412
|
list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
10413
|
-
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10413
|
+
draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
|
|
10414
10414
|
dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10415
10415
|
MingoChatRailRow,
|
|
10416
10416
|
{
|
|
@@ -10432,13 +10432,13 @@ function MingoChatRailPanel({
|
|
|
10432
10432
|
] });
|
|
10433
10433
|
}
|
|
10434
10434
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10435
|
-
|
|
10435
|
+
_chunkEIACEY2Lcjs.ChatNavSidebar,
|
|
10436
10436
|
{
|
|
10437
10437
|
className,
|
|
10438
10438
|
"data-accent": "mingo",
|
|
10439
10439
|
"aria-label": "Mingo chats",
|
|
10440
10440
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
10441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10441
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
10442
10442
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10443
10443
|
_chunkFCZAUK4Dcjs.Button,
|
|
10444
10444
|
{
|
|
@@ -10491,7 +10491,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
10491
10491
|
const title = dialog.title || "Untitled Chat";
|
|
10492
10492
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
|
|
10493
10493
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10494
|
-
|
|
10494
|
+
_chunkEIACEY2Lcjs.ChatListItem,
|
|
10495
10495
|
{
|
|
10496
10496
|
active,
|
|
10497
10497
|
title,
|
|
@@ -10588,7 +10588,7 @@ function MingoHistoryRail({
|
|
|
10588
10588
|
}
|
|
10589
10589
|
),
|
|
10590
10590
|
scope && onScopeChange && !loadError ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10591
|
-
|
|
10591
|
+
_chunkU767P4JUcjs.TabSelector,
|
|
10592
10592
|
{
|
|
10593
10593
|
className: "shrink-0",
|
|
10594
10594
|
value: scope,
|
|
@@ -10648,8 +10648,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10648
10648
|
const save = () => {
|
|
10649
10649
|
if (canSave) onSave(name.trim());
|
|
10650
10650
|
};
|
|
10651
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10652
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10651
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10652
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
10653
10653
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
10654
10654
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVCFQHPOOcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
|
|
10655
10655
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10666,27 +10666,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
10666
10666
|
}
|
|
10667
10667
|
)
|
|
10668
10668
|
] }),
|
|
10669
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10669
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.ModalFooter, { children: [
|
|
10670
10670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10671
10671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
|
|
10672
10672
|
] })
|
|
10673
10673
|
] });
|
|
10674
10674
|
}
|
|
10675
10675
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10676
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10677
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10676
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10677
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
10678
10678
|
/* @__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." }),
|
|
10679
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10679
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.ModalFooter, { children: [
|
|
10680
10680
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10681
10681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
|
|
10682
10682
|
] })
|
|
10683
10683
|
] });
|
|
10684
10684
|
}
|
|
10685
10685
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
10686
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10687
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10686
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
10687
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEIACEY2Lcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
10688
10688
|
/* @__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." }),
|
|
10689
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10689
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEIACEY2Lcjs.ModalFooter, { children: [
|
|
10690
10690
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
|
|
10691
10691
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
|
|
10692
10692
|
] })
|
|
@@ -11291,7 +11291,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
11291
11291
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
11292
11292
|
const icon = getProviderIcon(provider);
|
|
11293
11293
|
const name = displayName || modelName;
|
|
11294
|
-
const isV2 = useChatAppearance() ===
|
|
11294
|
+
const isV2 = useChatAppearance() === _chunkEIACEY2Lcjs.CHAT_APPEARANCE.V2;
|
|
11295
11295
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
11296
11296
|
if (isLoading) {
|
|
11297
11297
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
|
|
@@ -11477,7 +11477,7 @@ function ChatComposer({
|
|
|
11477
11477
|
const showLegacyAttach = !contextEnabled && showAttachmentButton && !!onAddFiles;
|
|
11478
11478
|
const showFooterRow = showLegacyAttach || !!model || !!footerActions;
|
|
11479
11479
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11480
|
-
|
|
11480
|
+
_chunkEIACEY2Lcjs.ChatInput,
|
|
11481
11481
|
{
|
|
11482
11482
|
ref: inputRef,
|
|
11483
11483
|
onSend,
|
|
@@ -11667,7 +11667,7 @@ function ChatArchivePage(props) {
|
|
|
11667
11667
|
|
|
11668
11668
|
|
|
11669
11669
|
function useNavLinkTarget(href, targetPlatform, openIn) {
|
|
11670
|
-
return
|
|
11670
|
+
return _chunkETZFBB7Ocjs.navLinkTarget.call(void 0, _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ), href, targetPlatform, { openIn });
|
|
11671
11671
|
}
|
|
11672
11672
|
function useNavLinkViaRuntime({
|
|
11673
11673
|
href,
|
|
@@ -11683,22 +11683,22 @@ function useNavLinkViaRuntime({
|
|
|
11683
11683
|
const onClick = (e) => {
|
|
11684
11684
|
_optionalChain([onClickProp, 'optionalCall', _249 => _249(e)]);
|
|
11685
11685
|
if (e.defaultPrevented) return;
|
|
11686
|
-
const handled =
|
|
11686
|
+
const handled = _chunkG7GF4PWAcjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
|
|
11687
11687
|
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _250 => _250.closeChat])) panel.closeChat();
|
|
11688
11688
|
};
|
|
11689
|
-
return { href: resolvedHref, ...
|
|
11689
|
+
return { href: resolvedHref, ..._chunkETZFBB7Ocjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
|
|
11690
11690
|
}
|
|
11691
11691
|
function useNavigateViaRuntime() {
|
|
11692
11692
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
11693
11693
|
return _react.useCallback.call(void 0,
|
|
11694
11694
|
({ href, path, targetPlatform, openIn, modifierEvent }) => {
|
|
11695
11695
|
if (!href) return;
|
|
11696
|
-
if (modifierEvent &&
|
|
11696
|
+
if (modifierEvent && _chunkETZFBB7Ocjs.isModifierClick.call(void 0, modifierEvent)) {
|
|
11697
11697
|
const button = _nullishCoalesce(modifierEvent.button, () => ( 0));
|
|
11698
|
-
if (button === 0 || button === 1)
|
|
11698
|
+
if (button === 0 || button === 1) _chunkG7GF4PWAcjs.executeNewTabNavigation.call(void 0, { runtime, href, targetPlatform });
|
|
11699
11699
|
return;
|
|
11700
11700
|
}
|
|
11701
|
-
|
|
11701
|
+
_chunkG7GF4PWAcjs.executeNavigationImperative.call(void 0, { runtime, href, path, targetPlatform, openIn });
|
|
11702
11702
|
},
|
|
11703
11703
|
[runtime]
|
|
11704
11704
|
);
|
|
@@ -11765,7 +11765,7 @@ function FooterAction({
|
|
|
11765
11765
|
leftIcon: showLabel ? mark : void 0,
|
|
11766
11766
|
rightIcon: trailingIcon ? mark : void 0,
|
|
11767
11767
|
className: _chunk63A4GZMBcjs.cn.call(void 0, className, "pointer-events-none"),
|
|
11768
|
-
children: showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11768
|
+
children: showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.TextHold, { children: label }) : mark
|
|
11769
11769
|
}
|
|
11770
11770
|
) });
|
|
11771
11771
|
}
|
|
@@ -11888,7 +11888,7 @@ function UserDisplay({
|
|
|
11888
11888
|
compact = false,
|
|
11889
11889
|
className
|
|
11890
11890
|
}) {
|
|
11891
|
-
const avatarSrc =
|
|
11891
|
+
const avatarSrc = _chunkNMWLXHFHcjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
11892
11892
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
11893
11893
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11894
11894
|
UserDisplaySkeleton,
|
|
@@ -12028,7 +12028,7 @@ function ManagedCell({
|
|
|
12028
12028
|
}) {
|
|
12029
12029
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
12030
12030
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
12031
|
-
const cloneRef =
|
|
12031
|
+
const cloneRef = _chunkG7GF4PWAcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
12032
12032
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12033
12033
|
"div",
|
|
12034
12034
|
{
|
|
@@ -12146,12 +12146,12 @@ function CardsStrip(props) {
|
|
|
12146
12146
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
12147
12147
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12148
12148
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
12149
|
-
const { ref: observe, inView: nearViewport } =
|
|
12149
|
+
const { ref: observe, inView: nearViewport } = _chunkG7GF4PWAcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
12150
12150
|
_react.useEffect.call(void 0, () => {
|
|
12151
12151
|
observe(wrapperRef.current);
|
|
12152
12152
|
return () => observe(null);
|
|
12153
12153
|
}, [observe]);
|
|
12154
|
-
const autoplay =
|
|
12154
|
+
const autoplay = _chunkG7GF4PWAcjs.useAutoplay.call(void 0, nearViewport);
|
|
12155
12155
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
12156
12156
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
12157
12157
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -12198,7 +12198,7 @@ function CardsStrip(props) {
|
|
|
12198
12198
|
const current = activeKeyRef.current;
|
|
12199
12199
|
if (current !== null) deactivate(current);
|
|
12200
12200
|
}, [deactivate]);
|
|
12201
|
-
|
|
12201
|
+
_chunkG7GF4PWAcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
12202
12202
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
12203
12203
|
const scroller = scrollerRef.current;
|
|
12204
12204
|
if (!scroller) return;
|
|
@@ -12219,7 +12219,7 @@ function CardsStrip(props) {
|
|
|
12219
12219
|
},
|
|
12220
12220
|
[reverse, seamBuffer]
|
|
12221
12221
|
);
|
|
12222
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
12222
|
+
const { posRef: marqueePosRef, glideBy } = _chunkG7GF4PWAcjs.useMarqueeEngine.call(void 0, {
|
|
12223
12223
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
12224
12224
|
// engine would keep scheduling frames forever), same treatment as
|
|
12225
12225
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -12356,7 +12356,7 @@ function CardsStrip(props) {
|
|
|
12356
12356
|
}
|
|
12357
12357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
12358
12358
|
};
|
|
12359
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
12359
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkNMWLXHFHcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkNMWLXHFHcjs.accentSentenceMarks.call(void 0, title) });
|
|
12360
12360
|
if (items.length === 0) {
|
|
12361
12361
|
if (!inScope || !skeleton) return null;
|
|
12362
12362
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -12546,7 +12546,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
12546
12546
|
);
|
|
12547
12547
|
function VideoBitesStrip({
|
|
12548
12548
|
bites,
|
|
12549
|
-
title =
|
|
12549
|
+
title = _chunkO3EKOXFZcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12550
12550
|
showTitle = true,
|
|
12551
12551
|
filterPublished = true,
|
|
12552
12552
|
profile = null,
|
|
@@ -12559,7 +12559,7 @@ function VideoBitesStrip({
|
|
|
12559
12559
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
12560
12560
|
showChevrons = true,
|
|
12561
12561
|
onBiteNavigate,
|
|
12562
|
-
sortComparator =
|
|
12562
|
+
sortComparator = _chunkO3EKOXFZcjs.sortBitesByCreatedAtDesc,
|
|
12563
12563
|
skeletonCount,
|
|
12564
12564
|
className
|
|
12565
12565
|
}) {
|
|
@@ -12657,7 +12657,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
12657
12657
|
function VideoBitesStripSkeleton({
|
|
12658
12658
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
12659
12659
|
aspect = "9:16",
|
|
12660
|
-
title =
|
|
12660
|
+
title = _chunkO3EKOXFZcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12661
12661
|
showTitle = true,
|
|
12662
12662
|
headerSlot,
|
|
12663
12663
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -12789,7 +12789,7 @@ function VideoBiteCard({
|
|
|
12789
12789
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
12790
12790
|
children: [
|
|
12791
12791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12792
|
-
|
|
12792
|
+
_chunkO3EKOXFZcjs.VideoHoverPreviewSurface,
|
|
12793
12793
|
{
|
|
12794
12794
|
url: bite.url,
|
|
12795
12795
|
posterUrl: bite.thumbnail_url,
|
|
@@ -12861,7 +12861,7 @@ function EntityVideoSection({
|
|
|
12861
12861
|
title = "Video",
|
|
12862
12862
|
videoSummary,
|
|
12863
12863
|
videoBites,
|
|
12864
|
-
bitesTitle =
|
|
12864
|
+
bitesTitle = _chunkO3EKOXFZcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
12865
12865
|
filterPublishedBites = true,
|
|
12866
12866
|
bitesProfile = null,
|
|
12867
12867
|
bitesHref,
|
|
@@ -12896,7 +12896,7 @@ function EntityVideoSection({
|
|
|
12896
12896
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12897
12897
|
] }),
|
|
12898
12898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12899
|
-
|
|
12899
|
+
_chunkO3EKOXFZcjs.Video,
|
|
12900
12900
|
{
|
|
12901
12901
|
kind: fullVideoKind,
|
|
12902
12902
|
url: fullVideoUrl,
|
|
@@ -12908,7 +12908,7 @@ function EntityVideoSection({
|
|
|
12908
12908
|
}
|
|
12909
12909
|
) }),
|
|
12910
12910
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12911
|
-
|
|
12911
|
+
_chunkO3EKOXFZcjs.Video,
|
|
12912
12912
|
{
|
|
12913
12913
|
url: highlightVideoUrl,
|
|
12914
12914
|
poster: highlightVideoThumbnail,
|
|
@@ -12917,7 +12917,7 @@ function EntityVideoSection({
|
|
|
12917
12917
|
}
|
|
12918
12918
|
) })
|
|
12919
12919
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12920
|
-
|
|
12920
|
+
_chunkO3EKOXFZcjs.Video,
|
|
12921
12921
|
{
|
|
12922
12922
|
kind: fullVideoKind,
|
|
12923
12923
|
url: fullVideoUrl,
|
|
@@ -12928,7 +12928,7 @@ function EntityVideoSection({
|
|
|
12928
12928
|
priority
|
|
12929
12929
|
}
|
|
12930
12930
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12931
|
-
|
|
12931
|
+
_chunkO3EKOXFZcjs.Video,
|
|
12932
12932
|
{
|
|
12933
12933
|
url: highlightVideoUrl,
|
|
12934
12934
|
poster: highlightVideoThumbnail,
|
|
@@ -12938,7 +12938,7 @@ function EntityVideoSection({
|
|
|
12938
12938
|
}
|
|
12939
12939
|
) : null),
|
|
12940
12940
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
12941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
12941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkNMWLXHFHcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
12942
12942
|
/* @__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 }) })
|
|
12943
12943
|
] }),
|
|
12944
12944
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12957,13 +12957,13 @@ function EntityVideoSection({
|
|
|
12957
12957
|
] });
|
|
12958
12958
|
}
|
|
12959
12959
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
12960
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12960
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
12961
12961
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
|
|
12962
12962
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
12963
12963
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
12964
12964
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
12965
12965
|
] }),
|
|
12966
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12966
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
12967
12967
|
] });
|
|
12968
12968
|
}
|
|
12969
12969
|
|
|
@@ -13055,7 +13055,7 @@ function ChatCardDisclosureButton({
|
|
|
13055
13055
|
{
|
|
13056
13056
|
label,
|
|
13057
13057
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
|
|
13058
|
-
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13058
|
+
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
13059
13059
|
onClick: (e) => {
|
|
13060
13060
|
e.preventDefault();
|
|
13061
13061
|
e.stopPropagation();
|
|
@@ -13069,7 +13069,7 @@ function ChatCardDisclosureButton({
|
|
|
13069
13069
|
);
|
|
13070
13070
|
}
|
|
13071
13071
|
function DisclosurePanel({ open, children }) {
|
|
13072
|
-
const { innerRef, containerStyle } =
|
|
13072
|
+
const { innerRef, containerStyle } = _chunkU767P4JUcjs.useCollapsible.call(void 0, { expanded: open });
|
|
13073
13073
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children }) });
|
|
13074
13074
|
}
|
|
13075
13075
|
function useChatCardDisclosure(kind, chatRef, { reserve = false } = {}) {
|
|
@@ -13121,7 +13121,7 @@ function designDocPeople(doc) {
|
|
|
13121
13121
|
return people;
|
|
13122
13122
|
}
|
|
13123
13123
|
function designDocMetaLine(doc) {
|
|
13124
|
-
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
13124
|
+
return [_optionalChain([doc, 'access', _296 => _296.author, 'optionalAccess', _297 => _297.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkNMWLXHFHcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
13125
13125
|
}
|
|
13126
13126
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
13127
13127
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -13131,15 +13131,15 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunkPMUCEUFQcjs.TE
|
|
|
13131
13131
|
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunkPMUCEUFQcjs.TEXT_LINES_MIN[3]}`;
|
|
13132
13132
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
13133
13133
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
13134
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13134
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkO3EKOXFZcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
13135
13135
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
13136
13136
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
13137
13137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
13138
13138
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
13139
13139
|
] }),
|
|
13140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13140
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
13141
13141
|
] }),
|
|
13142
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13142
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
13143
13143
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
13144
13144
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13145
13145
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -13151,7 +13151,7 @@ function DesignDocCardSkeleton({ className } = {}) {
|
|
|
13151
13151
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
13152
13152
|
const status = designDocStatusDisplay(doc);
|
|
13153
13153
|
const people = designDocPeople(doc);
|
|
13154
|
-
const link =
|
|
13154
|
+
const link = _chunkO3EKOXFZcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
13155
13155
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
13156
13156
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13157
13157
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -13159,9 +13159,9 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13159
13159
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "line-clamp-2 flex-1 text-ods-text-primary text-h3", children: doc.title || "Untitled design doc" }) }),
|
|
13160
13160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
|
|
13161
13161
|
] }),
|
|
13162
|
-
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13162
|
+
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.PaletteBadge, { text: status.label, color: status.color_scheme, className: "hidden md:inline-flex" }) : null
|
|
13163
13163
|
] }),
|
|
13164
|
-
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13164
|
+
status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.PaletteBadge, { text: status.label, color: status.color_scheme }) }) : null,
|
|
13165
13165
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
|
|
13166
13166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
13167
13167
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -13169,7 +13169,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
13169
13169
|
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTYJUMFBcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
13170
13170
|
] })
|
|
13171
13171
|
] });
|
|
13172
|
-
const outer = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
13172
|
+
const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkO3EKOXFZcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
13173
13173
|
return link ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: link, target, rel, className: outer, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: outer, children: body });
|
|
13174
13174
|
}
|
|
13175
13175
|
|
|
@@ -13311,26 +13311,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
13311
13311
|
metaParts.push(
|
|
13312
13312
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
13313
13313
|
);
|
|
13314
|
-
const href =
|
|
13314
|
+
const href = _chunkO3EKOXFZcjs.safeHref.call(void 0, item.url);
|
|
13315
13315
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13316
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13317
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
13318
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
13316
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
13317
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
13318
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkO3EKOXFZcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
13319
13319
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
13320
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13320
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
13321
13321
|
] }),
|
|
13322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13322
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
13323
13323
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
13324
13324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
13325
13325
|
] }, i)) }) }),
|
|
13326
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
13326
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_SUMMARY, children: _chunkO3EKOXFZcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
13327
13327
|
] }),
|
|
13328
13328
|
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
|
|
13329
13329
|
] });
|
|
13330
13330
|
if (anchorProps) {
|
|
13331
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
13331
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkO3EKOXFZcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
13332
13332
|
}
|
|
13333
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
13333
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkO3EKOXFZcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkO3EKOXFZcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
13334
13334
|
}
|
|
13335
13335
|
function GitHubActivityCardSkeleton({
|
|
13336
13336
|
variant = "compact",
|
|
@@ -13338,7 +13338,7 @@ function GitHubActivityCardSkeleton({
|
|
|
13338
13338
|
}) {
|
|
13339
13339
|
if (variant === "row") {
|
|
13340
13340
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13341
|
-
|
|
13341
|
+
_chunkO3EKOXFZcjs.ActivityRowSkeleton,
|
|
13342
13342
|
{
|
|
13343
13343
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
13344
13344
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
@@ -13349,7 +13349,7 @@ function GitHubActivityCardSkeleton({
|
|
|
13349
13349
|
}
|
|
13350
13350
|
);
|
|
13351
13351
|
}
|
|
13352
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13352
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
13353
13353
|
}
|
|
13354
13354
|
|
|
13355
13355
|
// src/utils/url-fix.ts
|
|
@@ -13405,7 +13405,7 @@ function VendorIcon({
|
|
|
13405
13405
|
...props
|
|
13406
13406
|
}) {
|
|
13407
13407
|
const logoUrl = getVendorLogo(vendor);
|
|
13408
|
-
const logoSrc =
|
|
13408
|
+
const logoSrc = _chunkNMWLXHFHcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
13409
13409
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13410
13410
|
_chunkW7OFAROYcjs.SquareAvatar,
|
|
13411
13411
|
{
|
|
@@ -13439,8 +13439,8 @@ function useChatCardItem(type, id) {
|
|
|
13439
13439
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
13440
13440
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
13441
13441
|
const data = await res.json();
|
|
13442
|
-
const items =
|
|
13443
|
-
const match = items.find((it) =>
|
|
13442
|
+
const items = _chunkNMWLXHFHcjs.extractCardItems.call(void 0, type, data);
|
|
13443
|
+
const match = items.find((it) => _chunkNMWLXHFHcjs.extractItemId.call(void 0, type, it) === id);
|
|
13444
13444
|
return _nullishCoalesce(match, () => ( null));
|
|
13445
13445
|
},
|
|
13446
13446
|
enabled: !!url && id.length > 0,
|
|
@@ -13646,7 +13646,7 @@ function resolveFetchedCardHref({
|
|
|
13646
13646
|
composeContentUrl
|
|
13647
13647
|
}) {
|
|
13648
13648
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
13649
|
-
const canonicalType =
|
|
13649
|
+
const canonicalType = _chunkNMWLXHFHcjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
13650
13650
|
return composeContentUrl({
|
|
13651
13651
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
13652
13652
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -13670,7 +13670,7 @@ function sourceRowCtxFromRuntime(runtime) {
|
|
|
13670
13670
|
}
|
|
13671
13671
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
13672
13672
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
13673
|
-
const icon = iconName ?
|
|
13673
|
+
const icon = iconName ? _chunkKKFDRCQFcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
|
|
13674
13674
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
13675
13675
|
return { icon, iconLabel };
|
|
13676
13676
|
}
|
|
@@ -13689,16 +13689,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
13689
13689
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
13690
13690
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
13691
13691
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
13692
|
-
type:
|
|
13692
|
+
type: _chunkNMWLXHFHcjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
13693
13693
|
identifier: idValue,
|
|
13694
13694
|
...docPath ? { slug: docPath } : {},
|
|
13695
13695
|
externalUrl: _nullishCoalesce(row.externalUrl, () => ( null)),
|
|
13696
13696
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
13697
13697
|
});
|
|
13698
|
-
href = composed.href ? _nullishCoalesce(
|
|
13698
|
+
href = composed.href ? _nullishCoalesce(_chunkO3EKOXFZcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
13699
13699
|
targetPlatform = composed.targetPlatform;
|
|
13700
13700
|
} else if (row.externalUrl) {
|
|
13701
|
-
href = _nullishCoalesce(
|
|
13701
|
+
href = _nullishCoalesce(_chunkO3EKOXFZcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
13702
13702
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
13703
13703
|
}
|
|
13704
13704
|
const documentType = row.documentType;
|
|
@@ -13765,7 +13765,7 @@ function resolveCardDestination({
|
|
|
13765
13765
|
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _306 => _306.fallbackHref, 'optionalCall', _307 => _307(item)]), () => ( null)),
|
|
13766
13766
|
allowComposed: !entry.noComposedHref
|
|
13767
13767
|
});
|
|
13768
|
-
const url = choice ? _nullishCoalesce(
|
|
13768
|
+
const url = choice ? _nullishCoalesce(_chunkO3EKOXFZcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
13769
13769
|
if (choice && url) {
|
|
13770
13770
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
13771
13771
|
}
|
|
@@ -13778,11 +13778,11 @@ function resolveCardDestination({
|
|
|
13778
13778
|
|
|
13779
13779
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
13780
13780
|
const label = entityLabel || "Item";
|
|
13781
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
13782
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13783
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
13784
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13785
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
13781
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkO3EKOXFZcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
13782
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
13783
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
13784
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkO3EKOXFZcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
13785
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkO3EKOXFZcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
13786
13786
|
label,
|
|
13787
13787
|
" deleted",
|
|
13788
13788
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -13837,7 +13837,7 @@ function GitHubChatCard({
|
|
|
13837
13837
|
description,
|
|
13838
13838
|
icon: githubKindIcon(kind),
|
|
13839
13839
|
status,
|
|
13840
|
-
anchorProps:
|
|
13840
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13841
13841
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13842
13842
|
menuAriaLabel: "Activity actions"
|
|
13843
13843
|
}
|
|
@@ -13960,7 +13960,7 @@ function HubspotTicketChatCard({
|
|
|
13960
13960
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13961
13961
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
13962
13962
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
13963
|
-
anchorProps:
|
|
13963
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13964
13964
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
13965
13965
|
label: "Open Ticket Details",
|
|
13966
13966
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -13983,7 +13983,7 @@ function FaqChatCard({
|
|
|
13983
13983
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
13984
13984
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
13985
13985
|
status: { label: statusLabel, variant: "grey" },
|
|
13986
|
-
anchorProps:
|
|
13986
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
13987
13987
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
13988
13988
|
menuAriaLabel: "FAQ actions"
|
|
13989
13989
|
}
|
|
@@ -14003,7 +14003,7 @@ function SlackChatCard({
|
|
|
14003
14003
|
title,
|
|
14004
14004
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14005
14005
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
14006
|
-
anchorProps:
|
|
14006
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14007
14007
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14008
14008
|
menuAriaLabel: "Message actions"
|
|
14009
14009
|
}
|
|
@@ -14021,7 +14021,7 @@ function GlyphChatCard({
|
|
|
14021
14021
|
title: chatRef.title,
|
|
14022
14022
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14023
14023
|
icon,
|
|
14024
|
-
anchorProps:
|
|
14024
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14025
14025
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14026
14026
|
menuAriaLabel: "Card actions"
|
|
14027
14027
|
}
|
|
@@ -14039,20 +14039,20 @@ function TrustCenterChatCard({
|
|
|
14039
14039
|
}) {
|
|
14040
14040
|
const raw2 = _optionalChain([item, 'optionalAccess', _321 => _321.frameworks]);
|
|
14041
14041
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
14042
|
-
const summary =
|
|
14042
|
+
const summary = _chunkNMWLXHFHcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
14043
14043
|
const leadFramework = frameworks[0];
|
|
14044
14044
|
const lead = leadFramework ? {
|
|
14045
|
-
label:
|
|
14046
|
-
color:
|
|
14045
|
+
label: _chunkNMWLXHFHcjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
14046
|
+
color: _chunkNMWLXHFHcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
14047
14047
|
} : void 0;
|
|
14048
14048
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14049
14049
|
MingoInfoCard,
|
|
14050
14050
|
{
|
|
14051
|
-
title:
|
|
14052
|
-
description: summary ||
|
|
14051
|
+
title: _chunkNMWLXHFHcjs.TRUST_CENTER_TITLE,
|
|
14052
|
+
description: summary || _chunkNMWLXHFHcjs.TRUST_CENTER_TAGLINE,
|
|
14053
14053
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
14054
14054
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
14055
|
-
anchorProps:
|
|
14055
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14056
14056
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
14057
14057
|
label: "View trust center",
|
|
14058
14058
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -14074,7 +14074,7 @@ function DataRoomDocChatCard({
|
|
|
14074
14074
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
14075
14075
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14076
14076
|
status: { label: badgeText, variant: "grey" },
|
|
14077
|
-
anchorProps:
|
|
14077
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14078
14078
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14079
14079
|
menuAriaLabel: "Document actions"
|
|
14080
14080
|
}
|
|
@@ -14093,7 +14093,7 @@ function GenericFinancialChatCard({
|
|
|
14093
14093
|
title: chatRef.title,
|
|
14094
14094
|
description: subtitle,
|
|
14095
14095
|
icon,
|
|
14096
|
-
anchorProps:
|
|
14096
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14097
14097
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
14098
14098
|
menuAriaLabel: "Document actions"
|
|
14099
14099
|
}
|
|
@@ -14184,7 +14184,7 @@ function CampaignChatCard({
|
|
|
14184
14184
|
}) {
|
|
14185
14185
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _327 => _327.goals])) ? item.goals.length : 0;
|
|
14186
14186
|
const meta = [
|
|
14187
|
-
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ?
|
|
14187
|
+
_optionalChain([item, 'optionalAccess', _328 => _328.start_date]) ? _chunkNMWLXHFHcjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
14188
14188
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
14189
14189
|
"Marketing campaign"
|
|
14190
14190
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -14223,7 +14223,7 @@ function EntityMingoCard({
|
|
|
14223
14223
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
14224
14224
|
icon: fallbackIcon,
|
|
14225
14225
|
status,
|
|
14226
|
-
anchorProps:
|
|
14226
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
14227
14227
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
14228
14228
|
menuAriaLabel
|
|
14229
14229
|
}
|
|
@@ -14235,7 +14235,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
14235
14235
|
function statusPill(status) {
|
|
14236
14236
|
const s = typeof status === "string" ? status.trim() : "";
|
|
14237
14237
|
if (!s) return void 0;
|
|
14238
|
-
const scheme =
|
|
14238
|
+
const scheme = _chunkNMWLXHFHcjs.getStatusColorScheme.call(void 0, s);
|
|
14239
14239
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
14240
14240
|
return { label: s, variant };
|
|
14241
14241
|
}
|
|
@@ -14326,7 +14326,7 @@ function DesignDocChatCard({
|
|
|
14326
14326
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
14327
14327
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
14328
14328
|
status: status ? { label: status.label, variant: _chunkW7OFAROYcjs.tagVariantForBadgeColor.call(void 0, status.color_scheme) } : { label: "Design doc", variant: "grey" },
|
|
14329
|
-
anchorProps:
|
|
14329
|
+
anchorProps: _chunkETZFBB7Ocjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab, displayRef.targetPlatform),
|
|
14330
14330
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
14331
14331
|
menuAriaLabel: "Design doc actions"
|
|
14332
14332
|
}
|
|
@@ -14344,7 +14344,7 @@ function InvestorUpdateChatCard({
|
|
|
14344
14344
|
EntityMingoCard,
|
|
14345
14345
|
{
|
|
14346
14346
|
title,
|
|
14347
|
-
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) ||
|
|
14347
|
+
description: _optionalChain([item, 'optionalAccess', _358 => _358.strategic_update]) || _optionalChain([item, 'optionalAccess', _359 => _359.content]) || _chunkNMWLXHFHcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _360 => _360.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _361 => _361.period_end]), () => ( null))) || void 0,
|
|
14348
14348
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _362 => _362.featured_image]), ogPlaceholder),
|
|
14349
14349
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
14350
14350
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -14388,7 +14388,7 @@ function ProgramChatCard({
|
|
|
14388
14388
|
discuss
|
|
14389
14389
|
}) {
|
|
14390
14390
|
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 });
|
|
14391
|
-
const { line: meta } =
|
|
14391
|
+
const { line: meta } = _chunkNMWLXHFHcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkNMWLXHFHcjs.programMetaFormatters.call(void 0, _chunkNMWLXHFHcjs.PROGRAM_META_RENDERERS));
|
|
14392
14392
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14393
14393
|
EntityMingoCard,
|
|
14394
14394
|
{
|
|
@@ -14414,7 +14414,7 @@ function RoadmapChatCard({
|
|
|
14414
14414
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _372 => _372.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
14415
14415
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _373 => _373.customItemId]) != null;
|
|
14416
14416
|
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 });
|
|
14417
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14417
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _374 => _374.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
14418
14418
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
14419
14419
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
14420
14420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -14423,8 +14423,8 @@ function RoadmapChatCard({
|
|
|
14423
14423
|
src: logoUrl,
|
|
14424
14424
|
alt: "",
|
|
14425
14425
|
className: "size-6 object-contain",
|
|
14426
|
-
width:
|
|
14427
|
-
height:
|
|
14426
|
+
width: _chunkKKFDRCQFcjs.IMAGE_FIXED_PX.glyph,
|
|
14427
|
+
height: _chunkKKFDRCQFcjs.IMAGE_FIXED_PX.glyph,
|
|
14428
14428
|
unoptimized: true
|
|
14429
14429
|
}
|
|
14430
14430
|
)
|
|
@@ -14490,11 +14490,11 @@ function refText(ref, key) {
|
|
|
14490
14490
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
14491
14491
|
}
|
|
14492
14492
|
function VendorGlyph({ title, logoUrl }) {
|
|
14493
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14493
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
14494
14494
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
14495
14495
|
}
|
|
14496
14496
|
function SitePageGlyph({ iconName }) {
|
|
14497
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14497
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
14498
14498
|
}
|
|
14499
14499
|
var GITHUB_CARD_CONFIGS = {
|
|
14500
14500
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -14622,7 +14622,7 @@ function programRegistryEntries() {
|
|
|
14622
14622
|
contentRefType: cfg.contentRefType,
|
|
14623
14623
|
bareInline: true,
|
|
14624
14624
|
disclosure: cfg.disclosure,
|
|
14625
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14625
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.ProgramCard, { loading: true, size: "sm" }),
|
|
14626
14626
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14627
14627
|
ProgramChatCard,
|
|
14628
14628
|
{
|
|
@@ -14663,7 +14663,7 @@ function roadmapRegistryEntries() {
|
|
|
14663
14663
|
bareInline: true,
|
|
14664
14664
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
14665
14665
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
14666
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14666
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
14667
14667
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14668
14668
|
RoadmapChatCard,
|
|
14669
14669
|
{
|
|
@@ -14721,12 +14721,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14721
14721
|
// projection route; `extractCardItems` turns its object payload into the
|
|
14722
14722
|
// single matched row. Destination is the public page unless the host
|
|
14723
14723
|
// re-homes the type (`composeContentUrl` override).
|
|
14724
|
-
[
|
|
14724
|
+
[_chunkNMWLXHFHcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
14725
14725
|
label: "Trust center",
|
|
14726
14726
|
bareInline: true,
|
|
14727
|
-
contentRefType:
|
|
14727
|
+
contentRefType: _chunkNMWLXHFHcjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
14728
14728
|
noComposedHref: true,
|
|
14729
|
-
fallbackHref: () =>
|
|
14729
|
+
fallbackHref: () => _chunkNMWLXHFHcjs.TRUST_CENTER_PAGE_PATH,
|
|
14730
14730
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
14731
14731
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
14732
14732
|
},
|
|
@@ -14753,7 +14753,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14753
14753
|
label: "Blog post",
|
|
14754
14754
|
contentRefType: "blog_post_existing",
|
|
14755
14755
|
bareInline: true,
|
|
14756
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14756
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.BlogCard, { loading: true, size: "sm" }),
|
|
14757
14757
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14758
14758
|
BlogChatCard,
|
|
14759
14759
|
{
|
|
@@ -14771,7 +14771,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14771
14771
|
label: "Case study",
|
|
14772
14772
|
contentRefType: "case_study",
|
|
14773
14773
|
bareInline: true,
|
|
14774
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14774
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO3EKOXFZcjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
14775
14775
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14776
14776
|
CaseStudyChatCard,
|
|
14777
14777
|
{
|
|
@@ -14797,7 +14797,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14797
14797
|
label: "Customer interview",
|
|
14798
14798
|
contentRefType: "customer_interview",
|
|
14799
14799
|
bareInline: true,
|
|
14800
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14800
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
14801
14801
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14802
14802
|
CustomerInterviewChatCard,
|
|
14803
14803
|
{
|
|
@@ -14814,9 +14814,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14814
14814
|
label: "Product release",
|
|
14815
14815
|
contentRefType: "product_release",
|
|
14816
14816
|
bareInline: true,
|
|
14817
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14817
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
14818
14818
|
render: (item, chatRef, opts) => {
|
|
14819
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => (
|
|
14819
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _415 => _415.extras, 'optionalAccess', _416 => _416.buildProductReleaseCardProps]), () => ( _chunkNMWLXHFHcjs.defaultBuildProductReleaseCardProps));
|
|
14820
14820
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14821
14821
|
ProductReleaseChatCard,
|
|
14822
14822
|
{
|
|
@@ -14835,7 +14835,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14835
14835
|
label: "Investor update",
|
|
14836
14836
|
contentRefType: "investor_update",
|
|
14837
14837
|
bareInline: true,
|
|
14838
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14838
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
14839
14839
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14840
14840
|
InvestorUpdateChatCard,
|
|
14841
14841
|
{
|
|
@@ -14854,7 +14854,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
14854
14854
|
bareInline: true,
|
|
14855
14855
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
14856
14856
|
displayAction: true,
|
|
14857
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14857
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNMWLXHFHcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
14858
14858
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14859
14859
|
OnboardingGuideChatCard,
|
|
14860
14860
|
{
|
|
@@ -14898,7 +14898,7 @@ function ChatCardNavWrap({
|
|
|
14898
14898
|
if (!_optionalChain([host, 'optionalAccess', _428 => _428.contains, 'call', _429 => _429(targetEl)])) return;
|
|
14899
14899
|
if (_optionalChain([targetEl, 'optionalAccess', _430 => _430.closest, 'optionalCall', _431 => _431("button")])) return;
|
|
14900
14900
|
if (!_optionalChain([targetEl, 'optionalAccess', _432 => _432.closest, 'optionalCall', _433 => _433("a")])) return;
|
|
14901
|
-
const handled =
|
|
14901
|
+
const handled = _chunkG7GF4PWAcjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
|
|
14902
14902
|
if (!handled) return;
|
|
14903
14903
|
e.stopPropagation();
|
|
14904
14904
|
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _434 => _434.closeChat])) panel.closeChat();
|
|
@@ -14936,7 +14936,7 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14936
14936
|
entry: fetchEntry,
|
|
14937
14937
|
ctx: sourceRowCtxFromRuntime(runtime),
|
|
14938
14938
|
composeContentUrl: runtime.composeContentUrl,
|
|
14939
|
-
resolveHref: (href) =>
|
|
14939
|
+
resolveHref: (href) => _chunkETZFBB7Ocjs.navLinkTarget.call(void 0, runtime, href).href
|
|
14940
14940
|
});
|
|
14941
14941
|
const hrefResolvedChatRef = {
|
|
14942
14942
|
...chatRef,
|
|
@@ -14947,13 +14947,13 @@ function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
|
14947
14947
|
};
|
|
14948
14948
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
14949
14949
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
14950
|
-
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url &&
|
|
14951
|
-
const isNewTab = finalChatRef.url ?
|
|
14950
|
+
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url && _chunkETZFBB7Ocjs.isRelativeHref.call(void 0, finalChatRef.url);
|
|
14951
|
+
const isNewTab = finalChatRef.url ? _chunkETZFBB7Ocjs.navLinkTarget.call(void 0, runtime, finalChatRef.url, finalChatRef.targetPlatform, { hostRoute }).isNewTab : false;
|
|
14952
14952
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
14953
14953
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
14954
14954
|
const discuss = discussFn ? {
|
|
14955
14955
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
14956
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14956
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU767P4JUcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
14957
14957
|
run: () => discussFn(finalChatRef)
|
|
14958
14958
|
} : void 0;
|
|
14959
14959
|
const renderOpts = {
|
|
@@ -15059,12 +15059,12 @@ function makeBatchDedupKey(item) {
|
|
|
15059
15059
|
return `${item.messageType}:${seq}:${type}:${text3}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
15060
15060
|
}
|
|
15061
15061
|
function getChatTypeMessageType(chatType) {
|
|
15062
|
-
return chatType ===
|
|
15062
|
+
return chatType === _chunkEIACEY2Lcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
15063
15063
|
}
|
|
15064
15064
|
function useChunkCatchup({
|
|
15065
15065
|
dialogId,
|
|
15066
15066
|
onChunkReceived,
|
|
15067
|
-
chatTypes = [
|
|
15067
|
+
chatTypes = [_chunkEIACEY2Lcjs.CHAT_TYPE.CLIENT],
|
|
15068
15068
|
fetchChunks
|
|
15069
15069
|
}) {
|
|
15070
15070
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -16031,7 +16031,7 @@ function useChatAttachmentImageGallery() {
|
|
|
16031
16031
|
return () => root.removeEventListener("click", onClick);
|
|
16032
16032
|
}, [viewUrlPrefix]);
|
|
16033
16033
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16034
|
-
|
|
16034
|
+
_chunkNMWLXHFHcjs.ImageGalleryModal,
|
|
16035
16035
|
{
|
|
16036
16036
|
images: state.images,
|
|
16037
16037
|
isOpen: state.isOpen,
|
|
@@ -17404,7 +17404,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17404
17404
|
const status = approvalStatuses[requestId] || "pending";
|
|
17405
17405
|
if (!displayInline(approvalType)) {
|
|
17406
17406
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
17407
|
-
const summary = required ?
|
|
17407
|
+
const summary = required ? _chunkU767P4JUcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
17408
17408
|
pendingEscalated.set(requestId, {
|
|
17409
17409
|
command: summary,
|
|
17410
17410
|
explanation: _optionalChain([required, 'optionalAccess', _566 => _566.toolExplanation]),
|
|
@@ -17437,7 +17437,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17437
17437
|
if (!call.requiresApproval) continue;
|
|
17438
17438
|
segments = accumulator.addApprovalRequest(
|
|
17439
17439
|
requestId,
|
|
17440
|
-
|
|
17440
|
+
_chunkU767P4JUcjs.getCommandText.call(void 0, call),
|
|
17441
17441
|
call.toolExplanation,
|
|
17442
17442
|
approvalType,
|
|
17443
17443
|
status,
|
|
@@ -17516,7 +17516,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
17516
17516
|
if (!call.requiresApproval) continue;
|
|
17517
17517
|
segments = accumulator.addApprovalRequest(
|
|
17518
17518
|
requestId,
|
|
17519
|
-
|
|
17519
|
+
_chunkU767P4JUcjs.getCommandText.call(void 0, call),
|
|
17520
17520
|
call.toolExplanation,
|
|
17521
17521
|
escalatedData.approvalType,
|
|
17522
17522
|
status
|
|
@@ -19530,12 +19530,12 @@ function withNormalizedReview(call) {
|
|
|
19530
19530
|
return { ...rest, ...policyReviewField(raw2) };
|
|
19531
19531
|
}
|
|
19532
19532
|
function getOwnerDisplayName(owner) {
|
|
19533
|
-
if (_optionalChain([owner, 'optionalAccess', _642 => _642.type]) ===
|
|
19533
|
+
if (_optionalChain([owner, 'optionalAccess', _642 => _642.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
19534
19534
|
const { firstName, lastName } = owner.user;
|
|
19535
19535
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
19536
19536
|
if (name) return name;
|
|
19537
19537
|
}
|
|
19538
|
-
return _optionalChain([owner, 'optionalAccess', _643 => _643.type]) ===
|
|
19538
|
+
return _optionalChain([owner, 'optionalAccess', _643 => _643.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
19539
19539
|
}
|
|
19540
19540
|
function getOwnerAvatar(owner) {
|
|
19541
19541
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _644 => _644.user, 'optionalAccess', _645 => _645.image, 'optionalAccess', _646 => _646.imageUrl]), () => ( void 0));
|
|
@@ -19799,7 +19799,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19799
19799
|
if (!call.requiresApproval) continue;
|
|
19800
19800
|
accumulator.addApprovalRequest(
|
|
19801
19801
|
event.requestId,
|
|
19802
|
-
|
|
19802
|
+
_chunkU767P4JUcjs.getCommandText.call(void 0, call),
|
|
19803
19803
|
call.toolExplanation,
|
|
19804
19804
|
approvalType,
|
|
19805
19805
|
status,
|
|
@@ -19860,7 +19860,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
19860
19860
|
if (!call.requiresApproval) continue;
|
|
19861
19861
|
accumulator.addApprovalRequest(
|
|
19862
19862
|
requestId,
|
|
19863
|
-
|
|
19863
|
+
_chunkU767P4JUcjs.getCommandText.call(void 0, call),
|
|
19864
19864
|
call.toolExplanation,
|
|
19865
19865
|
escalatedData.approvalType,
|
|
19866
19866
|
status
|
|
@@ -19968,10 +19968,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
19968
19968
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
19969
19969
|
return;
|
|
19970
19970
|
}
|
|
19971
|
-
const isUserMessage = _optionalChain([msg, 'access', _659 => _659.owner, 'optionalAccess', _660 => _660.type]) ===
|
|
19971
|
+
const isUserMessage = _optionalChain([msg, 'access', _659 => _659.owner, 'optionalAccess', _660 => _660.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _661 => _661.owner, 'optionalAccess', _662 => _662.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.ADMIN;
|
|
19972
19972
|
if (isUserMessage) {
|
|
19973
19973
|
flushAssistantMessage();
|
|
19974
|
-
const userAuthorType = _optionalChain([msg, 'access', _663 => _663.owner, 'optionalAccess', _664 => _664.type]) ===
|
|
19974
|
+
const userAuthorType = _optionalChain([msg, 'access', _663 => _663.owner, 'optionalAccess', _664 => _664.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
19975
19975
|
messageDataArray.forEach((data) => {
|
|
19976
19976
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
19977
19977
|
const rawContext = data.contextItems;
|
|
@@ -20022,7 +20022,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
20022
20022
|
});
|
|
20023
20023
|
const nextMsg = messages[index + 1];
|
|
20024
20024
|
const isLastMessage = index === messages.length - 1;
|
|
20025
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _667 => _667.owner, 'optionalAccess', _668 => _668.type]) ===
|
|
20025
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _667 => _667.owner, 'optionalAccess', _668 => _668.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _669 => _669.owner, 'optionalAccess', _670 => _670.type]) === _chunkEIACEY2Lcjs.OWNER_TYPE.ADMIN);
|
|
20026
20026
|
if (isLastMessage || nextIsFromUser) {
|
|
20027
20027
|
flushAssistantMessage();
|
|
20028
20028
|
}
|