@flamingo-stack/openframe-frontend-core 0.0.799 → 0.0.801
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4RK62AMV.cjs → chunk-237MLBT7.cjs} +68 -68
- package/dist/{chunk-IJGIWG6G.cjs → chunk-3W2PBWD5.cjs} +4 -4
- package/dist/{chunk-BSBCZIPQ.cjs → chunk-3YPEXJVQ.cjs} +39 -39
- package/dist/{chunk-GRNTIKPD.cjs → chunk-7E4BC3AF.cjs} +68 -51
- package/dist/{chunk-6CB3AXZM.cjs → chunk-CJSUMYTH.cjs} +30 -30
- package/dist/{chunk-PPORXZI7.cjs → chunk-CRVXQYUZ.cjs} +25 -25
- package/dist/{chunk-FDDM5Z52.cjs → chunk-DYDS2P5G.cjs} +2 -2
- package/dist/{chunk-FIKIPO4F.cjs → chunk-FAUVDMH4.cjs} +1 -1
- package/dist/{chunk-SDV335EO.cjs → chunk-FFRFKWTZ.cjs} +4 -4
- package/dist/{chunk-XJD7IZR2.cjs → chunk-FS4TVAE7.cjs} +48 -48
- package/dist/{chunk-AVAE5B2A.cjs → chunk-KVGWOJCX.cjs} +2 -2
- package/dist/{chunk-HB7FVY46.cjs → chunk-LEEBFBI4.cjs} +32 -32
- package/dist/{chunk-UFCKY7OL.cjs → chunk-LOCJD7TD.cjs} +16 -16
- package/dist/{chunk-6EDOASF4.cjs → chunk-PJMLRXAG.cjs} +11 -11
- package/dist/{chunk-TETW5NR4.cjs → chunk-PY6SPYUR.cjs} +3 -3
- package/dist/{chunk-2KEBGXA4.cjs → chunk-QAUQYQWT.cjs} +4 -4
- package/dist/{chunk-CS2KLF4O.cjs → chunk-QNIUDJAK.cjs} +13 -13
- package/dist/{chunk-B3X4J4HQ.cjs → chunk-SHOE6ATQ.cjs} +14 -14
- package/dist/{chunk-PO5IIN4S.cjs → chunk-THQKEA2T.cjs} +11 -11
- package/dist/{chunk-O6KQ64RI.cjs → chunk-UYGXJ5SQ.cjs} +2 -2
- package/dist/{chunk-3MRK7X6Z.cjs → chunk-XYPNYTCV.cjs} +3 -3
- package/dist/{chunk-ZOK4OWMJ.cjs → chunk-Y5XHMEBB.cjs} +2 -2
- package/dist/{chunk-247LDSQE.cjs → chunk-YUGX72P4.cjs} +61 -61
- package/dist/{chunk-DBRXZC2I.cjs → chunk-Z66FOMSA.cjs} +136 -129
- package/dist/{chunk-T5OCU3EL.cjs → chunk-ZPVFFPQM.cjs} +4 -4
- package/dist/{cloud-tenants-BQAVRN44.cjs → cloud-tenants-X7QHAIX2.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +16 -14
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +82 -82
- package/dist/components/index.cjs +52 -52
- package/dist/components/layout/page-heading.js +1 -1
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +9 -2
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-KDT5ZGSG.cjs → devices-VBFYZVVG.cjs} +7 -7
- package/dist/{embeddable-chat-ODKTSW3C.cjs → embeddable-chat-XZDZOHFY.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-4NLP77HP.cjs → knowledge-RJZJFD2Y.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts +1 -0
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-U6VMTY4N.cjs → logs-3WZ4GROE.cjs} +14 -14
- package/dist/{policies-TBLFBRFM.cjs → policies-E6WQEXDF.cjs} +10 -10
- package/dist/{scripts-ZMNJWX7I.cjs → scripts-JLCM42F4.cjs} +11 -11
- package/dist/{software-update-Q5AEQ4A4.cjs → software-update-BVBHAROC.cjs} +9 -9
- package/dist/utils/index.cjs +16 -1
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +16 -1
- package/package.json +1 -1
- package/src/components/chat/chat-context-picker.tsx +30 -16
- package/src/components/layout/page-heading.tsx +3 -1
- package/src/components/ui/fade-preview.tsx +13 -2
- package/src/loading-standard/engine.mjs +49 -2
- package/src/loading-standard/rule-examples.mjs +35 -3
- package/src/utils/markdown-to-plain.ts +23 -4
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXYPNYTCVcjs = require('./chunk-XYPNYTCV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDYDS2P5Gcjs = require('./chunk-DYDS2P5G.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPJMLRXAGcjs = require('./chunk-PJMLRXAG.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkZ66FOMSAcjs = require('./chunk-Z66FOMSA.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
@@ -29,13 +29,13 @@ var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkCRVXQYUZcjs = require('./chunk-CRVXQYUZ.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk7E4BC3AFcjs = require('./chunk-7E4BC3AF.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -354,13 +354,13 @@ function toDocContent(value, requestedPath) {
|
|
|
354
354
|
function toDataSync(value) {
|
|
355
355
|
if (!isRecord(value)) return void 0;
|
|
356
356
|
const source = readString(value, "source");
|
|
357
|
-
if (!
|
|
357
|
+
if (!_chunkZ66FOMSAcjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
358
358
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
359
359
|
}
|
|
360
360
|
function useDocumentTree(config, initialPath) {
|
|
361
361
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
362
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
363
|
-
const cleanInitialPath =
|
|
362
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkCRVXQYUZcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunkCRVXQYUZcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
364
364
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
365
365
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
366
366
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -386,12 +386,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
386
386
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
387
387
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
388
388
|
}
|
|
389
|
-
pathFromUrl =
|
|
389
|
+
pathFromUrl = _chunkCRVXQYUZcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
390
390
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
391
391
|
setSelectedPath(pathFromUrl);
|
|
392
392
|
if (pathFromUrl) {
|
|
393
393
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
394
|
-
setExpandedNodes(new Set(
|
|
394
|
+
setExpandedNodes(new Set(_chunkCRVXQYUZcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
395
395
|
}
|
|
396
396
|
setTimeout(() => {
|
|
397
397
|
scrollToContent();
|
|
@@ -409,7 +409,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
409
409
|
setSelectedPath(cleanInitialPath);
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
|
-
setExpandedNodes(new Set(
|
|
412
|
+
setExpandedNodes(new Set(_chunkCRVXQYUZcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
413
413
|
}
|
|
414
414
|
setExternalNavCount((n) => n + 1);
|
|
415
415
|
}
|
|
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
434
434
|
if (cleanInitialPath) {
|
|
435
435
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
436
436
|
if (pathForExpansion) {
|
|
437
|
-
setExpandedNodes(new Set(
|
|
437
|
+
setExpandedNodes(new Set(_chunkCRVXQYUZcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
438
438
|
}
|
|
439
439
|
} else if (nodes.length > 0) {
|
|
440
440
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -474,7 +474,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
474
474
|
setContent(null);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
const probe =
|
|
477
|
+
const probe = _chunkCRVXQYUZcjs.findDocNodeByPath.call(void 0, _chunkCRVXQYUZcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
478
478
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
479
479
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
480
480
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -533,7 +533,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
533
533
|
if (selectedPath === "") {
|
|
534
534
|
pathToFetch = folderIndexFile;
|
|
535
535
|
} else {
|
|
536
|
-
const node =
|
|
536
|
+
const node = _chunkCRVXQYUZcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
537
537
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
538
538
|
const firstDocPath = findFirstDocPath(node);
|
|
539
539
|
if (!firstDocPath) {
|
|
@@ -574,16 +574,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
if (node.type === "folder") {
|
|
575
575
|
setExpandedNodes((prev) => {
|
|
576
576
|
if (prev.has(node.id)) {
|
|
577
|
-
const ancestorIds =
|
|
577
|
+
const ancestorIds = _chunkCRVXQYUZcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
578
578
|
ancestorIds.pop();
|
|
579
579
|
return new Set(ancestorIds);
|
|
580
580
|
}
|
|
581
|
-
return new Set(
|
|
581
|
+
return new Set(_chunkCRVXQYUZcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
582
582
|
});
|
|
583
583
|
} else {
|
|
584
584
|
const lastSlash = node.path.lastIndexOf("/");
|
|
585
585
|
if (lastSlash > 0) {
|
|
586
|
-
setExpandedNodes(new Set(
|
|
586
|
+
setExpandedNodes(new Set(_chunkCRVXQYUZcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
lastFetchedPath.current = null;
|
|
@@ -598,7 +598,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
598
598
|
const hashIndex = path.indexOf("#");
|
|
599
599
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
600
600
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
601
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
601
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkCRVXQYUZcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkOJZBZH56cjs.HUB_HEADER_OFFSET_PX });
|
|
604
604
|
return;
|
|
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
662
662
|
return docNavigation.register({
|
|
663
663
|
baseRoute: normalizedBaseRoute,
|
|
664
664
|
findNodeByPath: (path) => {
|
|
665
|
-
const clean =
|
|
666
|
-
return _nullishCoalesce(
|
|
665
|
+
const clean = _chunkCRVXQYUZcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunkCRVXQYUZcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
667
667
|
},
|
|
668
668
|
selectNode
|
|
669
669
|
});
|
|
670
670
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
671
671
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
672
672
|
if (!selectedPath || structure.length === 0) return false;
|
|
673
|
-
const node =
|
|
673
|
+
const node = _chunkCRVXQYUZcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
674
674
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
675
675
|
}, [selectedPath, structure]);
|
|
676
676
|
return {
|
|
@@ -753,14 +753,14 @@ function DocViewerContent({
|
|
|
753
753
|
},
|
|
754
754
|
docPath
|
|
755
755
|
);
|
|
756
|
-
const { activeSection, handleSectionClick } =
|
|
756
|
+
const { activeSection, handleSectionClick } = _chunkDYDS2P5Gcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
757
757
|
const docNav = useDocNavigation();
|
|
758
758
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
759
759
|
const backCfg = backButton === false ? null : {
|
|
760
760
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
761
761
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
762
762
|
};
|
|
763
|
-
const docSearch =
|
|
763
|
+
const docSearch = _chunkPJMLRXAGcjs.useDocSearch.call(void 0, {
|
|
764
764
|
source: chatSource,
|
|
765
765
|
baseRoute,
|
|
766
766
|
searchEndpoint,
|
|
@@ -784,7 +784,7 @@ function DocViewerContent({
|
|
|
784
784
|
onResolveLink: resolveLink
|
|
785
785
|
});
|
|
786
786
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
787
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
787
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkCRVXQYUZcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
788
788
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
789
789
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
790
790
|
const showStickyNav = isMarkdownContent;
|
|
@@ -796,9 +796,9 @@ function DocViewerContent({
|
|
|
796
796
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
797
797
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
798
798
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
799
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunkPJMLRXAGcjs.DocSearchBar,
|
|
802
802
|
{
|
|
803
803
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
|
|
804
804
|
query: docSearch.query,
|
|
@@ -819,7 +819,7 @@ function DocViewerContent({
|
|
|
819
819
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
820
820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: [
|
|
821
821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
822
|
-
|
|
822
|
+
_chunkDYDS2P5Gcjs.MobileNavigationDropdown,
|
|
823
823
|
{
|
|
824
824
|
nodes: structure,
|
|
825
825
|
selectedPath,
|
|
@@ -833,7 +833,7 @@ function DocViewerContent({
|
|
|
833
833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
834
834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
835
835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunkDYDS2P5Gcjs.MultiLevelNavigation,
|
|
837
837
|
{
|
|
838
838
|
nodes: structure,
|
|
839
839
|
selectedPath,
|
|
@@ -872,7 +872,7 @@ function DocViewerContent({
|
|
|
872
872
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
873
873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
|
|
874
874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
|
|
875
|
+
_chunkDYDS2P5Gcjs.StickySectionNav,
|
|
876
876
|
{
|
|
877
877
|
sections: stickyNavSections,
|
|
878
878
|
activeSection,
|
|
@@ -887,7 +887,7 @@ function DocViewerContent({
|
|
|
887
887
|
) })
|
|
888
888
|
] })
|
|
889
889
|
] }) }) });
|
|
890
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/components/docs/skeletons.tsx
|
|
@@ -903,14 +903,14 @@ var MARKDOWN_SKELETON_BLOCKS = [
|
|
|
903
903
|
{ kind: "p", lines: 3 },
|
|
904
904
|
{ kind: "p", lines: 4 }
|
|
905
905
|
];
|
|
906
|
-
var MARKDOWN_SKELETON_H2_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
907
|
-
var MARKDOWN_SKELETON_P_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
906
|
+
var MARKDOWN_SKELETON_H2_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7E4BC3AFcjs.MARKDOWN_H2_CLASS, _chunk7E4BC3AFcjs.TEXT_SIZE_PRESETS.default.h2);
|
|
907
|
+
var MARKDOWN_SKELETON_P_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7E4BC3AFcjs.MARKDOWN_PARAGRAPH_CLASS, _chunk7E4BC3AFcjs.TEXT_SIZE_PRESETS.default.p);
|
|
908
908
|
function MarkdownSkeleton({
|
|
909
909
|
region = true
|
|
910
910
|
} = {}) {
|
|
911
911
|
return (
|
|
912
912
|
// The renderer's root class, and its box (no margin of its own, like the rendered body): the document's first fold.
|
|
913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the document", announce: region, className:
|
|
913
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunk7E4BC3AFcjs.MARKDOWN_RENDERER_CLASS, children: MARKDOWN_SKELETON_BLOCKS.map(
|
|
914
914
|
(block, i) => block.kind === "h2" ? (
|
|
915
915
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton blocks never reorder
|
|
916
916
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: MARKDOWN_SKELETON_H2_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/3" }) }, i)
|
|
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
959
959
|
] }),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.EmbedLoadingSkeleton, { region: false })
|
|
963
963
|
] });
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
967
967
|
|
|
968
968
|
var DEFAULT_TITLE = "Documents";
|
|
969
969
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
970
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXYPNYTCVcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXYPNYTCVcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ66FOMSAcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
973
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
|
|
974
|
+
_chunkXYPNYTCVcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -292,7 +292,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
292
292
|
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
@@ -566,6 +566,21 @@ function stripInlineMarkdown(s) {
|
|
|
566
566
|
}
|
|
567
567
|
var NOT_PROSE = /* @__PURE__ */ new Set(["pre", "img"]);
|
|
568
568
|
var TABLE_SECTIONS = /* @__PURE__ */ new Set(["thead", "tbody", "tfoot"]);
|
|
569
|
+
var element = (tagName, children) => ({
|
|
570
|
+
type: "element",
|
|
571
|
+
tagName,
|
|
572
|
+
properties: {},
|
|
573
|
+
children
|
|
574
|
+
});
|
|
575
|
+
var sectionsBreak;
|
|
576
|
+
function toTextBreaksBetweenSections() {
|
|
577
|
+
if (sectionsBreak === void 0) {
|
|
578
|
+
const row = (text2) => element("tr", [element("td", [{ type: "text", value: text2 }])]);
|
|
579
|
+
const table = element("table", [element("thead", [row("a")]), element("tbody", [row("b")])]);
|
|
580
|
+
sectionsBreak = _hastutiltotext.toText.call(void 0, { type: "root", children: [table] }).includes("\n");
|
|
581
|
+
}
|
|
582
|
+
return sectionsBreak;
|
|
583
|
+
}
|
|
569
584
|
function htmlTree(markdown) {
|
|
570
585
|
const mdast = _mdastutilfrommarkdown.fromMarkdown.call(void 0, markdown, { extensions: [_micromarkextensiongfm.gfm.call(void 0, )], mdastExtensions: [_mdastutilgfm.gfmFromMarkdown.call(void 0, )] });
|
|
571
586
|
_mdastutilnewlinetobreak.newlineToBreak.call(void 0, mdast);
|
|
@@ -578,7 +593,7 @@ function proseTree(markdown) {
|
|
|
578
593
|
parent.children.splice(index, 1);
|
|
579
594
|
return [_unistutilvisit.SKIP, index];
|
|
580
595
|
}
|
|
581
|
-
if (TABLE_SECTIONS.has(node.tagName) && parent && index !== void 0) {
|
|
596
|
+
if (TABLE_SECTIONS.has(node.tagName) && parent && index !== void 0 && !toTextBreaksBetweenSections()) {
|
|
582
597
|
const followedBySection = parent.children.slice(index + 1).some((sibling) => sibling.type === "element" && TABLE_SECTIONS.has(sibling.tagName));
|
|
583
598
|
const rows = node.children.filter(
|
|
584
599
|
(child) => child.type === "element" && child.tagName === "tr"
|
|
@@ -4739,25 +4754,16 @@ function ChatContextPicker({
|
|
|
4739
4754
|
)
|
|
4740
4755
|
] }),
|
|
4741
4756
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4742
|
-
|
|
4757
|
+
ContextItems,
|
|
4743
4758
|
{
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
ContextItemsList,
|
|
4747
|
-
{
|
|
4748
|
-
items: [],
|
|
4749
|
-
selectedKeys: NO_SELECTED_KEYS,
|
|
4750
|
-
onToggle: _chunk7JWFMAQBcjs.LOADING_NOOP,
|
|
4751
|
-
atLimit: false
|
|
4752
|
-
}
|
|
4753
|
-
),
|
|
4754
|
-
children: config.renderItems({
|
|
4759
|
+
renderItems: config.renderItems,
|
|
4760
|
+
args: {
|
|
4755
4761
|
type: activeType.type,
|
|
4756
4762
|
query: debouncedQuery,
|
|
4757
4763
|
selectedKeys,
|
|
4758
4764
|
onToggle: onToggleItem,
|
|
4759
4765
|
atLimit
|
|
4760
|
-
}
|
|
4766
|
+
}
|
|
4761
4767
|
}
|
|
4762
4768
|
)
|
|
4763
4769
|
}
|
|
@@ -4767,6 +4773,17 @@ function ChatContextPicker({
|
|
|
4767
4773
|
}
|
|
4768
4774
|
);
|
|
4769
4775
|
}
|
|
4776
|
+
function ContextItems(props) {
|
|
4777
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LoadingSuspense, { label: "Loading items", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsReader, { ...props }) });
|
|
4778
|
+
}
|
|
4779
|
+
function ContextItemsReader({
|
|
4780
|
+
renderItems,
|
|
4781
|
+
args
|
|
4782
|
+
}) {
|
|
4783
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ))
|
|
4784
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ContextItemsList, { items: [], selectedKeys: NO_SELECTED_KEYS, onToggle: _chunk7JWFMAQBcjs.LOADING_NOOP, atLimit: false });
|
|
4785
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: renderItems(args) });
|
|
4786
|
+
}
|
|
4770
4787
|
function ChatContextChipStrip({
|
|
4771
4788
|
items,
|
|
4772
4789
|
onRemove,
|
|
@@ -6709,7 +6726,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
|
|
|
6709
6726
|
|
|
6710
6727
|
[Attached: ${safeName}](${url})`;
|
|
6711
6728
|
}
|
|
6712
|
-
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED =
|
|
6729
|
+
var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkFAUVDMH4cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
|
|
6713
6730
|
var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
|
|
6714
6731
|
`^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
|
|
6715
6732
|
"gm"
|
|
@@ -9614,10 +9631,10 @@ function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
|
|
|
9614
9631
|
const isNewTab = runtime ? _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
|
|
9615
9632
|
if (isNewTab) {
|
|
9616
9633
|
if (_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.openExternal])) runtime.navigation.openExternal(href);
|
|
9617
|
-
else window.open(href, "_blank",
|
|
9634
|
+
else window.open(href, "_blank", _chunkFAUVDMH4cjs.NEW_TAB_FEATURES);
|
|
9618
9635
|
return;
|
|
9619
9636
|
}
|
|
9620
|
-
const target = isForeignOriginHref(href) ? href :
|
|
9637
|
+
const target = isForeignOriginHref(href) ? href : _chunkFAUVDMH4cjs.stripSameOriginToPath.call(void 0, href);
|
|
9621
9638
|
if (target.includes("#") && _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX })) {
|
|
9622
9639
|
return;
|
|
9623
9640
|
}
|
|
@@ -9668,7 +9685,7 @@ function useNavLinkViaRuntime({
|
|
|
9668
9685
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
9669
9686
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
9670
9687
|
const panel = useChatPanel();
|
|
9671
|
-
const resolvedHref =
|
|
9688
|
+
const resolvedHref = _chunkFAUVDMH4cjs.resolveHrefForRuntime.call(void 0, href, runtime);
|
|
9672
9689
|
const isNewTab = _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
|
|
9673
9690
|
const onClick = (e) => {
|
|
9674
9691
|
_optionalChain([onClickProp, 'optionalCall', _210 => _210(e)]);
|
|
@@ -9828,7 +9845,7 @@ function UserDisplay({
|
|
|
9828
9845
|
compact = false,
|
|
9829
9846
|
className
|
|
9830
9847
|
}) {
|
|
9831
|
-
const avatarSrc =
|
|
9848
|
+
const avatarSrc = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, avatarUrl);
|
|
9832
9849
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) {
|
|
9833
9850
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9834
9851
|
UserDisplaySkeleton,
|
|
@@ -10296,7 +10313,7 @@ function CardsStrip(props) {
|
|
|
10296
10313
|
}
|
|
10297
10314
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
|
|
10298
10315
|
};
|
|
10299
|
-
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10316
|
+
const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) });
|
|
10300
10317
|
if (items.length === 0) {
|
|
10301
10318
|
if (!inScope || !skeleton) return null;
|
|
10302
10319
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
|
|
@@ -10878,7 +10895,7 @@ function EntityVideoSection({
|
|
|
10878
10895
|
}
|
|
10879
10896
|
) : null),
|
|
10880
10897
|
videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
|
|
10881
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${
|
|
10898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
|
|
10882
10899
|
/* @__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 }) })
|
|
10883
10900
|
] }),
|
|
10884
10901
|
videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10950,7 +10967,7 @@ function designDocPeople(doc) {
|
|
|
10950
10967
|
return people;
|
|
10951
10968
|
}
|
|
10952
10969
|
function designDocMetaLine(doc) {
|
|
10953
|
-
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${
|
|
10970
|
+
return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkFAUVDMH4cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
|
|
10954
10971
|
}
|
|
10955
10972
|
var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
|
|
10956
10973
|
var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
|
|
@@ -11281,7 +11298,7 @@ function VendorIcon({
|
|
|
11281
11298
|
}) {
|
|
11282
11299
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
11283
11300
|
const logoUrl = getVendorLogo(vendor);
|
|
11284
|
-
const logoSrc =
|
|
11301
|
+
const logoSrc = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
|
|
11285
11302
|
const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
|
|
11286
11303
|
const containerClasses = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
11287
11304
|
sizeClasses[size],
|
|
@@ -11325,8 +11342,8 @@ function useChatCardItem(type, id) {
|
|
|
11325
11342
|
const res = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, url);
|
|
11326
11343
|
if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
|
|
11327
11344
|
const data = await res.json();
|
|
11328
|
-
const items =
|
|
11329
|
-
const match = items.find((it) =>
|
|
11345
|
+
const items = _chunkFAUVDMH4cjs.extractCardItems.call(void 0, type, data);
|
|
11346
|
+
const match = items.find((it) => _chunkFAUVDMH4cjs.extractItemId.call(void 0, type, it) === id);
|
|
11330
11347
|
return _nullishCoalesce(match, () => ( null));
|
|
11331
11348
|
},
|
|
11332
11349
|
enabled: !!url && id.length > 0,
|
|
@@ -11532,7 +11549,7 @@ function resolveFetchedCardHref({
|
|
|
11532
11549
|
composeContentUrl
|
|
11533
11550
|
}) {
|
|
11534
11551
|
if (!composeContentUrl || !contentRefType || !id) return null;
|
|
11535
|
-
const canonicalType =
|
|
11552
|
+
const canonicalType = _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, contentRefType);
|
|
11536
11553
|
return composeContentUrl({
|
|
11537
11554
|
// The card registry keys some entries by the legacy rail vocabulary
|
|
11538
11555
|
// (`blog_post_existing`) because that is what `buildListUrl` expects.
|
|
@@ -11600,7 +11617,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
|
|
|
11600
11617
|
// Canonical vocabulary only — a rail-vocab alias would miss the host's
|
|
11601
11618
|
// `hostedTypes` / `overrides` and fall through to the seam's default
|
|
11602
11619
|
// `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
|
|
11603
|
-
type:
|
|
11620
|
+
type: _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, row.documentType),
|
|
11604
11621
|
identifier: idValue,
|
|
11605
11622
|
externalUrl: row.externalUrl,
|
|
11606
11623
|
targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
|
|
@@ -11973,17 +11990,17 @@ function TrustCenterChatCard({
|
|
|
11973
11990
|
}) {
|
|
11974
11991
|
const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
|
|
11975
11992
|
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
11976
|
-
const summary =
|
|
11993
|
+
const summary = _chunkFAUVDMH4cjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
11977
11994
|
const leadFramework = frameworks[0];
|
|
11978
11995
|
const lead = leadFramework ? {
|
|
11979
|
-
label:
|
|
11980
|
-
color:
|
|
11996
|
+
label: _chunkFAUVDMH4cjs.trustFrameworkBadge.call(void 0, leadFramework),
|
|
11997
|
+
color: _chunkFAUVDMH4cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
|
|
11981
11998
|
} : void 0;
|
|
11982
11999
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11983
12000
|
MingoInfoCard,
|
|
11984
12001
|
{
|
|
11985
|
-
title:
|
|
11986
|
-
description: summary ||
|
|
12002
|
+
title: _chunkFAUVDMH4cjs.TRUST_CENTER_TITLE,
|
|
12003
|
+
description: summary || _chunkFAUVDMH4cjs.TRUST_CENTER_TAGLINE,
|
|
11987
12004
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
|
|
11988
12005
|
status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
|
|
11989
12006
|
anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
|
|
@@ -12113,7 +12130,7 @@ function CampaignChatCard({
|
|
|
12113
12130
|
}) {
|
|
12114
12131
|
const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
|
|
12115
12132
|
const meta = [
|
|
12116
|
-
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ?
|
|
12133
|
+
_optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunkFAUVDMH4cjs.formatDateShort.call(void 0, item.start_date) : null,
|
|
12117
12134
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
12118
12135
|
"Marketing campaign"
|
|
12119
12136
|
].filter(Boolean).join(" \xB7 ");
|
|
@@ -12164,7 +12181,7 @@ function entityCover(image, ogPlaceholder) {
|
|
|
12164
12181
|
function statusPill(status) {
|
|
12165
12182
|
const s = typeof status === "string" ? status.trim() : "";
|
|
12166
12183
|
if (!s) return void 0;
|
|
12167
|
-
const scheme =
|
|
12184
|
+
const scheme = _chunkFAUVDMH4cjs.getStatusColorScheme.call(void 0, s);
|
|
12168
12185
|
const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
|
|
12169
12186
|
return { label: s, variant };
|
|
12170
12187
|
}
|
|
@@ -12273,7 +12290,7 @@ function InvestorUpdateChatCard({
|
|
|
12273
12290
|
EntityMingoCard,
|
|
12274
12291
|
{
|
|
12275
12292
|
title,
|
|
12276
|
-
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) ||
|
|
12293
|
+
description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunkFAUVDMH4cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
|
|
12277
12294
|
cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
|
|
12278
12295
|
fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
|
|
12279
12296
|
status: { label: "Investor update", variant: "grey" },
|
|
@@ -12317,7 +12334,7 @@ function ProgramChatCard({
|
|
|
12317
12334
|
discuss
|
|
12318
12335
|
}) {
|
|
12319
12336
|
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 });
|
|
12320
|
-
const { line: meta } =
|
|
12337
|
+
const { line: meta } = _chunkFAUVDMH4cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkFAUVDMH4cjs.programMetaFormatters.call(void 0, _chunkFAUVDMH4cjs.PROGRAM_META_RENDERERS));
|
|
12321
12338
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12322
12339
|
EntityMingoCard,
|
|
12323
12340
|
{
|
|
@@ -12343,7 +12360,7 @@ function RoadmapChatCard({
|
|
|
12343
12360
|
const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
|
|
12344
12361
|
const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
|
|
12345
12362
|
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 });
|
|
12346
|
-
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12363
|
+
const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
|
|
12347
12364
|
// Contained (not full-bleed) so the integration logo keeps its aspect
|
|
12348
12365
|
// ratio inside the bordered icon box — matches RoadmapCard.
|
|
12349
12366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
|
|
@@ -12530,7 +12547,7 @@ function programRegistryEntries() {
|
|
|
12530
12547
|
label: cfg.label,
|
|
12531
12548
|
contentRefType: cfg.contentRefType,
|
|
12532
12549
|
bareInline: true,
|
|
12533
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12550
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProgramCard, { loading: true, size: "sm" }),
|
|
12534
12551
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12535
12552
|
ProgramChatCard,
|
|
12536
12553
|
{
|
|
@@ -12571,7 +12588,7 @@ function roadmapRegistryEntries() {
|
|
|
12571
12588
|
bareInline: true,
|
|
12572
12589
|
...cfg.noComposedHref ? { noComposedHref: true } : {},
|
|
12573
12590
|
...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
|
|
12574
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12591
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.RoadmapCard, { loading: true, size: "sm" }),
|
|
12575
12592
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12576
12593
|
RoadmapChatCard,
|
|
12577
12594
|
{
|
|
@@ -12629,12 +12646,12 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12629
12646
|
// projection route; `extractCardItems` turns its object payload into the
|
|
12630
12647
|
// single matched row. Destination is the public page unless the host
|
|
12631
12648
|
// re-homes the type (`composeContentUrl` override).
|
|
12632
|
-
[
|
|
12649
|
+
[_chunkFAUVDMH4cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
|
|
12633
12650
|
label: "Trust center",
|
|
12634
12651
|
bareInline: true,
|
|
12635
|
-
contentRefType:
|
|
12652
|
+
contentRefType: _chunkFAUVDMH4cjs.TRUST_CENTER_DOCUMENT_TYPE,
|
|
12636
12653
|
noComposedHref: true,
|
|
12637
|
-
fallbackHref: () =>
|
|
12654
|
+
fallbackHref: () => _chunkFAUVDMH4cjs.TRUST_CENTER_PAGE_PATH,
|
|
12638
12655
|
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
|
|
12639
12656
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
|
|
12640
12657
|
},
|
|
@@ -12660,7 +12677,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12660
12677
|
label: "Blog post",
|
|
12661
12678
|
contentRefType: "blog_post_existing",
|
|
12662
12679
|
bareInline: true,
|
|
12663
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12680
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.BlogCard, { loading: true, size: "sm" }),
|
|
12664
12681
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12665
12682
|
BlogChatCard,
|
|
12666
12683
|
{
|
|
@@ -12702,7 +12719,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12702
12719
|
label: "Customer interview",
|
|
12703
12720
|
contentRefType: "customer_interview",
|
|
12704
12721
|
bareInline: true,
|
|
12705
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12722
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
|
|
12706
12723
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12707
12724
|
CustomerInterviewChatCard,
|
|
12708
12725
|
{
|
|
@@ -12718,9 +12735,9 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12718
12735
|
label: "Product release",
|
|
12719
12736
|
contentRefType: "product_release",
|
|
12720
12737
|
bareInline: true,
|
|
12721
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12738
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProductReleaseCard, { loading: true, size: "sm" }),
|
|
12722
12739
|
render: (item, chatRef, opts) => {
|
|
12723
|
-
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => (
|
|
12740
|
+
const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunkFAUVDMH4cjs.defaultBuildProductReleaseCardProps));
|
|
12724
12741
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12725
12742
|
ProductReleaseChatCard,
|
|
12726
12743
|
{
|
|
@@ -12738,7 +12755,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12738
12755
|
label: "Investor update",
|
|
12739
12756
|
contentRefType: "investor_update",
|
|
12740
12757
|
bareInline: true,
|
|
12741
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12758
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
|
|
12742
12759
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12743
12760
|
InvestorUpdateChatCard,
|
|
12744
12761
|
{
|
|
@@ -12756,7 +12773,7 @@ var CHAT_CARD_REGISTRY = {
|
|
|
12756
12773
|
bareInline: true,
|
|
12757
12774
|
// "Display" affordance (verbatim guide body) instead of "Ask".
|
|
12758
12775
|
displayAction: true,
|
|
12759
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12776
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
|
|
12760
12777
|
render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12761
12778
|
OnboardingGuideChatCard,
|
|
12762
12779
|
{
|
|
@@ -12829,7 +12846,7 @@ function ChatCardLoader({
|
|
|
12829
12846
|
entry: fetchEntry,
|
|
12830
12847
|
ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
|
|
12831
12848
|
composeContentUrl: runtime.composeContentUrl,
|
|
12832
|
-
resolveHref: (href) =>
|
|
12849
|
+
resolveHref: (href) => _chunkFAUVDMH4cjs.resolveHrefForRuntime.call(void 0, href, runtime)
|
|
12833
12850
|
});
|
|
12834
12851
|
const hrefResolvedChatRef = {
|
|
12835
12852
|
...chatRef,
|
|
@@ -13920,7 +13937,7 @@ function useChatAttachmentImageGallery() {
|
|
|
13920
13937
|
return () => root.removeEventListener("click", onClick);
|
|
13921
13938
|
}, [viewUrlPrefix]);
|
|
13922
13939
|
const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13923
|
-
|
|
13940
|
+
_chunkFAUVDMH4cjs.ImageGalleryModal,
|
|
13924
13941
|
{
|
|
13925
13942
|
images: state.images,
|
|
13926
13943
|
isOpen: state.isOpen,
|