@flamingo-stack/openframe-frontend-core 0.0.819 → 0.0.821

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.
Files changed (63) hide show
  1. package/dist/{chunk-2T3HXLZD.cjs → chunk-2WHKEYDX.cjs} +55 -55
  2. package/dist/{chunk-K5IICQNF.cjs → chunk-2YUWBIZM.cjs} +46 -46
  3. package/dist/{chunk-MYIOOA4E.cjs → chunk-3SE34JVB.cjs} +2 -2
  4. package/dist/{chunk-2S6BUXYD.cjs → chunk-7DIWYZPQ.cjs} +3 -3
  5. package/dist/{chunk-I453QCEF.cjs → chunk-7QGK76LC.cjs} +131 -131
  6. package/dist/{chunk-WPHCVXES.cjs → chunk-BY2PLXYC.cjs} +13 -13
  7. package/dist/{chunk-2JFR6XVT.cjs → chunk-CA7X6CCJ.cjs} +32 -32
  8. package/dist/{chunk-CEXPWDT4.cjs → chunk-FTD3CZAS.cjs} +4 -4
  9. package/dist/{chunk-UDLDXVY4.cjs → chunk-GBILLSRM.cjs} +4 -4
  10. package/dist/{chunk-S2ZA4TMJ.cjs → chunk-GQHXJGA2.cjs} +11 -11
  11. package/dist/{chunk-A36XVWIQ.cjs → chunk-IS6BQSL6.cjs} +39 -39
  12. package/dist/{chunk-TDQRDQVU.cjs → chunk-LQF5F7LF.cjs} +4 -4
  13. package/dist/{chunk-IVQT5R6M.cjs → chunk-LWOXKF5P.cjs} +30 -30
  14. package/dist/{chunk-VSKR26MV.cjs → chunk-N2XHQVWX.cjs} +6 -6
  15. package/dist/{chunk-U3OICGCV.cjs → chunk-OEKVCVOS.cjs} +63 -63
  16. package/dist/{chunk-Q6QQSCUC.cjs → chunk-P2ZIQ72J.cjs} +13 -13
  17. package/dist/{chunk-IM366HS6.cjs → chunk-QCRJVO6Y.cjs} +78 -7
  18. package/dist/{chunk-7IQU54VE.cjs → chunk-QFNQSZ4H.cjs} +32 -97
  19. package/dist/{chunk-JOXJDNHN.cjs → chunk-RRLJ5PNL.cjs} +3 -3
  20. package/dist/{chunk-2W3W3ZV6.cjs → chunk-V26M75GV.cjs} +14 -14
  21. package/dist/{chunk-LUID2IB3.cjs → chunk-XEIZL3I3.cjs} +2 -2
  22. package/dist/{chunk-OTGYA5F7.cjs → chunk-YCE7A63X.cjs} +33 -33
  23. package/dist/{cloud-tenants-P5XJ5DPJ.cjs → cloud-tenants-M34P47GS.cjs} +6 -6
  24. package/dist/components/case-studies/index.cjs +20 -20
  25. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  26. package/dist/components/chat/embeddable-chat.js +5 -6
  27. package/dist/components/chat/index.cjs +5 -5
  28. package/dist/components/chat/utils/cited-sources.d.ts +9 -0
  29. package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
  30. package/dist/components/chat/utils/cited-sources.js +5 -0
  31. package/dist/components/contact/index.cjs +7 -7
  32. package/dist/components/docs/index.cjs +10 -10
  33. package/dist/components/embeds/index.cjs +7 -7
  34. package/dist/components/faq/index.cjs +8 -8
  35. package/dist/components/features/index.cjs +6 -6
  36. package/dist/components/help-center-pages/index.cjs +80 -80
  37. package/dist/components/index.cjs +48 -48
  38. package/dist/components/meeting-scheduler/index.cjs +31 -31
  39. package/dist/components/navigation/index.cjs +9 -9
  40. package/dist/components/onboarding-guides/index.cjs +9 -9
  41. package/dist/components/product-demo/index.cjs +15 -15
  42. package/dist/components/related-content/index.cjs +4 -4
  43. package/dist/components/tickets/index.cjs +11 -11
  44. package/dist/components/ui/index.cjs +6 -6
  45. package/dist/contexts/chat-runtime-context.d.ts +4 -3
  46. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  47. package/dist/{devices-BSIWSRZG.cjs → devices-SWFK4CPO.cjs} +7 -7
  48. package/dist/{embeddable-chat-5L2PKTW3.cjs → embeddable-chat-J6CKPKKM.cjs} +74 -71
  49. package/dist/index.cjs +17 -17
  50. package/dist/{knowledge-2F3IPK73.cjs → knowledge-N5FDIA33.cjs} +7 -7
  51. package/dist/{logs-U3OCJ2OC.cjs → logs-OEK7GMEB.cjs} +14 -14
  52. package/dist/{policies-L3KHKE2G.cjs → policies-Q7AS5AL6.cjs} +10 -10
  53. package/dist/{scripts-U4SLB5YC.cjs → scripts-3XWEDB2A.cjs} +11 -11
  54. package/dist/{software-update-QALYFCIO.cjs → software-update-6FOBLAOF.cjs} +9 -9
  55. package/dist/utils/image-proxy.d.ts +3 -2
  56. package/dist/utils/image-proxy.d.ts.map +1 -1
  57. package/dist/utils/image-proxy.js +11 -4
  58. package/dist/utils/index.cjs +68 -62
  59. package/package.json +1 -1
  60. package/src/components/chat/embeddable-chat.tsx +7 -8
  61. package/src/components/chat/utils/cited-sources.ts +10 -0
  62. package/src/contexts/chat-runtime-context.tsx +4 -3
  63. package/src/utils/image-proxy.ts +17 -6
