@flamingo-stack/openframe-frontend-core 0.0.747 → 0.0.748
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-TYW7NBP7.cjs → chunk-46EIXJFC.cjs} +9 -9
- package/dist/{chunk-PIQRV4EQ.cjs → chunk-4AZHFLOM.cjs} +3 -3
- package/dist/{chunk-R3FXJXSQ.cjs → chunk-6XP6RNFD.cjs} +273 -273
- package/dist/{chunk-4DT5YXTM.cjs → chunk-7Y3VMMJB.cjs} +7 -7
- package/dist/{chunk-7Y5U3Y4S.cjs → chunk-BBTSJYTR.cjs} +38 -33
- package/dist/{chunk-FCQCEQBY.cjs → chunk-D4XZL27V.cjs} +4 -4
- package/dist/{chunk-2CEQGGRN.cjs → chunk-EH3LOWGY.cjs} +17 -17
- package/dist/{chunk-O6QQ44I3.cjs → chunk-G2ELX3DG.cjs} +11 -11
- package/dist/{chunk-LLAKQT3B.cjs → chunk-GE4PCDNZ.cjs} +6 -6
- package/dist/{chunk-WY4FKKCV.cjs → chunk-H34A2765.cjs} +37 -37
- package/dist/{chunk-IJA3OZWF.cjs → chunk-JNBOQ7F2.cjs} +9 -9
- package/dist/{chunk-JPSMPXCH.cjs → chunk-JOPFX3PJ.cjs} +66 -66
- package/dist/{chunk-6RTHHU3S.cjs → chunk-OZUJYBQ2.cjs} +4 -4
- package/dist/{chunk-MA7T36JY.cjs → chunk-TRXCQADV.cjs} +33 -33
- package/dist/{chunk-HTMHDEIV.cjs → chunk-UNR74CAC.cjs} +4 -4
- package/dist/{chunk-4AWI6CCU.cjs → chunk-YKJQM2O6.cjs} +25 -25
- package/dist/{chunk-C7NTL2GV.cjs → chunk-ZNUSYMH7.cjs} +15 -15
- package/dist/{cloud-tenants-QJZIF2JS.cjs → cloud-tenants-V5727B7F.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +74 -74
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-V55KQCAL.cjs → devices-WWMXIIHI.cjs} +5 -5
- package/dist/{embeddable-chat-5CDR4I6E.cjs → embeddable-chat-IJHCGQ24.cjs} +64 -64
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-S3VGDRKR.cjs → knowledge-JZP4RIXB.cjs} +5 -5
- package/dist/{logs-K5E2BGZE.cjs → logs-WIRYFNUC.cjs} +12 -12
- package/dist/{policies-BWU4FRFE.cjs → policies-X7OJYA7G.cjs} +8 -8
- package/dist/{scripts-25UPGXZU.cjs → scripts-GRMT2NGW.cjs} +9 -9
- package/dist/{software-update-F6UC7ULZ.cjs → software-update-G3QOB7RT.cjs} +7 -7
- package/dist/utils/index.cjs +49 -48
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +12 -7
- package/package.json +7 -2
- package/src/utils/markdown-to-plain.ts +25 -16
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4AZHFLOMcjs = require('./chunk-4AZHFLOM.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkOZUJYBQ2cjs = require('./chunk-OZUJYBQ2.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkGE4PCDNZcjs = require('./chunk-GE4PCDNZ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk6XP6RNFDcjs = require('./chunk-6XP6RNFD.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkU6XWGK53cjs = require('./chunk-U6XWGK53.cjs');
|
|
@@ -27,7 +27,7 @@ var _chunkU6XWGK53cjs = require('./chunk-U6XWGK53.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkZNUSYMH7cjs = require('./chunk-ZNUSYMH7.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -337,8 +337,8 @@ function toDocContent(value, requestedPath) {
|
|
|
337
337
|
}
|
|
338
338
|
function useDocumentTree(config, initialPath) {
|
|
339
339
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
340
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
341
|
-
const cleanInitialPath =
|
|
340
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkZNUSYMH7cjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
341
|
+
const cleanInitialPath = _chunkZNUSYMH7cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
342
342
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
343
343
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
344
344
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -362,12 +362,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
362
362
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
363
363
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
364
364
|
}
|
|
365
|
-
pathFromUrl =
|
|
365
|
+
pathFromUrl = _chunkZNUSYMH7cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
366
366
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
367
367
|
setSelectedPath(pathFromUrl);
|
|
368
368
|
if (pathFromUrl) {
|
|
369
369
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
370
|
-
setExpandedNodes(new Set(
|
|
370
|
+
setExpandedNodes(new Set(_chunkZNUSYMH7cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
371
371
|
}
|
|
372
372
|
setTimeout(() => {
|
|
373
373
|
scrollToContent();
|
|
@@ -385,7 +385,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
385
385
|
setSelectedPath(cleanInitialPath);
|
|
386
386
|
if (cleanInitialPath) {
|
|
387
387
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
388
|
-
setExpandedNodes(new Set(
|
|
388
|
+
setExpandedNodes(new Set(_chunkZNUSYMH7cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
389
389
|
}
|
|
390
390
|
setExternalNavCount((n) => n + 1);
|
|
391
391
|
}
|
|
@@ -410,7 +410,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
412
|
if (pathForExpansion) {
|
|
413
|
-
setExpandedNodes(new Set(
|
|
413
|
+
setExpandedNodes(new Set(_chunkZNUSYMH7cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
414
414
|
}
|
|
415
415
|
} else if (nodes.length > 0) {
|
|
416
416
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -450,7 +450,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
450
450
|
setContent(null);
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
|
-
const probe =
|
|
453
|
+
const probe = _chunkZNUSYMH7cjs.findDocNodeByPath.call(void 0, _chunkZNUSYMH7cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
454
454
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
455
455
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
456
456
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -507,7 +507,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
507
507
|
if (selectedPath === "") {
|
|
508
508
|
pathToFetch = folderIndexFile;
|
|
509
509
|
} else {
|
|
510
|
-
const node =
|
|
510
|
+
const node = _chunkZNUSYMH7cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
511
511
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
512
512
|
const firstDocPath = findFirstDocPath(node);
|
|
513
513
|
if (!firstDocPath) {
|
|
@@ -548,16 +548,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
548
548
|
if (node.type === "folder") {
|
|
549
549
|
setExpandedNodes((prev) => {
|
|
550
550
|
if (prev.has(node.id)) {
|
|
551
|
-
const ancestorIds =
|
|
551
|
+
const ancestorIds = _chunkZNUSYMH7cjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
552
552
|
ancestorIds.pop();
|
|
553
553
|
return new Set(ancestorIds);
|
|
554
554
|
}
|
|
555
|
-
return new Set(
|
|
555
|
+
return new Set(_chunkZNUSYMH7cjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
556
556
|
});
|
|
557
557
|
} else {
|
|
558
558
|
const lastSlash = node.path.lastIndexOf("/");
|
|
559
559
|
if (lastSlash > 0) {
|
|
560
|
-
setExpandedNodes(new Set(
|
|
560
|
+
setExpandedNodes(new Set(_chunkZNUSYMH7cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
lastFetchedPath.current = null;
|
|
@@ -572,7 +572,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
572
572
|
const hashIndex = path.indexOf("#");
|
|
573
573
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
574
574
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
575
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
575
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkZNUSYMH7cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
576
576
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
577
577
|
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
578
578
|
return;
|
|
@@ -636,15 +636,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
636
636
|
return docNavigation.register({
|
|
637
637
|
baseRoute: normalizedBaseRoute,
|
|
638
638
|
findNodeByPath: (path) => {
|
|
639
|
-
const clean =
|
|
640
|
-
return _nullishCoalesce(
|
|
639
|
+
const clean = _chunkZNUSYMH7cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
640
|
+
return _nullishCoalesce(_chunkZNUSYMH7cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
641
641
|
},
|
|
642
642
|
selectNode
|
|
643
643
|
});
|
|
644
644
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
645
645
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
646
646
|
if (!selectedPath || structure.length === 0) return false;
|
|
647
|
-
const node =
|
|
647
|
+
const node = _chunkZNUSYMH7cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
648
648
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
649
649
|
}, [selectedPath, structure]);
|
|
650
650
|
return {
|
|
@@ -724,14 +724,14 @@ function DocViewerContent({
|
|
|
724
724
|
},
|
|
725
725
|
docPath
|
|
726
726
|
);
|
|
727
|
-
const { activeSection, handleSectionClick } =
|
|
727
|
+
const { activeSection, handleSectionClick } = _chunkOZUJYBQ2cjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
728
728
|
const docNav = useDocNavigation();
|
|
729
729
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
730
730
|
const backCfg = backButton === false ? null : {
|
|
731
731
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
732
732
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
733
733
|
};
|
|
734
|
-
const docSearch =
|
|
734
|
+
const docSearch = _chunkGE4PCDNZcjs.useDocSearch.call(void 0, {
|
|
735
735
|
source: chatSource,
|
|
736
736
|
baseRoute,
|
|
737
737
|
searchEndpoint,
|
|
@@ -755,7 +755,7 @@ function DocViewerContent({
|
|
|
755
755
|
onResolveLink: resolveLink
|
|
756
756
|
});
|
|
757
757
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
758
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
758
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkZNUSYMH7cjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
759
759
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
760
760
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
761
761
|
const showStickyNav = isMarkdownContent;
|
|
@@ -768,7 +768,7 @@ function DocViewerContent({
|
|
|
768
768
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
769
769
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU6XWGK53cjs.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: [
|
|
770
770
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
771
|
-
|
|
771
|
+
_chunkGE4PCDNZcjs.DocSearchBar,
|
|
772
772
|
{
|
|
773
773
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
774
774
|
query: docSearch.query,
|
|
@@ -787,9 +787,9 @@ function DocViewerContent({
|
|
|
787
787
|
] })
|
|
788
788
|
] }) }),
|
|
789
789
|
!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: [
|
|
790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
791
791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
-
|
|
792
|
+
_chunkOZUJYBQ2cjs.MobileNavigationDropdown,
|
|
793
793
|
{
|
|
794
794
|
nodes: structure,
|
|
795
795
|
selectedPath,
|
|
@@ -803,7 +803,7 @@ function DocViewerContent({
|
|
|
803
803
|
/* @__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: [
|
|
804
804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
805
805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
806
|
-
|
|
806
|
+
_chunkOZUJYBQ2cjs.MultiLevelNavigation,
|
|
807
807
|
{
|
|
808
808
|
nodes: structure,
|
|
809
809
|
selectedPath,
|
|
@@ -842,7 +842,7 @@ function DocViewerContent({
|
|
|
842
842
|
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: [
|
|
843
843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
844
844
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
845
|
-
|
|
845
|
+
_chunkOZUJYBQ2cjs.StickySectionNav,
|
|
846
846
|
{
|
|
847
847
|
sections: stickyNavSections,
|
|
848
848
|
activeSection,
|
|
@@ -857,7 +857,7 @@ function DocViewerContent({
|
|
|
857
857
|
) })
|
|
858
858
|
] })
|
|
859
859
|
] }) }) });
|
|
860
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
861
861
|
}
|
|
862
862
|
|
|
863
863
|
// src/components/docs/skeletons.tsx
|
|
@@ -953,11 +953,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
953
953
|
|
|
954
954
|
var DEFAULT_TITLE = "Documents";
|
|
955
955
|
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" }) });
|
|
956
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
957
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
956
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4AZHFLOMcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
957
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4AZHFLOMcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
958
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
959
959
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
|
|
960
|
+
_chunk4AZHFLOMcjs.FileDownloadCard,
|
|
961
961
|
{
|
|
962
962
|
fileName: content.fileName,
|
|
963
963
|
mimeType: content.mimeType,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZNUSYMH7cjs = require('./chunk-ZNUSYMH7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBBTSJYTRcjs = require('./chunk-BBTSJYTR.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkBBTSJYTRcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkZNUSYMH7cjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUNR74CACcjs = require('./chunk-UNR74CAC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkHTMHDEIVcjs = require('./chunk-HTMHDEIV.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk6XP6RNFDcjs = require('./chunk-6XP6RNFD.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkNTGIQP7Ocjs = require('./chunk-NTGIQP7O.cjs');
|
|
@@ -32,10 +32,10 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkZNUSYMH7cjs = require('./chunk-ZNUSYMH7.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkBBTSJYTRcjs = require('./chunk-BBTSJYTR.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunkPSIKUDUVcjs = require('./chunk-PSIKUDUV.cjs');
|
|
@@ -181,7 +181,7 @@ function NavItemRow({
|
|
|
181
181
|
className
|
|
182
182
|
}) {
|
|
183
183
|
const label = navLinkLabel(link);
|
|
184
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
184
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
185
185
|
const singleLine = !link.description && !link.builtOn;
|
|
186
186
|
const rowClassName = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
187
187
|
ROW_CLASSES[variant],
|
|
@@ -569,7 +569,7 @@ function SiteHeader({
|
|
|
569
569
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
570
570
|
leading,
|
|
571
571
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
572
|
-
|
|
572
|
+
_chunk6XP6RNFDcjs.HeaderButton,
|
|
573
573
|
{
|
|
574
574
|
className: "border-r border-ods-border lg:hidden",
|
|
575
575
|
onClick: mobile.onToggle,
|
|
@@ -595,7 +595,7 @@ function SiteHeader({
|
|
|
595
595
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
596
596
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
597
597
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
-
|
|
598
|
+
_chunkZNUSYMH7cjs.MingoAiButton,
|
|
599
599
|
{
|
|
600
600
|
source: mingo.source,
|
|
601
601
|
icon: mingo.icon,
|
|
@@ -697,7 +697,7 @@ function MobileNavSheetBody({
|
|
|
697
697
|
] }),
|
|
698
698
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
699
699
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
700
|
-
|
|
700
|
+
_chunkZNUSYMH7cjs.MingoAiButton,
|
|
701
701
|
{
|
|
702
702
|
variant: "field",
|
|
703
703
|
source: askAI.source,
|
|
@@ -875,7 +875,7 @@ function SiteFooter({
|
|
|
875
875
|
const columns = nav.footerColumns;
|
|
876
876
|
const accordion = columns.length > ACCORDION_OVER;
|
|
877
877
|
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
878
|
-
|
|
878
|
+
_chunk6XP6RNFDcjs.SocialIconRow,
|
|
879
879
|
{
|
|
880
880
|
compact: true,
|
|
881
881
|
links: nav.brand.social.map((link) => ({
|
|
@@ -978,7 +978,7 @@ var _framermotion = require('framer-motion');
|
|
|
978
978
|
|
|
979
979
|
function SlidingSidebar({ config }) {
|
|
980
980
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
981
|
-
const mounted =
|
|
981
|
+
const mounted = _chunkBBTSJYTRcjs.useIsHydrated.call(void 0, );
|
|
982
982
|
const headerHeight = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, );
|
|
983
983
|
const asideRef = _react.useRef.call(void 0, null);
|
|
984
984
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
@@ -1251,7 +1251,7 @@ var NavigationSidebarItemButton = _react.memo.call(void 0, function NavigationSi
|
|
|
1251
1251
|
_react.cloneElement.call(void 0, item.icon, {
|
|
1252
1252
|
color: isActive && !disabled ? "text-ods-accent" : "text-ods-text-secondary"
|
|
1253
1253
|
}),
|
|
1254
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1254
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.UnreadDot, { size: "fixed" })
|
|
1255
1255
|
] }),
|
|
1256
1256
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1257
1257
|
"span",
|
|
@@ -1352,7 +1352,7 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
|
|
|
1352
1352
|
setTabletFor(isTablet);
|
|
1353
1353
|
if (isTablet) setTabletMinimized(true);
|
|
1354
1354
|
}
|
|
1355
|
-
const hydrated =
|
|
1355
|
+
const hydrated = _chunkBBTSJYTRcjs.useIsHydrated.call(void 0, );
|
|
1356
1356
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
1357
1357
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
1358
1358
|
const isOverlayOpen = isTablet && !minimized;
|
|
@@ -1544,7 +1544,7 @@ function HeaderGlobalSearch({
|
|
|
1544
1544
|
"form",
|
|
1545
1545
|
{
|
|
1546
1546
|
onSubmit: handleSubmit,
|
|
1547
|
-
...
|
|
1547
|
+
..._chunkZNUSYMH7cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
1548
1548
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
1549
1549
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
1550
1550
|
// Transparent so the cell inherits the bar's background
|
|
@@ -1669,16 +1669,16 @@ function HeaderOrganizationFilter({
|
|
|
1669
1669
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
1670
1670
|
|
|
1671
1671
|
function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
1672
|
-
const live =
|
|
1672
|
+
const live = _chunkUNR74CACcjs.useOptionalTicketLive.call(void 0, );
|
|
1673
1673
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
1674
1674
|
const targetId = live.nextUnreadTicketId;
|
|
1675
|
-
const target = targetId ?
|
|
1675
|
+
const target = targetId ? _chunkZNUSYMH7cjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
1676
1676
|
const handleClick = () => {
|
|
1677
1677
|
if (onNavigate) onNavigate(target);
|
|
1678
1678
|
else window.location.assign(target);
|
|
1679
1679
|
};
|
|
1680
1680
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1681
|
-
|
|
1681
|
+
_chunk6XP6RNFDcjs.HeaderButton,
|
|
1682
1682
|
{
|
|
1683
1683
|
icon: (
|
|
1684
1684
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -1688,7 +1688,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
1688
1688
|
// existing while updates are unread — never by tinting the glyph.
|
|
1689
1689
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
1690
1690
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
1691
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1691
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
1692
1692
|
] })
|
|
1693
1693
|
),
|
|
1694
1694
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -1764,7 +1764,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1764
1764
|
leading: (
|
|
1765
1765
|
// Mobile: Burger Menu Button
|
|
1766
1766
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1767
|
-
|
|
1767
|
+
_chunk6XP6RNFDcjs.HeaderButton,
|
|
1768
1768
|
{
|
|
1769
1769
|
onClick: onToggleMobileMenu,
|
|
1770
1770
|
isActive: isMobileMenuOpen,
|
|
@@ -1790,7 +1790,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1790
1790
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1791
1791
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1792
1792
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1793
|
-
|
|
1793
|
+
_chunk6XP6RNFDcjs.HeaderButton,
|
|
1794
1794
|
{
|
|
1795
1795
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1796
1796
|
"aria-label": "Search",
|
|
@@ -1807,7 +1807,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1807
1807
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1808
1808
|
}
|
|
1809
1809
|
),
|
|
1810
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1810
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.TimeTrackerHeaderButton, { disabled, className: _chunk3ATAYP36cjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1811
1811
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1812
1812
|
NotificationsHeaderButton,
|
|
1813
1813
|
{
|
|
@@ -1827,7 +1827,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1827
1827
|
),
|
|
1828
1828
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL2RMTGOKcjs.DropdownMenu, { children: [
|
|
1829
1829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL2RMTGOKcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1830
|
-
|
|
1830
|
+
_chunk6XP6RNFDcjs.HeaderButton,
|
|
1831
1831
|
{
|
|
1832
1832
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1833
1833
|
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
@@ -1912,12 +1912,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1912
1912
|
);
|
|
1913
1913
|
});
|
|
1914
1914
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1915
|
-
const ctx =
|
|
1915
|
+
const ctx = _chunk6XP6RNFDcjs.useOptionalNotifications.call(void 0, );
|
|
1916
1916
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _52 => _52.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1917
1917
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _53 => _53.isOpen]), () => ( false));
|
|
1918
1918
|
const onClick = _optionalChain([ctx, 'optionalAccess', _54 => _54.toggle]);
|
|
1919
1919
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1920
|
-
|
|
1920
|
+
_chunk6XP6RNFDcjs.HeaderButton,
|
|
1921
1921
|
{
|
|
1922
1922
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: "h-6 w-6" }),
|
|
1923
1923
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2590,7 +2590,7 @@ function AppLayout({
|
|
|
2590
2590
|
}),
|
|
2591
2591
|
[]
|
|
2592
2592
|
);
|
|
2593
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2593
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
2594
2594
|
topBar,
|
|
2595
2595
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
2596
2596
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
|
|
@@ -2614,7 +2614,7 @@ function AppLayout({
|
|
|
2614
2614
|
disabled
|
|
2615
2615
|
}
|
|
2616
2616
|
),
|
|
2617
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.NotificationDrawer, {}),
|
|
2618
2618
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2619
2619
|
"div",
|
|
2620
2620
|
{
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkBBTSJYTRcjs = require('./chunk-BBTSJYTR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1908,8 +1908,8 @@ function makeComposeContentUrl(opts) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
1910
1910
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
1911
|
-
const owner = claimedOwner &&
|
|
1912
|
-
const origin = owner ?
|
|
1911
|
+
const owner = claimedOwner && _chunkBBTSJYTRcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
1912
|
+
const origin = owner ? _chunkBBTSJYTRcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
1913
1913
|
return {
|
|
1914
1914
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _69 => _69.trim, 'call', _70 => _70()]) || identifier}`,
|
|
1915
1915
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2090,7 +2090,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2090
2090
|
if (heading.level > opts.maxLevel) continue;
|
|
2091
2091
|
let title = heading.text;
|
|
2092
2092
|
if (opts.stripFormattingMarkers) {
|
|
2093
|
-
title =
|
|
2093
|
+
title = _chunkBBTSJYTRcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2094
2094
|
}
|
|
2095
2095
|
const baseId = _chunkCSJO7ZGNcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2096
2096
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2405,7 +2405,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2405
2405
|
function openAskAi(source, options) {
|
|
2406
2406
|
const prompt = _optionalChain([options, 'optionalAccess', _77 => _77.prompt, 'optionalAccess', _78 => _78.trim, 'call', _79 => _79()]);
|
|
2407
2407
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2408
|
-
window.dispatchEvent(new CustomEvent(
|
|
2408
|
+
window.dispatchEvent(new CustomEvent(_chunkBBTSJYTRcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2409
2409
|
}
|
|
2410
2410
|
function MingoAiButton({
|
|
2411
2411
|
source,
|
|
@@ -2551,13 +2551,13 @@ function QuestionChips({
|
|
|
2551
2551
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: count }, (_, slot) => {
|
|
2552
2552
|
const prompt = loading ? void 0 : prompts[slot];
|
|
2553
2553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2554
|
-
|
|
2554
|
+
_chunkBBTSJYTRcjs.QuickActionChipSkeleton,
|
|
2555
2555
|
{
|
|
2556
2556
|
variant: "question",
|
|
2557
2557
|
labelCh: SKELETON_LABEL_CH[slot % SKELETON_LABEL_CH.length]
|
|
2558
2558
|
}
|
|
2559
2559
|
) : prompt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2560
|
-
|
|
2560
|
+
_chunkBBTSJYTRcjs.QuickActionChipButton,
|
|
2561
2561
|
{
|
|
2562
2562
|
variant: "question",
|
|
2563
2563
|
label: prompt.label,
|
|
@@ -2589,7 +2589,7 @@ function AskPrompts({
|
|
|
2589
2589
|
if (!loading && prompts.length === 0) return null;
|
|
2590
2590
|
const end = align === "end";
|
|
2591
2591
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2592
|
-
|
|
2592
|
+
_chunkBBTSJYTRcjs.ScrollShadow,
|
|
2593
2593
|
{
|
|
2594
2594
|
axis: "horizontal",
|
|
2595
2595
|
color: fadeColor,
|
|
@@ -2893,7 +2893,7 @@ function QuickActionMarquee({
|
|
|
2893
2893
|
);
|
|
2894
2894
|
if (items.length === 0) return null;
|
|
2895
2895
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2896
|
-
|
|
2896
|
+
_chunkBBTSJYTRcjs.QuickActionWall,
|
|
2897
2897
|
{
|
|
2898
2898
|
chips,
|
|
2899
2899
|
mode,
|
|
@@ -3027,7 +3027,7 @@ ChatTicketItem.displayName = "ChatTicketItem";
|
|
|
3027
3027
|
|
|
3028
3028
|
var ChatTicketList = _react.forwardRef.call(void 0,
|
|
3029
3029
|
({ className, tickets, onTicketClick, isLoading = false, skeletonCount = 5, ...props }, ref) => {
|
|
3030
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3030
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkBBTSJYTRcjs.useScrollFade.call(void 0, );
|
|
3031
3031
|
if (isLoading) {
|
|
3032
3032
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3033
3033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3047,8 +3047,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3047
3047
|
),
|
|
3048
3048
|
children: [
|
|
3049
3049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick }, ticket.id)) }),
|
|
3050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3051
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBBTSJYTRcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
3051
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBBTSJYTRcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
3052
3052
|
]
|
|
3053
3053
|
}
|
|
3054
3054
|
)
|
|
@@ -4961,7 +4961,7 @@ function Section({ title, description, children }) {
|
|
|
4961
4961
|
] });
|
|
4962
4962
|
}
|
|
4963
4963
|
function ProxyCredentialsPanel({ description }) {
|
|
4964
|
-
const hydrated =
|
|
4964
|
+
const hydrated = _chunkBBTSJYTRcjs.useIsHydrated.call(void 0, );
|
|
4965
4965
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4966
4966
|
ProxyCredentialsForm,
|
|
4967
4967
|
{
|
|
@@ -5125,10 +5125,10 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5125
5125
|
|
|
5126
5126
|
// src/components/chat/index.ts
|
|
5127
5127
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5128
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5128
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-IJHCGQ24.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5129
5129
|
);
|
|
5130
5130
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5131
|
-
_react.useEffect.call(void 0, () =>
|
|
5131
|
+
_react.useEffect.call(void 0, () => _chunkBBTSJYTRcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5132
5132
|
return _react.createElement.call(void 0, _react.Suspense, { fallback: null }, _react.createElement.call(void 0, LoadedEmbeddableChat, { ...props, ref }));
|
|
5133
5133
|
});
|
|
5134
5134
|
EmbeddableChat.displayName = "EmbeddableChat";
|
|
@@ -9,7 +9,7 @@ var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
|
|
|
9
9
|
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6XP6RNFDcjs = require('./chunk-6XP6RNFD.cjs');
|
|
13
13
|
require('./chunk-HNLI4OU5.cjs');
|
|
14
14
|
require('./chunk-NTGIQP7O.cjs');
|
|
15
15
|
require('./chunk-U6XWGK53.cjs');
|
|
@@ -22,8 +22,8 @@ require('./chunk-A6P6DHEZ.cjs');
|
|
|
22
22
|
require('./chunk-MZ4KBSH7.cjs');
|
|
23
23
|
require('./chunk-BBM2ICOY.cjs');
|
|
24
24
|
require('./chunk-YUMFVQIN.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-ZNUSYMH7.cjs');
|
|
26
|
+
require('./chunk-BBTSJYTR.cjs');
|
|
27
27
|
require('./chunk-PSIKUDUV.cjs');
|
|
28
28
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
29
29
|
require('./chunk-YRULLK7N.cjs');
|
|
@@ -1918,7 +1918,7 @@ var getHref = () => "#";
|
|
|
1918
1918
|
function CloudTenantsScreen(_props) {
|
|
1919
1919
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1920
1920
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1921
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1923
1923
|
}
|
|
1924
1924
|
|