@flamingo-stack/openframe-frontend-core 0.0.816 → 0.0.818
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-NLT2JVI7.cjs → case-study-card-IZBMHA6R.cjs} +3 -3
- package/dist/{chunk-VDXI26G7.cjs → chunk-4XASD2TL.cjs} +81 -78
- package/dist/{chunk-5TUR7O7H.cjs → chunk-5AIOYEXW.cjs} +90 -90
- package/dist/{chunk-RYJJHSHV.cjs → chunk-5VRSUEC5.cjs} +23 -23
- package/dist/{chunk-633NTKO2.cjs → chunk-6QT5K5I5.cjs} +31 -53
- package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
- package/dist/{chunk-3ELDGEM2.cjs → chunk-AE22KOW3.cjs} +87 -84
- package/dist/{chunk-EJCUAADF.cjs → chunk-BD42NMCT.cjs} +4 -4
- package/dist/{chunk-7NYWHEQM.cjs → chunk-DGAX5WG2.cjs} +15 -15
- package/dist/{chunk-L7W4455K.cjs → chunk-DL4HWYIB.cjs} +3 -3
- package/dist/chunk-DVHSYPDB.cjs +471 -0
- package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
- package/dist/{chunk-7ERD34HQ.cjs → chunk-IQCHV7Z2.cjs} +571 -823
- package/dist/{chunk-3E4FIJAM.cjs → chunk-JTBJB4JF.cjs} +15 -15
- package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
- package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
- package/dist/{chunk-JOOZTRXQ.cjs → chunk-NEXMK6OP.cjs} +4 -4
- package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
- package/dist/{chunk-JH65CEO4.cjs → chunk-NWIEZUM7.cjs} +36 -36
- package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
- package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
- package/dist/{chunk-SWBLTIN4.cjs → chunk-U2THWP25.cjs} +54 -52
- package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
- package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
- package/dist/{chunk-O6VWD2SB.cjs → chunk-VGZXB3SY.cjs} +3 -3
- package/dist/{chunk-ZAWHRYJZ.cjs → chunk-VRXDTRIY.cjs} +45 -45
- package/dist/{chunk-EB7YAUER.cjs → chunk-YHPUD4PM.cjs} +19 -19
- package/dist/{chunk-FUEK43FL.cjs → chunk-YMPPE322.cjs} +206 -200
- package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
- package/dist/{chunk-53JJLHJM.cjs → chunk-ZWAVMZIF.cjs} +20 -20
- package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-V6EV4OGK.cjs} +11 -11
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +5 -5
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/chat-markdown-link.d.ts +15 -0
- package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
- package/dist/components/chat/chat-markdown-link.js +22 -0
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -9
- package/dist/components/chat/embeddable-chat.d.ts +4 -8
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +31 -125
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
- package/dist/components/chat/entity-cards/dispatch.d.ts +8 -15
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +22 -40
- package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
- package/dist/components/chat/index.cjs +28 -21
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +4 -3
- package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
- package/dist/components/chat/inline-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-chip.js +27 -0
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
- package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
- package/dist/components/chat/source-action-button.d.ts +12 -3
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +41 -26
- package/dist/components/chat/types/component.types.d.ts +1 -1
- package/dist/components/chat/types/entities/data-room-doc.d.ts +0 -12
- package/dist/components/chat/types/entities/data-room-doc.d.ts.map +1 -1
- package/dist/components/chat/types/message.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
- package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
- package/dist/components/chat/utils/decide-new-tab.js +0 -1
- package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
- package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
- package/dist/components/chat/utils/execute-navigation.js +23 -19
- package/dist/components/chat/utils/index.d.ts +5 -5
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/index.js +14 -6
- package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
- package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
- package/dist/components/chat/utils/nav-anchor-props.js +14 -5
- package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
- package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
- package/dist/components/chat/utils/new-tab-rel.js +25 -0
- package/dist/components/chat/utils/source-row-cta.d.ts +9 -48
- package/dist/components/chat/utils/source-row-cta.d.ts.map +1 -1
- package/dist/components/chat/utils/source-row-cta.js +7 -32
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +4 -1
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +91 -83
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/app-header.d.ts +1 -4
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +0 -2
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/related-content-section.d.ts +3 -3
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +5 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
- package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.js +15 -27
- package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.js +1 -3
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
- package/dist/components/tickets/ticket-detail-drawer.js +6 -3
- package/dist/components/tickets/types.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/hover-dropdown.d.ts +2 -2
- package/dist/components/ui/index.cjs +31 -23
- package/dist/components/ui/service-card.d.ts.map +1 -1
- package/dist/components/ui/service-card.js +4 -1
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +4 -1
- package/dist/contexts/chat-runtime-context.d.ts +14 -25
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-DL4YU64N.cjs → devices-6KZAJAAS.cjs} +12 -12
- package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-5IHA5SUZ.cjs} +95 -193
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/use-contact-submission.d.ts.map +1 -1
- package/dist/hooks/use-contact-submission.js +11 -8
- package/dist/index.cjs +40 -34
- package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-I7FDQQYJ.cjs} +12 -12
- package/dist/{logs-IY3WBLMW.cjs → logs-Q7PAVJUG.cjs} +19 -19
- package/dist/{policies-IXWTWMJO.cjs → policies-C3DW5CHS.cjs} +15 -15
- package/dist/{scripts-D5CLO5EG.cjs → scripts-BET663HD.cjs} +16 -16
- package/dist/{software-update-ULNP6CKJ.cjs → software-update-W7ZQXEPK.cjs} +14 -14
- package/dist/utils/index.cjs +116 -89
- package/dist/utils/open-in-new-tab.d.ts +2 -1
- package/dist/utils/open-in-new-tab.d.ts.map +1 -1
- package/dist/utils/open-in-new-tab.js +2 -1
- package/dist/utils/scroll-into-view.d.ts +1 -1
- package/dist/utils/source-grouping.d.ts +2 -2
- package/eslint-config/base.js +11 -0
- package/eslint-config/navigation.js +142 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +8 -6
- package/src/components/chat/chat-markdown-link.tsx +42 -0
- package/src/components/chat/chat-message-enhanced.tsx +10 -36
- package/src/components/chat/embeddable-chat.tsx +66 -173
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
- package/src/components/chat/entity-cards/data-room-doc-card.tsx +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +51 -66
- package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
- package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
- package/src/components/chat/index.ts +3 -1
- package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
- package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
- package/src/components/chat/source-action-button.tsx +57 -33
- package/src/components/chat/types/component.types.ts +1 -1
- package/src/components/chat/types/entities/data-room-doc.ts +0 -12
- package/src/components/chat/types/message.types.ts +1 -1
- package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
- package/src/components/chat/utils/decide-new-tab.ts +0 -3
- package/src/components/chat/utils/execute-navigation.ts +58 -58
- package/src/components/chat/utils/index.ts +13 -6
- package/src/components/chat/utils/nav-anchor-props.ts +56 -9
- package/src/components/chat/utils/new-tab-rel.ts +39 -0
- package/src/components/chat/utils/source-row-cta.ts +21 -102
- package/src/components/features/devices/devices-table-columns.tsx +4 -1
- package/src/components/navigation/app-header.tsx +0 -5
- package/src/components/navigation/ticket-alerts-button.tsx +7 -8
- package/src/components/related-content/card-registry.tsx +1 -1
- package/src/components/related-content/related-content-section.tsx +10 -10
- package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
- package/src/components/shared/doc-search/use-doc-search.ts +21 -44
- package/src/components/shared/product-release/product-release-card.tsx +4 -4
- package/src/components/shared/product-release/product-releases-view.tsx +2 -5
- package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
- package/src/components/tickets/types.ts +1 -1
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/hover-dropdown.tsx +2 -2
- package/src/components/ui/service-card.tsx +4 -1
- package/src/components/vendor-display-button.tsx +5 -2
- package/src/contexts/chat-runtime-context.tsx +18 -23
- package/src/hooks/use-contact-submission.ts +13 -8
- package/src/utils/index.ts +1 -1
- package/src/utils/open-in-new-tab.ts +4 -2
- package/src/utils/scroll-into-view.ts +1 -1
- package/src/utils/source-grouping.ts +2 -2
- package/dist/chunk-RD66AGUI.cjs +0 -156
- package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
- package/dist/components/chat/inline-app-link-chip.js +0 -37
|
@@ -257,16 +257,15 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
|
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
|
|
260
|
-
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
261
260
|
|
|
262
261
|
|
|
263
|
-
var
|
|
262
|
+
var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
|
|
264
263
|
|
|
265
264
|
|
|
266
|
-
var
|
|
265
|
+
var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
|
|
267
266
|
|
|
268
267
|
|
|
269
|
-
var
|
|
268
|
+
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
270
269
|
|
|
271
270
|
|
|
272
271
|
var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
@@ -301,11 +300,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
301
300
|
|
|
302
301
|
|
|
303
302
|
|
|
303
|
+
var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
|
|
304
304
|
|
|
305
305
|
|
|
306
306
|
|
|
307
|
-
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
308
|
-
|
|
309
307
|
|
|
310
308
|
|
|
311
309
|
|
|
@@ -327,27 +325,28 @@ var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
|
327
325
|
|
|
328
326
|
|
|
329
327
|
|
|
328
|
+
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
330
329
|
|
|
331
330
|
|
|
331
|
+
var _chunk25HBH4J6cjs = require('./chunk-25HBH4J6.cjs');
|
|
332
332
|
|
|
333
333
|
|
|
334
334
|
|
|
335
335
|
|
|
336
|
-
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
337
336
|
|
|
338
337
|
|
|
339
|
-
var _chunk25HBH4J6cjs = require('./chunk-25HBH4J6.cjs');
|
|
340
338
|
|
|
339
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
341
340
|
|
|
342
341
|
|
|
342
|
+
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
343
343
|
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
348
347
|
|
|
349
348
|
|
|
350
|
-
var
|
|
349
|
+
var _chunkDVHSYPDBcjs = require('./chunk-DVHSYPDB.cjs');
|
|
351
350
|
|
|
352
351
|
|
|
353
352
|
var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
|
|
@@ -691,14 +690,14 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
691
690
|
for (const section of sectionIds) {
|
|
692
691
|
sectionIdMap.set(section.title, section.id);
|
|
693
692
|
sectionIdMap.set(section.title.toLowerCase(), section.id);
|
|
694
|
-
sectionIdMap.set(
|
|
693
|
+
sectionIdMap.set(_chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
|
|
695
694
|
}
|
|
696
695
|
}
|
|
697
|
-
const dedupe =
|
|
696
|
+
const dedupe = _chunkA34UNP5Vcjs.createHeadingIdDeduper.call(void 0, );
|
|
698
697
|
const map = /* @__PURE__ */ new Map();
|
|
699
698
|
let sectionOrdinal = 0;
|
|
700
699
|
let headingOrdinal = 0;
|
|
701
|
-
for (const { line, level, text: rawText } of
|
|
700
|
+
for (const { line, level, text: rawText } of _chunkA34UNP5Vcjs.scanHeadings.call(void 0, content)) {
|
|
702
701
|
const text2 = stripInlineMarkdown(rawText).trim();
|
|
703
702
|
headingOrdinal++;
|
|
704
703
|
if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
|
|
@@ -707,8 +706,8 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
707
706
|
for (const variation of [
|
|
708
707
|
text2,
|
|
709
708
|
text2.toLowerCase(),
|
|
710
|
-
|
|
711
|
-
|
|
709
|
+
_chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, text2),
|
|
710
|
+
_chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
|
|
712
711
|
]) {
|
|
713
712
|
const id = sectionIdMap.get(variation);
|
|
714
713
|
if (id) {
|
|
@@ -718,7 +717,7 @@ function buildHeadingIdMap(content, sectionIds) {
|
|
|
718
717
|
}
|
|
719
718
|
}
|
|
720
719
|
if (assigned === void 0) {
|
|
721
|
-
const baseId =
|
|
720
|
+
const baseId = _chunkA34UNP5Vcjs.slugifyHeadingText.call(void 0, text2);
|
|
722
721
|
assigned = dedupe(
|
|
723
722
|
baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
|
|
724
723
|
);
|
|
@@ -1333,7 +1332,7 @@ function buildBaseComponents({
|
|
|
1333
1332
|
const mapped = useHeadingId(node);
|
|
1334
1333
|
const taken = useAssignedHeadingIds();
|
|
1335
1334
|
const explicit = typeof _optionalChain([node, 'optionalAccess', _27 => _27.properties, 'optionalAccess', _28 => _28.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
|
|
1336
|
-
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(
|
|
1335
|
+
const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkA34UNP5Vcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
|
|
1337
1336
|
const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
|
|
1338
1337
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
|
|
1339
1338
|
}
|
|
@@ -1405,10 +1404,10 @@ function buildBaseComponents({
|
|
|
1405
1404
|
const handleAnchorClick = (e) => {
|
|
1406
1405
|
if (inPageAnchorId === null) return;
|
|
1407
1406
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
|
|
1408
|
-
const target =
|
|
1407
|
+
const target = _chunkA34UNP5Vcjs.getHashTargetElement.call(void 0, inPageAnchorId);
|
|
1409
1408
|
if (!_optionalChain([target, 'optionalAccess', _29 => _29.id])) return;
|
|
1410
1409
|
e.preventDefault();
|
|
1411
|
-
|
|
1410
|
+
_chunkA34UNP5Vcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkA34UNP5Vcjs.HUB_HEADER_OFFSET_PX });
|
|
1412
1411
|
};
|
|
1413
1412
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1414
1413
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -2017,7 +2016,7 @@ function findInlineCodeRanges(source) {
|
|
|
2017
2016
|
while (pos <= len) {
|
|
2018
2017
|
let end = source.indexOf("\n", pos);
|
|
2019
2018
|
if (end === -1) end = len;
|
|
2020
|
-
const blank =
|
|
2019
|
+
const blank = _chunkA34UNP5Vcjs.isBlankLine.call(void 0, source.slice(pos, end));
|
|
2021
2020
|
if (blank && segStart !== -1) break;
|
|
2022
2021
|
if (!blank) {
|
|
2023
2022
|
if (segStart === -1) segStart = pos;
|
|
@@ -2099,7 +2098,7 @@ function toMaskLines(source) {
|
|
|
2099
2098
|
return out;
|
|
2100
2099
|
}
|
|
2101
2100
|
function blankFencedRegions(masked, lines) {
|
|
2102
|
-
const fences =
|
|
2101
|
+
const fences = _chunkA34UNP5Vcjs.createFenceTracker.call(void 0, );
|
|
2103
2102
|
const ranges = [];
|
|
2104
2103
|
let openStart = null;
|
|
2105
2104
|
let lastEnd = 0;
|
|
@@ -2138,7 +2137,7 @@ function blankIndentedCode(masked, lines) {
|
|
|
2138
2137
|
const listContentCols = [];
|
|
2139
2138
|
const ranges = [];
|
|
2140
2139
|
for (const line of lines) {
|
|
2141
|
-
if (
|
|
2140
|
+
if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line.content)) continue;
|
|
2142
2141
|
const indent = leadingIndent(line.content);
|
|
2143
2142
|
const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
|
|
2144
2143
|
if (indent >= top + 4) {
|
|
@@ -2229,7 +2228,7 @@ function contPrefixLen(c) {
|
|
|
2229
2228
|
function findLabelClose(lines, i, from) {
|
|
2230
2229
|
for (let j = i; j < lines.length; j++) {
|
|
2231
2230
|
const c = stripCr(lines[j].content);
|
|
2232
|
-
if (j > i &&
|
|
2231
|
+
if (j > i && _chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
|
|
2233
2232
|
for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
|
|
2234
2233
|
if (c[q] === "[") return { stoppedAt: j };
|
|
2235
2234
|
if (c[q] !== "]") continue;
|
|
@@ -2247,7 +2246,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2247
2246
|
let k = from;
|
|
2248
2247
|
for (; k < lines.length; k++) {
|
|
2249
2248
|
const c = stripCr(lines[k].content);
|
|
2250
|
-
if (
|
|
2249
|
+
if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) break;
|
|
2251
2250
|
blankLine(lines[k]);
|
|
2252
2251
|
if (stop(c)) {
|
|
2253
2252
|
k++;
|
|
@@ -2290,7 +2289,7 @@ function blankLinkDefinitions(masked, lines) {
|
|
|
2290
2289
|
const k = j + 1;
|
|
2291
2290
|
if (k >= lines.length) break;
|
|
2292
2291
|
const c = stripCr(lines[k].content);
|
|
2293
|
-
if (
|
|
2292
|
+
if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) break;
|
|
2294
2293
|
const at = contPrefixLen(c);
|
|
2295
2294
|
const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
|
|
2296
2295
|
if (next.k === "decline") break;
|
|
@@ -2360,7 +2359,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
|
|
|
2360
2359
|
let sawBlank = false;
|
|
2361
2360
|
for (let k = i + 1; k < lines.length; k++) {
|
|
2362
2361
|
const c = text2(lines[k]);
|
|
2363
|
-
if (
|
|
2362
|
+
if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) {
|
|
2364
2363
|
sawBlank = true;
|
|
2365
2364
|
continue;
|
|
2366
2365
|
}
|
|
@@ -2460,7 +2459,7 @@ function paragraphEnd(s, from) {
|
|
|
2460
2459
|
lineStart += 1;
|
|
2461
2460
|
const next = s.indexOf("\n", lineStart);
|
|
2462
2461
|
const line = s.slice(lineStart, next === -1 ? s.length : next);
|
|
2463
|
-
if (
|
|
2462
|
+
if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line)) return lineStart;
|
|
2464
2463
|
if (next === -1) break;
|
|
2465
2464
|
lineStart = next;
|
|
2466
2465
|
}
|
|
@@ -2614,7 +2613,7 @@ function blankListItemCode(masked, lines, depth = 0) {
|
|
|
2614
2613
|
run = [];
|
|
2615
2614
|
};
|
|
2616
2615
|
for (const line of lines) {
|
|
2617
|
-
if (
|
|
2616
|
+
if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line.content)) {
|
|
2618
2617
|
if (run.length > 0) run.push({ ...line, content: "" });
|
|
2619
2618
|
continue;
|
|
2620
2619
|
}
|
|
@@ -2839,7 +2838,7 @@ function htmlBlockStartKind(line, inParagraph) {
|
|
|
2839
2838
|
function computeHtmlBlockRanges(text2) {
|
|
2840
2839
|
if (text2.indexOf("<") === -1) return [];
|
|
2841
2840
|
const ranges = [];
|
|
2842
|
-
const fences =
|
|
2841
|
+
const fences = _chunkA34UNP5Vcjs.createFenceTracker.call(void 0, );
|
|
2843
2842
|
let kind = null;
|
|
2844
2843
|
let start = 0;
|
|
2845
2844
|
let lastEnd = 0;
|
|
@@ -2854,9 +2853,9 @@ function computeHtmlBlockRanges(text2) {
|
|
|
2854
2853
|
const expanded = expandTabs(line);
|
|
2855
2854
|
const norm = stripContainerPrefix(expanded, listContentCol);
|
|
2856
2855
|
if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
|
|
2857
|
-
else if (!
|
|
2858
|
-
const normBlank =
|
|
2859
|
-
const blank = openPrefixLen > 0 ?
|
|
2856
|
+
else if (!_chunkA34UNP5Vcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
|
|
2857
|
+
const normBlank = _chunkA34UNP5Vcjs.isBlankLine.call(void 0, norm.text);
|
|
2858
|
+
const blank = openPrefixLen > 0 ? _chunkA34UNP5Vcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkA34UNP5Vcjs.isBlankLine.call(void 0, line);
|
|
2860
2859
|
if (kind !== null) {
|
|
2861
2860
|
if (kind >= 6) {
|
|
2862
2861
|
if (blank) {
|
|
@@ -3010,7 +3009,7 @@ var ScanState = class {
|
|
|
3010
3009
|
* `FENCE_RE` plus its own open/close state machine, cross-referenced by a
|
|
3011
3010
|
* comment) is precisely the drift that produced the `~~~` bug.
|
|
3012
3011
|
*/
|
|
3013
|
-
this.fences =
|
|
3012
|
+
this.fences = _chunkA34UNP5Vcjs.createFenceTracker.call(void 0, );
|
|
3014
3013
|
/** Depth of currently open raw HTML block containers. */
|
|
3015
3014
|
this.htmlDepth = 0;
|
|
3016
3015
|
/** Raw-block tag name of a start tag still waiting for its `>`, or null. */
|
|
@@ -3083,7 +3082,7 @@ function splitStreamingBlocks(content) {
|
|
|
3083
3082
|
const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
|
|
3084
3083
|
const firstNonBlank = (arr) => {
|
|
3085
3084
|
for (const line of arr) {
|
|
3086
|
-
if (!
|
|
3085
|
+
if (!_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line)) return line;
|
|
3087
3086
|
}
|
|
3088
3087
|
return void 0;
|
|
3089
3088
|
};
|
|
@@ -3093,10 +3092,10 @@ function splitStreamingBlocks(content) {
|
|
|
3093
3092
|
state.scanLine(line);
|
|
3094
3093
|
if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
|
|
3095
3094
|
current.push(line);
|
|
3096
|
-
const isBlank =
|
|
3095
|
+
const isBlank = _chunkA34UNP5Vcjs.isBlankLine.call(void 0, line);
|
|
3097
3096
|
if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
|
|
3098
3097
|
let j = i + 1;
|
|
3099
|
-
while (j < lines.length &&
|
|
3098
|
+
while (j < lines.length && _chunkA34UNP5Vcjs.isBlankLine.call(void 0, lines[j])) j++;
|
|
3100
3099
|
if (j >= lines.length) continue;
|
|
3101
3100
|
const next = lines[j];
|
|
3102
3101
|
if (/^\s/.test(next)) continue;
|
|
@@ -3104,7 +3103,7 @@ function splitStreamingBlocks(content) {
|
|
|
3104
3103
|
if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
|
|
3105
3104
|
continue;
|
|
3106
3105
|
}
|
|
3107
|
-
if (current.every(
|
|
3106
|
+
if (current.every(_chunkA34UNP5Vcjs.isBlankLine)) continue;
|
|
3108
3107
|
units.push(current);
|
|
3109
3108
|
unitTouchedHtml.push(currentTouchedHtml);
|
|
3110
3109
|
current = [];
|
|
@@ -4075,7 +4074,7 @@ function renderQuickActionIcon(icon) {
|
|
|
4075
4074
|
if (!spec.name && !spec.url) return void 0;
|
|
4076
4075
|
const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
|
|
4077
4076
|
const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
|
|
4078
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4077
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
|
|
4079
4078
|
}
|
|
4080
4079
|
function composeChipLabel(label, lozenge) {
|
|
4081
4080
|
if (!lozenge) return label;
|
|
@@ -5069,12 +5068,7 @@ function ChatContextChipStrip({
|
|
|
5069
5068
|
);
|
|
5070
5069
|
}
|
|
5071
5070
|
|
|
5072
|
-
// src/components/chat/
|
|
5073
|
-
function BlockCard(_props) {
|
|
5074
|
-
return null;
|
|
5075
|
-
}
|
|
5076
|
-
|
|
5077
|
-
// src/components/chat/inline-app-link-chip.tsx
|
|
5071
|
+
// src/components/chat/inline-chip.tsx
|
|
5078
5072
|
|
|
5079
5073
|
var INLINE_CHIP_CLASS = "max-w-[16rem] align-middle [&_svg]:size-4 [&_svg]:text-ods-text-secondary hover:border-ods-border";
|
|
5080
5074
|
function InlineChip({
|
|
@@ -5091,17 +5085,15 @@ function InlineChip({
|
|
|
5091
5085
|
icon,
|
|
5092
5086
|
label,
|
|
5093
5087
|
loading,
|
|
5094
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, INLINE_CHIP_CLASS, className)
|
|
5088
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, INLINE_CHIP_CLASS, className),
|
|
5089
|
+
"data-testid": "inline-chip"
|
|
5095
5090
|
}
|
|
5096
5091
|
);
|
|
5097
5092
|
}
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
}) {
|
|
5103
|
-
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineChip, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRD4RFX3Kcjs.BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" });
|
|
5104
|
-
return Anchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor, { href, className: "no-underline", children: chip }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: "no-underline", children: chip });
|
|
5093
|
+
|
|
5094
|
+
// src/components/chat/entity-cards/block-card.tsx
|
|
5095
|
+
function BlockCard(_props) {
|
|
5096
|
+
return null;
|
|
5105
5097
|
}
|
|
5106
5098
|
|
|
5107
5099
|
// src/components/chat/remark-card-links.ts
|
|
@@ -5302,6 +5294,22 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
|
|
|
5302
5294
|
// src/components/chat/chat-message-enhanced.tsx
|
|
5303
5295
|
|
|
5304
5296
|
|
|
5297
|
+
// src/components/chat/chat-markdown-link.tsx
|
|
5298
|
+
|
|
5299
|
+
function ChatMarkdownLink({
|
|
5300
|
+
anchor: Anchor,
|
|
5301
|
+
href,
|
|
5302
|
+
className,
|
|
5303
|
+
children,
|
|
5304
|
+
...anchorProps
|
|
5305
|
+
}) {
|
|
5306
|
+
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
5307
|
+
if (!runtime || _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, href).isNewTab) {
|
|
5308
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor, { href, className, ...anchorProps, children });
|
|
5309
|
+
}
|
|
5310
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor, { 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" }) });
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5305
5313
|
// src/components/chat/chat-message-layout.ts
|
|
5306
5314
|
var CHAT_MESSAGE_ROW_PADDING_CLASS = {
|
|
5307
5315
|
[_chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
|
|
@@ -5435,9 +5443,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5435
5443
|
/* @__PURE__ */ new Map()
|
|
5436
5444
|
);
|
|
5437
5445
|
const refByKey = _react.useMemo.call(void 0, () => {
|
|
5438
|
-
const
|
|
5439
|
-
for (const described of _nullishCoalesce(refs, () => ( [])))
|
|
5440
|
-
return
|
|
5446
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
5447
|
+
for (const described of _nullishCoalesce(refs, () => ( []))) byKey.set(`${described.type}:${described.id}`, described);
|
|
5448
|
+
return byKey;
|
|
5441
5449
|
}, [refs]);
|
|
5442
5450
|
const renderingPlan = _react.useMemo.call(void 0, () => {
|
|
5443
5451
|
if (!hasMarkerSupport) return null;
|
|
@@ -5515,7 +5523,6 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5515
5523
|
}, [renderingPlan]);
|
|
5516
5524
|
const renderingPlanRef = _react.useRef.call(void 0, renderingPlan);
|
|
5517
5525
|
renderingPlanRef.current = renderingPlan;
|
|
5518
|
-
const chatRuntime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
5519
5526
|
const cardComponentOverrides = _react.useMemo.call(void 0, () => {
|
|
5520
5527
|
if (!hasMarkerSupport && !hasMentionSupport) return void 0;
|
|
5521
5528
|
return {
|
|
@@ -5546,16 +5553,13 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5546
5553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary opacity-60", children: cardId });
|
|
5547
5554
|
}
|
|
5548
5555
|
}
|
|
5549
|
-
if (typeof href === "string" && !href.startsWith("#") && chatRuntime && !_chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, chatRuntime, href, null)) {
|
|
5550
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineAppLinkChip, { href, anchor: NavLinkAnchor, children });
|
|
5551
|
-
}
|
|
5552
5556
|
if (typeof href === "string" && NavLinkAnchor && !href.startsWith("#")) {
|
|
5553
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5557
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMarkdownLink, { anchor: NavLinkAnchor, href, className: linkClassName, ...rest, children });
|
|
5554
5558
|
}
|
|
5555
5559
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: linkClassName, ...rest, children });
|
|
5556
5560
|
}
|
|
5557
5561
|
};
|
|
5558
|
-
}, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor
|
|
5562
|
+
}, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor]);
|
|
5559
5563
|
const renderSegmentBody = (segIndex, text2, isStreaming) => {
|
|
5560
5564
|
const parts = _optionalChain([renderingPlan, 'optionalAccess', _99 => _99.partsBySegment, 'access', _100 => _100.get, 'call', _101 => _101(segIndex)]);
|
|
5561
5565
|
if (!parts || parts.length === 0) {
|
|
@@ -6453,178 +6457,6 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
6453
6457
|
);
|
|
6454
6458
|
ChatMessageList.displayName = "ChatMessageList";
|
|
6455
6459
|
|
|
6456
|
-
// src/platform-domains.ts
|
|
6457
|
-
var PLATFORM_DOMAINS = [
|
|
6458
|
-
{ key: "marketing-hub", defaultUrl: "https://marketing-hub.flamingo.so", envVar: "NEXT_PUBLIC_MARKETING_HUB_URL" },
|
|
6459
|
-
{ key: "company-hub", defaultUrl: "https://company-hub.flamingo.so", envVar: "NEXT_PUBLIC_COMPANY_HUB_URL" },
|
|
6460
|
-
{ key: "product-hub", defaultUrl: "https://product-hub.flamingo.so", envVar: "NEXT_PUBLIC_PRODUCT_HUB_URL" },
|
|
6461
|
-
{ key: "revenue-hub", defaultUrl: "https://revenue-hub.flamingo.so", envVar: "NEXT_PUBLIC_REVENUE_HUB_URL" },
|
|
6462
|
-
{ key: "people-hub", defaultUrl: "https://people-hub.flamingo.so", envVar: "NEXT_PUBLIC_PEOPLE_HUB_URL" },
|
|
6463
|
-
{ key: "coding-hub", defaultUrl: "https://coding-hub.flamingo.so", envVar: "NEXT_PUBLIC_CODING_HUB_URL" },
|
|
6464
|
-
{ key: "openmsp", defaultUrl: "https://www.openmsp.ai", envVar: "NEXT_PUBLIC_OPENMSP_URL" },
|
|
6465
|
-
// ORDERING INVARIANT (first-wins, load-bearing): `flamingo` MUST precede `universal`.
|
|
6466
|
-
// Both resolve to www.flamingo.run; the reverse index is first-wins → flamingo claims the shared host,
|
|
6467
|
-
// universal contributes no unique host. `flamingo.cx` is the company's older domain: it maps to flamingo.
|
|
6468
|
-
// ⚠️ DO NOT REORDER — enforced by the module-load self-check at the bottom of this file.
|
|
6469
|
-
{
|
|
6470
|
-
key: "flamingo",
|
|
6471
|
-
defaultUrl: "https://www.flamingo.run",
|
|
6472
|
-
envVar: "NEXT_PUBLIC_FLAMINGO_URL",
|
|
6473
|
-
aliasHostnames: ["flamingo.cx", "www.flamingo.cx"]
|
|
6474
|
-
},
|
|
6475
|
-
{ key: "tmcg", defaultUrl: "https://www.tmcg.miami", envVar: "NEXT_PUBLIC_TMCG_URL" },
|
|
6476
|
-
{ key: "mlg", defaultUrl: "https://www.mlg.soccer", envVar: "NEXT_PUBLIC_MLG_URL" },
|
|
6477
|
-
{
|
|
6478
|
-
key: "openframe",
|
|
6479
|
-
defaultUrl: "https://openframe.ai",
|
|
6480
|
-
envVar: "NEXT_PUBLIC_OPENFRAME_URL",
|
|
6481
|
-
aliasHostnames: ["openframe.ai", "www.openframe.ai", "hub.openframe.ai"]
|
|
6482
|
-
},
|
|
6483
|
-
{
|
|
6484
|
-
key: "openframe-dashboard",
|
|
6485
|
-
defaultUrl: "https://openframe.ai",
|
|
6486
|
-
envVar: "NEXT_PUBLIC_OPENFRAME_DASHBOARD_URL",
|
|
6487
|
-
pseudo: true
|
|
6488
|
-
},
|
|
6489
|
-
{ key: "universal", defaultUrl: "https://www.flamingo.run", envVar: "NEXT_PUBLIC_FLAMINGO_URL" }
|
|
6490
|
-
];
|
|
6491
|
-
var ENV_OVERRIDES = {
|
|
6492
|
-
NEXT_PUBLIC_MARKETING_HUB_URL: process.env.NEXT_PUBLIC_MARKETING_HUB_URL,
|
|
6493
|
-
NEXT_PUBLIC_COMPANY_HUB_URL: process.env.NEXT_PUBLIC_COMPANY_HUB_URL,
|
|
6494
|
-
NEXT_PUBLIC_PRODUCT_HUB_URL: process.env.NEXT_PUBLIC_PRODUCT_HUB_URL,
|
|
6495
|
-
NEXT_PUBLIC_REVENUE_HUB_URL: process.env.NEXT_PUBLIC_REVENUE_HUB_URL,
|
|
6496
|
-
NEXT_PUBLIC_PEOPLE_HUB_URL: process.env.NEXT_PUBLIC_PEOPLE_HUB_URL,
|
|
6497
|
-
NEXT_PUBLIC_CODING_HUB_URL: process.env.NEXT_PUBLIC_CODING_HUB_URL,
|
|
6498
|
-
NEXT_PUBLIC_OPENMSP_URL: process.env.NEXT_PUBLIC_OPENMSP_URL,
|
|
6499
|
-
NEXT_PUBLIC_FLAMINGO_URL: process.env.NEXT_PUBLIC_FLAMINGO_URL,
|
|
6500
|
-
NEXT_PUBLIC_TMCG_URL: process.env.NEXT_PUBLIC_TMCG_URL,
|
|
6501
|
-
NEXT_PUBLIC_MLG_URL: process.env.NEXT_PUBLIC_MLG_URL,
|
|
6502
|
-
NEXT_PUBLIC_OPENFRAME_URL: process.env.NEXT_PUBLIC_OPENFRAME_URL,
|
|
6503
|
-
NEXT_PUBLIC_OPENFRAME_DASHBOARD_URL: process.env.NEXT_PUBLIC_OPENFRAME_DASHBOARD_URL
|
|
6504
|
-
};
|
|
6505
|
-
function byKey(key) {
|
|
6506
|
-
return PLATFORM_DOMAINS.find((e) => e.key === key);
|
|
6507
|
-
}
|
|
6508
|
-
function envOverrideFor(key) {
|
|
6509
|
-
const envVar = _optionalChain([byKey, 'call', _125 => _125(key), 'optionalAccess', _126 => _126.envVar]);
|
|
6510
|
-
if (!envVar) return null;
|
|
6511
|
-
return ENV_OVERRIDES[envVar] || null;
|
|
6512
|
-
}
|
|
6513
|
-
function ensureScheme(url) {
|
|
6514
|
-
const trimmed = url.trim();
|
|
6515
|
-
if (/^[a-z][a-z0-9+.-]*:\/\//i.test(trimmed)) return trimmed;
|
|
6516
|
-
return `https://${trimmed.replace(/^\/+/, "")}`;
|
|
6517
|
-
}
|
|
6518
|
-
function getPlatformProductionUrl(platform) {
|
|
6519
|
-
const resolved = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(envOverrideFor(platform), () => ( _optionalChain([byKey, 'call', _127 => _127(platform), 'optionalAccess', _128 => _128.defaultUrl]))), () => ( envOverrideFor("flamingo"))), () => ( "https://www.flamingo.run"));
|
|
6520
|
-
return ensureScheme(resolved);
|
|
6521
|
-
}
|
|
6522
|
-
function getPlatformUrl(platform, options = {}) {
|
|
6523
|
-
const url = options.environment !== "production" && process.env.NODE_ENV !== "production" ? process.env.NEXT_PUBLIC_DEV_URL || "http://localhost:3000" : getPlatformProductionUrl(platform);
|
|
6524
|
-
return url.replace(/\/+$/, "");
|
|
6525
|
-
}
|
|
6526
|
-
function getDeploymentUrl(options) {
|
|
6527
|
-
if (typeof window !== "undefined") return window.location.origin;
|
|
6528
|
-
const configured = _optionalChain([options, 'access', _129 => _129.configuredUrl, 'optionalAccess', _130 => _130.trim, 'call', _131 => _131()]);
|
|
6529
|
-
if (configured) return ensureScheme(configured).replace(/\/+$/, "");
|
|
6530
|
-
if (process.env.VERCEL_ENV === "preview" && process.env.VERCEL_URL) {
|
|
6531
|
-
return ensureScheme(process.env.VERCEL_URL).replace(/\/+$/, "");
|
|
6532
|
-
}
|
|
6533
|
-
if (process.env.VERCEL_ENV === "production" || process.env.NODE_ENV === "production") {
|
|
6534
|
-
return getPlatformUrl(options.platform, { environment: "production" });
|
|
6535
|
-
}
|
|
6536
|
-
return (process.env.NEXT_PUBLIC_DEV_URL || `http://localhost:${_nullishCoalesce(process.env.PORT, () => ( 3e3))}`).replace(/\/+$/, "");
|
|
6537
|
-
}
|
|
6538
|
-
var LOCAL_HOSTNAME = /^(localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\])$/i;
|
|
6539
|
-
function isLocalUrl(url) {
|
|
6540
|
-
try {
|
|
6541
|
-
return LOCAL_HOSTNAME.test(new URL(url).hostname);
|
|
6542
|
-
} catch (e3) {
|
|
6543
|
-
return false;
|
|
6544
|
-
}
|
|
6545
|
-
}
|
|
6546
|
-
function getRequestOrigin(headers, options) {
|
|
6547
|
-
const host = headers.get("host");
|
|
6548
|
-
if (!host) return getDeploymentUrl(options);
|
|
6549
|
-
const local = LOCAL_HOSTNAME.test(host.replace(/:\d+$/, ""));
|
|
6550
|
-
const proto = _optionalChain([headers, 'access', _132 => _132.get, 'call', _133 => _133("x-forwarded-proto"), 'optionalAccess', _134 => _134.split, 'call', _135 => _135(","), 'access', _136 => _136[0], 'access', _137 => _137.trim, 'call', _138 => _138()]) || (local ? "http" : "https");
|
|
6551
|
-
return `${proto}://${host}`;
|
|
6552
|
-
}
|
|
6553
|
-
function resolveRedirectTarget(origin, target) {
|
|
6554
|
-
const url = new URL(target, origin);
|
|
6555
|
-
if (!/^https?:\/\//i.test(target) && url.origin !== new URL(origin).origin) {
|
|
6556
|
-
throw new Error(`resolveRedirectTarget: "${target}" is not a same-origin path`);
|
|
6557
|
-
}
|
|
6558
|
-
return url;
|
|
6559
|
-
}
|
|
6560
|
-
function hostOf(value) {
|
|
6561
|
-
if (!value) return null;
|
|
6562
|
-
try {
|
|
6563
|
-
return new URL(value).hostname.toLowerCase();
|
|
6564
|
-
} catch (e4) {
|
|
6565
|
-
return null;
|
|
6566
|
-
}
|
|
6567
|
-
}
|
|
6568
|
-
function expandWwwApex(host) {
|
|
6569
|
-
if (host.startsWith("www.")) return [host, host.slice(4)];
|
|
6570
|
-
if (host.split(".").length === 2) return [host, `www.${host}`];
|
|
6571
|
-
return [host];
|
|
6572
|
-
}
|
|
6573
|
-
function toRegistrableBaseDomain(host) {
|
|
6574
|
-
const parts = host.split(".");
|
|
6575
|
-
if (parts.length >= 2) return parts.slice(-2).join(".");
|
|
6576
|
-
return void 0;
|
|
6577
|
-
}
|
|
6578
|
-
function aliasHostsOf(key) {
|
|
6579
|
-
return _nullishCoalesce(_optionalChain([byKey, 'call', _139 => _139(key), 'optionalAccess', _140 => _140.aliasHostnames]), () => ( []));
|
|
6580
|
-
}
|
|
6581
|
-
function hostsForEntry(entry, opts) {
|
|
6582
|
-
const resolved = hostOf(getPlatformProductionUrl(entry.key));
|
|
6583
|
-
const hosts = resolved ? expandWwwApex(resolved) : [];
|
|
6584
|
-
if (opts.includeAliases) hosts.push(...aliasHostsOf(entry.key));
|
|
6585
|
-
return hosts;
|
|
6586
|
-
}
|
|
6587
|
-
function getPlatformByHostname(hostname) {
|
|
6588
|
-
const host = hostname.toLowerCase();
|
|
6589
|
-
for (const entry of PLATFORM_DOMAINS) {
|
|
6590
|
-
if (entry.pseudo) continue;
|
|
6591
|
-
if (hostsForEntry(entry, { includeAliases: true }).includes(host)) return entry.key;
|
|
6592
|
-
}
|
|
6593
|
-
return null;
|
|
6594
|
-
}
|
|
6595
|
-
function isPreviewHost(hostname) {
|
|
6596
|
-
return hostname.endsWith(".vercel.app");
|
|
6597
|
-
}
|
|
6598
|
-
function getAllPlatformBaseDomains() {
|
|
6599
|
-
if (typeof window === "undefined") return [];
|
|
6600
|
-
const hostname = window.location.hostname;
|
|
6601
|
-
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("127.")) {
|
|
6602
|
-
return [];
|
|
6603
|
-
}
|
|
6604
|
-
const previewEnv = process.env.VERCEL_ENV === "preview" || process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" || isPreviewHost(hostname);
|
|
6605
|
-
if (previewEnv) {
|
|
6606
|
-
return [".vercel.app", "vercel.app"];
|
|
6607
|
-
}
|
|
6608
|
-
const baseDomains = /* @__PURE__ */ new Set();
|
|
6609
|
-
for (const entry of PLATFORM_DOMAINS) {
|
|
6610
|
-
if (entry.pseudo) continue;
|
|
6611
|
-
const host = hostOf(getPlatformProductionUrl(entry.key));
|
|
6612
|
-
if (!host) continue;
|
|
6613
|
-
const base = toRegistrableBaseDomain(host);
|
|
6614
|
-
if (base) {
|
|
6615
|
-
baseDomains.add(`.${base}`);
|
|
6616
|
-
baseDomains.add(base);
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6619
|
-
return Array.from(baseDomains);
|
|
6620
|
-
}
|
|
6621
|
-
var _orderIdx = (k) => PLATFORM_DOMAINS.findIndex((e) => e.key === k);
|
|
6622
|
-
if (_orderIdx("flamingo") > _orderIdx("universal") || getPlatformByHostname("flamingo.cx") !== "flamingo" || getPlatformByHostname("hub.openframe.ai") !== "openframe") {
|
|
6623
|
-
console.error(
|
|
6624
|
-
"[platform-domains] \u26A0\uFE0F PLATFORM_DOMAINS ordering invariant violated \u2014 `flamingo` must precede `universal`, and the openframe and flamingo.cx aliases must be intact. Do not reorder the table."
|
|
6625
|
-
);
|
|
6626
|
-
}
|
|
6627
|
-
|
|
6628
6460
|
// src/utils/design-doc-readiness.ts
|
|
6629
6461
|
var DESIGN_DOC_READINESS = ["ready", "not_ready"];
|
|
6630
6462
|
var DESIGN_DOC_READINESS_DISPLAY = {
|
|
@@ -6872,13 +6704,13 @@ function recordCountLabel(count) {
|
|
|
6872
6704
|
}
|
|
6873
6705
|
function buildGroupedSource(spec) {
|
|
6874
6706
|
const first = spec.rows[0];
|
|
6875
|
-
const externalUrl = _nullishCoalesce(spec.externalUrl, () => ( _optionalChain([first, 'optionalAccess',
|
|
6876
|
-
const targetPlatform = spec.targetPlatform !== void 0 ? spec.targetPlatform : _optionalChain([first, 'optionalAccess',
|
|
6707
|
+
const externalUrl = _nullishCoalesce(spec.externalUrl, () => ( _optionalChain([first, 'optionalAccess', _125 => _125.externalUrl])));
|
|
6708
|
+
const targetPlatform = spec.targetPlatform !== void 0 ? spec.targetPlatform : _optionalChain([first, 'optionalAccess', _126 => _126.targetPlatform]);
|
|
6877
6709
|
return {
|
|
6878
6710
|
index: spec.index,
|
|
6879
6711
|
name: `${getSourceLabel(spec.sourceRepo)} ${recordCountLabel(spec.rows.length)}`,
|
|
6880
|
-
path: _nullishCoalesce(_optionalChain([first, 'optionalAccess',
|
|
6881
|
-
documentType: _nullishCoalesce(_optionalChain([first, 'optionalAccess',
|
|
6712
|
+
path: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _127 => _127.path]), () => ( "")),
|
|
6713
|
+
documentType: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _128 => _128.documentType]), () => ( "")),
|
|
6882
6714
|
...externalUrl ? { externalUrl } : {},
|
|
6883
6715
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
6884
6716
|
sourceRepo: spec.sourceRepo,
|
|
@@ -6946,7 +6778,7 @@ function groupSourcesByTable(sources2) {
|
|
|
6946
6778
|
index: source.index,
|
|
6947
6779
|
sourceRepo: source.sourceRepo,
|
|
6948
6780
|
rows: uniqueRows(members.flatMap(rowsOf)),
|
|
6949
|
-
..._optionalChain([serverChip, 'optionalAccess',
|
|
6781
|
+
..._optionalChain([serverChip, 'optionalAccess', _129 => _129.externalUrl]) ? { externalUrl: serverChip.externalUrl } : {},
|
|
6950
6782
|
...serverChip && serverChip.targetPlatform !== void 0 ? { targetPlatform: serverChip.targetPlatform } : {}
|
|
6951
6783
|
})
|
|
6952
6784
|
);
|
|
@@ -6994,7 +6826,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6994
6826
|
|
|
6995
6827
|
[Attached: ${safeName}](${url})`;
|
|
6996
6828
|
}
|
|
6997
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6829
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkIM366HS6cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6998
6830
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6999
6831
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
7000
6832
|
"gm"
|
|
@@ -7018,7 +6850,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
|
|
|
7018
6850
|
function buildAutoContinuationDirective(toolName, opts = {}) {
|
|
7019
6851
|
const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
|
|
7020
6852
|
const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
|
|
7021
|
-
const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access',
|
|
6853
|
+
const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _130 => _130.status, 'optionalAccess', _131 => _131.toUpperCase, 'call', _132 => _132()]) === "CLOSED";
|
|
7022
6854
|
if (toolName === "create_ticket") {
|
|
7023
6855
|
return `${AUTO_CONTINUATION_DIRECTIVE_PREFIX} The user just approved create_ticket${ticketRef}. Per ticket-protocol \xA71a, ask 2-4 SHORT, issue-specific diagnostic follow-up questions tailored to the symptom they reported in their original message. When they answer, propose an update_ticket with content_addendum carrying a clean Q&A digest. Do NOT call any tool in this turn \u2014 just write the questions as prose.`;
|
|
7024
6856
|
}
|
|
@@ -7080,7 +6912,7 @@ function formatSingularLookupInvocation(cmdId, value) {
|
|
|
7080
6912
|
return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
|
|
7081
6913
|
}
|
|
7082
6914
|
function extractEntityIdFilter(override, expectedTableId) {
|
|
7083
|
-
const f = _optionalChain([override, 'optionalAccess',
|
|
6915
|
+
const f = _optionalChain([override, 'optionalAccess', _133 => _133.entityIdFilter]);
|
|
7084
6916
|
if (!f) return null;
|
|
7085
6917
|
const tableId = typeof f.tableId === "string" ? f.tableId : "";
|
|
7086
6918
|
const id = typeof f.id === "string" ? f.id : "";
|
|
@@ -7244,7 +7076,7 @@ function MarqueeWallFades({
|
|
|
7244
7076
|
}) });
|
|
7245
7077
|
}
|
|
7246
7078
|
function CloneCopy({ className, style, children }) {
|
|
7247
|
-
const ref =
|
|
7079
|
+
const ref = _chunkA34UNP5Vcjs.useSuppressCloneFocus.call(void 0, true);
|
|
7248
7080
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
|
|
7249
7081
|
}
|
|
7250
7082
|
function MarqueeWall({
|
|
@@ -7281,7 +7113,7 @@ function MarqueeWall({
|
|
|
7281
7113
|
if (!container || !copy) return;
|
|
7282
7114
|
const size = axis === "y" ? copy.offsetHeight : copy.offsetWidth;
|
|
7283
7115
|
copySizeRef.current = size;
|
|
7284
|
-
const clone = _optionalChain([trackRef, 'access',
|
|
7116
|
+
const clone = _optionalChain([trackRef, 'access', _134 => _134.current, 'optionalAccess', _135 => _135.querySelector, 'call', _136 => _136('[data-marquee-copy="clone"]')]);
|
|
7285
7117
|
wrapSizeRef.current = clone ? axis === "y" ? clone.offsetTop - copy.offsetTop : clone.offsetLeft - copy.offsetLeft : size + (typeof copyGap === "number" ? copyGap : 0);
|
|
7286
7118
|
const avail = axis === "y" ? container.clientHeight : container.clientWidth;
|
|
7287
7119
|
setOverflows(size > avail + 1);
|
|
@@ -7298,7 +7130,7 @@ function MarqueeWall({
|
|
|
7298
7130
|
ro.observe(copy);
|
|
7299
7131
|
return () => ro.disconnect();
|
|
7300
7132
|
}, [measure, marqueeMounted]);
|
|
7301
|
-
const { ref: observe, inView: nearViewport } =
|
|
7133
|
+
const { ref: observe, inView: nearViewport } = _chunkA34UNP5Vcjs.useInView.call(void 0, {
|
|
7302
7134
|
rootMargin: _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN,
|
|
7303
7135
|
initial: true
|
|
7304
7136
|
});
|
|
@@ -7306,7 +7138,7 @@ function MarqueeWall({
|
|
|
7306
7138
|
observe(containerRef.current);
|
|
7307
7139
|
return () => observe(null);
|
|
7308
7140
|
}, [observe]);
|
|
7309
|
-
const autoplay =
|
|
7141
|
+
const autoplay = _chunkA34UNP5Vcjs.useAutoplay.call(void 0, nearViewport);
|
|
7310
7142
|
const pointerInsideRef = _react.useRef.call(void 0, false);
|
|
7311
7143
|
const clearPointerInside = _react.useCallback.call(void 0, () => {
|
|
7312
7144
|
pointerInsideRef.current = false;
|
|
@@ -7319,7 +7151,7 @@ function MarqueeWall({
|
|
|
7319
7151
|
if (e.pointerType === "touch") return;
|
|
7320
7152
|
pointerInsideRef.current = false;
|
|
7321
7153
|
}, []);
|
|
7322
|
-
|
|
7154
|
+
_chunkA34UNP5Vcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
|
|
7323
7155
|
const draggingRef = _react.useRef.call(void 0, false);
|
|
7324
7156
|
const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
7325
7157
|
const applyTransform = _react.useCallback.call(void 0,
|
|
@@ -7372,7 +7204,7 @@ function MarqueeWall({
|
|
|
7372
7204
|
if (!sync) return void 0;
|
|
7373
7205
|
return sync.register(member);
|
|
7374
7206
|
}, [sync, member]);
|
|
7375
|
-
const { posRef, wrap } =
|
|
7207
|
+
const { posRef, wrap } = _chunkA34UNP5Vcjs.useMarqueeEngine.call(void 0, {
|
|
7376
7208
|
active: marqueeActive && autoplay.playing && isDriver,
|
|
7377
7209
|
speed,
|
|
7378
7210
|
isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
|
|
@@ -7412,8 +7244,8 @@ function MarqueeWall({
|
|
|
7412
7244
|
if (Math.abs(delta) > 3 && !dragMovedRef.current) {
|
|
7413
7245
|
dragMovedRef.current = true;
|
|
7414
7246
|
try {
|
|
7415
|
-
_optionalChain([containerRef, 'access',
|
|
7416
|
-
} catch (
|
|
7247
|
+
_optionalChain([containerRef, 'access', _137 => _137.current, 'optionalAccess', _138 => _138.setPointerCapture, 'call', _139 => _139(e.pointerId)]);
|
|
7248
|
+
} catch (e3) {
|
|
7417
7249
|
}
|
|
7418
7250
|
}
|
|
7419
7251
|
posRef.current = wrap(dragStartRef.current.pos + (reverse ? delta : -delta));
|
|
@@ -7429,8 +7261,8 @@ function MarqueeWall({
|
|
|
7429
7261
|
dragSuppressUntilRef.current = performance.now() + DRAG_RESUME_MS;
|
|
7430
7262
|
if (dragMovedRef.current) {
|
|
7431
7263
|
try {
|
|
7432
|
-
_optionalChain([containerRef, 'access',
|
|
7433
|
-
} catch (
|
|
7264
|
+
_optionalChain([containerRef, 'access', _140 => _140.current, 'optionalAccess', _141 => _141.releasePointerCapture, 'call', _142 => _142(e.pointerId)]);
|
|
7265
|
+
} catch (e4) {
|
|
7434
7266
|
}
|
|
7435
7267
|
}
|
|
7436
7268
|
}, []);
|
|
@@ -7787,11 +7619,11 @@ function MingoChatHistoryRow({
|
|
|
7787
7619
|
...props
|
|
7788
7620
|
}) {
|
|
7789
7621
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
|
|
7790
|
-
const title = _optionalChain([dialog, 'optionalAccess',
|
|
7791
|
-
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess',
|
|
7622
|
+
const title = _optionalChain([dialog, 'optionalAccess', _143 => _143.title]) || "Untitled Chat";
|
|
7623
|
+
const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _144 => _144.unreadMessagesCount]), () => ( 0));
|
|
7792
7624
|
const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
|
|
7793
|
-
const owner = _optionalChain([dialog, 'optionalAccess',
|
|
7794
|
-
const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess',
|
|
7625
|
+
const owner = _optionalChain([dialog, 'optionalAccess', _145 => _145.owner]);
|
|
7626
|
+
const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _146 => _146.name]) || _optionalChain([owner, 'optionalAccess', _147 => _147.avatarUrl]));
|
|
7795
7627
|
const [menuOpen, setMenuOpen] = _react.useState.call(void 0, false);
|
|
7796
7628
|
const menuItems = dialog ? chatDialogMenuItems({
|
|
7797
7629
|
onCopyLink: onRequestCopyLink && (() => onRequestCopyLink(dialog)),
|
|
@@ -7799,7 +7631,7 @@ function MingoChatHistoryRow({
|
|
|
7799
7631
|
onCompact: onRequestCompact && (() => onRequestCompact(dialog)),
|
|
7800
7632
|
onArchive: onRequestArchive && (() => onRequestArchive(dialog))
|
|
7801
7633
|
}) : [];
|
|
7802
|
-
const select = () => dialog && _optionalChain([onSelect, 'optionalCall',
|
|
7634
|
+
const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _148 => _148(dialog.id)]);
|
|
7803
7635
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
7804
7636
|
"div",
|
|
7805
7637
|
{
|
|
@@ -7897,7 +7729,7 @@ function MingoChatHistoryRow({
|
|
|
7897
7729
|
"span",
|
|
7898
7730
|
{
|
|
7899
7731
|
onClick: select,
|
|
7900
|
-
title: _optionalChain([owner, 'optionalAccess',
|
|
7732
|
+
title: _optionalChain([owner, 'optionalAccess', _149 => _149.name]) || void 0,
|
|
7901
7733
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
7902
7734
|
"absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
|
|
7903
7735
|
hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
|
|
@@ -7907,9 +7739,9 @@ function MingoChatHistoryRow({
|
|
|
7907
7739
|
{
|
|
7908
7740
|
variant: "round",
|
|
7909
7741
|
sizePx: 24,
|
|
7910
|
-
src: _optionalChain([owner, 'optionalAccess',
|
|
7911
|
-
alt: _optionalChain([owner, 'optionalAccess',
|
|
7912
|
-
fallback: _optionalChain([owner, 'optionalAccess',
|
|
7742
|
+
src: _optionalChain([owner, 'optionalAccess', _150 => _150.avatarUrl]) || void 0,
|
|
7743
|
+
alt: _optionalChain([owner, 'optionalAccess', _151 => _151.name]) || void 0,
|
|
7744
|
+
fallback: _optionalChain([owner, 'optionalAccess', _152 => _152.name]) || void 0,
|
|
7913
7745
|
initialsClassName: "text-[10px] text-ods-text-secondary"
|
|
7914
7746
|
}
|
|
7915
7747
|
)
|
|
@@ -7958,7 +7790,7 @@ function MingoChatHistory({
|
|
|
7958
7790
|
}) {
|
|
7959
7791
|
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
|
|
7960
7792
|
const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
|
|
7961
|
-
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess',
|
|
7793
|
+
const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _153 => _153.trim, 'call', _154 => _154()]);
|
|
7962
7794
|
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
|
|
7963
7795
|
const sentinelRef = _react.useRef.call(void 0, null);
|
|
7964
7796
|
const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
|
|
@@ -7975,7 +7807,7 @@ function MingoChatHistory({
|
|
|
7975
7807
|
const io = new IntersectionObserver(
|
|
7976
7808
|
([entry]) => {
|
|
7977
7809
|
if (entry.isIntersecting && !isLoadingMoreRef.current) {
|
|
7978
|
-
_optionalChain([onLoadMoreRef, 'access',
|
|
7810
|
+
_optionalChain([onLoadMoreRef, 'access', _155 => _155.current, 'optionalCall', _156 => _156()]);
|
|
7979
7811
|
}
|
|
7980
7812
|
},
|
|
7981
7813
|
{ root, rootMargin: "120px", threshold: 0.1 }
|
|
@@ -8068,7 +7900,7 @@ function MingoWelcome({
|
|
|
8068
7900
|
try {
|
|
8069
7901
|
const store = promoStorage === "session" ? window.sessionStorage : window.localStorage;
|
|
8070
7902
|
return store.getItem(promoStorageKey) === "1";
|
|
8071
|
-
} catch (
|
|
7903
|
+
} catch (e5) {
|
|
8072
7904
|
return false;
|
|
8073
7905
|
}
|
|
8074
7906
|
}, [hydrated, resolvedPromo, promoStorage, promoStorageKey]);
|
|
@@ -8078,7 +7910,7 @@ function MingoWelcome({
|
|
|
8078
7910
|
try {
|
|
8079
7911
|
const store = promoStorage === "session" ? window.sessionStorage : window.localStorage;
|
|
8080
7912
|
store.setItem(promoStorageKey, "1");
|
|
8081
|
-
} catch (
|
|
7913
|
+
} catch (e6) {
|
|
8082
7914
|
}
|
|
8083
7915
|
}, [promoStorage, promoStorageKey]);
|
|
8084
7916
|
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
|
|
@@ -8164,8 +7996,8 @@ function MingoWelcome({
|
|
|
8164
7996
|
icon: action.icon,
|
|
8165
7997
|
variant: action.variant,
|
|
8166
7998
|
onSelect: action.onClick,
|
|
8167
|
-
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall',
|
|
8168
|
-
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall',
|
|
7999
|
+
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _157 => _157(action)]),
|
|
8000
|
+
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _158 => _158()])
|
|
8169
8001
|
})),
|
|
8170
8002
|
agentSlug,
|
|
8171
8003
|
rows: 4,
|
|
@@ -8219,9 +8051,9 @@ function GuideWelcome({
|
|
|
8219
8051
|
props: action.iconProps,
|
|
8220
8052
|
accent: _nullishCoalesce(_nullishCoalesce(action.accent, () => ( accentFromIdentityIcon(icon))), () => ( "cyan"))
|
|
8221
8053
|
},
|
|
8222
|
-
onSelect: () => _optionalChain([onQuickAction, 'optionalCall',
|
|
8223
|
-
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall',
|
|
8224
|
-
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall',
|
|
8054
|
+
onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _159 => _159(action)]),
|
|
8055
|
+
onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _160 => _160(action)]),
|
|
8056
|
+
onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _161 => _161()])
|
|
8225
8057
|
})),
|
|
8226
8058
|
[quickActions, icon, onQuickAction, onQuickActionHover, onQuickActionHoverEnd]
|
|
8227
8059
|
);
|
|
@@ -8238,7 +8070,7 @@ function GuideWelcome({
|
|
|
8238
8070
|
icon && (icon.name || icon.url) ? (
|
|
8239
8071
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
8240
8072
|
// match the default Mingo mark (48px).
|
|
8241
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8073
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
8242
8074
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
8243
8075
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
8244
8076
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
@@ -8320,7 +8152,7 @@ function MingoArchiveList({
|
|
|
8320
8152
|
if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
|
|
8321
8153
|
const observer = new IntersectionObserver(
|
|
8322
8154
|
([entry]) => {
|
|
8323
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
8155
|
+
if (_optionalChain([entry, 'optionalAccess', _162 => _162.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _163 => _163.current, 'optionalCall', _164 => _164()]);
|
|
8324
8156
|
},
|
|
8325
8157
|
{ rootMargin: "120px", threshold: 0.1 }
|
|
8326
8158
|
);
|
|
@@ -8340,7 +8172,7 @@ function MingoArchiveList({
|
|
|
8340
8172
|
{
|
|
8341
8173
|
"data-loading-item": true,
|
|
8342
8174
|
title: dialog.title || "Untitled Chat",
|
|
8343
|
-
onClick: () => _optionalChain([onSelectDialog, 'optionalCall',
|
|
8175
|
+
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _165 => _165(dialog.id)]),
|
|
8344
8176
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8345
8177
|
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkOBQ5WUNGcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8346
8178
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8445,7 +8277,7 @@ function ChatHeaderSearchField({
|
|
|
8445
8277
|
className
|
|
8446
8278
|
}) {
|
|
8447
8279
|
const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8448
|
-
const debounced =
|
|
8280
|
+
const debounced = _chunkA34UNP5Vcjs.useDebounce.call(void 0, value, 300);
|
|
8449
8281
|
const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
|
|
8450
8282
|
const [exiting, setExiting] = _react.useState.call(void 0, false);
|
|
8451
8283
|
const collapsedRef = _react.useRef.call(void 0, false);
|
|
@@ -8458,7 +8290,7 @@ function ChatHeaderSearchField({
|
|
|
8458
8290
|
const finishCollapse = _react.useCallback.call(void 0, () => {
|
|
8459
8291
|
if (collapsedRef.current) return;
|
|
8460
8292
|
collapsedRef.current = true;
|
|
8461
|
-
_optionalChain([onCollapse, 'optionalCall',
|
|
8293
|
+
_optionalChain([onCollapse, 'optionalCall', _166 => _166()]);
|
|
8462
8294
|
}, [onCollapse]);
|
|
8463
8295
|
const beginCollapse = _react.useCallback.call(void 0, () => {
|
|
8464
8296
|
setExiting(true);
|
|
@@ -8540,7 +8372,7 @@ var STATUS_GLYPHS = {
|
|
|
8540
8372
|
approval: { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { className: "text-ods-accent" }), label: "Waiting for approval" }
|
|
8541
8373
|
};
|
|
8542
8374
|
function statusFor(dialog, statusOf) {
|
|
8543
|
-
return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall',
|
|
8375
|
+
return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _167 => _167(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
|
|
8544
8376
|
}
|
|
8545
8377
|
function MingoChatRail({
|
|
8546
8378
|
dialogs,
|
|
@@ -8571,8 +8403,8 @@ function MingoChatRail({
|
|
|
8571
8403
|
className
|
|
8572
8404
|
}) {
|
|
8573
8405
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
8574
|
-
const [searchOpen, setSearchOpen] = _react.useState.call(void 0, !!_optionalChain([searchQuery, 'optionalAccess',
|
|
8575
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
8406
|
+
const [searchOpen, setSearchOpen] = _react.useState.call(void 0, !!_optionalChain([searchQuery, 'optionalAccess', _168 => _168.trim, 'call', _169 => _169()]));
|
|
8407
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _170 => _170.trim, 'call', _171 => _171()]);
|
|
8576
8408
|
const items = [];
|
|
8577
8409
|
if (onNewChat) items.push({ id: "new", label: "Start New Chat", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZPN2P7Ucjs.ChatPlusIcon, {}), onClick: onNewChat });
|
|
8578
8410
|
if (onOpenArchive) {
|
|
@@ -8629,7 +8461,7 @@ function MingoChatRail({
|
|
|
8629
8461
|
if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
|
|
8630
8462
|
const observer = new IntersectionObserver(
|
|
8631
8463
|
([entry]) => {
|
|
8632
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
8464
|
+
if (_optionalChain([entry, 'optionalAccess', _172 => _172.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174()]);
|
|
8633
8465
|
},
|
|
8634
8466
|
{ rootMargin: "120px", threshold: 0.1 }
|
|
8635
8467
|
);
|
|
@@ -8744,7 +8576,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
|
|
|
8744
8576
|
{
|
|
8745
8577
|
active,
|
|
8746
8578
|
title,
|
|
8747
|
-
onClick: () => _optionalChain([onSelect, 'optionalCall',
|
|
8579
|
+
onClick: () => _optionalChain([onSelect, 'optionalCall', _175 => _175(dialog.id)]),
|
|
8748
8580
|
className: _chunk63A4GZMBcjs.cn.call(void 0, hasMenu && "pr-10"),
|
|
8749
8581
|
trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8750
8582
|
"span",
|
|
@@ -8875,7 +8707,7 @@ function MingoHistoryRail({
|
|
|
8875
8707
|
className
|
|
8876
8708
|
}) {
|
|
8877
8709
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
|
|
8878
|
-
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess',
|
|
8710
|
+
const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _176 => _176.trim, 'call', _177 => _177()]);
|
|
8879
8711
|
const hasList = dialogs.length > 0 || hasSearch;
|
|
8880
8712
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8881
8713
|
"div",
|
|
@@ -9023,7 +8855,7 @@ function ChatDialogModals({
|
|
|
9023
8855
|
RenameChatModal,
|
|
9024
8856
|
{
|
|
9025
8857
|
isOpen: renameTarget != null,
|
|
9026
|
-
initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess',
|
|
8858
|
+
initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _178 => _178.title]), () => ( "")),
|
|
9027
8859
|
onClose: () => setRenameTarget(null),
|
|
9028
8860
|
onSave: onConfirmRename
|
|
9029
8861
|
}
|
|
@@ -9247,7 +9079,7 @@ function ChatAttachmentAddButton({
|
|
|
9247
9079
|
const canAddMore = slotsAvailable > 0 && !disabled;
|
|
9248
9080
|
const handlePick = () => {
|
|
9249
9081
|
if (!canAddMore) return;
|
|
9250
|
-
_optionalChain([fileInputRef, 'access',
|
|
9082
|
+
_optionalChain([fileInputRef, 'access', _179 => _179.current, 'optionalAccess', _180 => _180.click, 'call', _181 => _181()]);
|
|
9251
9083
|
};
|
|
9252
9084
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9253
9085
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9412,7 +9244,7 @@ function ChatContextMemoryBar({
|
|
|
9412
9244
|
_react.useEffect.call(void 0, () => {
|
|
9413
9245
|
if (!open) return void 0;
|
|
9414
9246
|
const onOutside = (e) => {
|
|
9415
|
-
if (_optionalChain([rootRef, 'access',
|
|
9247
|
+
if (_optionalChain([rootRef, 'access', _182 => _182.current, 'optionalAccess', _183 => _183.contains, 'call', _184 => _184(e.target)])) return;
|
|
9416
9248
|
setOpen(false);
|
|
9417
9249
|
};
|
|
9418
9250
|
document.addEventListener("mousedown", onOutside, true);
|
|
@@ -9721,7 +9553,7 @@ function ChatComposer({
|
|
|
9721
9553
|
const locked = lock != null;
|
|
9722
9554
|
const selected = _nullishCoalesce(selectedContextItems, () => ( []));
|
|
9723
9555
|
const memory = _nullishCoalesce(contextMemoryItems, () => ( []));
|
|
9724
|
-
const entityTypes = _optionalChain([contextPicker, 'optionalAccess',
|
|
9556
|
+
const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _185 => _185.entityTypes]);
|
|
9725
9557
|
const iconByType = _react.useMemo.call(void 0, () => {
|
|
9726
9558
|
const map = /* @__PURE__ */ new Map();
|
|
9727
9559
|
for (const t of _nullishCoalesce(entityTypes, () => ( []))) map.set(t.type, t.icon);
|
|
@@ -9737,7 +9569,7 @@ function ChatComposer({
|
|
|
9737
9569
|
sending,
|
|
9738
9570
|
placeholder,
|
|
9739
9571
|
disabled: locked,
|
|
9740
|
-
disabledPlaceholder: _optionalChain([lock, 'optionalAccess',
|
|
9572
|
+
disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _186 => _186.placeholder]),
|
|
9741
9573
|
previewText,
|
|
9742
9574
|
fullWidth: true,
|
|
9743
9575
|
className: "px-0",
|
|
@@ -9750,7 +9582,7 @@ function ChatComposer({
|
|
|
9750
9582
|
startIcon: contextEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9751
9583
|
ChatComposerPlusMenu,
|
|
9752
9584
|
{
|
|
9753
|
-
onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall',
|
|
9585
|
+
onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _187 => _187()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _188 => _188()]),
|
|
9754
9586
|
open: contextPickerOpen,
|
|
9755
9587
|
disabled: attachmentsDisabled || locked,
|
|
9756
9588
|
dropdown: contextPicker ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -9759,8 +9591,8 @@ function ChatComposer({
|
|
|
9759
9591
|
open: contextPickerOpen,
|
|
9760
9592
|
config: contextPicker,
|
|
9761
9593
|
selectedItems: selected,
|
|
9762
|
-
onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall',
|
|
9763
|
-
onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall',
|
|
9594
|
+
onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _189 => _189(item)]),
|
|
9595
|
+
onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _190 => _190()]),
|
|
9764
9596
|
mentionQuery
|
|
9765
9597
|
}
|
|
9766
9598
|
) : void 0
|
|
@@ -9898,101 +9730,57 @@ function ChatArchivePage(props) {
|
|
|
9898
9730
|
] });
|
|
9899
9731
|
}
|
|
9900
9732
|
|
|
9901
|
-
// src/components/chat/utils/execute-navigation.ts
|
|
9902
|
-
function isForeignOriginHref(href) {
|
|
9903
|
-
return /^https?:\/\//i.test(href) && !_chunkY6MJMPHVcjs.isSameOriginAbsoluteHref.call(void 0, href);
|
|
9904
|
-
}
|
|
9905
|
-
function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
9906
|
-
const isNewTab = runtime ? _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9907
|
-
if (isNewTab) {
|
|
9908
|
-
if (_optionalChain([runtime, 'optionalAccess', _207 => _207.navigation, 'access', _208 => _208.openExternal])) runtime.navigation.openExternal(href);
|
|
9909
|
-
else window.open(href, "_blank", _chunkGAR2IIU6cjs.NEW_TAB_FEATURES);
|
|
9910
|
-
return;
|
|
9911
|
-
}
|
|
9912
|
-
const target = isForeignOriginHref(href) ? href : _chunkGAR2IIU6cjs.stripSameOriginToPath.call(void 0, href);
|
|
9913
|
-
if (target.includes("#") && _chunkCNTBGJA7cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9914
|
-
return;
|
|
9915
|
-
}
|
|
9916
|
-
const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _209 => _209.navigation, 'access', _210 => _210.navigate, 'optionalCall', _211 => _211({ href, path, targetPlatform })]), () => ( false));
|
|
9917
|
-
if (!handled) {
|
|
9918
|
-
if (fallbackNavigate) fallbackNavigate(target);
|
|
9919
|
-
else window.location.assign(target);
|
|
9920
|
-
}
|
|
9921
|
-
}
|
|
9922
|
-
function executeNavigation({
|
|
9923
|
-
event,
|
|
9924
|
-
runtime,
|
|
9925
|
-
href,
|
|
9926
|
-
path,
|
|
9927
|
-
targetPlatform,
|
|
9928
|
-
fallbackNavigate
|
|
9929
|
-
}) {
|
|
9930
|
-
if (!href) {
|
|
9931
|
-
event.preventDefault();
|
|
9932
|
-
return true;
|
|
9933
|
-
}
|
|
9934
|
-
if (event.button !== void 0 && event.button !== 0) return false;
|
|
9935
|
-
if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return false;
|
|
9936
|
-
event.preventDefault();
|
|
9937
|
-
runNavigation(runtime, href, path, targetPlatform, fallbackNavigate);
|
|
9938
|
-
return true;
|
|
9939
|
-
}
|
|
9940
|
-
function executeNavigationImperative({
|
|
9941
|
-
runtime,
|
|
9942
|
-
href,
|
|
9943
|
-
targetPlatform,
|
|
9944
|
-
fallbackNavigate
|
|
9945
|
-
}) {
|
|
9946
|
-
runNavigation(runtime, href, void 0, targetPlatform, fallbackNavigate);
|
|
9947
|
-
}
|
|
9948
|
-
function handleChatNavClick(event, runtime, { href, path, targetPlatform }, fallbackNavigate) {
|
|
9949
|
-
return executeNavigation({ event, runtime, href, path, targetPlatform, fallbackNavigate });
|
|
9950
|
-
}
|
|
9951
|
-
|
|
9952
9733
|
// src/components/chat/nav-link-anchor-via-runtime.tsx
|
|
9953
9734
|
|
|
9735
|
+
|
|
9736
|
+
function useNavLinkTarget(href, targetPlatform, openIn) {
|
|
9737
|
+
return _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ), href, targetPlatform, { openIn });
|
|
9738
|
+
}
|
|
9954
9739
|
function useNavLinkViaRuntime({
|
|
9955
9740
|
href,
|
|
9956
9741
|
path,
|
|
9957
9742
|
targetPlatform,
|
|
9743
|
+
openIn,
|
|
9958
9744
|
onClick: onClickProp
|
|
9959
9745
|
}) {
|
|
9960
9746
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9961
|
-
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9962
9747
|
const panel = useChatPanel();
|
|
9963
|
-
const resolvedHref =
|
|
9964
|
-
|
|
9748
|
+
const { href: resolvedHref, isNewTab } = useNavLinkTarget(_nullishCoalesce(href, () => ( "")), targetPlatform, openIn);
|
|
9749
|
+
if (href == null) return null;
|
|
9965
9750
|
const onClick = (e) => {
|
|
9966
|
-
_optionalChain([onClickProp, 'optionalCall',
|
|
9751
|
+
_optionalChain([onClickProp, 'optionalCall', _191 => _191(e)]);
|
|
9967
9752
|
if (e.defaultPrevented) return;
|
|
9968
|
-
const handled = executeNavigation({
|
|
9969
|
-
|
|
9970
|
-
runtime,
|
|
9971
|
-
href: resolvedHref,
|
|
9972
|
-
path,
|
|
9973
|
-
targetPlatform,
|
|
9974
|
-
fallbackNavigate: router.push
|
|
9975
|
-
});
|
|
9976
|
-
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _213 => _213.closeChat])) panel.closeChat();
|
|
9977
|
-
};
|
|
9978
|
-
const attrs = _chunkY6MJMPHVcjs.newTabAnchorAttrs.call(void 0, isNewTab);
|
|
9979
|
-
return {
|
|
9980
|
-
href: resolvedHref,
|
|
9981
|
-
...attrs,
|
|
9982
|
-
...isNewTab && targetPlatform && { rel: "noopener" },
|
|
9983
|
-
onClick
|
|
9753
|
+
const handled = _chunkA34UNP5Vcjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
|
|
9754
|
+
if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _192 => _192.closeChat])) panel.closeChat();
|
|
9984
9755
|
};
|
|
9756
|
+
return { href: resolvedHref, ..._chunkDVHSYPDBcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
|
|
9757
|
+
}
|
|
9758
|
+
function useNavigateViaRuntime() {
|
|
9759
|
+
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9760
|
+
return _react.useCallback.call(void 0,
|
|
9761
|
+
({ href, path, targetPlatform, openIn, modifierEvent }) => {
|
|
9762
|
+
if (!href) return;
|
|
9763
|
+
if (modifierEvent && _chunkDVHSYPDBcjs.isModifierClick.call(void 0, modifierEvent)) {
|
|
9764
|
+
const button = _nullishCoalesce(modifierEvent.button, () => ( 0));
|
|
9765
|
+
if (button === 0 || button === 1) _chunkA34UNP5Vcjs.executeNewTabNavigation.call(void 0, { runtime, href, targetPlatform });
|
|
9766
|
+
return;
|
|
9767
|
+
}
|
|
9768
|
+
_chunkA34UNP5Vcjs.executeNavigationImperative.call(void 0, { runtime, href, path, targetPlatform, openIn });
|
|
9769
|
+
},
|
|
9770
|
+
[runtime]
|
|
9771
|
+
);
|
|
9985
9772
|
}
|
|
9986
9773
|
function NavLinkAnchorViaRuntime({
|
|
9987
9774
|
href,
|
|
9988
9775
|
path,
|
|
9989
9776
|
targetPlatform,
|
|
9777
|
+
openIn,
|
|
9990
9778
|
className,
|
|
9991
9779
|
children,
|
|
9992
9780
|
onClick,
|
|
9993
9781
|
...anchorAttrs
|
|
9994
9782
|
}) {
|
|
9995
|
-
const linkProps = useNavLinkViaRuntime({ href, path, targetPlatform, onClick });
|
|
9783
|
+
const linkProps = useNavLinkViaRuntime({ href, path, targetPlatform, openIn, onClick });
|
|
9996
9784
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...linkProps, ...anchorAttrs, className, children });
|
|
9997
9785
|
}
|
|
9998
9786
|
|
|
@@ -10020,24 +9808,49 @@ var DENSITY_STYLES = {
|
|
|
10020
9808
|
className: "!h-auto !px-1.5 !py-0.5 text-h6 font-normal text-ods-text-secondary opacity-60 hover:opacity-100 hover:text-ods-text-primary hover:bg-ods-accent/10"
|
|
10021
9809
|
}
|
|
10022
9810
|
};
|
|
10023
|
-
function
|
|
9811
|
+
function FooterAction({
|
|
10024
9812
|
label,
|
|
9813
|
+
icon,
|
|
9814
|
+
trailingIcon,
|
|
10025
9815
|
className,
|
|
10026
9816
|
showLabel = true,
|
|
10027
|
-
size = "small"
|
|
9817
|
+
size = "small",
|
|
9818
|
+
onClick,
|
|
9819
|
+
ariaLabel,
|
|
9820
|
+
ariaExpanded,
|
|
9821
|
+
title,
|
|
9822
|
+
loading
|
|
10028
9823
|
}) {
|
|
10029
|
-
|
|
10030
|
-
|
|
9824
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading) {
|
|
9825
|
+
const mark = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3 w-3 rounded-sm") });
|
|
9826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, inert: true, className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9827
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
9828
|
+
{
|
|
9829
|
+
variant: "transparent",
|
|
9830
|
+
size,
|
|
9831
|
+
tabIndex: -1,
|
|
9832
|
+
leftIcon: showLabel ? mark : void 0,
|
|
9833
|
+
rightIcon: trailingIcon ? mark : void 0,
|
|
9834
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, className, "pointer-events-none"),
|
|
9835
|
+
children: showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextHold, { children: label }) : mark
|
|
9836
|
+
}
|
|
9837
|
+
) });
|
|
9838
|
+
}
|
|
9839
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10031
9840
|
_chunkFCZAUK4Dcjs.Button,
|
|
10032
9841
|
{
|
|
10033
9842
|
variant: "transparent",
|
|
10034
9843
|
size,
|
|
10035
|
-
tabIndex: -1,
|
|
10036
9844
|
leftIcon: showLabel ? icon : void 0,
|
|
10037
|
-
|
|
10038
|
-
|
|
9845
|
+
rightIcon: trailingIcon,
|
|
9846
|
+
onClick,
|
|
9847
|
+
"aria-label": ariaLabel,
|
|
9848
|
+
"aria-expanded": ariaExpanded,
|
|
9849
|
+
title,
|
|
9850
|
+
className,
|
|
9851
|
+
children: showLabel ? label : icon
|
|
10039
9852
|
}
|
|
10040
|
-
)
|
|
9853
|
+
);
|
|
10041
9854
|
}
|
|
10042
9855
|
function SourceActionButton({
|
|
10043
9856
|
chatRef,
|
|
@@ -10048,18 +9861,6 @@ function SourceActionButton({
|
|
|
10048
9861
|
loading
|
|
10049
9862
|
}) {
|
|
10050
9863
|
if (!chatRef || !onDiscuss) return null;
|
|
10051
|
-
if (loading) {
|
|
10052
|
-
const s = DENSITY_STYLES[density];
|
|
10053
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10054
|
-
FooterActionSkeleton,
|
|
10055
|
-
{
|
|
10056
|
-
label,
|
|
10057
|
-
size: s.size,
|
|
10058
|
-
showLabel: s.showLabel,
|
|
10059
|
-
className: `${s.className}${className ? ` ${className}` : ""}`
|
|
10060
|
-
}
|
|
10061
|
-
);
|
|
10062
|
-
}
|
|
10063
9864
|
const isDisplay = label === "Display";
|
|
10064
9865
|
const verbLabel = isDisplay ? `Display ${chatRef.title || "this item"}` : `Ask about ${chatRef.title || "this item"}`;
|
|
10065
9866
|
const handle = (e) => {
|
|
@@ -10071,16 +9872,17 @@ function SourceActionButton({
|
|
|
10071
9872
|
const IconComponent = isDisplay ? _lucidereact.FileText : _lucidereact.MessageSquare;
|
|
10072
9873
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: styles.iconSize });
|
|
10073
9874
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10074
|
-
|
|
9875
|
+
FooterAction,
|
|
10075
9876
|
{
|
|
10076
|
-
|
|
9877
|
+
label,
|
|
9878
|
+
icon,
|
|
10077
9879
|
size: styles.size,
|
|
10078
|
-
|
|
9880
|
+
showLabel: styles.showLabel,
|
|
10079
9881
|
onClick: handle,
|
|
10080
|
-
|
|
9882
|
+
ariaLabel: verbLabel,
|
|
10081
9883
|
title: verbLabel,
|
|
10082
9884
|
className: `${styles.className}${className ? ` ${className}` : ""}`,
|
|
10083
|
-
|
|
9885
|
+
loading
|
|
10084
9886
|
}
|
|
10085
9887
|
);
|
|
10086
9888
|
}
|
|
@@ -10090,11 +9892,11 @@ var DEFAULT_CAPTIONS_PATH = "/api/captions";
|
|
|
10090
9892
|
function getCaptionsUrl(entityType, entityId, srtContent, options) {
|
|
10091
9893
|
if (!srtContent) return void 0;
|
|
10092
9894
|
const hash = `${srtContent.length}-${srtContent.slice(0, 8).replace(/\s/g, "")}`;
|
|
10093
|
-
const variant = _optionalChain([options, 'optionalAccess',
|
|
9895
|
+
const variant = _optionalChain([options, 'optionalAccess', _193 => _193.variant]) ? `&variant=${options.variant}` : "";
|
|
10094
9896
|
return `${DEFAULT_CAPTIONS_PATH}/${entityType}/${entityId}?v=${hash}${variant}`;
|
|
10095
9897
|
}
|
|
10096
9898
|
function resolveCaptionsBase(endpoints) {
|
|
10097
|
-
return _optionalChain([endpoints, 'optionalAccess',
|
|
9899
|
+
return _optionalChain([endpoints, 'optionalAccess', _194 => _194.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
|
|
10098
9900
|
}
|
|
10099
9901
|
function rebaseCaptionsUrl(endpoints, url) {
|
|
10100
9902
|
if (!url || !url.startsWith(`${DEFAULT_CAPTIONS_PATH}/`)) return url;
|
|
@@ -10129,7 +9931,7 @@ function captionsEntityTypeForDocType(docType) {
|
|
|
10129
9931
|
// src/components/features/use-captions.ts
|
|
10130
9932
|
|
|
10131
9933
|
function useCaptions() {
|
|
10132
|
-
const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess',
|
|
9934
|
+
const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _195 => _195.endpoints]), () => ( null));
|
|
10133
9935
|
return _react.useMemo.call(void 0,
|
|
10134
9936
|
() => ({
|
|
10135
9937
|
forEntity: (entityType, entity) => getEntityCaptionUrls(endpoints, entityType, entity),
|
|
@@ -10153,7 +9955,7 @@ function UserDisplay({
|
|
|
10153
9955
|
compact = false,
|
|
10154
9956
|
className
|
|
10155
9957
|
}) {
|
|
10156
|
-
const avatarSrc =
|
|
9958
|
+
const avatarSrc = _chunkIM366HS6cjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
10157
9959
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
10158
9960
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10159
9961
|
UserDisplaySkeleton,
|
|
@@ -10293,7 +10095,7 @@ function ManagedCell({
|
|
|
10293
10095
|
}) {
|
|
10294
10096
|
const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
|
|
10295
10097
|
const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
|
|
10296
|
-
const cloneRef =
|
|
10098
|
+
const cloneRef = _chunkA34UNP5Vcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
|
|
10297
10099
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10298
10100
|
"div",
|
|
10299
10101
|
{
|
|
@@ -10411,12 +10213,12 @@ function CardsStrip(props) {
|
|
|
10411
10213
|
}, [measure, items.length, marqueeActive, isMobile]);
|
|
10412
10214
|
const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
10413
10215
|
const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
|
|
10414
|
-
const { ref: observe, inView: nearViewport } =
|
|
10216
|
+
const { ref: observe, inView: nearViewport } = _chunkA34UNP5Vcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
|
|
10415
10217
|
_react.useEffect.call(void 0, () => {
|
|
10416
10218
|
observe(wrapperRef.current);
|
|
10417
10219
|
return () => observe(null);
|
|
10418
10220
|
}, [observe]);
|
|
10419
|
-
const autoplay =
|
|
10221
|
+
const autoplay = _chunkA34UNP5Vcjs.useAutoplay.call(void 0, nearViewport);
|
|
10420
10222
|
const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
|
|
10421
10223
|
const activeKeyRef = _react.useRef.call(void 0, null);
|
|
10422
10224
|
const activate = _react.useCallback.call(void 0, (key) => {
|
|
@@ -10433,9 +10235,9 @@ function CardsStrip(props) {
|
|
|
10433
10235
|
const p = hoverPointerRef.current;
|
|
10434
10236
|
if (!p.inside) return;
|
|
10435
10237
|
const el = typeof document !== "undefined" ? document.elementFromPoint(p.x, p.y) : null;
|
|
10436
|
-
const cardEl = _optionalChain([el, 'optionalAccess',
|
|
10437
|
-
const scoped = cardEl && _optionalChain([scrollerRef, 'access',
|
|
10438
|
-
const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess',
|
|
10238
|
+
const cardEl = _optionalChain([el, 'optionalAccess', _196 => _196.closest, 'optionalCall', _197 => _197("[data-strip-card-key]")]);
|
|
10239
|
+
const scoped = cardEl && _optionalChain([scrollerRef, 'access', _198 => _198.current, 'optionalAccess', _199 => _199.contains, 'call', _200 => _200(cardEl)]) ? cardEl : null;
|
|
10240
|
+
const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _201 => _201.getAttribute, 'call', _202 => _202("data-strip-card-key")]), () => ( null));
|
|
10439
10241
|
const current = activeKeyRef.current;
|
|
10440
10242
|
if (key === current) return;
|
|
10441
10243
|
if (current !== null) deactivate(current);
|
|
@@ -10463,7 +10265,7 @@ function CardsStrip(props) {
|
|
|
10463
10265
|
const current = activeKeyRef.current;
|
|
10464
10266
|
if (current !== null) deactivate(current);
|
|
10465
10267
|
}, [deactivate]);
|
|
10466
|
-
|
|
10268
|
+
_chunkA34UNP5Vcjs.useResetOnPageHidden.call(void 0, clearHover);
|
|
10467
10269
|
const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
|
|
10468
10270
|
const scroller = scrollerRef.current;
|
|
10469
10271
|
if (!scroller) return;
|
|
@@ -10473,7 +10275,7 @@ function CardsStrip(props) {
|
|
|
10473
10275
|
}, [syncHoverToPointer]);
|
|
10474
10276
|
const seamBuffer = _react.useCallback.call(void 0, () => {
|
|
10475
10277
|
const half = singleCopyWidthRef.current;
|
|
10476
|
-
const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access',
|
|
10278
|
+
const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _203 => _203.current, 'optionalAccess', _204 => _204.clientWidth]), () => ( 0));
|
|
10477
10279
|
return Math.max(0, Math.min(200, half / 4, half - viewport - TRACK_GAP_PX - 1));
|
|
10478
10280
|
}, []);
|
|
10479
10281
|
const mirror = _react.useCallback.call(void 0,
|
|
@@ -10484,7 +10286,7 @@ function CardsStrip(props) {
|
|
|
10484
10286
|
},
|
|
10485
10287
|
[reverse, seamBuffer]
|
|
10486
10288
|
);
|
|
10487
|
-
const { posRef: marqueePosRef, glideBy } =
|
|
10289
|
+
const { posRef: marqueePosRef, glideBy } = _chunkA34UNP5Vcjs.useMarqueeEngine.call(void 0, {
|
|
10488
10290
|
// Viewport gates `active` (the rAF fully stops off-screen — a paused
|
|
10489
10291
|
// engine would keep scheduling frames forever), same treatment as
|
|
10490
10292
|
// <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
|
|
@@ -10497,7 +10299,7 @@ function CardsStrip(props) {
|
|
|
10497
10299
|
const scroller = scrollerRef.current;
|
|
10498
10300
|
if (scroller) scroller.scrollLeft = mirror(pos);
|
|
10499
10301
|
},
|
|
10500
|
-
readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access',
|
|
10302
|
+
readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _205 => _205.current, 'optionalAccess', _206 => _206.scrollLeft]), () => ( 0))),
|
|
10501
10303
|
onAfterFrame: syncHoverIfScrolled
|
|
10502
10304
|
});
|
|
10503
10305
|
const [mountedIdx, setMountedIdx] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
@@ -10545,11 +10347,11 @@ function CardsStrip(props) {
|
|
|
10545
10347
|
fn = (el) => {
|
|
10546
10348
|
if (!el) return void 0;
|
|
10547
10349
|
cardElIdxRef.current.set(el, idx);
|
|
10548
|
-
_optionalChain([cardObserverRef, 'access',
|
|
10350
|
+
_optionalChain([cardObserverRef, 'access', _207 => _207.current, 'optionalAccess', _208 => _208.observe, 'call', _209 => _209(el)]);
|
|
10549
10351
|
return () => {
|
|
10550
10352
|
cardElIdxRef.current.delete(el);
|
|
10551
10353
|
cardElNearRef.current.delete(el);
|
|
10552
|
-
_optionalChain([cardObserverRef, 'access',
|
|
10354
|
+
_optionalChain([cardObserverRef, 'access', _210 => _210.current, 'optionalAccess', _211 => _211.unobserve, 'call', _212 => _212(el)]);
|
|
10553
10355
|
};
|
|
10554
10356
|
};
|
|
10555
10357
|
cardRefFns.set(idx, fn);
|
|
@@ -10568,7 +10370,7 @@ function CardsStrip(props) {
|
|
|
10568
10370
|
const track = trackRef.current;
|
|
10569
10371
|
if (!scroller || !track) return;
|
|
10570
10372
|
const firstCard = track.firstElementChild;
|
|
10571
|
-
const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess',
|
|
10373
|
+
const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _213 => _213.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
|
|
10572
10374
|
chevronSuppressUntilRef.current = performance.now() + CHEVRON_SUPPRESS_MS;
|
|
10573
10375
|
if (marqueeActiveRef.current) {
|
|
10574
10376
|
glideBy((reverse ? -dir : dir) * step);
|
|
@@ -10621,7 +10423,7 @@ function CardsStrip(props) {
|
|
|
10621
10423
|
}
|
|
10622
10424
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10623
10425
|
};
|
|
10624
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10426
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkIM366HS6cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) });
|
|
10625
10427
|
if (items.length === 0) {
|
|
10626
10428
|
if (!inScope || !skeleton) return null;
|
|
10627
10429
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10649,7 +10451,7 @@ function CardsStrip(props) {
|
|
|
10649
10451
|
{
|
|
10650
10452
|
ref: (node) => {
|
|
10651
10453
|
wrapperRef.current = node;
|
|
10652
|
-
_optionalChain([rootRef, 'optionalCall',
|
|
10454
|
+
_optionalChain([rootRef, 'optionalCall', _214 => _214(node)]);
|
|
10653
10455
|
},
|
|
10654
10456
|
className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
|
|
10655
10457
|
children: [
|
|
@@ -10811,7 +10613,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
|
|
|
10811
10613
|
);
|
|
10812
10614
|
function VideoBitesStrip({
|
|
10813
10615
|
bites,
|
|
10814
|
-
title =
|
|
10616
|
+
title = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10815
10617
|
showTitle = true,
|
|
10816
10618
|
filterPublished = true,
|
|
10817
10619
|
profile = null,
|
|
@@ -10824,7 +10626,7 @@ function VideoBitesStrip({
|
|
|
10824
10626
|
cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
|
|
10825
10627
|
showChevrons = true,
|
|
10826
10628
|
onBiteNavigate,
|
|
10827
|
-
sortComparator =
|
|
10629
|
+
sortComparator = _chunkUEULXVW2cjs.sortBitesByCreatedAtDesc,
|
|
10828
10630
|
skeletonCount,
|
|
10829
10631
|
className
|
|
10830
10632
|
}) {
|
|
@@ -10833,7 +10635,7 @@ function VideoBitesStrip({
|
|
|
10833
10635
|
const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
|
|
10834
10636
|
return filtered.sort(sortComparator);
|
|
10835
10637
|
}, [bites, filterPublished, sortComparator]);
|
|
10836
|
-
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access',
|
|
10638
|
+
const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _215 => _215[0], 'optionalAccess', _216 => _216.url]) || null });
|
|
10837
10639
|
if (inScope) {
|
|
10838
10640
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10839
10641
|
VideoBitesStripSkeleton,
|
|
@@ -10922,7 +10724,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
|
|
|
10922
10724
|
function VideoBitesStripSkeleton({
|
|
10923
10725
|
count = VIDEO_BITES_SKELETON_COUNT,
|
|
10924
10726
|
aspect = "9:16",
|
|
10925
|
-
title =
|
|
10727
|
+
title = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
10926
10728
|
showTitle = true,
|
|
10927
10729
|
headerSlot,
|
|
10928
10730
|
cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
|
|
@@ -10974,8 +10776,8 @@ function VideoBiteCard({
|
|
|
10974
10776
|
const controlled = active !== void 0;
|
|
10975
10777
|
const [selfActive, setSelfActive] = _react.useState.call(void 0, false);
|
|
10976
10778
|
const isActive = controlled ? !!active : selfActive;
|
|
10977
|
-
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall',
|
|
10978
|
-
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall',
|
|
10779
|
+
const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _217 => _217(key)]) : setSelfActive(true);
|
|
10780
|
+
const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _218 => _218(key)]) : setSelfActive(false);
|
|
10979
10781
|
const titleInputRef = _react.useRef.call(void 0, null);
|
|
10980
10782
|
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
10981
10783
|
const el = titleInputRef.current;
|
|
@@ -10985,7 +10787,7 @@ function VideoBiteCard({
|
|
|
10985
10787
|
});
|
|
10986
10788
|
const navigate = () => {
|
|
10987
10789
|
if (bite.onNavigate) bite.onNavigate();
|
|
10988
|
-
else _optionalChain([onBiteNavigate, 'optionalCall',
|
|
10790
|
+
else _optionalChain([onBiteNavigate, 'optionalCall', _219 => _219(bite, index)]);
|
|
10989
10791
|
};
|
|
10990
10792
|
const handlePointerEnter = () => {
|
|
10991
10793
|
if (!isTouch) activate();
|
|
@@ -11010,9 +10812,9 @@ function VideoBiteCard({
|
|
|
11010
10812
|
placeholder: "Title (optional)",
|
|
11011
10813
|
"aria-label": "Bite title",
|
|
11012
10814
|
rows: 1,
|
|
11013
|
-
onChange: (e) => _optionalChain([onTitleChange, 'optionalCall',
|
|
10815
|
+
onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _220 => _220(e.target.value)]),
|
|
11014
10816
|
ref: titleInputRef,
|
|
11015
|
-
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall',
|
|
10817
|
+
onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _221 => _221(e.target.value)]),
|
|
11016
10818
|
onClick: (e) => e.stopPropagation(),
|
|
11017
10819
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11018
10820
|
titleClass,
|
|
@@ -11054,7 +10856,7 @@ function VideoBiteCard({
|
|
|
11054
10856
|
style: biteMediaStyle(cssAspect, height, heightMobile),
|
|
11055
10857
|
children: [
|
|
11056
10858
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11057
|
-
|
|
10859
|
+
_chunkUEULXVW2cjs.VideoHoverPreviewSurface,
|
|
11058
10860
|
{
|
|
11059
10861
|
url: bite.url,
|
|
11060
10862
|
posterUrl: bite.thumbnail_url,
|
|
@@ -11089,7 +10891,7 @@ function VideoBiteCard({
|
|
|
11089
10891
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11090
10892
|
"div",
|
|
11091
10893
|
{
|
|
11092
|
-
ref: (node) => _optionalChain([rootRef, 'optionalCall',
|
|
10894
|
+
ref: (node) => _optionalChain([rootRef, 'optionalCall', _222 => _222(node)]),
|
|
11093
10895
|
"aria-hidden": isClone || void 0,
|
|
11094
10896
|
"data-strip-card-key": key,
|
|
11095
10897
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
|
|
@@ -11126,7 +10928,7 @@ function EntityVideoSection({
|
|
|
11126
10928
|
title = "Video",
|
|
11127
10929
|
videoSummary,
|
|
11128
10930
|
videoBites,
|
|
11129
|
-
bitesTitle =
|
|
10931
|
+
bitesTitle = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
11130
10932
|
filterPublishedBites = true,
|
|
11131
10933
|
bitesProfile = null,
|
|
11132
10934
|
bitesHref,
|
|
@@ -11146,8 +10948,8 @@ function EntityVideoSection({
|
|
|
11146
10948
|
const hasHighlight = !!highlightVideoUrl;
|
|
11147
10949
|
const hasVideo = hasFullVideo || hasHighlight;
|
|
11148
10950
|
const derivedCaptions = captionsEntity ? captions.forEntityId(captionsEntity.type, captionsEntity.id) : null;
|
|
11149
|
-
const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess',
|
|
11150
|
-
const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess',
|
|
10951
|
+
const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _223 => _223.captionsUrl])));
|
|
10952
|
+
const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _224 => _224.highlightCaptionsUrl])));
|
|
11151
10953
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityVideoSectionSkeleton, { tabs: skeletonTabs });
|
|
11152
10954
|
if (!hasVideo && !videoSummary && (!videoBites || videoBites.length === 0)) {
|
|
11153
10955
|
return null;
|
|
@@ -11161,7 +10963,7 @@ function EntityVideoSection({
|
|
|
11161
10963
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11162
10964
|
] }),
|
|
11163
10965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11164
|
-
|
|
10966
|
+
_chunkUEULXVW2cjs.Video,
|
|
11165
10967
|
{
|
|
11166
10968
|
kind: fullVideoKind,
|
|
11167
10969
|
url: fullVideoUrl,
|
|
@@ -11173,7 +10975,7 @@ function EntityVideoSection({
|
|
|
11173
10975
|
}
|
|
11174
10976
|
) }),
|
|
11175
10977
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11176
|
-
|
|
10978
|
+
_chunkUEULXVW2cjs.Video,
|
|
11177
10979
|
{
|
|
11178
10980
|
url: highlightVideoUrl,
|
|
11179
10981
|
poster: highlightVideoThumbnail,
|
|
@@ -11182,7 +10984,7 @@ function EntityVideoSection({
|
|
|
11182
10984
|
}
|
|
11183
10985
|
) })
|
|
11184
10986
|
] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11185
|
-
|
|
10987
|
+
_chunkUEULXVW2cjs.Video,
|
|
11186
10988
|
{
|
|
11187
10989
|
kind: fullVideoKind,
|
|
11188
10990
|
url: fullVideoUrl,
|
|
@@ -11193,7 +10995,7 @@ function EntityVideoSection({
|
|
|
11193
10995
|
priority
|
|
11194
10996
|
}
|
|
11195
10997
|
) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11196
|
-
|
|
10998
|
+
_chunkUEULXVW2cjs.Video,
|
|
11197
10999
|
{
|
|
11198
11000
|
url: highlightVideoUrl,
|
|
11199
11001
|
poster: highlightVideoThumbnail,
|
|
@@ -11203,7 +11005,7 @@ function EntityVideoSection({
|
|
|
11203
11005
|
}
|
|
11204
11006
|
) : null),
|
|
11205
11007
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
11206
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
11008
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkIM366HS6cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
11207
11009
|
/* @__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 }) })
|
|
11208
11010
|
] }),
|
|
11209
11011
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11222,13 +11024,13 @@ function EntityVideoSection({
|
|
|
11222
11024
|
] });
|
|
11223
11025
|
}
|
|
11224
11026
|
function EntityVideoSectionSkeleton({ tabs = false, className }) {
|
|
11225
|
-
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11027
|
+
if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { loading: true, url: "", layout: "centered", className });
|
|
11226
11028
|
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: [
|
|
11227
11029
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
|
|
11228
11030
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
|
|
11229
11031
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
|
|
11230
11032
|
] }),
|
|
11231
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { loading: true, url: "", layout: "centered" }) })
|
|
11232
11034
|
] });
|
|
11233
11035
|
}
|
|
11234
11036
|
|
|
@@ -11269,18 +11071,18 @@ function pick(...values) {
|
|
|
11269
11071
|
return void 0;
|
|
11270
11072
|
}
|
|
11271
11073
|
function videoFromItem(item, chatRef) {
|
|
11272
|
-
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
11074
|
+
const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _225 => _225.metadata]), () => ( {}));
|
|
11273
11075
|
const out = {};
|
|
11274
|
-
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess',
|
|
11275
|
-
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess',
|
|
11276
|
-
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess',
|
|
11076
|
+
const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _226 => _226.custom_video_url]), _optionalChain([item, 'optionalAccess', _227 => _227.main_video_url]));
|
|
11077
|
+
const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _228 => _228.youtube_url]), _optionalChain([item, 'optionalAccess', _229 => _229.testimonial_video_url]));
|
|
11078
|
+
const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _230 => _230.highlight_video_url]));
|
|
11277
11079
|
const videoPoster = pick(
|
|
11278
11080
|
m.videoPoster,
|
|
11279
|
-
_optionalChain([item, 'optionalAccess',
|
|
11280
|
-
_optionalChain([item, 'optionalAccess',
|
|
11281
|
-
_optionalChain([item, 'optionalAccess',
|
|
11081
|
+
_optionalChain([item, 'optionalAccess', _231 => _231.main_video_thumbnail]),
|
|
11082
|
+
_optionalChain([item, 'optionalAccess', _232 => _232.highlight_video_thumbnail]),
|
|
11083
|
+
_optionalChain([item, 'optionalAccess', _233 => _233.featured_image])
|
|
11282
11084
|
);
|
|
11283
|
-
const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess',
|
|
11085
|
+
const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _234 => _234.highlight_video_thumbnail]));
|
|
11284
11086
|
if (videoUrl) out.videoUrl = videoUrl;
|
|
11285
11087
|
if (youtubeUrl) out.youtubeUrl = youtubeUrl;
|
|
11286
11088
|
if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
|
|
@@ -11313,25 +11115,23 @@ function ChatCardDisclosureButton({
|
|
|
11313
11115
|
loading
|
|
11314
11116
|
}) {
|
|
11315
11117
|
const spec = CHAT_CARD_DISCLOSURES[kind];
|
|
11316
|
-
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FooterActionSkeleton, { label: spec.label, className: CARD_FOOTER_ACTION_CLASS });
|
|
11317
11118
|
const label = open ? spec.openLabel : spec.label;
|
|
11318
11119
|
const Icon = spec.icon;
|
|
11319
11120
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11320
|
-
|
|
11121
|
+
FooterAction,
|
|
11321
11122
|
{
|
|
11322
|
-
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
11123
|
+
label,
|
|
11124
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
|
|
11125
|
+
trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
|
|
11326
11126
|
onClick: (e) => {
|
|
11327
11127
|
e.preventDefault();
|
|
11328
11128
|
e.stopPropagation();
|
|
11329
|
-
_optionalChain([onToggle, 'optionalCall',
|
|
11129
|
+
_optionalChain([onToggle, 'optionalCall', _235 => _235()]);
|
|
11330
11130
|
},
|
|
11331
|
-
|
|
11332
|
-
|
|
11131
|
+
ariaExpanded: open,
|
|
11132
|
+
ariaLabel: title ? `${label}: ${title}` : label,
|
|
11333
11133
|
className: CARD_FOOTER_ACTION_CLASS,
|
|
11334
|
-
|
|
11134
|
+
loading
|
|
11335
11135
|
}
|
|
11336
11136
|
);
|
|
11337
11137
|
}
|
|
@@ -11375,7 +11175,7 @@ function ChatCardDisclosureRow({
|
|
|
11375
11175
|
|
|
11376
11176
|
function designDocPeople(doc) {
|
|
11377
11177
|
const people = [];
|
|
11378
|
-
if (_optionalChain([doc, 'access',
|
|
11178
|
+
if (_optionalChain([doc, 'access', _236 => _236.author, 'optionalAccess', _237 => _237.full_name]))
|
|
11379
11179
|
people.push({
|
|
11380
11180
|
key: `dri-${_nullishCoalesce(doc.author.id, () => ( doc.author.full_name))}`,
|
|
11381
11181
|
name: doc.author.full_name,
|
|
@@ -11388,7 +11188,7 @@ function designDocPeople(doc) {
|
|
|
11388
11188
|
return people;
|
|
11389
11189
|
}
|
|
11390
11190
|
function designDocMetaLine(doc) {
|
|
11391
|
-
return [_optionalChain([doc, 'access',
|
|
11191
|
+
return [_optionalChain([doc, 'access', _238 => _238.author, 'optionalAccess', _239 => _239.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkIM366HS6cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
11392
11192
|
}
|
|
11393
11193
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
11394
11194
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -11398,15 +11198,15 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk3TOWCFIKcjs.TE
|
|
|
11398
11198
|
var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[3]}`;
|
|
11399
11199
|
var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
|
|
11400
11200
|
function DesignDocCardSkeleton({ className } = {}) {
|
|
11401
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11201
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkUEULXVW2cjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
|
|
11402
11202
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
11403
11203
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
|
|
11404
11204
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
|
|
11405
11205
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
|
|
11406
11206
|
] }),
|
|
11407
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11207
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
|
|
11408
11208
|
] }),
|
|
11409
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
|
|
11410
11210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
|
|
11411
11211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11412
11212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -11418,7 +11218,7 @@ function DesignDocCardSkeleton({ className } = {}) {
|
|
|
11418
11218
|
function DesignDocCard({ doc, href, target, rel, className }) {
|
|
11419
11219
|
const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
|
|
11420
11220
|
const people = designDocPeople(doc);
|
|
11421
|
-
const link =
|
|
11221
|
+
const link = _chunkUEULXVW2cjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
|
|
11422
11222
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
|
|
11423
11223
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11424
11224
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
|
|
@@ -11427,7 +11227,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11427
11227
|
/* @__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) }) })
|
|
11428
11228
|
] }),
|
|
11429
11229
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11430
|
-
|
|
11230
|
+
_chunkUEULXVW2cjs.StatusBadge,
|
|
11431
11231
|
{
|
|
11432
11232
|
text: readiness.label,
|
|
11433
11233
|
colorScheme: readiness.scheme,
|
|
@@ -11437,7 +11237,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11437
11237
|
}
|
|
11438
11238
|
)
|
|
11439
11239
|
] }),
|
|
11440
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11240
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
|
|
11441
11241
|
/* @__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 || "" }) }),
|
|
11442
11242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
|
|
11443
11243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
|
|
@@ -11445,7 +11245,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
|
|
|
11445
11245
|
people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk25HBH4J6cjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
|
|
11446
11246
|
] })
|
|
11447
11247
|
] });
|
|
11448
|
-
const outer = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
11248
|
+
const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkUEULXVW2cjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
|
|
11449
11249
|
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 });
|
|
11450
11250
|
}
|
|
11451
11251
|
|
|
@@ -11460,7 +11260,7 @@ function parseRepoFromUrl(url) {
|
|
|
11460
11260
|
if (u.host !== "github.com") return null;
|
|
11461
11261
|
const parts = u.pathname.split("/").filter(Boolean);
|
|
11462
11262
|
if (parts.length >= 2) return `${parts[0]}/${parts[1]}`;
|
|
11463
|
-
} catch (
|
|
11263
|
+
} catch (e7) {
|
|
11464
11264
|
}
|
|
11465
11265
|
return null;
|
|
11466
11266
|
}
|
|
@@ -11587,26 +11387,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
|
|
|
11587
11387
|
metaParts.push(
|
|
11588
11388
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
11589
11389
|
);
|
|
11590
|
-
const href =
|
|
11390
|
+
const href = _chunkUEULXVW2cjs.safeHref.call(void 0, item.url);
|
|
11591
11391
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
11592
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11593
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
11594
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${
|
|
11392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
|
|
11393
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11394
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
|
|
11595
11395
|
reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
|
|
11596
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE, children: primaryText })
|
|
11597
11397
|
] }),
|
|
11598
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11398
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
11599
11399
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
11600
11400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
11601
11401
|
] }, i)) }) }),
|
|
11602
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
11402
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_SUMMARY, children: _chunkUEULXVW2cjs.COMPACT_CARD_ROW_FILLER }) })
|
|
11603
11403
|
] }),
|
|
11604
11404
|
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
|
|
11605
11405
|
] });
|
|
11606
11406
|
if (anchorProps) {
|
|
11607
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
11407
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
11608
11408
|
}
|
|
11609
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
11409
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
11610
11410
|
}
|
|
11611
11411
|
function GitHubActivityCardSkeleton({
|
|
11612
11412
|
variant = "compact",
|
|
@@ -11614,7 +11414,7 @@ function GitHubActivityCardSkeleton({
|
|
|
11614
11414
|
}) {
|
|
11615
11415
|
if (variant === "row") {
|
|
11616
11416
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11617
|
-
|
|
11417
|
+
_chunkUEULXVW2cjs.ActivityRowSkeleton,
|
|
11618
11418
|
{
|
|
11619
11419
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
|
|
11620
11420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
|
|
@@ -11625,7 +11425,7 @@ function GitHubActivityCardSkeleton({
|
|
|
11625
11425
|
}
|
|
11626
11426
|
);
|
|
11627
11427
|
}
|
|
11628
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11428
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
|
|
11629
11429
|
}
|
|
11630
11430
|
|
|
11631
11431
|
// src/utils/url-fix.ts
|
|
@@ -11657,8 +11457,8 @@ function getVendorLogo(vendor) {
|
|
|
11657
11457
|
if (vendor.logo) {
|
|
11658
11458
|
return fixSupabaseStorageUrl(vendor.logo);
|
|
11659
11459
|
}
|
|
11660
|
-
const logoMedia = _optionalChain([vendor, 'access',
|
|
11661
|
-
if (_optionalChain([logoMedia, 'optionalAccess',
|
|
11460
|
+
const logoMedia = _optionalChain([vendor, 'access', _240 => _240.vendor_media, 'optionalAccess', _241 => _241.find, 'call', _242 => _242((m) => m.media_type === "logo")]);
|
|
11461
|
+
if (_optionalChain([logoMedia, 'optionalAccess', _243 => _243.media_url])) {
|
|
11662
11462
|
return fixSupabaseStorageUrl(logoMedia.media_url);
|
|
11663
11463
|
}
|
|
11664
11464
|
return null;
|
|
@@ -11681,7 +11481,7 @@ function VendorIcon({
|
|
|
11681
11481
|
...props
|
|
11682
11482
|
}) {
|
|
11683
11483
|
const logoUrl = getVendorLogo(vendor);
|
|
11684
|
-
const logoSrc =
|
|
11484
|
+
const logoSrc = _chunkIM366HS6cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11685
11485
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11686
11486
|
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
11687
11487
|
{
|
|
@@ -11715,8 +11515,8 @@ function useChatCardItem(type, id) {
|
|
|
11715
11515
|
const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
|
|
11716
11516
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11717
11517
|
const data = await res.json();
|
|
11718
|
-
const items =
|
|
11719
|
-
const match = items.find((it) =>
|
|
11518
|
+
const items = _chunkIM366HS6cjs.extractCardItems.call(void 0, type, data);
|
|
11519
|
+
const match = items.find((it) => _chunkIM366HS6cjs.extractItemId.call(void 0, type, it) === id);
|
|
11720
11520
|
return _nullishCoalesce(match, () => ( null));
|
|
11721
11521
|
},
|
|
11722
11522
|
enabled: !!url && id.length > 0,
|
|
@@ -11906,7 +11706,7 @@ function pickFetchedCardHref({
|
|
|
11906
11706
|
itemHref,
|
|
11907
11707
|
allowComposed
|
|
11908
11708
|
}) {
|
|
11909
|
-
if (_optionalChain([composed, 'optionalAccess',
|
|
11709
|
+
if (_optionalChain([composed, 'optionalAccess', _244 => _244.hostOverride])) {
|
|
11910
11710
|
return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
|
|
11911
11711
|
}
|
|
11912
11712
|
if (itemHref) return { source: "item", href: itemHref };
|
|
@@ -11922,7 +11722,7 @@ function resolveFetchedCardHref({
|
|
|
11922
11722
|
composeContentUrl
|
|
11923
11723
|
}) {
|
|
11924
11724
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11925
|
-
const canonicalType =
|
|
11725
|
+
const canonicalType = _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11926
11726
|
return composeContentUrl({
|
|
11927
11727
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11928
11728
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11941,14 +11741,8 @@ function resolveFetchedCardHref({
|
|
|
11941
11741
|
function sanitizePath(path) {
|
|
11942
11742
|
return (path || "").replace(/[^a-zA-Z0-9/_\-.]/g, "");
|
|
11943
11743
|
}
|
|
11944
|
-
function sourceRowCtxFromRuntime(runtime
|
|
11945
|
-
return {
|
|
11946
|
-
currentPlatform: _nullishCoalesce(runtime.source, () => ( null)),
|
|
11947
|
-
composeContentUrl: runtime.composeContentUrl,
|
|
11948
|
-
docPlatformTargets: runtime.docPlatformTargets,
|
|
11949
|
-
baseRoute: surface.baseRoute,
|
|
11950
|
-
chipBasePlatform: surface.chipBasePlatform
|
|
11951
|
-
};
|
|
11744
|
+
function sourceRowCtxFromRuntime(runtime) {
|
|
11745
|
+
return { composeContentUrl: runtime.composeContentUrl };
|
|
11952
11746
|
}
|
|
11953
11747
|
function pickSourceIcon(sourceRepo, documentType) {
|
|
11954
11748
|
const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
|
|
@@ -11956,7 +11750,7 @@ function pickSourceIcon(sourceRepo, documentType) {
|
|
|
11956
11750
|
const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
|
|
11957
11751
|
return { icon, iconLabel };
|
|
11958
11752
|
}
|
|
11959
|
-
function
|
|
11753
|
+
function isDocRow(row) {
|
|
11960
11754
|
return !!row.documentType && DOC_TABLE_TYPES.includes(row.documentType);
|
|
11961
11755
|
}
|
|
11962
11756
|
function resolveSourceRowCTA(row, ctx = {}) {
|
|
@@ -11965,40 +11759,22 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11965
11759
|
let href = null;
|
|
11966
11760
|
let targetPlatform = null;
|
|
11967
11761
|
const idValue = (_nullishCoalesce(row.id, () => ( ""))).trim();
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
if (safePath) {
|
|
11971
|
-
const docTarget = row.documentType ? _optionalChain([ctx, 'access', _266 => _266.docPlatformTargets, 'optionalAccess', _267 => _267[row.documentType]]) : void 0;
|
|
11972
|
-
if (docTarget) {
|
|
11973
|
-
const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
|
|
11974
|
-
const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
|
|
11975
|
-
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11976
|
-
targetPlatform = docTarget.platform;
|
|
11977
|
-
} else if (ctx.chipBasePlatform) {
|
|
11978
|
-
const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
|
|
11979
|
-
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
|
|
11980
|
-
targetPlatform = ctx.chipBasePlatform;
|
|
11981
|
-
} else if (ctx.baseRoute) {
|
|
11982
|
-
const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
|
|
11983
|
-
const absolute = new URL(safePath, synthetic).toString();
|
|
11984
|
-
href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
|
|
11985
|
-
targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
|
|
11986
|
-
}
|
|
11987
|
-
}
|
|
11988
|
-
} else if (ctx.composeContentUrl && row.documentType && row.externalUrl) {
|
|
11762
|
+
const docPath = !row.externalUrl && row.path && isDocRow(row) ? sanitizePath(row.path) : "";
|
|
11763
|
+
if (ctx.composeContentUrl && row.documentType && (row.externalUrl || docPath)) {
|
|
11989
11764
|
const composed = ctx.composeContentUrl({
|
|
11990
11765
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11991
11766
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11992
11767
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11993
|
-
type:
|
|
11768
|
+
type: _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11994
11769
|
identifier: idValue,
|
|
11995
|
-
|
|
11770
|
+
...docPath ? { slug: docPath } : {},
|
|
11771
|
+
externalUrl: _nullishCoalesce(row.externalUrl, () => ( null)),
|
|
11996
11772
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
11997
11773
|
});
|
|
11998
|
-
href = composed.href ? _nullishCoalesce(
|
|
11774
|
+
href = composed.href ? _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
|
|
11999
11775
|
targetPlatform = composed.targetPlatform;
|
|
12000
11776
|
} else if (row.externalUrl) {
|
|
12001
|
-
href = _nullishCoalesce(
|
|
11777
|
+
href = _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
|
|
12002
11778
|
targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
|
|
12003
11779
|
}
|
|
12004
11780
|
const documentType = row.documentType;
|
|
@@ -12037,7 +11813,7 @@ function resolveCardDestination({
|
|
|
12037
11813
|
composeContentUrl,
|
|
12038
11814
|
resolveHref = (href) => href
|
|
12039
11815
|
}) {
|
|
12040
|
-
const refPath = typeof _optionalChain([chatRef, 'access',
|
|
11816
|
+
const refPath = typeof _optionalChain([chatRef, 'access', _245 => _245.metadata, 'optionalAccess', _246 => _246.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
|
|
12041
11817
|
const path = _nullishCoalesce(refPath, () => ( (item ? readFetchedCardPath(item) : null)));
|
|
12042
11818
|
const cta = resolveSourceRowCTA(
|
|
12043
11819
|
{
|
|
@@ -12054,7 +11830,7 @@ function resolveCardDestination({
|
|
|
12054
11830
|
const rowUrl = cta.href ? resolveHref(cta.href) : _nullishCoalesce(chatRef.url, () => ( null));
|
|
12055
11831
|
const rowPlatform = _nullishCoalesce(_nullishCoalesce(cta.targetPlatform, () => ( chatRef.targetPlatform)), () => ( null));
|
|
12056
11832
|
if (rowUrl) return { url: rowUrl, targetPlatform: rowPlatform, path, source: "row" };
|
|
12057
|
-
if (_optionalChain([entry, 'optionalAccess',
|
|
11833
|
+
if (_optionalChain([entry, 'optionalAccess', _247 => _247.contentRefType]) && item) {
|
|
12058
11834
|
const choice = pickFetchedCardHref({
|
|
12059
11835
|
composed: resolveFetchedCardHref({
|
|
12060
11836
|
contentRefType: entry.contentRefType,
|
|
@@ -12062,10 +11838,10 @@ function resolveCardDestination({
|
|
|
12062
11838
|
item,
|
|
12063
11839
|
composeContentUrl
|
|
12064
11840
|
}),
|
|
12065
|
-
itemHref: _nullishCoalesce(_optionalChain([entry, 'access',
|
|
11841
|
+
itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _248 => _248.fallbackHref, 'optionalCall', _249 => _249(item)]), () => ( null)),
|
|
12066
11842
|
allowComposed: !entry.noComposedHref
|
|
12067
11843
|
});
|
|
12068
|
-
const url = choice ? _nullishCoalesce(
|
|
11844
|
+
const url = choice ? _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
|
|
12069
11845
|
if (choice && url) {
|
|
12070
11846
|
return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
|
|
12071
11847
|
}
|
|
@@ -12078,11 +11854,11 @@ function resolveCardDestination({
|
|
|
12078
11854
|
|
|
12079
11855
|
function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
|
|
12080
11856
|
const label = entityLabel || "Item";
|
|
12081
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${
|
|
12082
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12083
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
12084
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
12085
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
11857
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
11858
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
|
|
11859
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
11860
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
|
|
11861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
|
|
12086
11862
|
label,
|
|
12087
11863
|
" deleted",
|
|
12088
11864
|
recoveryNote ? ` \xB7 ${recoveryNote}` : ""
|
|
@@ -12137,7 +11913,7 @@ function GitHubChatCard({
|
|
|
12137
11913
|
description,
|
|
12138
11914
|
icon: githubKindIcon(kind),
|
|
12139
11915
|
status,
|
|
12140
|
-
anchorProps:
|
|
11916
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12141
11917
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12142
11918
|
menuAriaLabel: "Activity actions"
|
|
12143
11919
|
}
|
|
@@ -12156,8 +11932,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
|
|
|
12156
11932
|
if (href) {
|
|
12157
11933
|
items.push({
|
|
12158
11934
|
id: "open-details",
|
|
12159
|
-
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
12160
|
-
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess',
|
|
11935
|
+
label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _250 => _250.label]), () => ( "Open Details")),
|
|
11936
|
+
icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _251 => _251.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
|
|
12161
11937
|
// Main row → open the entity (same tab, soft Link nav).
|
|
12162
11938
|
href,
|
|
12163
11939
|
// Trailing 40px ↗ side-button → open in a new tab.
|
|
@@ -12205,7 +11981,7 @@ function decodeVideoMarkerId(id) {
|
|
|
12205
11981
|
const url = atob(b64);
|
|
12206
11982
|
if (!/^https:\/\//.test(url)) return null;
|
|
12207
11983
|
return { videoUrl: url };
|
|
12208
|
-
} catch (
|
|
11984
|
+
} catch (e8) {
|
|
12209
11985
|
return null;
|
|
12210
11986
|
}
|
|
12211
11987
|
}
|
|
@@ -12234,15 +12010,15 @@ function fetchedItemDisplayRef(item, chatRef) {
|
|
|
12234
12010
|
}
|
|
12235
12011
|
function fetchedFaqDisplayRef(item, chatRef) {
|
|
12236
12012
|
const it = item;
|
|
12237
|
-
const answer = typeof _optionalChain([it, 'optionalAccess',
|
|
12013
|
+
const answer = typeof _optionalChain([it, 'optionalAccess', _252 => _252.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
|
|
12238
12014
|
return {
|
|
12239
12015
|
type: "faq",
|
|
12240
12016
|
id: chatRef.id,
|
|
12241
12017
|
sourceRepo: chatRef.sourceRepo,
|
|
12242
|
-
title: typeof _optionalChain([it, 'optionalAccess',
|
|
12018
|
+
title: typeof _optionalChain([it, 'optionalAccess', _253 => _253.question]) === "string" && it.question ? it.question : chatRef.id,
|
|
12243
12019
|
url: _nullishCoalesce(chatRef.url, () => ( null)),
|
|
12244
12020
|
...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
|
|
12245
|
-
metadata: typeof _optionalChain([it, 'optionalAccess',
|
|
12021
|
+
metadata: typeof _optionalChain([it, 'optionalAccess', _254 => _254.section]) === "string" && it.section ? { section: it.section } : {}
|
|
12246
12022
|
};
|
|
12247
12023
|
}
|
|
12248
12024
|
function HubspotTicketChatCard({
|
|
@@ -12250,8 +12026,8 @@ function HubspotTicketChatCard({
|
|
|
12250
12026
|
isNewTab,
|
|
12251
12027
|
discuss
|
|
12252
12028
|
}) {
|
|
12253
|
-
const status = typeof _optionalChain([chatRef, 'access',
|
|
12254
|
-
const statusLabel = typeof _optionalChain([chatRef, 'access',
|
|
12029
|
+
const status = typeof _optionalChain([chatRef, 'access', _255 => _255.metadata, 'optionalAccess', _256 => _256.status]) === "string" ? chatRef.metadata.status : void 0;
|
|
12030
|
+
const statusLabel = typeof _optionalChain([chatRef, 'access', _257 => _257.metadata, 'optionalAccess', _258 => _258.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
|
|
12255
12031
|
const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
|
|
12256
12032
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12257
12033
|
MingoInfoCard,
|
|
@@ -12260,7 +12036,7 @@ function HubspotTicketChatCard({
|
|
|
12260
12036
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12261
12037
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
|
|
12262
12038
|
status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
|
|
12263
|
-
anchorProps:
|
|
12039
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12264
12040
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12265
12041
|
label: "Open Ticket Details",
|
|
12266
12042
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
|
|
@@ -12274,7 +12050,7 @@ function FaqChatCard({
|
|
|
12274
12050
|
isNewTab,
|
|
12275
12051
|
discuss
|
|
12276
12052
|
}) {
|
|
12277
|
-
const section = typeof _optionalChain([chatRef, 'access',
|
|
12053
|
+
const section = typeof _optionalChain([chatRef, 'access', _259 => _259.metadata, 'optionalAccess', _260 => _260.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
|
|
12278
12054
|
const statusLabel = section && section.length > 0 ? section : "FAQ";
|
|
12279
12055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12280
12056
|
MingoInfoCard,
|
|
@@ -12283,7 +12059,7 @@ function FaqChatCard({
|
|
|
12283
12059
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12284
12060
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
|
|
12285
12061
|
status: { label: statusLabel, variant: "grey" },
|
|
12286
|
-
anchorProps:
|
|
12062
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12287
12063
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12288
12064
|
menuAriaLabel: "FAQ actions"
|
|
12289
12065
|
}
|
|
@@ -12294,7 +12070,7 @@ function SlackChatCard({
|
|
|
12294
12070
|
isNewTab,
|
|
12295
12071
|
discuss
|
|
12296
12072
|
}) {
|
|
12297
|
-
const channelName = typeof _optionalChain([chatRef, 'access',
|
|
12073
|
+
const channelName = typeof _optionalChain([chatRef, 'access', _261 => _261.metadata, 'optionalAccess', _262 => _262.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
|
|
12298
12074
|
const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
|
|
12299
12075
|
const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
|
|
12300
12076
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12303,7 +12079,7 @@ function SlackChatCard({
|
|
|
12303
12079
|
title,
|
|
12304
12080
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12305
12081
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
|
|
12306
|
-
anchorProps:
|
|
12082
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12307
12083
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12308
12084
|
menuAriaLabel: "Message actions"
|
|
12309
12085
|
}
|
|
@@ -12321,7 +12097,7 @@ function GlyphChatCard({
|
|
|
12321
12097
|
title: chatRef.title,
|
|
12322
12098
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12323
12099
|
icon,
|
|
12324
|
-
anchorProps:
|
|
12100
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12325
12101
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12326
12102
|
menuAriaLabel: "Card actions"
|
|
12327
12103
|
}
|
|
@@ -12337,22 +12113,22 @@ function TrustCenterChatCard({
|
|
|
12337
12113
|
isNewTab,
|
|
12338
12114
|
discuss
|
|
12339
12115
|
}) {
|
|
12340
|
-
const raw2 = _optionalChain([item, 'optionalAccess',
|
|
12116
|
+
const raw2 = _optionalChain([item, 'optionalAccess', _263 => _263.frameworks]);
|
|
12341
12117
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
12342
|
-
const summary =
|
|
12118
|
+
const summary = _chunkIM366HS6cjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12343
12119
|
const leadFramework = frameworks[0];
|
|
12344
12120
|
const lead = leadFramework ? {
|
|
12345
|
-
label:
|
|
12346
|
-
color:
|
|
12121
|
+
label: _chunkIM366HS6cjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
12122
|
+
color: _chunkIM366HS6cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
12347
12123
|
} : void 0;
|
|
12348
12124
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12349
12125
|
MingoInfoCard,
|
|
12350
12126
|
{
|
|
12351
|
-
title:
|
|
12352
|
-
description: summary ||
|
|
12127
|
+
title: _chunkIM366HS6cjs.TRUST_CENTER_TITLE,
|
|
12128
|
+
description: summary || _chunkIM366HS6cjs.TRUST_CENTER_TAGLINE,
|
|
12353
12129
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
12354
12130
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
12355
|
-
anchorProps:
|
|
12131
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12356
12132
|
menuGroups: cardMenuGroups(chatRef.url, discuss, {
|
|
12357
12133
|
label: "View trust center",
|
|
12358
12134
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
|
|
@@ -12374,7 +12150,7 @@ function DataRoomDocChatCard({
|
|
|
12374
12150
|
description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
|
|
12375
12151
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12376
12152
|
status: { label: badgeText, variant: "grey" },
|
|
12377
|
-
anchorProps:
|
|
12153
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12378
12154
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12379
12155
|
menuAriaLabel: "Document actions"
|
|
12380
12156
|
}
|
|
@@ -12386,14 +12162,14 @@ function GenericFinancialChatCard({
|
|
|
12386
12162
|
isNewTab,
|
|
12387
12163
|
discuss
|
|
12388
12164
|
}) {
|
|
12389
|
-
const subtitle = typeof _optionalChain([chatRef, 'access',
|
|
12165
|
+
const subtitle = typeof _optionalChain([chatRef, 'access', _264 => _264.metadata, 'optionalAccess', _265 => _265.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
|
|
12390
12166
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12391
12167
|
MingoInfoCard,
|
|
12392
12168
|
{
|
|
12393
12169
|
title: chatRef.title,
|
|
12394
12170
|
description: subtitle,
|
|
12395
12171
|
icon,
|
|
12396
|
-
anchorProps:
|
|
12172
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12397
12173
|
menuGroups: cardMenuGroups(chatRef.url, discuss),
|
|
12398
12174
|
menuAriaLabel: "Document actions"
|
|
12399
12175
|
}
|
|
@@ -12460,12 +12236,12 @@ function ProductReleaseChatCard({
|
|
|
12460
12236
|
discuss
|
|
12461
12237
|
}) {
|
|
12462
12238
|
const releaseProps = buildProps(item);
|
|
12463
|
-
const status = _optionalChain([item, 'optionalAccess',
|
|
12239
|
+
const status = _optionalChain([item, 'optionalAccess', _266 => _266.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
|
|
12464
12240
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12465
12241
|
EntityMingoCard,
|
|
12466
12242
|
{
|
|
12467
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12468
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
12243
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _267 => _267.title]), () => ( "")),
|
|
12244
|
+
description: _optionalChain([item, 'optionalAccess', _268 => _268.summary]) || releaseProps.formattedDate || void 0,
|
|
12469
12245
|
cover: releaseProps.coverImage || void 0,
|
|
12470
12246
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX5LU4XQNcjs.Rocket02Icon, { size: 24 }),
|
|
12471
12247
|
status,
|
|
@@ -12482,17 +12258,17 @@ function CampaignChatCard({
|
|
|
12482
12258
|
isNewTab,
|
|
12483
12259
|
discuss
|
|
12484
12260
|
}) {
|
|
12485
|
-
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
12261
|
+
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _269 => _269.goals])) ? item.goals.length : 0;
|
|
12486
12262
|
const meta = [
|
|
12487
|
-
_optionalChain([item, 'optionalAccess',
|
|
12263
|
+
_optionalChain([item, 'optionalAccess', _270 => _270.start_date]) ? _chunkIM366HS6cjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12488
12264
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12489
12265
|
"Marketing campaign"
|
|
12490
12266
|
].filter(Boolean).join(" \xB7 ");
|
|
12491
12267
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12492
12268
|
EntityMingoCard,
|
|
12493
12269
|
{
|
|
12494
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12495
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
12270
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _271 => _271.name]), () => ( "")),
|
|
12271
|
+
description: meta || _optionalChain([item, 'optionalAccess', _272 => _272.description]) || void 0,
|
|
12496
12272
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6OCFDC2Qcjs.Megaphone01Icon, { size: 24 }),
|
|
12497
12273
|
chatRef,
|
|
12498
12274
|
isNewTab,
|
|
@@ -12523,7 +12299,7 @@ function EntityMingoCard({
|
|
|
12523
12299
|
imageAlt: typeof title === "string" ? title : void 0,
|
|
12524
12300
|
icon: fallbackIcon,
|
|
12525
12301
|
status,
|
|
12526
|
-
anchorProps:
|
|
12302
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
|
|
12527
12303
|
menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
|
|
12528
12304
|
menuAriaLabel
|
|
12529
12305
|
}
|
|
@@ -12535,7 +12311,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12535
12311
|
function statusPill(status) {
|
|
12536
12312
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12537
12313
|
if (!s) return void 0;
|
|
12538
|
-
const scheme =
|
|
12314
|
+
const scheme = _chunkIM366HS6cjs.getStatusColorScheme.call(void 0, s);
|
|
12539
12315
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12540
12316
|
return { label: s, variant };
|
|
12541
12317
|
}
|
|
@@ -12547,14 +12323,14 @@ function BlogChatCard({
|
|
|
12547
12323
|
hasEmbeddedVideo,
|
|
12548
12324
|
discuss
|
|
12549
12325
|
}) {
|
|
12550
|
-
const category = Array.isArray(_optionalChain([item, 'optionalAccess',
|
|
12326
|
+
const category = Array.isArray(_optionalChain([item, 'optionalAccess', _273 => _273.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _274 => _274.categories, 'access', _275 => _275.find, 'call', _276 => _276((c) => _optionalChain([c, 'optionalAccess', _277 => _277.name])), 'optionalAccess', _278 => _278.name]), () => ( void 0)) : void 0;
|
|
12551
12327
|
const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
|
|
12552
12328
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12553
12329
|
EntityMingoCard,
|
|
12554
12330
|
{
|
|
12555
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12556
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12557
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
12331
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _279 => _279.title]), () => ( "")),
|
|
12332
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _280 => _280.summary]), () => ( void 0)),
|
|
12333
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _281 => _281.featured_image]), ogPlaceholder),
|
|
12558
12334
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEAPORE6cjs.NewspaperIcon, { size: 24 }),
|
|
12559
12335
|
status,
|
|
12560
12336
|
chatRef,
|
|
@@ -12571,13 +12347,13 @@ function CaseStudyChatCard({
|
|
|
12571
12347
|
ogPlaceholder,
|
|
12572
12348
|
discuss
|
|
12573
12349
|
}) {
|
|
12574
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
12350
|
+
const meta = [_optionalChain([item, 'optionalAccess', _282 => _282.msp, 'optionalAccess', _283 => _283.name]), _optionalChain([item, 'optionalAccess', _284 => _284.user, 'optionalAccess', _285 => _285.full_name])].filter(Boolean).join(" \xB7 ");
|
|
12575
12351
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12576
12352
|
EntityMingoCard,
|
|
12577
12353
|
{
|
|
12578
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12579
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
12580
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
12354
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _286 => _286.title]), () => ( "")),
|
|
12355
|
+
description: _optionalChain([item, 'optionalAccess', _287 => _287.summary]) || meta || void 0,
|
|
12356
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _288 => _288.featured_image]), ogPlaceholder),
|
|
12581
12357
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44URXY24cjs.TrophyIcon, { size: 24 }),
|
|
12582
12358
|
status: { label: "Case study", variant: "grey" },
|
|
12583
12359
|
chatRef,
|
|
@@ -12594,13 +12370,13 @@ function CustomerInterviewChatCard({
|
|
|
12594
12370
|
ogPlaceholder,
|
|
12595
12371
|
discuss
|
|
12596
12372
|
}) {
|
|
12597
|
-
const meta = [_optionalChain([item, 'optionalAccess',
|
|
12373
|
+
const meta = [_optionalChain([item, 'optionalAccess', _289 => _289.user, 'optionalAccess', _290 => _290.full_name]), _optionalChain([item, 'optionalAccess', _291 => _291.msp, 'optionalAccess', _292 => _292.name])].filter(Boolean).join(" \xB7 ");
|
|
12598
12374
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12599
12375
|
EntityMingoCard,
|
|
12600
12376
|
{
|
|
12601
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12602
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
12603
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
12377
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _293 => _293.title]), () => ( "")),
|
|
12378
|
+
description: _optionalChain([item, 'optionalAccess', _294 => _294.video_summary]) || meta || void 0,
|
|
12379
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _295 => _295.featured_image]), ogPlaceholder),
|
|
12604
12380
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 }),
|
|
12605
12381
|
status: { label: "Interview", variant: "grey" },
|
|
12606
12382
|
chatRef,
|
|
@@ -12617,16 +12393,16 @@ function DesignDocChatCard({
|
|
|
12617
12393
|
discuss
|
|
12618
12394
|
}) {
|
|
12619
12395
|
const displayRef = fetchedItemDisplayRef(item, chatRef);
|
|
12620
|
-
const doc = _optionalChain([item, 'optionalAccess',
|
|
12396
|
+
const doc = _optionalChain([item, 'optionalAccess', _296 => _296.doc]);
|
|
12621
12397
|
const readiness = doc ? DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)] : null;
|
|
12622
12398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12623
12399
|
MingoInfoCard,
|
|
12624
12400
|
{
|
|
12625
|
-
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess',
|
|
12401
|
+
title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _297 => _297.title]), () => ( displayRef.title)),
|
|
12626
12402
|
description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12627
12403
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
|
|
12628
12404
|
status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
|
|
12629
|
-
anchorProps:
|
|
12405
|
+
anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab, displayRef.targetPlatform),
|
|
12630
12406
|
menuGroups: cardMenuGroups(displayRef.url, discuss),
|
|
12631
12407
|
menuAriaLabel: "Design doc actions"
|
|
12632
12408
|
}
|
|
@@ -12639,13 +12415,13 @@ function InvestorUpdateChatCard({
|
|
|
12639
12415
|
ogPlaceholder,
|
|
12640
12416
|
discuss
|
|
12641
12417
|
}) {
|
|
12642
|
-
const title = _optionalChain([item, 'optionalAccess',
|
|
12418
|
+
const title = _optionalChain([item, 'optionalAccess', _298 => _298.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _299 => _299.update_number]), () => ( "?"))}`;
|
|
12643
12419
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12644
12420
|
EntityMingoCard,
|
|
12645
12421
|
{
|
|
12646
12422
|
title,
|
|
12647
|
-
description: _optionalChain([item, 'optionalAccess',
|
|
12648
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
12423
|
+
description: _optionalChain([item, 'optionalAccess', _300 => _300.strategic_update]) || _optionalChain([item, 'optionalAccess', _301 => _301.content]) || _chunkIM366HS6cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _302 => _302.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _303 => _303.period_end]), () => ( null))) || void 0,
|
|
12424
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _304 => _304.featured_image]), ogPlaceholder),
|
|
12649
12425
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12650
12426
|
status: { label: "Investor update", variant: "grey" },
|
|
12651
12427
|
chatRef,
|
|
@@ -12662,12 +12438,12 @@ function OnboardingGuideChatCard({
|
|
|
12662
12438
|
ogPlaceholder,
|
|
12663
12439
|
discuss
|
|
12664
12440
|
}) {
|
|
12665
|
-
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess',
|
|
12441
|
+
const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _305 => _305.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _306 => _306.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _307 => _307.og_image_url]), ogPlaceholder)));
|
|
12666
12442
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12667
12443
|
EntityMingoCard,
|
|
12668
12444
|
{
|
|
12669
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12670
|
-
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12445
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _308 => _308.title]), () => ( "")),
|
|
12446
|
+
description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _309 => _309.summary]), () => ( _optionalChain([item, 'optionalAccess', _310 => _310.description]))), () => ( void 0)),
|
|
12671
12447
|
cover,
|
|
12672
12448
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 24 }),
|
|
12673
12449
|
status: { label: "Guide", variant: "grey" },
|
|
@@ -12688,13 +12464,13 @@ function ProgramChatCard({
|
|
|
12688
12464
|
discuss
|
|
12689
12465
|
}) {
|
|
12690
12466
|
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 });
|
|
12691
|
-
const { line: meta } =
|
|
12467
|
+
const { line: meta } = _chunkIM366HS6cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkIM366HS6cjs.programMetaFormatters.call(void 0, _chunkIM366HS6cjs.PROGRAM_META_RENDERERS));
|
|
12692
12468
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12693
12469
|
EntityMingoCard,
|
|
12694
12470
|
{
|
|
12695
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12696
|
-
description: meta || _optionalChain([item, 'optionalAccess',
|
|
12697
|
-
cover: entityCover(_optionalChain([item, 'optionalAccess',
|
|
12471
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _311 => _311.title]), () => ( "")),
|
|
12472
|
+
description: meta || _optionalChain([item, 'optionalAccess', _312 => _312.description]) || void 0,
|
|
12473
|
+
cover: entityCover(_optionalChain([item, 'optionalAccess', _313 => _313.cover_url]), ogPlaceholder),
|
|
12698
12474
|
fallbackIcon: icon,
|
|
12699
12475
|
status: { label, variant: "grey" },
|
|
12700
12476
|
chatRef,
|
|
@@ -12711,10 +12487,10 @@ function RoadmapChatCard({
|
|
|
12711
12487
|
cardType,
|
|
12712
12488
|
discuss
|
|
12713
12489
|
}) {
|
|
12714
|
-
const logoUrl = typeof _optionalChain([item, 'optionalAccess',
|
|
12715
|
-
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess',
|
|
12490
|
+
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _314 => _314.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12491
|
+
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _315 => _315.customItemId]) != null;
|
|
12716
12492
|
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 });
|
|
12717
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12493
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _316 => _316.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12718
12494
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12719
12495
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12720
12496
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12735,10 +12511,10 @@ function RoadmapChatCard({
|
|
|
12735
12511
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12736
12512
|
EntityMingoCard,
|
|
12737
12513
|
{
|
|
12738
|
-
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12739
|
-
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12514
|
+
title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _317 => _317.title]), () => ( "")),
|
|
12515
|
+
description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _318 => _318.description]), () => ( void 0)),
|
|
12740
12516
|
fallbackIcon: icon,
|
|
12741
|
-
status: statusPill(_optionalChain([item, 'optionalAccess',
|
|
12517
|
+
status: statusPill(_optionalChain([item, 'optionalAccess', _319 => _319.status])),
|
|
12742
12518
|
chatRef,
|
|
12743
12519
|
isNewTab,
|
|
12744
12520
|
discuss,
|
|
@@ -12754,7 +12530,7 @@ function refHydratedEntry(docType, label, renderRef) {
|
|
|
12754
12530
|
bareInline: true,
|
|
12755
12531
|
contentRefType: docType,
|
|
12756
12532
|
noComposedHref: true,
|
|
12757
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12533
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _320 => _320.url]), () => ( null)),
|
|
12758
12534
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12759
12535
|
render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
|
|
12760
12536
|
};
|
|
@@ -12786,15 +12562,15 @@ function financialRegistryEntries() {
|
|
|
12786
12562
|
);
|
|
12787
12563
|
}
|
|
12788
12564
|
function refText(ref, key) {
|
|
12789
|
-
const value = _optionalChain([ref, 'optionalAccess',
|
|
12565
|
+
const value = _optionalChain([ref, 'optionalAccess', _321 => _321[key]]);
|
|
12790
12566
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
12791
12567
|
}
|
|
12792
12568
|
function VendorGlyph({ title, logoUrl }) {
|
|
12793
|
-
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12569
|
+
if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
|
|
12794
12570
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
|
|
12795
12571
|
}
|
|
12796
12572
|
function SitePageGlyph({ iconName }) {
|
|
12797
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12573
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
|
|
12798
12574
|
}
|
|
12799
12575
|
var GITHUB_CARD_CONFIGS = {
|
|
12800
12576
|
github_commit: { label: "GitHub commit", kind: "commit" },
|
|
@@ -12832,7 +12608,7 @@ var REF_GLYPH_CARD_CONFIGS = {
|
|
|
12832
12608
|
// rate. A glyph card; it opens the pricing page.
|
|
12833
12609
|
openframe_price: { label: "OpenFrame price" },
|
|
12834
12610
|
// A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
|
|
12835
|
-
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess',
|
|
12611
|
+
vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _322 => _322.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
|
|
12836
12612
|
};
|
|
12837
12613
|
function sourceGlyph(docType) {
|
|
12838
12614
|
const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
|
|
@@ -12851,8 +12627,8 @@ function refGlyphRegistryEntries() {
|
|
|
12851
12627
|
title: displayRef.title,
|
|
12852
12628
|
description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
|
|
12853
12629
|
cover: entityCover(
|
|
12854
|
-
_optionalChain([displayRef, 'access',
|
|
12855
|
-
_nullishCoalesce(_optionalChain([opts, 'access',
|
|
12630
|
+
_optionalChain([displayRef, 'access', _323 => _323.metadata, 'optionalAccess', _324 => _324.videoPoster]),
|
|
12631
|
+
_nullishCoalesce(_optionalChain([opts, 'access', _325 => _325.extras, 'optionalAccess', _326 => _326.buildOgPlaceholderUrl, 'optionalCall', _327 => _327(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
|
|
12856
12632
|
),
|
|
12857
12633
|
fallbackIcon: glyph(displayRef),
|
|
12858
12634
|
status: { label: cfg.label, variant: "grey" },
|
|
@@ -12867,9 +12643,9 @@ function refGlyphRegistryEntries() {
|
|
|
12867
12643
|
}
|
|
12868
12644
|
function fetchedEmployeeEntryDisplayRef(item, chatRef) {
|
|
12869
12645
|
const it = item;
|
|
12870
|
-
const title = typeof _optionalChain([it, 'optionalAccess',
|
|
12871
|
-
const author = typeof _optionalChain([it, 'optionalAccess',
|
|
12872
|
-
const summary = typeof _optionalChain([it, 'optionalAccess',
|
|
12646
|
+
const title = typeof _optionalChain([it, 'optionalAccess', _328 => _328.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
|
|
12647
|
+
const author = typeof _optionalChain([it, 'optionalAccess', _329 => _329.author, 'optionalAccess', _330 => _330.full_name]) === "string" ? it.author.full_name.trim() : "";
|
|
12648
|
+
const summary = typeof _optionalChain([it, 'optionalAccess', _331 => _331.summary]) === "string" ? it.summary.trim() : "";
|
|
12873
12649
|
const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
|
|
12874
12650
|
return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
|
|
12875
12651
|
}
|
|
@@ -12922,7 +12698,7 @@ function programRegistryEntries() {
|
|
|
12922
12698
|
contentRefType: cfg.contentRefType,
|
|
12923
12699
|
bareInline: true,
|
|
12924
12700
|
disclosure: cfg.disclosure,
|
|
12925
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12701
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12926
12702
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12927
12703
|
ProgramChatCard,
|
|
12928
12704
|
{
|
|
@@ -12932,7 +12708,7 @@ function programRegistryEntries() {
|
|
|
12932
12708
|
discuss: opts.discuss,
|
|
12933
12709
|
configKey: cfg.configKey,
|
|
12934
12710
|
label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
|
|
12935
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
12711
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _332 => _332.extras, 'optionalAccess', _333 => _333.buildOgPlaceholderUrl, 'optionalCall', _334 => _334(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _335 => _335.title]), () => ( "")))]), () => ( null))
|
|
12936
12712
|
}
|
|
12937
12713
|
)
|
|
12938
12714
|
}));
|
|
@@ -12953,7 +12729,7 @@ var ROADMAP_CARD_CONFIGS = {
|
|
|
12953
12729
|
// The card's destination IS the ClickUp deep link, derived from the
|
|
12954
12730
|
// task id post-fetch (the refs frame used to carry it).
|
|
12955
12731
|
noComposedHref: true,
|
|
12956
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
12732
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _336 => _336.id]) != null ? clickupTaskUrl(String(item.id)) : null
|
|
12957
12733
|
}
|
|
12958
12734
|
};
|
|
12959
12735
|
function roadmapRegistryEntries() {
|
|
@@ -12963,7 +12739,7 @@ function roadmapRegistryEntries() {
|
|
|
12963
12739
|
bareInline: true,
|
|
12964
12740
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12965
12741
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12966
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12742
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12967
12743
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12968
12744
|
RoadmapChatCard,
|
|
12969
12745
|
{
|
|
@@ -12995,8 +12771,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12995
12771
|
DeletedDataCard,
|
|
12996
12772
|
{
|
|
12997
12773
|
title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
|
|
12998
|
-
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
12999
|
-
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access',
|
|
12774
|
+
entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _337 => _337.metadata, 'optionalAccess', _338 => _338.entity_label]), () => ( null)),
|
|
12775
|
+
recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _339 => _339.metadata, 'optionalAccess', _340 => _340.recovery_note]), () => ( null))
|
|
13000
12776
|
}
|
|
13001
12777
|
)
|
|
13002
12778
|
},
|
|
@@ -13013,7 +12789,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13013
12789
|
bareInline: true,
|
|
13014
12790
|
contentRefType: "faq",
|
|
13015
12791
|
noComposedHref: true,
|
|
13016
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
12792
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _341 => _341.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
|
|
13017
12793
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
13018
12794
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
13019
12795
|
},
|
|
@@ -13021,12 +12797,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13021
12797
|
// projection route; `extractCardItems` turns its object payload into the
|
|
13022
12798
|
// single matched row. Destination is the public page unless the host
|
|
13023
12799
|
// re-homes the type (`composeContentUrl` override).
|
|
13024
|
-
[
|
|
12800
|
+
[_chunkIM366HS6cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
13025
12801
|
label: "Trust center",
|
|
13026
12802
|
bareInline: true,
|
|
13027
|
-
contentRefType:
|
|
12803
|
+
contentRefType: _chunkIM366HS6cjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
13028
12804
|
noComposedHref: true,
|
|
13029
|
-
fallbackHref: () =>
|
|
12805
|
+
fallbackHref: () => _chunkIM366HS6cjs.TRUST_CENTER_PAGE_PATH,
|
|
13030
12806
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
13031
12807
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
13032
12808
|
},
|
|
@@ -13052,7 +12828,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13052
12828
|
label: "Blog post",
|
|
13053
12829
|
contentRefType: "blog_post_existing",
|
|
13054
12830
|
bareInline: true,
|
|
13055
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12831
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.BlogCard, { loading: true, size: "sm" }),
|
|
13056
12832
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13057
12833
|
BlogChatCard,
|
|
13058
12834
|
{
|
|
@@ -13060,8 +12836,8 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13060
12836
|
chatRef,
|
|
13061
12837
|
isNewTab: opts.isNewTab,
|
|
13062
12838
|
discuss: opts.discuss,
|
|
13063
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
13064
|
-
hasEmbeddedVideo: _optionalChain([chatRef, 'access',
|
|
12839
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _342 => _342.extras, 'optionalAccess', _343 => _343.buildOgPlaceholderUrl, 'optionalCall', _344 => _344(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _345 => _345.title]), () => ( "")))]), () => ( null)),
|
|
12840
|
+
hasEmbeddedVideo: _optionalChain([chatRef, 'access', _346 => _346.metadata, 'optionalAccess', _347 => _347.hasEmbeddedVideo]) === true
|
|
13065
12841
|
}
|
|
13066
12842
|
)
|
|
13067
12843
|
},
|
|
@@ -13070,7 +12846,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13070
12846
|
label: "Case study",
|
|
13071
12847
|
contentRefType: "case_study",
|
|
13072
12848
|
bareInline: true,
|
|
13073
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12849
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.CaseStudyCard, { loading: true, size: "sm" }),
|
|
13074
12850
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13075
12851
|
CaseStudyChatCard,
|
|
13076
12852
|
{
|
|
@@ -13078,7 +12854,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13078
12854
|
chatRef,
|
|
13079
12855
|
isNewTab: opts.isNewTab,
|
|
13080
12856
|
discuss: opts.discuss,
|
|
13081
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
12857
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _348 => _348.extras, 'optionalAccess', _349 => _349.buildOgPlaceholderUrl, 'optionalCall', _350 => _350(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _351 => _351.title]), () => ( "")))]), () => ( null))
|
|
13082
12858
|
}
|
|
13083
12859
|
)
|
|
13084
12860
|
},
|
|
@@ -13087,7 +12863,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13087
12863
|
contentRefType: "design_doc",
|
|
13088
12864
|
bareInline: true,
|
|
13089
12865
|
noComposedHref: true,
|
|
13090
|
-
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess',
|
|
12866
|
+
fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _352 => _352.url]), () => ( null)),
|
|
13091
12867
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
13092
12868
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
13093
12869
|
},
|
|
@@ -13096,7 +12872,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13096
12872
|
label: "Customer interview",
|
|
13097
12873
|
contentRefType: "customer_interview",
|
|
13098
12874
|
bareInline: true,
|
|
13099
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12875
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
13100
12876
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13101
12877
|
CustomerInterviewChatCard,
|
|
13102
12878
|
{
|
|
@@ -13104,7 +12880,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13104
12880
|
chatRef,
|
|
13105
12881
|
isNewTab: opts.isNewTab,
|
|
13106
12882
|
discuss: opts.discuss,
|
|
13107
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
12883
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _353 => _353.extras, 'optionalAccess', _354 => _354.buildOgPlaceholderUrl, 'optionalCall', _355 => _355(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _356 => _356.title]), () => ( "")))]), () => ( null))
|
|
13108
12884
|
}
|
|
13109
12885
|
)
|
|
13110
12886
|
},
|
|
@@ -13113,9 +12889,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13113
12889
|
label: "Product release",
|
|
13114
12890
|
contentRefType: "product_release",
|
|
13115
12891
|
bareInline: true,
|
|
13116
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12892
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
13117
12893
|
render: (item, chatRef, opts) => {
|
|
13118
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
12894
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _357 => _357.extras, 'optionalAccess', _358 => _358.buildProductReleaseCardProps]), () => ( _chunkIM366HS6cjs.defaultBuildProductReleaseCardProps));
|
|
13119
12895
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13120
12896
|
ProductReleaseChatCard,
|
|
13121
12897
|
{
|
|
@@ -13134,7 +12910,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13134
12910
|
label: "Investor update",
|
|
13135
12911
|
contentRefType: "investor_update",
|
|
13136
12912
|
bareInline: true,
|
|
13137
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12913
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
13138
12914
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13139
12915
|
InvestorUpdateChatCard,
|
|
13140
12916
|
{
|
|
@@ -13142,7 +12918,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13142
12918
|
chatRef,
|
|
13143
12919
|
isNewTab: opts.isNewTab,
|
|
13144
12920
|
discuss: opts.discuss,
|
|
13145
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
12921
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _359 => _359.extras, 'optionalAccess', _360 => _360.buildOgPlaceholderUrl, 'optionalCall', _361 => _361(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _362 => _362.title]), () => ( "")))]), () => ( null))
|
|
13146
12922
|
}
|
|
13147
12923
|
)
|
|
13148
12924
|
},
|
|
@@ -13153,7 +12929,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13153
12929
|
bareInline: true,
|
|
13154
12930
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
13155
12931
|
displayAction: true,
|
|
13156
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12932
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
13157
12933
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13158
12934
|
OnboardingGuideChatCard,
|
|
13159
12935
|
{
|
|
@@ -13161,7 +12937,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13161
12937
|
chatRef,
|
|
13162
12938
|
isNewTab: opts.isNewTab,
|
|
13163
12939
|
discuss: opts.discuss,
|
|
13164
|
-
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
12940
|
+
ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _363 => _363.extras, 'optionalAccess', _364 => _364.buildOgPlaceholderUrl, 'optionalCall', _365 => _365(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _366 => _366.title]), () => ( "")))]), () => ( null))
|
|
13165
12941
|
}
|
|
13166
12942
|
)
|
|
13167
12943
|
},
|
|
@@ -13172,35 +12948,35 @@ var CHAT_CARD_REGISTRY = {
|
|
|
13172
12948
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
13173
12949
|
// No public viewer — synthesize the hub-internal admin URL post-fetch
|
|
13174
12950
|
// so the wrapper + isNewTab computation see the actual destination.
|
|
13175
|
-
fallbackHref: (item) => _optionalChain([item, 'optionalAccess',
|
|
12951
|
+
fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _367 => _367.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
|
|
13176
12952
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
13177
12953
|
},
|
|
13178
12954
|
...roadmapRegistryEntries()
|
|
13179
12955
|
};
|
|
13180
12956
|
function chatCardLabel(docType) {
|
|
13181
|
-
return _optionalChain([CHAT_CARD_REGISTRY, 'access',
|
|
12957
|
+
return _optionalChain([CHAT_CARD_REGISTRY, 'access', _368 => _368[docType], 'optionalAccess', _369 => _369.label]);
|
|
13182
12958
|
}
|
|
13183
12959
|
function ChatCardNavWrap({
|
|
13184
12960
|
href,
|
|
13185
12961
|
path,
|
|
13186
12962
|
targetPlatform,
|
|
13187
12963
|
isNewTab,
|
|
12964
|
+
hostRoute,
|
|
13188
12965
|
children
|
|
13189
12966
|
}) {
|
|
13190
12967
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
13191
|
-
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
13192
12968
|
const panel = useChatPanel();
|
|
13193
12969
|
const onClickCapture = (e) => {
|
|
13194
12970
|
if (!href) return;
|
|
13195
12971
|
const targetEl = e.target;
|
|
13196
12972
|
const host = e.currentTarget;
|
|
13197
|
-
if (!_optionalChain([host, 'optionalAccess',
|
|
13198
|
-
if (_optionalChain([targetEl, 'optionalAccess',
|
|
13199
|
-
if (!_optionalChain([targetEl, 'optionalAccess',
|
|
13200
|
-
const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform,
|
|
12973
|
+
if (!_optionalChain([host, 'optionalAccess', _370 => _370.contains, 'call', _371 => _371(targetEl)])) return;
|
|
12974
|
+
if (_optionalChain([targetEl, 'optionalAccess', _372 => _372.closest, 'optionalCall', _373 => _373("button")])) return;
|
|
12975
|
+
if (!_optionalChain([targetEl, 'optionalAccess', _374 => _374.closest, 'optionalCall', _375 => _375("a")])) return;
|
|
12976
|
+
const handled = _chunkA34UNP5Vcjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
|
|
13201
12977
|
if (!handled) return;
|
|
13202
12978
|
e.stopPropagation();
|
|
13203
|
-
if (!isNewTab && _optionalChain([panel, 'optionalAccess',
|
|
12979
|
+
if (!isNewTab && _optionalChain([panel, 'optionalAccess', _376 => _376.closeChat])) panel.closeChat();
|
|
13204
12980
|
};
|
|
13205
12981
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
|
|
13206
12982
|
}
|
|
@@ -13220,19 +12996,12 @@ function CardWithDisclosure({
|
|
|
13220
12996
|
] })
|
|
13221
12997
|
);
|
|
13222
12998
|
}
|
|
13223
|
-
function ChatCardLoader({
|
|
13224
|
-
chatRef,
|
|
13225
|
-
onDiscuss,
|
|
13226
|
-
onDisplay,
|
|
13227
|
-
baseRoute,
|
|
13228
|
-
chipBasePlatform,
|
|
13229
|
-
extras
|
|
13230
|
-
}) {
|
|
12999
|
+
function ChatCardLoader({ chatRef, onDiscuss, onDisplay, extras }) {
|
|
13231
13000
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
13232
13001
|
const entry = CHAT_CARD_REGISTRY[chatRef.type];
|
|
13233
13002
|
const fetchEntry = entry && entry.contentRefType ? entry : null;
|
|
13234
13003
|
const { item, isLoading, isError, isFetched } = useChatCardItem(
|
|
13235
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess',
|
|
13004
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _377 => _377.contentRefType]), () => ( "")),
|
|
13236
13005
|
fetchEntry ? chatRef.id : ""
|
|
13237
13006
|
);
|
|
13238
13007
|
if (!entry) return null;
|
|
@@ -13240,9 +13009,9 @@ function ChatCardLoader({
|
|
|
13240
13009
|
chatRef,
|
|
13241
13010
|
item: fetchEntry ? item : void 0,
|
|
13242
13011
|
entry: fetchEntry,
|
|
13243
|
-
ctx: sourceRowCtxFromRuntime(runtime
|
|
13012
|
+
ctx: sourceRowCtxFromRuntime(runtime),
|
|
13244
13013
|
composeContentUrl: runtime.composeContentUrl,
|
|
13245
|
-
resolveHref: (href) =>
|
|
13014
|
+
resolveHref: (href) => _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, href).href
|
|
13246
13015
|
});
|
|
13247
13016
|
const hrefResolvedChatRef = {
|
|
13248
13017
|
...chatRef,
|
|
@@ -13253,7 +13022,8 @@ function ChatCardLoader({
|
|
|
13253
13022
|
};
|
|
13254
13023
|
const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
|
|
13255
13024
|
const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
|
|
13256
|
-
const
|
|
13025
|
+
const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url && _chunkDVHSYPDBcjs.isRelativeHref.call(void 0, finalChatRef.url);
|
|
13026
|
+
const isNewTab = finalChatRef.url ? _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, finalChatRef.url, finalChatRef.targetPlatform, { hostRoute }).isNewTab : false;
|
|
13257
13027
|
const useDisplay = !!entry.displayAction && !!onDisplay;
|
|
13258
13028
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
13259
13029
|
const discuss = discussFn ? {
|
|
@@ -13262,13 +13032,11 @@ function ChatCardLoader({
|
|
|
13262
13032
|
run: () => discussFn(finalChatRef)
|
|
13263
13033
|
} : void 0;
|
|
13264
13034
|
const renderOpts = {
|
|
13265
|
-
baseRoute,
|
|
13266
|
-
chipBasePlatform,
|
|
13267
13035
|
extras,
|
|
13268
13036
|
isNewTab,
|
|
13269
13037
|
discuss
|
|
13270
13038
|
};
|
|
13271
|
-
const path = typeof _optionalChain([finalChatRef, 'access',
|
|
13039
|
+
const path = typeof _optionalChain([finalChatRef, 'access', _378 => _378.metadata, 'optionalAccess', _379 => _379.path]) === "string" ? finalChatRef.metadata.path : null;
|
|
13272
13040
|
const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13273
13041
|
ChatCardNavWrap,
|
|
13274
13042
|
{
|
|
@@ -13276,6 +13044,7 @@ function ChatCardLoader({
|
|
|
13276
13044
|
path,
|
|
13277
13045
|
targetPlatform: _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)),
|
|
13278
13046
|
isNewTab,
|
|
13047
|
+
hostRoute,
|
|
13279
13048
|
children
|
|
13280
13049
|
}
|
|
13281
13050
|
);
|
|
@@ -13299,7 +13068,7 @@ function ChatCardLoader({
|
|
|
13299
13068
|
}
|
|
13300
13069
|
if (isLoading) {
|
|
13301
13070
|
return finish(
|
|
13302
|
-
_nullishCoalesce(_optionalChain([fetchEntry, 'access',
|
|
13071
|
+
_nullishCoalesce(_optionalChain([fetchEntry, 'access', _380 => _380.skeleton, 'optionalCall', _381 => _381()]), () => ( null)),
|
|
13303
13072
|
entry.disclosure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatCardDisclosureButton, { kind: entry.disclosure, loading: true }) : void 0,
|
|
13304
13073
|
true
|
|
13305
13074
|
);
|
|
@@ -13313,7 +13082,7 @@ function ChatCardLoader({
|
|
|
13313
13082
|
}
|
|
13314
13083
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not found" });
|
|
13315
13084
|
}
|
|
13316
|
-
const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call',
|
|
13085
|
+
const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _382 => _382(item, finalChatRef), 'optionalAccess', _383 => _383.kind])));
|
|
13317
13086
|
if (kind) {
|
|
13318
13087
|
const content = CHAT_CARD_DISCLOSURES[kind].fromItem(item, finalChatRef);
|
|
13319
13088
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -13328,18 +13097,8 @@ function ChatCardLoader({
|
|
|
13328
13097
|
return finish(entry.render(item, finalChatRef, renderOpts));
|
|
13329
13098
|
}
|
|
13330
13099
|
function renderChatInlineEntityCard(chatRef, options = {}) {
|
|
13331
|
-
const { onDiscuss, onDisplay,
|
|
13332
|
-
const loader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13333
|
-
ChatCardLoader,
|
|
13334
|
-
{
|
|
13335
|
-
chatRef,
|
|
13336
|
-
onDiscuss,
|
|
13337
|
-
onDisplay,
|
|
13338
|
-
baseRoute,
|
|
13339
|
-
chipBasePlatform,
|
|
13340
|
-
extras
|
|
13341
|
-
}
|
|
13342
|
-
);
|
|
13100
|
+
const { onDiscuss, onDisplay, extras } = options;
|
|
13101
|
+
const loader = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatCardLoader, { chatRef, onDiscuss, onDisplay, extras });
|
|
13343
13102
|
if (chatRef.type === "video") {
|
|
13344
13103
|
const decoded = decodeVideoMarkerId(chatRef.id);
|
|
13345
13104
|
if (decoded) {
|
|
@@ -13594,7 +13353,7 @@ function useChunkCatchup({
|
|
|
13594
13353
|
if (catchupRun.current === run) {
|
|
13595
13354
|
if (currentDialogId !== dialogIdRef.current) {
|
|
13596
13355
|
catchupRun.current = null;
|
|
13597
|
-
if (_optionalChain([pendingCatchupRef, 'access',
|
|
13356
|
+
if (_optionalChain([pendingCatchupRef, 'access', _384 => _384.current, 'optionalAccess', _385 => _385.dialogId]) === currentDialogId) {
|
|
13598
13357
|
pendingCatchupRef.current = null;
|
|
13599
13358
|
}
|
|
13600
13359
|
} else {
|
|
@@ -13605,7 +13364,7 @@ function useChunkCatchup({
|
|
|
13605
13364
|
if (pending.dialogId === currentDialogId) {
|
|
13606
13365
|
rearmForQueuedCatchup();
|
|
13607
13366
|
try {
|
|
13608
|
-
await _optionalChain([catchUpChunksRef, 'access',
|
|
13367
|
+
await _optionalChain([catchUpChunksRef, 'access', _386 => _386.current, 'optionalCall', _387 => _387(pending.fromSequenceId)]);
|
|
13609
13368
|
} catch (rerunError) {
|
|
13610
13369
|
console.error("Queued catch-up re-run failed:", rerunError);
|
|
13611
13370
|
}
|
|
@@ -13756,20 +13515,20 @@ function useNatsDialogSubscription({
|
|
|
13756
13515
|
const tearDownSubscriptions = () => {
|
|
13757
13516
|
subscriptionRefs.current.forEach((sub) => {
|
|
13758
13517
|
try {
|
|
13759
|
-
_optionalChain([sub, 'optionalAccess',
|
|
13760
|
-
} catch (
|
|
13518
|
+
_optionalChain([sub, 'optionalAccess', _388 => _388.unsubscribe, 'call', _389 => _389()]);
|
|
13519
|
+
} catch (e9) {
|
|
13761
13520
|
}
|
|
13762
13521
|
});
|
|
13763
13522
|
subscriptionRefs.current.clear();
|
|
13764
13523
|
lastSubscribedDialogIdRef.current = null;
|
|
13765
|
-
_optionalChain([abortControllerRef, 'access',
|
|
13524
|
+
_optionalChain([abortControllerRef, 'access', _390 => _390.current, 'optionalAccess', _391 => _391.abort, 'call', _392 => _392()]);
|
|
13766
13525
|
abortControllerRef.current = null;
|
|
13767
13526
|
};
|
|
13768
13527
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
13769
13528
|
const lifecycle = _chunkQDB2JO55cjs.startConnectionLifecycle.call(void 0, {
|
|
13770
13529
|
conn: sharedConn,
|
|
13771
13530
|
wsUrl,
|
|
13772
|
-
onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access',
|
|
13531
|
+
onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _393 => _393.current, 'optionalCall', _394 => _394(ctx)]),
|
|
13773
13532
|
backoff: reconnectionBackoffRef.current,
|
|
13774
13533
|
getFreshUrl: () => getNatsWsUrlRef.current(),
|
|
13775
13534
|
shouldRetryOn: isDisconnectStatus,
|
|
@@ -13780,7 +13539,7 @@ function useNatsDialogSubscription({
|
|
|
13780
13539
|
setReconnectionCount((c) => c + 1);
|
|
13781
13540
|
}
|
|
13782
13541
|
hadConnectionBeforeRef.current = true;
|
|
13783
|
-
_optionalChain([onConnectRef, 'access',
|
|
13542
|
+
_optionalChain([onConnectRef, 'access', _395 => _395.current, 'optionalCall', _396 => _396()]);
|
|
13784
13543
|
}
|
|
13785
13544
|
if (status === "error") {
|
|
13786
13545
|
console.warn("[NATS] protocol error:", evt.data);
|
|
@@ -13790,7 +13549,7 @@ function useNatsDialogSubscription({
|
|
|
13790
13549
|
setIsConnected(false);
|
|
13791
13550
|
setIsSubscribed(false);
|
|
13792
13551
|
tearDownSubscriptions();
|
|
13793
|
-
_optionalChain([onDisconnectRef, 'access',
|
|
13552
|
+
_optionalChain([onDisconnectRef, 'access', _397 => _397.current, 'optionalCall', _398 => _398()]);
|
|
13794
13553
|
}
|
|
13795
13554
|
}
|
|
13796
13555
|
});
|
|
@@ -13821,13 +13580,13 @@ function useNatsDialogSubscription({
|
|
|
13821
13580
|
setIsSubscribed(false);
|
|
13822
13581
|
subscriptionRefs.current.forEach((sub) => {
|
|
13823
13582
|
try {
|
|
13824
|
-
_optionalChain([sub, 'optionalAccess',
|
|
13825
|
-
} catch (
|
|
13583
|
+
_optionalChain([sub, 'optionalAccess', _399 => _399.unsubscribe, 'call', _400 => _400()]);
|
|
13584
|
+
} catch (e10) {
|
|
13826
13585
|
}
|
|
13827
13586
|
});
|
|
13828
13587
|
subscriptionRefs.current.clear();
|
|
13829
13588
|
lastSubscribedDialogIdRef.current = null;
|
|
13830
|
-
_optionalChain([abortControllerRef, 'access',
|
|
13589
|
+
_optionalChain([abortControllerRef, 'access', _401 => _401.current, 'optionalAccess', _402 => _402.abort, 'call', _403 => _403()]);
|
|
13831
13590
|
abortControllerRef.current = null;
|
|
13832
13591
|
}
|
|
13833
13592
|
return void 0;
|
|
@@ -13839,12 +13598,12 @@ function useNatsDialogSubscription({
|
|
|
13839
13598
|
if (subscriptionRefs.current.size > 0) {
|
|
13840
13599
|
subscriptionRefs.current.forEach((sub) => {
|
|
13841
13600
|
try {
|
|
13842
|
-
_optionalChain([sub, 'optionalAccess',
|
|
13843
|
-
} catch (
|
|
13601
|
+
_optionalChain([sub, 'optionalAccess', _404 => _404.unsubscribe, 'call', _405 => _405()]);
|
|
13602
|
+
} catch (e11) {
|
|
13844
13603
|
}
|
|
13845
13604
|
});
|
|
13846
13605
|
subscriptionRefs.current.clear();
|
|
13847
|
-
_optionalChain([abortControllerRef, 'access',
|
|
13606
|
+
_optionalChain([abortControllerRef, 'access', _406 => _406.current, 'optionalAccess', _407 => _407.abort, 'call', _408 => _408()]);
|
|
13848
13607
|
}
|
|
13849
13608
|
abortControllerRef.current = new AbortController();
|
|
13850
13609
|
const abort = abortControllerRef.current;
|
|
@@ -13863,7 +13622,7 @@ function useNatsDialogSubscription({
|
|
|
13863
13622
|
const dataStr = decoder.decode(msg.data);
|
|
13864
13623
|
const parsed = JSON.parse(dataStr);
|
|
13865
13624
|
onEventRef.current(parsed, messageType);
|
|
13866
|
-
} catch (
|
|
13625
|
+
} catch (e12) {
|
|
13867
13626
|
}
|
|
13868
13627
|
};
|
|
13869
13628
|
topicsRef.current.forEach((topic) => {
|
|
@@ -13874,7 +13633,7 @@ function useNatsDialogSubscription({
|
|
|
13874
13633
|
});
|
|
13875
13634
|
lastSubscribedDialogIdRef.current = dialogId;
|
|
13876
13635
|
setIsSubscribed(true);
|
|
13877
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
13636
|
+
_optionalChain([onSubscribedRef, 'access', _409 => _409.current, 'optionalCall', _410 => _410()]);
|
|
13878
13637
|
};
|
|
13879
13638
|
if (isConnectedRef.current) {
|
|
13880
13639
|
createSubscriptions();
|
|
@@ -13885,8 +13644,8 @@ function useNatsDialogSubscription({
|
|
|
13885
13644
|
abort.abort();
|
|
13886
13645
|
subscriptions.forEach((sub) => {
|
|
13887
13646
|
try {
|
|
13888
|
-
_optionalChain([sub, 'optionalAccess',
|
|
13889
|
-
} catch (
|
|
13647
|
+
_optionalChain([sub, 'optionalAccess', _411 => _411.unsubscribe, 'call', _412 => _412()]);
|
|
13648
|
+
} catch (e13) {
|
|
13890
13649
|
}
|
|
13891
13650
|
});
|
|
13892
13651
|
subscriptions.clear();
|
|
@@ -13913,7 +13672,7 @@ function useNatsDialogSubscription({
|
|
|
13913
13672
|
const dataStr = decoder.decode(msg.data);
|
|
13914
13673
|
const parsed = JSON.parse(dataStr);
|
|
13915
13674
|
onEventRef.current(parsed, messageType);
|
|
13916
|
-
} catch (
|
|
13675
|
+
} catch (e14) {
|
|
13917
13676
|
}
|
|
13918
13677
|
};
|
|
13919
13678
|
topicsRef.current.forEach((topic) => {
|
|
@@ -13924,7 +13683,7 @@ function useNatsDialogSubscription({
|
|
|
13924
13683
|
});
|
|
13925
13684
|
lastSubscribedDialogIdRef.current = currentDialogId;
|
|
13926
13685
|
setIsSubscribed(true);
|
|
13927
|
-
_optionalChain([onSubscribedRef, 'access',
|
|
13686
|
+
_optionalChain([onSubscribedRef, 'access', _413 => _413.current, 'optionalCall', _414 => _414()]);
|
|
13928
13687
|
} else if (subscriptionRefs.current.size > 0) {
|
|
13929
13688
|
setIsSubscribed(true);
|
|
13930
13689
|
}
|
|
@@ -13932,10 +13691,10 @@ function useNatsDialogSubscription({
|
|
|
13932
13691
|
return { isConnected, isSubscribed, reconnectionCount };
|
|
13933
13692
|
}
|
|
13934
13693
|
function buildNatsWsUrl(apiBaseUrl, options) {
|
|
13935
|
-
const path = _optionalChain([options, 'optionalAccess',
|
|
13694
|
+
const path = _optionalChain([options, 'optionalAccess', _415 => _415.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
|
|
13936
13695
|
const u = new URL(path, apiBaseUrl);
|
|
13937
13696
|
u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
|
|
13938
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
13697
|
+
if (_optionalChain([options, 'optionalAccess', _416 => _416.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _417 => _417.token])) {
|
|
13939
13698
|
u.searchParams.set("authorization", options.token);
|
|
13940
13699
|
}
|
|
13941
13700
|
return u.toString();
|
|
@@ -13953,7 +13712,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
13953
13712
|
const data = await res.json();
|
|
13954
13713
|
return _nullishCoalesce(data.commands, () => ( []));
|
|
13955
13714
|
} catch (err) {
|
|
13956
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
13715
|
+
if (_optionalChain([err, 'optionalAccess', _418 => _418.name]) === "AbortError") throw err;
|
|
13957
13716
|
console.warn("[chat] slash-commands fetch failed, showing none:", err);
|
|
13958
13717
|
return [];
|
|
13959
13718
|
}
|
|
@@ -13961,8 +13720,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
|
|
|
13961
13720
|
var NO_COMMANDS = [];
|
|
13962
13721
|
function useSlashCommands(prefix, commandsUrl) {
|
|
13963
13722
|
const [answered, setAnswered] = _react.useState.call(void 0, null);
|
|
13964
|
-
const commands = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
13965
|
-
const loading = prefix != null && _optionalChain([answered, 'optionalAccess',
|
|
13723
|
+
const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _419 => _419.prefix]) === prefix ? answered.commands : NO_COMMANDS;
|
|
13724
|
+
const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _420 => _420.prefix]) !== prefix;
|
|
13966
13725
|
_react.useEffect.call(void 0, () => {
|
|
13967
13726
|
if (prefix == null) return void 0;
|
|
13968
13727
|
let cancelled = false;
|
|
@@ -13972,7 +13731,7 @@ function useSlashCommands(prefix, commandsUrl) {
|
|
|
13972
13731
|
const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
|
|
13973
13732
|
if (!cancelled) setAnswered({ prefix, commands: next });
|
|
13974
13733
|
} catch (err) {
|
|
13975
|
-
if (!cancelled && _optionalChain([err, 'optionalAccess',
|
|
13734
|
+
if (!cancelled && _optionalChain([err, 'optionalAccess', _421 => _421.name]) !== "AbortError") {
|
|
13976
13735
|
console.warn("[use-slash-commands] fetch failed:", err);
|
|
13977
13736
|
setAnswered({ prefix, commands: NO_COMMANDS });
|
|
13978
13737
|
}
|
|
@@ -13995,7 +13754,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
|
|
|
13995
13754
|
const query = _reactquery.useQuery.call(void 0, {
|
|
13996
13755
|
queryKey: ["chat-slash-commands", commandsUrl],
|
|
13997
13756
|
queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
|
|
13998
|
-
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
13757
|
+
enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _422 => _422.enabled]), () => ( true)),
|
|
13999
13758
|
staleTime: Infinity,
|
|
14000
13759
|
gcTime: Infinity,
|
|
14001
13760
|
// The commands registry is non-critical chrome — a failure degrades to an
|
|
@@ -14034,21 +13793,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
|
|
|
14034
13793
|
}
|
|
14035
13794
|
const data = await res.json();
|
|
14036
13795
|
return {
|
|
14037
|
-
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14038
|
-
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14039
|
-
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14040
|
-
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14041
|
-
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
14042
|
-
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
13796
|
+
name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _423 => _423.name]), () => ( null)),
|
|
13797
|
+
icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _424 => _424.icon]), () => ( null)),
|
|
13798
|
+
greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _425 => _425.greeting]), () => ( null)),
|
|
13799
|
+
enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _426 => _426.enabledRagTableIds]), () => ( [])),
|
|
13800
|
+
quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _427 => _427.quickActions]), () => ( [])),
|
|
13801
|
+
suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _428 => _428.suggestedQueries]), () => ( []))
|
|
14043
13802
|
};
|
|
14044
13803
|
} catch (err) {
|
|
14045
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
13804
|
+
if (_optionalChain([err, 'optionalAccess', _429 => _429.name]) === "AbortError") throw err;
|
|
14046
13805
|
console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
|
|
14047
13806
|
return EMPTY_STATE_FALLBACK;
|
|
14048
13807
|
}
|
|
14049
13808
|
}
|
|
14050
13809
|
function useEmptyStateConfig(emptyStateUrl, options) {
|
|
14051
|
-
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
13810
|
+
const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _430 => _430.enabled]), () => ( true))) && !!emptyStateUrl;
|
|
14052
13811
|
const query = _reactquery.useQuery.call(void 0, {
|
|
14053
13812
|
queryKey: ["chat-empty-state", emptyStateUrl],
|
|
14054
13813
|
queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
|
|
@@ -14077,7 +13836,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
|
|
|
14077
13836
|
var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
|
|
14078
13837
|
function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
14079
13838
|
return new Promise((resolve, reject) => {
|
|
14080
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
13839
|
+
if (_optionalChain([signal, 'optionalAccess', _431 => _431.aborted])) {
|
|
14081
13840
|
reject(new Error("Upload cancelled"));
|
|
14082
13841
|
return;
|
|
14083
13842
|
}
|
|
@@ -14119,7 +13878,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
|
|
|
14119
13878
|
const handleSignalAbort = () => {
|
|
14120
13879
|
xhr.abort();
|
|
14121
13880
|
};
|
|
14122
|
-
_optionalChain([signal, 'optionalAccess',
|
|
13881
|
+
_optionalChain([signal, 'optionalAccess', _432 => _432.addEventListener, 'call', _433 => _433("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
|
|
14123
13882
|
xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
|
|
14124
13883
|
xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
|
|
14125
13884
|
xhr.addEventListener("error", handleError, { signal: listeners.signal });
|
|
@@ -14163,10 +13922,10 @@ function useChatAttachments() {
|
|
|
14163
13922
|
try {
|
|
14164
13923
|
sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
|
|
14165
13924
|
} catch (err) {
|
|
14166
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
13925
|
+
if (_optionalChain([ctrl, 'optionalAccess', _434 => _434.signal, 'access', _435 => _435.aborted])) return;
|
|
14167
13926
|
throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
|
|
14168
13927
|
}
|
|
14169
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
13928
|
+
if (_optionalChain([ctrl, 'optionalAccess', _436 => _436.signal, 'access', _437 => _437.aborted])) return;
|
|
14170
13929
|
if (!sniffed) {
|
|
14171
13930
|
throw new Error("Unrecognized file format");
|
|
14172
13931
|
}
|
|
@@ -14180,7 +13939,7 @@ function useChatAttachments() {
|
|
|
14180
13939
|
const urlResp = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
|
|
14181
13940
|
method: "POST",
|
|
14182
13941
|
headers: { "Content-Type": "application/json" },
|
|
14183
|
-
signal: _optionalChain([ctrl, 'optionalAccess',
|
|
13942
|
+
signal: _optionalChain([ctrl, 'optionalAccess', _438 => _438.signal]),
|
|
14184
13943
|
body: JSON.stringify({
|
|
14185
13944
|
fileName: att.file.name,
|
|
14186
13945
|
// Pass the SNIFFED MIME (not `file.type`, which can be a
|
|
@@ -14209,9 +13968,9 @@ function useChatAttachments() {
|
|
|
14209
13968
|
(pct) => {
|
|
14210
13969
|
updateOne(att.id, { progress: pct });
|
|
14211
13970
|
},
|
|
14212
|
-
_optionalChain([ctrl, 'optionalAccess',
|
|
13971
|
+
_optionalChain([ctrl, 'optionalAccess', _439 => _439.signal])
|
|
14213
13972
|
);
|
|
14214
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
13973
|
+
if (_optionalChain([ctrl, 'optionalAccess', _440 => _440.signal, 'access', _441 => _441.aborted])) return;
|
|
14215
13974
|
updateOne(att.id, {
|
|
14216
13975
|
status: "ready",
|
|
14217
13976
|
progress: 100,
|
|
@@ -14219,7 +13978,7 @@ function useChatAttachments() {
|
|
|
14219
13978
|
viewToken: mintData.viewToken
|
|
14220
13979
|
});
|
|
14221
13980
|
} catch (err) {
|
|
14222
|
-
if (_optionalChain([ctrl, 'optionalAccess',
|
|
13981
|
+
if (_optionalChain([ctrl, 'optionalAccess', _442 => _442.signal, 'access', _443 => _443.aborted])) return;
|
|
14223
13982
|
const message = err instanceof Error ? err.message : String(err);
|
|
14224
13983
|
updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
|
|
14225
13984
|
} finally {
|
|
@@ -14341,7 +14100,7 @@ function useChatAttachmentImageGallery() {
|
|
|
14341
14100
|
return () => root.removeEventListener("click", onClick);
|
|
14342
14101
|
}, [viewUrlPrefix]);
|
|
14343
14102
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14344
|
-
|
|
14103
|
+
_chunkIM366HS6cjs.ImageGalleryModal,
|
|
14345
14104
|
{
|
|
14346
14105
|
images: state.images,
|
|
14347
14106
|
isOpen: state.isOpen,
|
|
@@ -14368,11 +14127,11 @@ var ANON_DEFAULTS = {
|
|
|
14368
14127
|
function useResolveChatIdentity(enabled) {
|
|
14369
14128
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
14370
14129
|
const url = runtime.endpoints.identityUrl;
|
|
14371
|
-
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess',
|
|
14130
|
+
const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _444 => _444.email]), () => ( null));
|
|
14372
14131
|
const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
|
|
14373
14132
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
14374
|
-
const data = _optionalChain([resolved, 'optionalAccess',
|
|
14375
|
-
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess',
|
|
14133
|
+
const data = _optionalChain([resolved, 'optionalAccess', _445 => _445.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
|
|
14134
|
+
const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _446 => _446.key]) !== requestKey;
|
|
14376
14135
|
_react.useEffect.call(void 0, () => {
|
|
14377
14136
|
if (requestKey === null) return void 0;
|
|
14378
14137
|
let cancelled = false;
|
|
@@ -14494,9 +14253,9 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
|
|
|
14494
14253
|
role: "user",
|
|
14495
14254
|
content: content.question,
|
|
14496
14255
|
timestamp: new Date(at),
|
|
14497
|
-
name: _optionalChain([user, 'optionalAccess',
|
|
14498
|
-
avatar: _optionalChain([user, 'optionalAccess',
|
|
14499
|
-
authorType: _optionalChain([user, 'optionalAccess',
|
|
14256
|
+
name: _optionalChain([user, 'optionalAccess', _447 => _447.name]),
|
|
14257
|
+
avatar: _optionalChain([user, 'optionalAccess', _448 => _448.avatar]),
|
|
14258
|
+
authorType: _optionalChain([user, 'optionalAccess', _449 => _449.authorType])
|
|
14500
14259
|
},
|
|
14501
14260
|
{
|
|
14502
14261
|
id: `${id}-answer`,
|
|
@@ -14507,10 +14266,10 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
|
|
|
14507
14266
|
],
|
|
14508
14267
|
// A millisecond after the question, so the pair keeps its order.
|
|
14509
14268
|
timestamp: new Date(at + 1),
|
|
14510
|
-
name: _optionalChain([assistant, 'optionalAccess',
|
|
14511
|
-
avatar: _optionalChain([assistant, 'optionalAccess',
|
|
14512
|
-
authorType: _optionalChain([assistant, 'optionalAccess',
|
|
14513
|
-
assistantType: _optionalChain([assistant, 'optionalAccess',
|
|
14269
|
+
name: _optionalChain([assistant, 'optionalAccess', _450 => _450.name]),
|
|
14270
|
+
avatar: _optionalChain([assistant, 'optionalAccess', _451 => _451.avatar]),
|
|
14271
|
+
authorType: _optionalChain([assistant, 'optionalAccess', _452 => _452.authorType]),
|
|
14272
|
+
assistantType: _optionalChain([assistant, 'optionalAccess', _453 => _453.assistantType])
|
|
14514
14273
|
}
|
|
14515
14274
|
];
|
|
14516
14275
|
}
|
|
@@ -14526,8 +14285,8 @@ function mergeByTime(thread, local) {
|
|
|
14526
14285
|
const out = [];
|
|
14527
14286
|
let next = 0;
|
|
14528
14287
|
for (const message of thread) {
|
|
14529
|
-
const at = _optionalChain([message, 'access',
|
|
14530
|
-
while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access',
|
|
14288
|
+
const at = _optionalChain([message, 'access', _454 => _454.timestamp, 'optionalAccess', _455 => _455.getTime, 'call', _456 => _456()]);
|
|
14289
|
+
while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _457 => _457[next], 'access', _458 => _458.timestamp, 'optionalAccess', _459 => _459.getTime, 'call', _460 => _460()]), () => ( 0))) < at) {
|
|
14531
14290
|
out.push(local[next]);
|
|
14532
14291
|
next += 1;
|
|
14533
14292
|
}
|
|
@@ -14632,9 +14391,9 @@ function appendToTrailingAssistant(prev, segments) {
|
|
|
14632
14391
|
for (const seg of segments) {
|
|
14633
14392
|
const tail = merged[merged.length - 1];
|
|
14634
14393
|
const key = upsertKey(seg);
|
|
14635
|
-
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess',
|
|
14394
|
+
if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _461 => _461.type]) === "text") {
|
|
14636
14395
|
merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
|
|
14637
|
-
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess',
|
|
14396
|
+
} else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _462 => _462.type]) === "thinking") {
|
|
14638
14397
|
merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
|
|
14639
14398
|
} else if (key) {
|
|
14640
14399
|
let idx = merged.findIndex((m) => upsertKey(m) === key);
|
|
@@ -14675,7 +14434,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
14675
14434
|
}
|
|
14676
14435
|
if (s.type !== "approval_batch") return s;
|
|
14677
14436
|
const isAnchor = s.data.approvalRequestId === requestId;
|
|
14678
|
-
const hasRow = _optionalChain([s, 'access',
|
|
14437
|
+
const hasRow = _optionalChain([s, 'access', _463 => _463.data, 'access', _464 => _464.toolCalls, 'optionalAccess', _465 => _465.some, 'call', _466 => _466((c) => c.toolExecutionRequestId === requestId)]);
|
|
14679
14438
|
if (!isAnchor && !hasRow) return s;
|
|
14680
14439
|
const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
|
|
14681
14440
|
const nextExecutions = hasRow ? {
|
|
@@ -14697,8 +14456,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
|
|
|
14697
14456
|
};
|
|
14698
14457
|
}
|
|
14699
14458
|
function nextBatchExecution(prevExec, toolData) {
|
|
14700
|
-
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess',
|
|
14701
|
-
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess',
|
|
14459
|
+
if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _467 => _467.status]) === "done") return null;
|
|
14460
|
+
return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _468 => _468.result]), success: _optionalChain([prevExec, 'optionalAccess', _469 => _469.success]) };
|
|
14702
14461
|
}
|
|
14703
14462
|
function withBatchExecution(seg, execId, state) {
|
|
14704
14463
|
return {
|
|
@@ -14715,11 +14474,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
|
|
|
14715
14474
|
}
|
|
14716
14475
|
function projectBatchRowFailureToMessages(prev, rowRequestId) {
|
|
14717
14476
|
return mapSegments(prev, (s) => {
|
|
14718
|
-
if (s.type !== "approval_batch" || !_optionalChain([s, 'access',
|
|
14477
|
+
if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _470 => _470.data, 'access', _471 => _471.toolCalls, 'optionalAccess', _472 => _472.some, 'call', _473 => _473((c) => c.toolExecutionRequestId === rowRequestId)])) {
|
|
14719
14478
|
return s;
|
|
14720
14479
|
}
|
|
14721
|
-
const existing = _optionalChain([s, 'access',
|
|
14722
|
-
if (_optionalChain([existing, 'optionalAccess',
|
|
14480
|
+
const existing = _optionalChain([s, 'access', _474 => _474.data, 'access', _475 => _475.executions, 'optionalAccess', _476 => _476[rowRequestId]]);
|
|
14481
|
+
if (_optionalChain([existing, 'optionalAccess', _477 => _477.status]) === "done") return s;
|
|
14723
14482
|
return withBatchExecution(s, rowRequestId, { status: "done", success: false });
|
|
14724
14483
|
});
|
|
14725
14484
|
}
|
|
@@ -14755,7 +14514,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
|
|
|
14755
14514
|
for (let j = message.segments.length - 1; j >= 0; j--) {
|
|
14756
14515
|
const seg = message.segments[j];
|
|
14757
14516
|
if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
|
|
14758
|
-
const prevExec = _optionalChain([seg, 'access',
|
|
14517
|
+
const prevExec = _optionalChain([seg, 'access', _478 => _478.data, 'access', _479 => _479.executions, 'optionalAccess', _480 => _480[execId]]);
|
|
14759
14518
|
const nextExec = nextBatchExecution(prevExec, toolData);
|
|
14760
14519
|
if (nextExec === null) return prev;
|
|
14761
14520
|
if (sameExecutionState(prevExec, nextExec)) return prev;
|
|
@@ -14928,9 +14687,9 @@ var MessageSegmentAccumulator = class {
|
|
|
14928
14687
|
type: "tool_execution",
|
|
14929
14688
|
data: {
|
|
14930
14689
|
...toolData,
|
|
14931
|
-
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
14932
|
-
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess',
|
|
14933
|
-
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess',
|
|
14690
|
+
toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _481 => _481.data, 'access', _482 => _482.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _483 => _483.toolTitle]))),
|
|
14691
|
+
toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _484 => _484.data, 'access', _485 => _485.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _486 => _486.toolExplanation]))),
|
|
14692
|
+
parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _487 => _487.parameters])
|
|
14934
14693
|
}
|
|
14935
14694
|
};
|
|
14936
14695
|
if (existingIndex !== -1) {
|
|
@@ -14954,7 +14713,7 @@ var MessageSegmentAccumulator = class {
|
|
|
14954
14713
|
if (seg.type !== "approval_batch") return seg;
|
|
14955
14714
|
const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
|
|
14956
14715
|
if (!hasCall) return seg;
|
|
14957
|
-
const prev = _optionalChain([seg, 'access',
|
|
14716
|
+
const prev = _optionalChain([seg, 'access', _488 => _488.data, 'access', _489 => _489.executions, 'optionalAccess', _490 => _490[execId]]);
|
|
14958
14717
|
const next = nextBatchExecution(prev, toolData);
|
|
14959
14718
|
matched = true;
|
|
14960
14719
|
if (next === null) return seg;
|
|
@@ -15088,8 +14847,8 @@ var MessageSegmentAccumulator = class {
|
|
|
15088
14847
|
requestId,
|
|
15089
14848
|
{
|
|
15090
14849
|
...pendingApproval,
|
|
15091
|
-
command: _optionalChain([pendingApproval, 'optionalAccess',
|
|
15092
|
-
approvalType: _optionalChain([pendingApproval, 'optionalAccess',
|
|
14850
|
+
command: _optionalChain([pendingApproval, 'optionalAccess', _491 => _491.command]) || "",
|
|
14851
|
+
approvalType: _optionalChain([pendingApproval, 'optionalAccess', _492 => _492.approvalType]) || approvalType
|
|
15093
14852
|
},
|
|
15094
14853
|
status
|
|
15095
14854
|
);
|
|
@@ -15114,9 +14873,9 @@ var MessageSegmentAccumulator = class {
|
|
|
15114
14873
|
type: "escalation_offer",
|
|
15115
14874
|
// The resolved chunk carries no text/origin — a redelivered offer must
|
|
15116
14875
|
// not blank the card the PENDING chunk already painted.
|
|
15117
|
-
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess',
|
|
14876
|
+
data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _493 => _493.data, 'access', _494 => _494.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _495 => _495.data, 'access', _496 => _496.origin]))) },
|
|
15118
14877
|
status,
|
|
15119
|
-
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess',
|
|
14878
|
+
resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _497 => _497.resolvedByName]))),
|
|
15120
14879
|
onApprove: this.callbacks.onEscalationApprove,
|
|
15121
14880
|
onReject: this.callbacks.onEscalationReject
|
|
15122
14881
|
};
|
|
@@ -15363,7 +15122,7 @@ function errorDetailsMessage(details) {
|
|
|
15363
15122
|
let parsed;
|
|
15364
15123
|
try {
|
|
15365
15124
|
parsed = JSON.parse(details);
|
|
15366
|
-
} catch (
|
|
15125
|
+
} catch (e15) {
|
|
15367
15126
|
return details;
|
|
15368
15127
|
}
|
|
15369
15128
|
if (typeof parsed !== "object" || parsed === null) return void 0;
|
|
@@ -15503,10 +15262,10 @@ function nullableText(value) {
|
|
|
15503
15262
|
}
|
|
15504
15263
|
function httpsUrl(value) {
|
|
15505
15264
|
const candidate = text(value);
|
|
15506
|
-
if (!candidate ||
|
|
15265
|
+
if (!candidate || _chunkUEULXVW2cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
|
|
15507
15266
|
try {
|
|
15508
15267
|
return new URL(candidate).protocol === "https:" ? candidate : void 0;
|
|
15509
|
-
} catch (
|
|
15268
|
+
} catch (e16) {
|
|
15510
15269
|
return void 0;
|
|
15511
15270
|
}
|
|
15512
15271
|
}
|
|
@@ -15520,7 +15279,7 @@ function youtubeVideoId(value) {
|
|
|
15520
15279
|
const hostname = parsed.hostname.toLowerCase();
|
|
15521
15280
|
const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
|
|
15522
15281
|
if (!isYoutubeHost) return void 0;
|
|
15523
|
-
const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access',
|
|
15282
|
+
const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _498 => _498.exec, 'call', _499 => _499(parsed.pathname), 'optionalAccess', _500 => _500[1]]);
|
|
15524
15283
|
const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
|
|
15525
15284
|
return id && YOUTUBE_ID.test(id) ? id : void 0;
|
|
15526
15285
|
}
|
|
@@ -15639,11 +15398,11 @@ function cards(value, decodedSources) {
|
|
|
15639
15398
|
{
|
|
15640
15399
|
type,
|
|
15641
15400
|
id,
|
|
15642
|
-
title: _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
15643
|
-
url: _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
15644
|
-
..._optionalChain([source, 'optionalAccess',
|
|
15645
|
-
..._optionalChain([source, 'optionalAccess',
|
|
15646
|
-
..._optionalChain([source, 'optionalAccess',
|
|
15401
|
+
title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _501 => _501.name]), () => ( id)),
|
|
15402
|
+
url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _502 => _502.externalUrl]), () => ( null)),
|
|
15403
|
+
..._optionalChain([source, 'optionalAccess', _503 => _503.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
|
|
15404
|
+
..._optionalChain([source, 'optionalAccess', _504 => _504.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
|
|
15405
|
+
..._optionalChain([source, 'optionalAccess', _505 => _505.path]) ? { metadata: { path: source.path } } : {}
|
|
15647
15406
|
}
|
|
15648
15407
|
];
|
|
15649
15408
|
});
|
|
@@ -15679,11 +15438,11 @@ function attachmentsEvent(record) {
|
|
|
15679
15438
|
}
|
|
15680
15439
|
function mergeSourceMetadata(previous, event) {
|
|
15681
15440
|
const byIndex = /* @__PURE__ */ new Map();
|
|
15682
|
-
for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess',
|
|
15441
|
+
for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _506 => _506.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
|
|
15683
15442
|
if (!byIndex.has(source.index)) byIndex.set(source.index, source);
|
|
15684
15443
|
}
|
|
15685
15444
|
const byIdentity = /* @__PURE__ */ new Map();
|
|
15686
|
-
for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess',
|
|
15445
|
+
for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _507 => _507.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
|
|
15687
15446
|
const identity = `${ref.type}:${ref.id}`;
|
|
15688
15447
|
if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
|
|
15689
15448
|
}
|
|
@@ -15793,7 +15552,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15793
15552
|
let stateCache = null;
|
|
15794
15553
|
function invalidate() {
|
|
15795
15554
|
stateCache = null;
|
|
15796
|
-
_optionalChain([onChange, 'optionalCall',
|
|
15555
|
+
_optionalChain([onChange, 'optionalCall', _508 => _508()]);
|
|
15797
15556
|
}
|
|
15798
15557
|
function getState() {
|
|
15799
15558
|
if (!stateCache) {
|
|
@@ -15811,7 +15570,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15811
15570
|
return stateCache;
|
|
15812
15571
|
}
|
|
15813
15572
|
function emit(name, ...args) {
|
|
15814
|
-
_optionalChain([onEffect, 'optionalCall',
|
|
15573
|
+
_optionalChain([onEffect, 'optionalCall', _509 => _509({ name, args })]);
|
|
15815
15574
|
}
|
|
15816
15575
|
function setMessagesInternal(next) {
|
|
15817
15576
|
if (next !== messages) {
|
|
@@ -15854,12 +15613,12 @@ function createChatStreamReducer(options = {}) {
|
|
|
15854
15613
|
return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
|
|
15855
15614
|
}
|
|
15856
15615
|
function applySegmentsToState(segments, meta) {
|
|
15857
|
-
const seq = _optionalChain([meta, 'optionalAccess',
|
|
15858
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
15616
|
+
const seq = _optionalChain([meta, 'optionalAccess', _510 => _510.streamSeq]);
|
|
15617
|
+
if (_optionalChain([meta, 'optionalAccess', _511 => _511.append]) && meta.isCompacting) {
|
|
15859
15618
|
setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
|
|
15860
15619
|
return;
|
|
15861
15620
|
}
|
|
15862
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
15621
|
+
if (_optionalChain([meta, 'optionalAccess', _512 => _512.append])) {
|
|
15863
15622
|
setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
|
|
15864
15623
|
return;
|
|
15865
15624
|
}
|
|
@@ -15871,7 +15630,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15871
15630
|
adoptTrailingAssistant = false;
|
|
15872
15631
|
const last = messages[messages.length - 1];
|
|
15873
15632
|
if (!last || last.role !== "assistant" || adoptTail) return;
|
|
15874
|
-
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access',
|
|
15633
|
+
const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _513 => _513.segments, 'optionalAccess', _514 => _514.length]), () => ( 0))) > 0 || last.content !== "";
|
|
15875
15634
|
if (!hasContent) return;
|
|
15876
15635
|
setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
|
|
15877
15636
|
}
|
|
@@ -16090,13 +15849,13 @@ function createChatStreamReducer(options = {}) {
|
|
|
16090
15849
|
const summary = required ? _chunkOBQ5WUNGcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
16091
15850
|
pendingEscalated.set(requestId, {
|
|
16092
15851
|
command: summary,
|
|
16093
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
15852
|
+
explanation: _optionalChain([required, 'optionalAccess', _515 => _515.toolExplanation]),
|
|
16094
15853
|
approvalType,
|
|
16095
15854
|
toolCalls
|
|
16096
15855
|
});
|
|
16097
15856
|
emit("onEscalatedApproval", requestId, {
|
|
16098
15857
|
command: summary,
|
|
16099
|
-
explanation: _optionalChain([required, 'optionalAccess',
|
|
15858
|
+
explanation: _optionalChain([required, 'optionalAccess', _516 => _516.toolExplanation]),
|
|
16100
15859
|
approvalType
|
|
16101
15860
|
});
|
|
16102
15861
|
break;
|
|
@@ -16484,7 +16243,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
16484
16243
|
const resolveBatch = (status, confirm) => async () => {
|
|
16485
16244
|
setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
|
|
16486
16245
|
for (const id of ids) {
|
|
16487
|
-
const ok = await _optionalChain([confirm, 'optionalCall',
|
|
16246
|
+
const ok = await _optionalChain([confirm, 'optionalCall', _517 => _517(id)]);
|
|
16488
16247
|
if (ok === false) {
|
|
16489
16248
|
setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
|
|
16490
16249
|
}
|
|
@@ -16620,8 +16379,8 @@ function createChatStreamReducer(options = {}) {
|
|
|
16620
16379
|
}
|
|
16621
16380
|
}
|
|
16622
16381
|
}
|
|
16623
|
-
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess',
|
|
16624
|
-
if (_optionalChain([extras, 'optionalAccess',
|
|
16382
|
+
hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _518 => _518.resumed]), () => ( messages.length > 0)));
|
|
16383
|
+
if (_optionalChain([extras, 'optionalAccess', _519 => _519.agentBusy])) agentBusyState();
|
|
16625
16384
|
invalidate();
|
|
16626
16385
|
}
|
|
16627
16386
|
return {
|
|
@@ -16708,7 +16467,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
16708
16467
|
},
|
|
16709
16468
|
endSseTurn() {
|
|
16710
16469
|
const last = messages[messages.length - 1];
|
|
16711
|
-
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access',
|
|
16470
|
+
if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _520 => _520.segments, 'optionalAccess', _521 => _521.length]), () => ( 0))) === 0 && last.content === "") {
|
|
16712
16471
|
messages = messages.slice(0, -1);
|
|
16713
16472
|
}
|
|
16714
16473
|
sseCurrentText = "";
|
|
@@ -16862,10 +16621,10 @@ function createChatDialogStore(options = {}) {
|
|
|
16862
16621
|
if (onEvict) {
|
|
16863
16622
|
const sep = key.indexOf(KEY_SEP);
|
|
16864
16623
|
onEvict(key.slice(0, sep), key.slice(sep + 1), {
|
|
16865
|
-
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
16866
|
-
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
16867
|
-
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
16868
|
-
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess',
|
|
16624
|
+
messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _522 => _522.state, 'access', _523 => _523.messages]), () => ( EMPTY_STATE.messages)),
|
|
16625
|
+
approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _524 => _524.state, 'access', _525 => _525.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
|
|
16626
|
+
lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _526 => _526.getLastAppliedSeq, 'call', _527 => _527()]), () => ( Number.NEGATIVE_INFINITY)),
|
|
16627
|
+
pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _528 => _528.getPendingEchoes, 'call', _529 => _529()]), () => ( EMPTY_PENDING_ECHOES))
|
|
16869
16628
|
});
|
|
16870
16629
|
}
|
|
16871
16630
|
}
|
|
@@ -16875,12 +16634,12 @@ function createChatDialogStore(options = {}) {
|
|
|
16875
16634
|
const key = keyOf(dialogId, side);
|
|
16876
16635
|
let reducer = reducers.get(key);
|
|
16877
16636
|
if (!reducer) {
|
|
16878
|
-
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall',
|
|
16637
|
+
const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _530 => _530(dialogId, side)]), () => ( {}));
|
|
16879
16638
|
const userOnChange = base.onChange;
|
|
16880
16639
|
reducer = createChatStreamReducer({
|
|
16881
16640
|
...base,
|
|
16882
16641
|
onChange: () => {
|
|
16883
|
-
_optionalChain([userOnChange, 'optionalCall',
|
|
16642
|
+
_optionalChain([userOnChange, 'optionalCall', _531 => _531()]);
|
|
16884
16643
|
notify();
|
|
16885
16644
|
}
|
|
16886
16645
|
});
|
|
@@ -16925,7 +16684,7 @@ function createChatDialogStore(options = {}) {
|
|
|
16925
16684
|
};
|
|
16926
16685
|
}
|
|
16927
16686
|
function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
|
|
16928
|
-
return _nullishCoalesce(_optionalChain([reducers, 'access',
|
|
16687
|
+
return _nullishCoalesce(_optionalChain([reducers, 'access', _532 => _532.get, 'call', _533 => _533(keyOf(dialogId, side)), 'optionalAccess', _534 => _534.state]), () => ( EMPTY_STATE));
|
|
16929
16688
|
}
|
|
16930
16689
|
function getServerSnapshot2() {
|
|
16931
16690
|
return EMPTY_STATE;
|
|
@@ -17014,7 +16773,7 @@ function createDeltaBatcher({
|
|
|
17014
16773
|
pending = [];
|
|
17015
16774
|
const key = pendingKey;
|
|
17016
16775
|
for (const delta of batch) applyOne(delta, key);
|
|
17017
|
-
_optionalChain([onFlushed, 'optionalCall',
|
|
16776
|
+
_optionalChain([onFlushed, 'optionalCall', _535 => _535(batch.length)]);
|
|
17018
16777
|
}
|
|
17019
16778
|
function schedule() {
|
|
17020
16779
|
if (raf !== null || timer !== null) return;
|
|
@@ -17038,7 +16797,7 @@ function createDeltaBatcher({
|
|
|
17038
16797
|
}
|
|
17039
16798
|
if (!isDeltaEvent(event)) return false;
|
|
17040
16799
|
const tail = pending[pending.length - 1];
|
|
17041
|
-
const seqAdvances = _optionalChain([tail, 'optionalAccess',
|
|
16800
|
+
const seqAdvances = _optionalChain([tail, 'optionalAccess', _536 => _536.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
|
|
17042
16801
|
if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
|
|
17043
16802
|
pending[pending.length - 1] = {
|
|
17044
16803
|
...tail,
|
|
@@ -17070,7 +16829,7 @@ function useChatStreamReducer({
|
|
|
17070
16829
|
side = DEFAULT_DIALOG_SIDE,
|
|
17071
16830
|
createReducerOptions
|
|
17072
16831
|
}) {
|
|
17073
|
-
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall',
|
|
16832
|
+
const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _537 => _537()]), () => ( {})));
|
|
17074
16833
|
const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
|
|
17075
16834
|
const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
|
|
17076
16835
|
const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
|
|
@@ -17115,8 +16874,8 @@ function buildConfirmToolBody(request) {
|
|
|
17115
16874
|
async function readServerErrorMessage(response) {
|
|
17116
16875
|
try {
|
|
17117
16876
|
const body = await response.json();
|
|
17118
|
-
if (typeof _optionalChain([body, 'optionalAccess',
|
|
17119
|
-
} catch (
|
|
16877
|
+
if (typeof _optionalChain([body, 'optionalAccess', _538 => _538.error]) === "string" && body.error.length > 0) return body.error;
|
|
16878
|
+
} catch (e17) {
|
|
17120
16879
|
}
|
|
17121
16880
|
return null;
|
|
17122
16881
|
}
|
|
@@ -17278,7 +17037,7 @@ function useManagedDialogList({
|
|
|
17278
17037
|
try {
|
|
17279
17038
|
await deleteDialogCallback(id);
|
|
17280
17039
|
removeLocal(id);
|
|
17281
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
17040
|
+
_optionalChain([onDialogRemovedRef, 'access', _539 => _539.current, 'optionalCall', _540 => _540(id, "deleted")]);
|
|
17282
17041
|
} catch (err) {
|
|
17283
17042
|
console.error(`${logTag} deleteDialog failed:`, err);
|
|
17284
17043
|
throw err;
|
|
@@ -17289,7 +17048,7 @@ function useManagedDialogList({
|
|
|
17289
17048
|
const renameDialog = _react.useCallback.call(void 0,
|
|
17290
17049
|
async (id, title) => {
|
|
17291
17050
|
if (!renameDialogCallback) return;
|
|
17292
|
-
const previous = _optionalChain([dialogsRef, 'access',
|
|
17051
|
+
const previous = _optionalChain([dialogsRef, 'access', _541 => _541.current, 'access', _542 => _542.find, 'call', _543 => _543((d) => d.id === id), 'optionalAccess', _544 => _544.title]);
|
|
17293
17052
|
setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
|
|
17294
17053
|
try {
|
|
17295
17054
|
await renameDialogCallback(id, title);
|
|
@@ -17308,7 +17067,7 @@ function useManagedDialogList({
|
|
|
17308
17067
|
try {
|
|
17309
17068
|
await archiveDialogCallback(id);
|
|
17310
17069
|
removeLocal(id);
|
|
17311
|
-
_optionalChain([onDialogRemovedRef, 'access',
|
|
17070
|
+
_optionalChain([onDialogRemovedRef, 'access', _545 => _545.current, 'optionalCall', _546 => _546(id, "archived")]);
|
|
17312
17071
|
} catch (err) {
|
|
17313
17072
|
console.error(`${logTag} archiveDialog failed:`, err);
|
|
17314
17073
|
throw err;
|
|
@@ -17430,7 +17189,7 @@ function createSseFrameDecoder() {
|
|
|
17430
17189
|
let meta;
|
|
17431
17190
|
try {
|
|
17432
17191
|
meta = JSON.parse(metaStr);
|
|
17433
|
-
} catch (
|
|
17192
|
+
} catch (e18) {
|
|
17434
17193
|
inText = true;
|
|
17435
17194
|
out.push({ type: "turn-start", implicit: true });
|
|
17436
17195
|
if (buffer.length > 0) {
|
|
@@ -17484,7 +17243,7 @@ function createSseFrameDecoder() {
|
|
|
17484
17243
|
debug: meta.debug
|
|
17485
17244
|
});
|
|
17486
17245
|
}
|
|
17487
|
-
} catch (
|
|
17246
|
+
} catch (e19) {
|
|
17488
17247
|
}
|
|
17489
17248
|
}
|
|
17490
17249
|
return out;
|
|
@@ -17497,7 +17256,7 @@ var STORAGE_KEY = "conversation";
|
|
|
17497
17256
|
var namespaceFor = (source) => {
|
|
17498
17257
|
const base = `mingo-chat-${source}`;
|
|
17499
17258
|
const auth = _chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, );
|
|
17500
|
-
return _optionalChain([auth, 'optionalAccess',
|
|
17259
|
+
return _optionalChain([auth, 'optionalAccess', _547 => _547.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
|
|
17501
17260
|
};
|
|
17502
17261
|
function createChatConversationStorage(source) {
|
|
17503
17262
|
return _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, {
|
|
@@ -17525,7 +17284,7 @@ function pruneStaleChatConversationStorage(source) {
|
|
|
17525
17284
|
for (const k of toRemove) {
|
|
17526
17285
|
window.localStorage.removeItem(k);
|
|
17527
17286
|
}
|
|
17528
|
-
} catch (
|
|
17287
|
+
} catch (e20) {
|
|
17529
17288
|
}
|
|
17530
17289
|
}
|
|
17531
17290
|
|
|
@@ -17570,7 +17329,7 @@ function useChatHistoryHydration({
|
|
|
17570
17329
|
if (cancelled) return;
|
|
17571
17330
|
if (rows.length === 0) {
|
|
17572
17331
|
const found = isRecord(body) ? body.found : void 0;
|
|
17573
|
-
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall',
|
|
17332
|
+
if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _548 => _548(conversationId)]);
|
|
17574
17333
|
return;
|
|
17575
17334
|
}
|
|
17576
17335
|
const hydrated = [];
|
|
@@ -17599,7 +17358,7 @@ function useChatHistoryHydration({
|
|
|
17599
17358
|
sendCountRef.current = userTurns;
|
|
17600
17359
|
hydrateMessages(hydrated, Array.from(sourcesSeed.entries()));
|
|
17601
17360
|
bumpMetaTick();
|
|
17602
|
-
} catch (
|
|
17361
|
+
} catch (e21) {
|
|
17603
17362
|
if (isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
|
|
17604
17363
|
} finally {
|
|
17605
17364
|
completed = true;
|
|
@@ -17647,7 +17406,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17647
17406
|
const { active = true } = runtimeOptions;
|
|
17648
17407
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
17649
17408
|
const source = runtime.source || DEFAULT_CHAT_SOURCE;
|
|
17650
|
-
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
17409
|
+
const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _549 => _549.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
|
|
17651
17410
|
const sendMessageRef = _react.useRef.call(void 0,
|
|
17652
17411
|
() => Promise.resolve(true)
|
|
17653
17412
|
);
|
|
@@ -17683,7 +17442,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17683
17442
|
if (!restoredConversationRef.current) {
|
|
17684
17443
|
restoredConversationRef.current = true;
|
|
17685
17444
|
pruneStaleChatConversationStorage(source);
|
|
17686
|
-
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access',
|
|
17445
|
+
conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _550 => _550.load, 'call', _551 => _551(), 'optionalAccess', _552 => _552.conversationId]), () => ( null));
|
|
17687
17446
|
}
|
|
17688
17447
|
const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
|
|
17689
17448
|
const commitConversationId = _react.useCallback.call(void 0,
|
|
@@ -17774,7 +17533,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17774
17533
|
const abortControllerRef = _react.useRef.call(void 0, null);
|
|
17775
17534
|
const switchConversation = _react.useCallback.call(void 0,
|
|
17776
17535
|
(id) => {
|
|
17777
|
-
_optionalChain([abortControllerRef, 'access',
|
|
17536
|
+
_optionalChain([abortControllerRef, 'access', _553 => _553.current, 'optionalAccess', _554 => _554.abort, 'call', _555 => _555()]);
|
|
17778
17537
|
flushDeltas();
|
|
17779
17538
|
mutate((r) => r.reset());
|
|
17780
17539
|
hydrationSendCountRef.current = 0;
|
|
@@ -17811,8 +17570,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17811
17570
|
} = useManagedDialogList({
|
|
17812
17571
|
autoLoad: active,
|
|
17813
17572
|
fetchDialogs: fetchActiveDialogs,
|
|
17814
|
-
renameDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
17815
|
-
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess',
|
|
17573
|
+
renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _556 => _556.renameDialog]),
|
|
17574
|
+
archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _557 => _557.archiveDialog]),
|
|
17816
17575
|
pageSize: CHAT_HISTORY_PAGE_SIZE,
|
|
17817
17576
|
search: conversationsApi ? dialogSearch : void 0,
|
|
17818
17577
|
logTag: "[useSseChatAdapter]",
|
|
@@ -17876,7 +17635,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17876
17635
|
const serverMessage = await readServerErrorMessage(response);
|
|
17877
17636
|
throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
|
|
17878
17637
|
}
|
|
17879
|
-
const reader = _optionalChain([response, 'access',
|
|
17638
|
+
const reader = _optionalChain([response, 'access', _558 => _558.body, 'optionalAccess', _559 => _559.getReader, 'call', _560 => _560()]);
|
|
17880
17639
|
if (!reader) throw new Error("No response body");
|
|
17881
17640
|
const frameDecoder = createSseFrameDecoder();
|
|
17882
17641
|
let finished = false;
|
|
@@ -17905,7 +17664,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17905
17664
|
}
|
|
17906
17665
|
return true;
|
|
17907
17666
|
} catch (err) {
|
|
17908
|
-
if (_optionalChain([err, 'optionalAccess',
|
|
17667
|
+
if (_optionalChain([err, 'optionalAccess', _561 => _561.name]) === "AbortError" || ctrl.signal.aborted) {
|
|
17909
17668
|
return true;
|
|
17910
17669
|
}
|
|
17911
17670
|
flushDeltas();
|
|
@@ -17941,7 +17700,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17941
17700
|
);
|
|
17942
17701
|
sendMessageRef.current = sendMessage;
|
|
17943
17702
|
const stopMessage = _react.useCallback.call(void 0, () => {
|
|
17944
|
-
_optionalChain([abortControllerRef, 'access',
|
|
17703
|
+
_optionalChain([abortControllerRef, 'access', _562 => _562.current, 'optionalAccess', _563 => _563.abort, 'call', _564 => _564()]);
|
|
17945
17704
|
flushDeltas();
|
|
17946
17705
|
mutate((r) => r.setPhase("idle"));
|
|
17947
17706
|
}, [mutate, flushDeltas]);
|
|
@@ -17977,7 +17736,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17977
17736
|
let sendIdx = -1;
|
|
17978
17737
|
return state.messages.map((m) => {
|
|
17979
17738
|
const segments = m.segments;
|
|
17980
|
-
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess',
|
|
17739
|
+
const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _565 => _565.filter, 'call', _566 => _566((s) => s.type === "text"), 'access', _567 => _567.map, 'call', _568 => _568((s) => s.text), 'access', _569 => _569.join, 'call', _570 => _570("")]), () => ( ""));
|
|
17981
17740
|
let sources2;
|
|
17982
17741
|
let scrollAnchor;
|
|
17983
17742
|
if (m.role === "user" && !m.hidden) {
|
|
@@ -17986,7 +17745,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
17986
17745
|
if (m.role === "assistant") {
|
|
17987
17746
|
const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
|
|
17988
17747
|
sources2 = sourcesMap.get(lookupIdx);
|
|
17989
|
-
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access',
|
|
17748
|
+
scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _571 => _571.get, 'call', _572 => _572(lookupIdx), 'optionalAccess', _573 => _573.scrollAnchor]), () => ( void 0));
|
|
17990
17749
|
}
|
|
17991
17750
|
return {
|
|
17992
17751
|
id: m.id,
|
|
@@ -18013,7 +17772,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
18013
17772
|
);
|
|
18014
17773
|
return;
|
|
18015
17774
|
}
|
|
18016
|
-
const refSlug = typeof _optionalChain([reference, 'access',
|
|
17775
|
+
const refSlug = typeof _optionalChain([reference, 'access', _574 => _574.metadata, 'optionalAccess', _575 => _575.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
|
|
18017
17776
|
const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
|
|
18018
17777
|
const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
18019
17778
|
const text2 = `/${cmdId} display "${escaped}"`;
|
|
@@ -18061,18 +17820,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
|
|
|
18061
17820
|
/** True while the mount-time rebuild from the server transcript runs. */
|
|
18062
17821
|
isHydratingHistory,
|
|
18063
17822
|
/** Provider key for the lib's `<ModelDisplay>` icon. */
|
|
18064
|
-
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
18065
|
-
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
18066
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
17823
|
+
currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _576 => _576.provider]), () => ( null)),
|
|
17824
|
+
currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _577 => _577.modelLabel]), () => ( null)),
|
|
17825
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _578 => _578.contextWindowMaxTokens]), () => ( null)),
|
|
18067
17826
|
/** Input tokens (known after server's message_start frame; null until). */
|
|
18068
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
17827
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _579 => _579.inputTokens]), () => ( null)),
|
|
18069
17828
|
/** Output tokens (known only after server's trailing usage frame). */
|
|
18070
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
17829
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _580 => _580.outputTokens]), () => ( null)),
|
|
18071
17830
|
/** Cache hit % (read / total-input × 100). null during streaming. */
|
|
18072
|
-
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
17831
|
+
currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _581 => _581.cacheHitRatePct]), () => ( null)),
|
|
18073
17832
|
/** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
|
|
18074
17833
|
* token counts). null until the trailing usage frame lands. */
|
|
18075
|
-
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess',
|
|
17834
|
+
currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _582 => _582.breakdown]), () => ( null)),
|
|
18076
17835
|
// ─── Dialog management ───────────────────────────────────────────────
|
|
18077
17836
|
// With `chatConversationsUrl` the server transcript store IS the dialog
|
|
18078
17837
|
// list (shared `useManagedDialogList`); selecting a row re-hydrates through
|
|
@@ -18146,7 +17905,7 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
18146
17905
|
}
|
|
18147
17906
|
break;
|
|
18148
17907
|
case "approval_batch": {
|
|
18149
|
-
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access',
|
|
17908
|
+
const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _583 => _583.data, 'access', _584 => _584.executions, 'optionalAccess', _585 => _585[c.toolExecutionRequestId], 'optionalAccess', _586 => _586.status]) === "done");
|
|
18150
17909
|
if (segment.status !== "rejected" && !allDone) {
|
|
18151
17910
|
hasIncompleteState = true;
|
|
18152
17911
|
}
|
|
@@ -18210,11 +17969,11 @@ function extractIncompleteMessageState(lastMessage) {
|
|
|
18210
17969
|
function extractIncompleteTailState(messages) {
|
|
18211
17970
|
if (!messages || messages.length === 0) return void 0;
|
|
18212
17971
|
let start = messages.length;
|
|
18213
|
-
while (start > 0 && _optionalChain([messages, 'access',
|
|
17972
|
+
while (start > 0 && _optionalChain([messages, 'access', _587 => _587[start - 1], 'optionalAccess', _588 => _588.role]) === "assistant") start -= 1;
|
|
18214
17973
|
if (start === messages.length) return void 0;
|
|
18215
17974
|
const segments = [];
|
|
18216
17975
|
for (let i = start; i < messages.length; i += 1) {
|
|
18217
|
-
const content = _optionalChain([messages, 'access',
|
|
17976
|
+
const content = _optionalChain([messages, 'access', _589 => _589[i], 'optionalAccess', _590 => _590.content]);
|
|
18218
17977
|
if (Array.isArray(content)) segments.push(...content);
|
|
18219
17978
|
}
|
|
18220
17979
|
if (segments.length === 0) return void 0;
|
|
@@ -18445,7 +18204,7 @@ function decodeNatsChunk(chunk) {
|
|
|
18445
18204
|
userId: typeof data.userId === "string" ? data.userId : void 0,
|
|
18446
18205
|
// Wire shape carries no label; fall back to the id (parity with
|
|
18447
18206
|
// the history path in `process-historical-messages.ts`).
|
|
18448
|
-
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess',
|
|
18207
|
+
contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _591 => _591.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _592 => _592.id]) === "string").map((it) => ({
|
|
18449
18208
|
type: it.type,
|
|
18450
18209
|
id: it.id,
|
|
18451
18210
|
label: it.id
|
|
@@ -18497,15 +18256,15 @@ function decodeNatsChunk(chunk) {
|
|
|
18497
18256
|
|
|
18498
18257
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18499
18258
|
function getOwnerDisplayName(owner) {
|
|
18500
|
-
if (_optionalChain([owner, 'optionalAccess',
|
|
18259
|
+
if (_optionalChain([owner, 'optionalAccess', _593 => _593.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18501
18260
|
const { firstName, lastName } = owner.user;
|
|
18502
18261
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18503
18262
|
if (name) return name;
|
|
18504
18263
|
}
|
|
18505
|
-
return _optionalChain([owner, 'optionalAccess',
|
|
18264
|
+
return _optionalChain([owner, 'optionalAccess', _594 => _594.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18506
18265
|
}
|
|
18507
18266
|
function getOwnerAvatar(owner) {
|
|
18508
|
-
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess',
|
|
18267
|
+
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _595 => _595.user, 'optionalAccess', _596 => _596.image, 'optionalAccess', _597 => _597.imageUrl]), () => ( void 0));
|
|
18509
18268
|
}
|
|
18510
18269
|
function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
|
|
18511
18270
|
messageDataArray.forEach((data) => {
|
|
@@ -18697,7 +18456,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18697
18456
|
event.offerId,
|
|
18698
18457
|
event.text,
|
|
18699
18458
|
event.origin,
|
|
18700
|
-
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess',
|
|
18459
|
+
_nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _598 => _598[event.offerId]]), () => ( "pending"))
|
|
18701
18460
|
);
|
|
18702
18461
|
break;
|
|
18703
18462
|
case "ticket-escalated":
|
|
@@ -18731,7 +18490,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18731
18490
|
);
|
|
18732
18491
|
break;
|
|
18733
18492
|
case "escalation-offer-resolved":
|
|
18734
|
-
_optionalChain([offerResolutions, 'optionalAccess',
|
|
18493
|
+
_optionalChain([offerResolutions, 'optionalAccess', _599 => _599.set, 'call', _600 => _600(event.offerId, {
|
|
18735
18494
|
status: event.status,
|
|
18736
18495
|
resolvedByName: event.resolvedByName
|
|
18737
18496
|
})]);
|
|
@@ -18795,7 +18554,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18795
18554
|
}
|
|
18796
18555
|
}
|
|
18797
18556
|
} else {
|
|
18798
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
18557
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _601 => _601.set, 'call', _602 => _602(event.requestId, {
|
|
18799
18558
|
command: event.command || "",
|
|
18800
18559
|
explanation: event.explanation,
|
|
18801
18560
|
approvalType,
|
|
@@ -18810,8 +18569,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18810
18569
|
const existingStatus = approvalStatuses[requestId];
|
|
18811
18570
|
const status = existingStatus || event.status;
|
|
18812
18571
|
const resolvedByName = event.resolvedByName;
|
|
18813
|
-
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess',
|
|
18814
|
-
if (_optionalChain([escalatedData, 'optionalAccess',
|
|
18572
|
+
const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _603 => _603.get, 'call', _604 => _604(requestId)]);
|
|
18573
|
+
if (_optionalChain([escalatedData, 'optionalAccess', _605 => _605.toolCalls]) && escalatedData.toolCalls.length > 0) {
|
|
18815
18574
|
if (batchApprovalsEnabled) {
|
|
18816
18575
|
accumulator.addApprovalBatch(
|
|
18817
18576
|
requestId,
|
|
@@ -18833,7 +18592,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18833
18592
|
);
|
|
18834
18593
|
}
|
|
18835
18594
|
}
|
|
18836
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
18595
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _606 => _606.delete, 'call', _607 => _607(requestId)]);
|
|
18837
18596
|
break;
|
|
18838
18597
|
}
|
|
18839
18598
|
if (escalatedData) {
|
|
@@ -18842,7 +18601,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18842
18601
|
explanation: escalatedData.explanation,
|
|
18843
18602
|
approvalType: escalatedData.approvalType
|
|
18844
18603
|
});
|
|
18845
|
-
_optionalChain([escalatedApprovals, 'optionalAccess',
|
|
18604
|
+
_optionalChain([escalatedApprovals, 'optionalAccess', _608 => _608.delete, 'call', _609 => _609(requestId)]);
|
|
18846
18605
|
}
|
|
18847
18606
|
const before = accumulator.getSegments();
|
|
18848
18607
|
const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
|
|
@@ -18934,14 +18693,14 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18934
18693
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18935
18694
|
return;
|
|
18936
18695
|
}
|
|
18937
|
-
const isUserMessage = _optionalChain([msg, 'access',
|
|
18696
|
+
const isUserMessage = _optionalChain([msg, 'access', _610 => _610.owner, 'optionalAccess', _611 => _611.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _612 => _612.owner, 'optionalAccess', _613 => _613.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN;
|
|
18938
18697
|
if (isUserMessage) {
|
|
18939
18698
|
flushAssistantMessage();
|
|
18940
|
-
const userAuthorType = _optionalChain([msg, 'access',
|
|
18699
|
+
const userAuthorType = _optionalChain([msg, 'access', _614 => _614.owner, 'optionalAccess', _615 => _615.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18941
18700
|
messageDataArray.forEach((data) => {
|
|
18942
18701
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18943
18702
|
const rawContext = data.contextItems;
|
|
18944
|
-
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess',
|
|
18703
|
+
const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _616 => _616.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _617 => _617.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
|
|
18945
18704
|
processedMessages.push({
|
|
18946
18705
|
id: msg.id,
|
|
18947
18706
|
role: "user",
|
|
@@ -18988,7 +18747,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18988
18747
|
});
|
|
18989
18748
|
const nextMsg = messages[index + 1];
|
|
18990
18749
|
const isLastMessage = index === messages.length - 1;
|
|
18991
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access',
|
|
18750
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _618 => _618.owner, 'optionalAccess', _619 => _619.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN);
|
|
18992
18751
|
if (isLastMessage || nextIsFromUser) {
|
|
18993
18752
|
flushAssistantMessage();
|
|
18994
18753
|
}
|
|
@@ -19372,7 +19131,7 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
19372
19131
|
const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
|
|
19373
19132
|
const sendMessage = _react.useCallback.call(void 0,
|
|
19374
19133
|
async (text2, sendOptions) => {
|
|
19375
|
-
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess',
|
|
19134
|
+
const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _622 => _622.hidden]), () => ( false));
|
|
19376
19135
|
mutate((r) => r.pushOptimisticSend(text2, hidden));
|
|
19377
19136
|
await publishUserMessage(text2, { hidden, dialogId });
|
|
19378
19137
|
},
|
|
@@ -19465,11 +19224,11 @@ function useNatsChatAdapter(config, options = {}) {
|
|
|
19465
19224
|
// Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
|
|
19466
19225
|
// contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
|
|
19467
19226
|
// matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
|
|
19468
|
-
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
19469
|
-
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess',
|
|
19470
|
-
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
19471
|
-
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
19472
|
-
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess',
|
|
19227
|
+
currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _623 => _623.provider]), () => ( modelProvider)), () => ( null)),
|
|
19228
|
+
currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _624 => _624.modelLabel]), () => ( modelLabel)), () => ( null)),
|
|
19229
|
+
currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _625 => _625.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _626 => _626.contextWindowMaxTokens]))), () => ( null)),
|
|
19230
|
+
currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _627 => _627.inputTokensSize]), () => ( null)),
|
|
19231
|
+
currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _628 => _628.outputTokensSize]), () => ( null)),
|
|
19473
19232
|
currentCacheHitRatePct: null,
|
|
19474
19233
|
currentUsageBreakdown: null,
|
|
19475
19234
|
// Dialog management
|
|
@@ -19591,7 +19350,7 @@ function useUnifiedChat(options) {
|
|
|
19591
19350
|
[]
|
|
19592
19351
|
);
|
|
19593
19352
|
const displayRefForward = _react.useCallback.call(void 0,
|
|
19594
|
-
(ref) => _optionalChain([activeStateRef, 'access',
|
|
19353
|
+
(ref) => _optionalChain([activeStateRef, 'access', _629 => _629.current, 'access', _630 => _630.displayRef, 'optionalCall', _631 => _631(ref)]),
|
|
19595
19354
|
[]
|
|
19596
19355
|
);
|
|
19597
19356
|
const displayRef = activeState.displayRef ? displayRefForward : void 0;
|
|
@@ -19601,7 +19360,7 @@ function useUnifiedChat(options) {
|
|
|
19601
19360
|
const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
|
|
19602
19361
|
const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
|
|
19603
19362
|
const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
|
|
19604
|
-
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access',
|
|
19363
|
+
const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _632 => _632.current, 'access', _633 => _633.setDialogScope, 'optionalCall', _634 => _634(scope)]), []);
|
|
19605
19364
|
const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
|
|
19606
19365
|
const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
|
|
19607
19366
|
const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
|
|
@@ -19976,15 +19735,4 @@ var MINGO_V2_SPLIT_WIDTH = MINGO_V2_RAIL_WIDTH + CHAT_BLOCK_MIN_WIDTH;
|
|
|
19976
19735
|
|
|
19977
19736
|
|
|
19978
19737
|
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
19987
|
-
|
|
19988
|
-
|
|
19989
|
-
|
|
19990
|
-
exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.InlineChip = InlineChip; exports.InlineAppLinkChip = InlineAppLinkChip; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.byKey = byKey; exports.getPlatformProductionUrl = getPlatformProductionUrl; exports.getPlatformUrl = getPlatformUrl; exports.getDeploymentUrl = getDeploymentUrl; exports.isLocalUrl = isLocalUrl; exports.getRequestOrigin = getRequestOrigin; exports.resolveRedirectTarget = resolveRedirectTarget; exports.getAllPlatformBaseDomains = getAllPlatformBaseDomains; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.chatProgressLabel = chatProgressLabel; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|
|
19738
|
+
exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.chatProgressLabel = chatProgressLabel; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
|