@@ -3,24 +3,24 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2S6BUXYDcjs = require('./chunk-2S6BUXYD.cjs');
6
+ var _chunk7DIWYZPQcjs = require('./chunk-7DIWYZPQ.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkMYIOOA4Ecjs = require('./chunk-MYIOOA4E.cjs');
12
+ var _chunk3SE34JVBcjs = require('./chunk-3SE34JVB.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkVSKR26MVcjs = require('./chunk-VSKR26MV.cjs');
16
+ var _chunkN2XHQVWXcjs = require('./chunk-N2XHQVWX.cjs');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
23
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.cjs');
24
24
 
25
25
 
26
26
  var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
@@ -32,13 +32,13 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunk7IQU54VEcjs = require('./chunk-7IQU54VE.cjs');
35
+ var _chunkQFNQSZ4Hcjs = require('./chunk-QFNQSZ4H.cjs');
36
36
 
37
37
 
38
38
 
39
39
 
40
40
 
41
- var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
41
+ var _chunkYCE7A63Xcjs = require('./chunk-YCE7A63X.cjs');
42
42
 
43
43
 
44
44
 
@@ -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 (!_chunkI453QCEFcjs.isDataSyncSource.call(void 0, source)) return void 0;
357
+ if (!_chunk7QGK76LCcjs.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, () => ( _chunk7IQU54VEcjs.DEFAULT_FOLDER_INDEX_FILE));
363
- const cleanInitialPath = _chunk7IQU54VEcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
362
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkQFNQSZ4Hcjs.DEFAULT_FOLDER_INDEX_FILE));
363
+ const cleanInitialPath = _chunkQFNQSZ4Hcjs.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 = _chunk7IQU54VEcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
389
+ pathFromUrl = _chunkQFNQSZ4Hcjs.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(_chunk7IQU54VEcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
394
+ setExpandedNodes(new Set(_chunkQFNQSZ4Hcjs.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(_chunk7IQU54VEcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
412
+ setExpandedNodes(new Set(_chunkQFNQSZ4Hcjs.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(_chunk7IQU54VEcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
437
+ setExpandedNodes(new Set(_chunkQFNQSZ4Hcjs.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 = _chunk7IQU54VEcjs.findDocNodeByPath.call(void 0, _chunk7IQU54VEcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
477
+ const probe = _chunkQFNQSZ4Hcjs.findDocNodeByPath.call(void 0, _chunkQFNQSZ4Hcjs.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 = _chunk7IQU54VEcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
536
+ const node = _chunkQFNQSZ4Hcjs.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 = _chunk7IQU54VEcjs.getDocAncestorNodeIds.call(void 0, node.path);
577
+ const ancestorIds = _chunkQFNQSZ4Hcjs.getDocAncestorNodeIds.call(void 0, node.path);
578
578
  ancestorIds.pop();
579
579
  return new Set(ancestorIds);
580
580
  }
581
- return new Set(_chunk7IQU54VEcjs.getDocAncestorNodeIds.call(void 0, node.path));
581
+ return new Set(_chunkQFNQSZ4Hcjs.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(_chunk7IQU54VEcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
586
+ setExpandedNodes(new Set(_chunkQFNQSZ4Hcjs.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 : _chunk7IQU54VEcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
601
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkQFNQSZ4Hcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
602
602
  if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
603
603
  _chunkA34UNP5Vcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkA34UNP5Vcjs.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 = _chunk7IQU54VEcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
666
- return _nullishCoalesce(_chunk7IQU54VEcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
665
+ const clean = _chunkQFNQSZ4Hcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
666
+ return _nullishCoalesce(_chunkQFNQSZ4Hcjs.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 = _chunk7IQU54VEcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
673
+ const node = _chunkQFNQSZ4Hcjs.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 } = _chunkMYIOOA4Ecjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
756
+ const { activeSection, handleSectionClick } = _chunk3SE34JVBcjs.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 = _chunkVSKR26MVcjs.useDocSearch.call(void 0, {
763
+ const docSearch = _chunkN2XHQVWXcjs.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([_chunk7IQU54VEcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
787
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkQFNQSZ4Hcjs.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, _chunkIJCSQFLDcjs.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, _chunkI453QCEFcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
799
+ synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
800
800
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
801
- _chunkVSKR26MVcjs.DocSearchBar,
801
+ _chunkN2XHQVWXcjs.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
- _chunkMYIOOA4Ecjs.MobileNavigationDropdown,
822
+ _chunk3SE34JVBcjs.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
- _chunkMYIOOA4Ecjs.MultiLevelNavigation,
836
+ _chunk3SE34JVBcjs.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
- _chunkMYIOOA4Ecjs.StickySectionNav,
875
+ _chunk3SE34JVBcjs.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, _chunkI453QCEFcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
890
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.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 = _chunk63A4GZMBcjs.cn.call(void 0, _chunkOTGYA5F7cjs.MARKDOWN_H2_CLASS, _chunkOTGYA5F7cjs.TEXT_SIZE_PRESETS.default.h2);
907
- var MARKDOWN_SKELETON_P_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunkOTGYA5F7cjs.MARKDOWN_PARAGRAPH_CLASS, _chunkOTGYA5F7cjs.TEXT_SIZE_PRESETS.default.p);
906
+ var MARKDOWN_SKELETON_H2_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunkYCE7A63Xcjs.MARKDOWN_H2_CLASS, _chunkYCE7A63Xcjs.TEXT_SIZE_PRESETS.default.h2);
907
+ var MARKDOWN_SKELETON_P_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, _chunkYCE7A63Xcjs.MARKDOWN_PARAGRAPH_CLASS, _chunkYCE7A63Xcjs.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, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunkOTGYA5F7cjs.MARKDOWN_RENDERER_CLASS, children: MARKDOWN_SKELETON_BLOCKS.map(
913
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", announce: region, className: _chunkYCE7A63Xcjs.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, _chunk3TOWCFIKcjs.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, _chunk3TOWCFIKcjs.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, _chunkI453QCEFcjs.EmbedLoadingSkeleton, { region: false })
962
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.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, _chunk2S6BUXYDcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2S6BUXYDcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
970
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7DIWYZPQcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7DIWYZPQcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
973
973
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
974
- _chunk2S6BUXYDcjs.FileDownloadCard,
974
+ _chunk7DIWYZPQcjs.FileDownloadCard,
975
975
  {
976
976
  fileName: content.fileName,
977
977
  mimeType: content.mimeType,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkWPHCVXEScjs = require('./chunk-WPHCVXES.cjs');
4
+ var _chunkBY2PLXYCcjs = require('./chunk-BY2PLXYC.cjs');
5
5
 
6
6
 
7
- var _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
7
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.cjs');
8
8
 
9
9
 
10
10
  var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
@@ -37,7 +37,7 @@ function FaqDocumentPage({
37
37
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
38
38
  };
39
39
  const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
- _chunkWPHCVXEScjs.FaqSection,
40
+ _chunkBY2PLXYCcjs.FaqSection,
41
41
  {
42
42
  initialFaqs,
43
43
  heading: null,
@@ -53,7 +53,7 @@ function FaqDocumentPage({
53
53
  skeletonNav
54
54
  }
55
55
  ) });
56
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
56
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
57
57
  }
58
58
 
59
59
 
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkLUID2IB3cjs = require('./chunk-LUID2IB3.cjs');
4
+ var _chunkXEIZL3I3cjs = require('./chunk-XEIZL3I3.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkVSKR26MVcjs = require('./chunk-VSKR26MV.cjs');
8
+ var _chunkN2XHQVWXcjs = require('./chunk-N2XHQVWX.cjs');
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
15
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.cjs');
16
16
 
17
17
 
18
18
  var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
@@ -22,23 +22,23 @@ var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
22
22
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
23
23
 
24
24
 
25
- var _chunk7IQU54VEcjs = require('./chunk-7IQU54VE.cjs');
25
+ var _chunkQFNQSZ4Hcjs = require('./chunk-QFNQSZ4H.cjs');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
- var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
31
+ var _chunkYCE7A63Xcjs = require('./chunk-YCE7A63X.cjs');
32
32
 
33
33
 
34
34
  var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
35
35
 
36
36
 
37
- var _chunkUDLDXVY4cjs = require('./chunk-UDLDXVY4.cjs');
37
+ var _chunkGBILLSRMcjs = require('./chunk-GBILLSRM.cjs');
38
38
 
39
39
 
40
40
 
41
- var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
41
+ var _chunkQCRJVO6Ycjs = require('./chunk-QCRJVO6Y.cjs');
42
42
 
43
43
 
44
44
  var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
@@ -75,7 +75,7 @@ function OnboardingCatalogSectionsSkeleton() {
75
75
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
76
76
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
77
77
  ] }),
78
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
78
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
79
79
  ] }) });
80
80
  }
81
81
  function OnboardingGuidesCatalogView({
@@ -96,10 +96,10 @@ function OnboardingGuidesCatalogView({
96
96
  const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
97
97
  const activeSection = sectionValue || "all";
98
98
  const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
99
- const guidesRes = _chunkUDLDXVY4cjs.useSelfFetch.call(void 0,
99
+ const guidesRes = _chunkGBILLSRMcjs.useSelfFetch.call(void 0,
100
100
  selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
101
101
  );
102
- const sectionsRes = _chunkUDLDXVY4cjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
102
+ const sectionsRes = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
103
103
  const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
104
104
  const sections = _react.useMemo.call(void 0,
105
105
  () => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
143
143
  });
144
144
  };
145
145
  const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
146
- const docSearch = _chunkVSKR26MVcjs.useDocSearch.call(void 0, {
146
+ const docSearch = _chunkN2XHQVWXcjs.useDocSearch.call(void 0, {
147
147
  source,
148
148
  baseRoute: basePath,
149
149
  onNavigate: (path) => router.push(path),
150
150
  tableIds: ["onboarding-guides"]
151
151
  });
152
152
  const defaultRenderCard = (guide) => {
153
- const cta = _chunk7IQU54VEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
153
+ const cta = _chunkQFNQSZ4Hcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
154
154
  type: "onboarding_guide",
155
155
  slug: guide.slug,
156
156
  basePath,
157
157
  platforms: guide.onboarding_guide_platforms
158
158
  });
159
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
159
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
160
160
  };
161
161
  const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
162
162
  const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
163
163
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
164
- _chunkVSKR26MVcjs.DocSearchBar,
164
+ _chunkN2XHQVWXcjs.DocSearchBar,
165
165
  {
166
166
  placeholder: "Search onboarding guides, releases, case studies\u2026",
167
167
  query: docSearch.query,
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
173
173
  }
174
174
  ),
175
175
  (loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
176
- _chunkI453QCEFcjs.FilterPillRow,
176
+ _chunk7QGK76LCcjs.FilterPillRow,
177
177
  {
178
178
  label: "Section",
179
179
  selectedValue: activeSection,
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
184
184
  )
185
185
  ] });
186
186
  if (!loading && selfFetch && guidesRes.error) {
187
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
187
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
188
188
  }
189
189
  const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
190
190
  preControls,
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
200
200
  )
201
201
  ] });
202
202
  if (!loading) return view;
203
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
203
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
204
204
  }
205
205
  function OnboardingCatalogSections({
206
206
  grouped,
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
304
304
  slug,
305
305
  guideEndpoint,
306
306
  related = [],
307
- MarkdownRenderer = _chunkI453QCEFcjs.RichMarkdownRenderer,
307
+ MarkdownRenderer = _chunk7QGK76LCcjs.RichMarkdownRenderer,
308
308
  renderRelatedCard,
309
309
  backHref,
310
310
  backLabel = "Back to Getting Started",
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
314
314
  }) {
315
315
  const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
316
316
  const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
317
- const captions = _chunkOTGYA5F7cjs.useCaptions.call(void 0, );
317
+ const captions = _chunkYCE7A63Xcjs.useCaptions.call(void 0, );
318
318
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
319
- const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
319
+ const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
320
320
  const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
321
321
  const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
322
322
  const {
@@ -324,7 +324,7 @@ function OnboardingGuideDetailView({
324
324
  isLoading,
325
325
  error,
326
326
  reload
327
- } = _chunkUDLDXVY4cjs.useSelfFetch.call(void 0, scoped ? null : url, {
327
+ } = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, scoped ? null : url, {
328
328
  initialData
329
329
  });
330
330
  const { ref: videoWarmupRef } = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, {
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
334
334
  const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
335
335
  const loading = scoped || !guide && isLoading;
336
336
  if (!loading && (error || !guide)) {
337
- return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
337
+ return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
338
338
  }
339
339
  const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
340
340
  const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
@@ -342,19 +342,19 @@ function OnboardingGuideDetailView({
342
342
  // worst), so it's the terminal fallback — no trailing `|| undefined` needed.
343
343
  _chunkDVHSYPDBcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
344
344
  const defaultRenderRelatedCard = (g) => {
345
- const cta = _chunk7IQU54VEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
345
+ const cta = _chunkQFNQSZ4Hcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
346
346
  type: "onboarding_guide",
347
347
  slug: g.slug,
348
348
  basePath,
349
349
  platforms: g.onboarding_guide_platforms
350
350
  });
351
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
351
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
352
352
  };
353
353
  const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
354
354
  const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIJCSQFLDcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
355
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkI453QCEFcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
355
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7QGK76LCcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
356
356
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
357
- _chunkIM366HS6cjs.EntityAuthorCard,
357
+ _chunkQCRJVO6Ycjs.EntityAuthorCard,
358
358
  {
359
359
  author: view.author,
360
360
  authorHref,
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
370
370
  ),
371
371
  !loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
372
372
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
373
- _chunkOTGYA5F7cjs.EntityVideoSection,
373
+ _chunkYCE7A63Xcjs.EntityVideoSection,
374
374
  {
375
375
  mainVideoUrl: view.main_video_url,
376
376
  youtubeUrl: view.youtube_url || void 0,
@@ -387,7 +387,7 @@ function OnboardingGuideDetailView({
387
387
  ) }),
388
388
  (loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
389
389
  loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
390
- _chunkOTGYA5F7cjs.VideoBitesStrip,
390
+ _chunkYCE7A63Xcjs.VideoBitesStrip,
391
391
  {
392
392
  bites: _nullishCoalesce(view.video_bites, () => ( [])),
393
393
  filterPublished: true,
@@ -397,7 +397,7 @@ function OnboardingGuideDetailView({
397
397
  }
398
398
  ) }),
399
399
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
400
- _chunkLUID2IB3cjs.ArticleAuthorByline,
400
+ _chunkXEIZL3I3cjs.ArticleAuthorByline,
401
401
  {
402
402
  author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
403
403
  avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
410
410
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
411
411
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
412
412
  ] });
413
- return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOTGYA5F7cjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
413
+ return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYCE7A63Xcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
414
414
  }
415
415
 
416
416
  // src/components/onboarding-guides/hooks/use-onboarding-guides.ts
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkI453QCEFcjs = require('./chunk-I453QCEF.cjs');
4
+ var _chunk7QGK76LCcjs = require('./chunk-7QGK76LC.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkOTGYA5F7cjs = require('./chunk-OTGYA5F7.cjs');
10
+ var _chunkYCE7A63Xcjs = require('./chunk-YCE7A63X.cjs');
11
11
 
12
12
 
13
13
 
@@ -37,7 +37,7 @@ var _jsxruntime = require('react/jsx-runtime');
37
37
  function DocSearchResultRow({ result, isHighlighted }) {
38
38
  const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
39
39
  const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
40
- const { Icon: SourceIcon, label: iconLabel } = _chunkOTGYA5F7cjs.resolveSourceIcon.call(void 0, {
40
+ const { Icon: SourceIcon, label: iconLabel } = _chunkYCE7A63Xcjs.resolveSourceIcon.call(void 0, {
41
41
  sourceRepo,
42
42
  documentType: docType
43
43
  });
@@ -67,7 +67,7 @@ function DocSearchBar({
67
67
  renderResult
68
68
  }) {
69
69
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
70
- _chunkI453QCEFcjs.SearchInput,
70
+ _chunk7QGK76LCcjs.SearchInput,
71
71
  {
72
72
  placeholder,
73
73
  value: query,
@@ -117,7 +117,7 @@ function mapDocSearchResults(docs) {
117
117
  results.push({
118
118
  id: `group-${entry.repo}`,
119
119
  // Same table label and count as the chat's grouped chip: one owner each.
120
- title: `${_chunkOTGYA5F7cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkOTGYA5F7cjs.recordCountLabel.call(void 0, rows.length)}`,
120
+ title: `${_chunkYCE7A63Xcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkYCE7A63Xcjs.recordCountLabel.call(void 0, rows.length)}`,
121
121
  path: rows[0].path,
122
122
  type: "file",
123
123
  metadata: {
@@ -316,7 +316,7 @@ function useDocSearch(config) {
316
316
  }
317
317
  case "ask-ai":
318
318
  setKeepOpen(false);
319
- window.dispatchEvent(new CustomEvent(_chunkOTGYA5F7cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
319
+ window.dispatchEvent(new CustomEvent(_chunkYCE7A63Xcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
320
320
  return;
321
321
  case "route":
322
322
  setKeepOpen(false);