@flamingo-stack/openframe-frontend-core 0.0.851 → 0.0.853

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 (107) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-X2HKPKT7.cjs → case-study-card-WP5Z234Q.cjs} +5 -5
  3. package/dist/{chunk-BU2PSRAS.cjs → chunk-2W22LY3W.cjs} +11 -11
  4. package/dist/{chunk-ODMZSAIY.cjs → chunk-53QPG7SJ.cjs} +28 -28
  5. package/dist/{chunk-PJNEBSP5.cjs → chunk-5RMBLOJ5.cjs} +12 -12
  6. package/dist/{chunk-NQEPLUUW.cjs → chunk-67CZ2Q5K.cjs} +36 -36
  7. package/dist/{chunk-36DUCHI7.cjs → chunk-6GWRPW6B.cjs} +4 -4
  8. package/dist/{chunk-VU6N3NZS.cjs → chunk-6V2M2X3M.cjs} +6 -6
  9. package/dist/{chunk-2WZHNMQY.cjs → chunk-7RZHSBNX.cjs} +84 -84
  10. package/dist/{chunk-SOSIXRQ3.cjs → chunk-AZEO7HBB.cjs} +2 -2
  11. package/dist/{chunk-UQK6J3ZS.cjs → chunk-BNG6JOGZ.cjs} +25 -25
  12. package/dist/{chunk-KRTTH3ET.cjs → chunk-BNHTBLAG.cjs} +17 -17
  13. package/dist/{chunk-U4RTWH5D.cjs → chunk-COJG2ATY.cjs} +19 -19
  14. package/dist/{chunk-ALRYVZ3E.cjs → chunk-DLTPSP5F.cjs} +2 -2
  15. package/dist/{chunk-OUP7L3U5.cjs → chunk-E4MFQKPC.cjs} +91 -91
  16. package/dist/{chunk-SPKAXETT.cjs → chunk-EF2FZ7GT.cjs} +47 -47
  17. package/dist/{chunk-WYROOMUZ.cjs → chunk-EIACEY2L.cjs} +2 -2
  18. package/dist/{chunk-TIVPOVIM.cjs → chunk-ETZFBB7O.cjs} +2 -2
  19. package/dist/{chunk-GRCOEICK.cjs → chunk-G7GF4PWA.cjs} +6 -6
  20. package/dist/chunk-GGUFVIJ6.cjs +28 -0
  21. package/dist/{chunk-ZEPEFKHA.cjs → chunk-GI6ECCWB.cjs} +568 -548
  22. package/dist/{chunk-FGSN5UNY.cjs → chunk-HF3V6WBJ.cjs} +3 -3
  23. package/dist/{chunk-B6D4WWKD.cjs → chunk-IC4IJJB2.cjs} +95 -95
  24. package/dist/{chunk-BUEEQD3G.cjs → chunk-IGVAPIEW.cjs} +2 -2
  25. package/dist/{chunk-IG6ROHPS.cjs → chunk-IO6NN3SL.cjs} +54 -54
  26. package/dist/{chunk-VXIZCUNZ.cjs → chunk-KEV6F3QN.cjs} +65 -65
  27. package/dist/{chunk-DN227KZH.cjs → chunk-KHOB3TES.cjs} +4 -4
  28. package/dist/{chunk-JQCQCE6U.cjs → chunk-KKFDRCQF.cjs} +2 -2
  29. package/dist/{chunk-PPCRLSVR.cjs → chunk-KNN2GCMW.cjs} +21 -21
  30. package/dist/{chunk-CDW6JTAQ.cjs → chunk-LFEURIZN.cjs} +245 -245
  31. package/dist/{chunk-533QK4R6.cjs → chunk-NMWLXHFH.cjs} +130 -130
  32. package/dist/{chunk-MDLT6D46.cjs → chunk-O3EKOXFZ.cjs} +20 -20
  33. package/dist/{chunk-HLJXCOMA.cjs → chunk-OH5TXFRR.cjs} +4 -4
  34. package/dist/{chunk-QCSA7GIX.cjs → chunk-P63CRPWI.cjs} +12 -12
  35. package/dist/{chunk-5SEJEBAB.cjs → chunk-QOW2GP3V.cjs} +21 -21
  36. package/dist/{chunk-JBTH3O2C.cjs → chunk-SSKMGH5O.cjs} +4 -4
  37. package/dist/{chunk-2NGW73T2.cjs → chunk-TBGQMHCG.cjs} +6 -6
  38. package/dist/{chunk-LM7EL3UQ.cjs → chunk-U767P4JU.cjs} +11 -11
  39. package/dist/{chunk-FNQWL4W4.cjs → chunk-UO2EJGRJ.cjs} +45 -45
  40. package/dist/{chunk-UFGPLXH6.cjs → chunk-USPUZO53.cjs} +2 -2
  41. package/dist/{chunk-IN3LA2FU.cjs → chunk-UV45EPXN.cjs} +2 -2
  42. package/dist/{cloud-tenants-XH6GV4EI.cjs → cloud-tenants-QUL2XPAS.cjs} +47 -46
  43. package/dist/components/case-studies/index.cjs +66 -65
  44. package/dist/components/chat/index.cjs +42 -41
  45. package/dist/components/contact/index.cjs +48 -47
  46. package/dist/components/docs/index.cjs +51 -50
  47. package/dist/components/embeds/index.cjs +48 -47
  48. package/dist/components/faq/index.cjs +49 -48
  49. package/dist/components/features/index.cjs +48 -47
  50. package/dist/components/help-center-pages/index.cjs +153 -152
  51. package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
  52. package/dist/components/icons-v2-generated/brand-logos/index.d.ts +1 -0
  53. package/dist/components/icons-v2-generated/brand-logos/index.d.ts.map +1 -1
  54. package/dist/components/icons-v2-generated/brand-logos/index.js +2 -0
  55. package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts +8 -0
  56. package/dist/components/icons-v2-generated/brand-logos/stripe-icon.d.ts.map +1 -0
  57. package/dist/components/icons-v2-generated/brand-logos/stripe-icon.js +24 -0
  58. package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
  59. package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
  60. package/dist/components/icons-v2-generated/icon-names.js +1 -1
  61. package/dist/components/icons-v2-generated/index.cjs +33 -29
  62. package/dist/components/index.cjs +116 -109
  63. package/dist/components/meeting-scheduler/index.cjs +97 -96
  64. package/dist/components/navigation/index.cjs +51 -50
  65. package/dist/components/onboarding-guides/index.cjs +50 -49
  66. package/dist/components/platform/tool-badge-mark.d.ts +1 -1
  67. package/dist/components/product-demo/index.cjs +58 -57
  68. package/dist/components/related-content/index.cjs +9 -9
  69. package/dist/components/tickets/index.cjs +54 -53
  70. package/dist/components/ui/data-attribution.d.ts +8 -3
  71. package/dist/components/ui/data-attribution.d.ts.map +1 -1
  72. package/dist/components/ui/data-attribution.js +17 -6
  73. package/dist/components/ui/index.cjs +54 -47
  74. package/dist/components/ui/index.d.ts +1 -0
  75. package/dist/components/ui/index.d.ts.map +1 -1
  76. package/dist/components/ui/index.js +1 -0
  77. package/dist/{devices-7PT6MPJI.cjs → devices-LNB4CYPP.cjs} +48 -47
  78. package/dist/{embeddable-chat-5NY76K7K.cjs → embeddable-chat-SJEEJI4N.cjs} +118 -117
  79. package/dist/hooks/index.cjs +9 -9
  80. package/dist/{icon-loaders-SUPEKMBJ.cjs → icon-loaders-CTH6E7OP.cjs} +1 -0
  81. package/dist/index.cjs +56 -53
  82. package/dist/{knowledge-J6N7IEVI.cjs → knowledge-UTWKB6XG.cjs} +49 -48
  83. package/dist/{logs-D6KQP2BX.cjs → logs-PMXIWMBQ.cjs} +54 -53
  84. package/dist/{policies-J7MCOL3C.cjs → policies-6DCMFDL7.cjs} +51 -50
  85. package/dist/{remote-session-PXHA5KFK.cjs → remote-session-SG44CNOK.cjs} +33 -32
  86. package/dist/{scripts-VURXIHVS.cjs → scripts-2G7LXW7Z.cjs} +54 -53
  87. package/dist/{software-update-6SHUBDIE.cjs → software-update-MYLKHDHC.cjs} +51 -50
  88. package/dist/stripe-icon-YKVABTNI.cjs +7 -0
  89. package/dist/{tickets-board-NLCN7WNX.cjs → tickets-board-SQY2Y6QV.cjs} +37 -36
  90. package/dist/types/data-sync.d.ts +4 -1
  91. package/dist/types/data-sync.d.ts.map +1 -1
  92. package/dist/types/data-sync.js +4 -1
  93. package/dist/types/index.cjs +4 -1
  94. package/dist/utils/index.cjs +32 -1
  95. package/package.json +1 -1
  96. package/src/components/help-center-pages/trust-center-page.tsx +1 -1
  97. package/src/components/icons-v2/icon-colors.json +3 -0
  98. package/src/components/icons-v2-generated/brand-logos/index.ts +1 -0
  99. package/src/components/icons-v2-generated/brand-logos/stripe-icon.tsx +27 -0
  100. package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
  101. package/src/components/icons-v2-generated/icon-names.ts +1 -1
  102. package/src/components/platform/tool-badge-mark.ts +1 -1
  103. package/src/components/ui/data-attribution.tsx +20 -8
  104. package/src/components/ui/index.ts +2 -0
  105. package/src/styles/ods-colors.css +1 -0
  106. package/src/types/data-sync.ts +4 -1
  107. /package/dist/{chunk-46547WQW.cjs → chunk-7HH4Y27U.cjs} +0 -0
@@ -3,26 +3,26 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2NGW73T2cjs = require('./chunk-2NGW73T2.cjs');
6
+ var _chunkTBGQMHCGcjs = require('./chunk-TBGQMHCG.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkKRTTH3ETcjs = require('./chunk-KRTTH3ET.cjs');
12
+ var _chunkBNHTBLAGcjs = require('./chunk-BNHTBLAG.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkPJNEBSP5cjs = require('./chunk-PJNEBSP5.cjs');
16
+ var _chunk5RMBLOJ5cjs = require('./chunk-5RMBLOJ5.cjs');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunkZEPEFKHAcjs = require('./chunk-ZEPEFKHA.cjs');
22
+ var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
23
23
 
24
24
 
25
- var _chunkU4RTWH5Dcjs = require('./chunk-U4RTWH5D.cjs');
25
+ var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
26
26
 
27
27
 
28
28
 
@@ -30,12 +30,12 @@ var _chunkU4RTWH5Dcjs = require('./chunk-U4RTWH5D.cjs');
30
30
 
31
31
 
32
32
 
33
- var _chunkB6D4WWKDcjs = require('./chunk-B6D4WWKD.cjs');
33
+ var _chunkIC4IJJB2cjs = require('./chunk-IC4IJJB2.cjs');
34
34
 
35
35
 
36
36
 
37
37
 
38
- var _chunkGRCOEICKcjs = require('./chunk-GRCOEICK.cjs');
38
+ var _chunkG7GF4PWAcjs = require('./chunk-G7GF4PWA.cjs');
39
39
 
40
40
 
41
41
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
@@ -240,9 +240,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
240
240
  function scrollToContent() {
241
241
  const article = document.querySelector("article");
242
242
  if (article) {
243
- _chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkGRCOEICKcjs.HUB_HEADER_OFFSET_PX });
243
+ _chunkG7GF4PWAcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
244
244
  } else {
245
- _chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, document.documentElement);
245
+ _chunkG7GF4PWAcjs.scrollElementIntoView.call(void 0, document.documentElement);
246
246
  }
247
247
  }
248
248
  function isRecord(value) {
@@ -328,13 +328,13 @@ function toDocContent(value, requestedPath) {
328
328
  function toDataSync(value) {
329
329
  if (!isRecord(value)) return void 0;
330
330
  const source = readString(value, "source");
331
- if (!_chunkZEPEFKHAcjs.isDataSyncSource.call(void 0, source)) return void 0;
331
+ if (!_chunkGI6ECCWBcjs.isDataSyncSource.call(void 0, source)) return void 0;
332
332
  return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
333
333
  }
334
334
  function useDocumentTree(config, initialPath) {
335
335
  const { structureEndpoint, contentEndpoint, baseRoute } = config;
336
- const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkB6D4WWKDcjs.DEFAULT_FOLDER_INDEX_FILE));
337
- const cleanInitialPath = _chunkB6D4WWKDcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _3 => _3.replace, 'call', _4 => _4(/\/$/, "")]) || "", folderIndexFile);
336
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkIC4IJJB2cjs.DEFAULT_FOLDER_INDEX_FILE));
337
+ const cleanInitialPath = _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _3 => _3.replace, 'call', _4 => _4(/\/$/, "")]) || "", folderIndexFile);
338
338
  const [structure, setStructure] = _react.useState.call(void 0, []);
339
339
  const structureRef = _react.useRef.call(void 0, structure);
340
340
  _react.useEffect.call(void 0, () => {
@@ -364,12 +364,12 @@ function useDocumentTree(config, initialPath) {
364
364
  } else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
365
365
  pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
366
366
  }
367
- pathFromUrl = _chunkB6D4WWKDcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
367
+ pathFromUrl = _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
368
368
  if (pathFromUrl !== selectedPathRef.current) {
369
369
  setSelectedPath(pathFromUrl);
370
370
  if (pathFromUrl) {
371
371
  const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
372
- setExpandedNodes(new Set(_chunkB6D4WWKDcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
372
+ setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
373
373
  }
374
374
  setTimeout(() => {
375
375
  scrollToContent();
@@ -387,7 +387,7 @@ function useDocumentTree(config, initialPath) {
387
387
  setSelectedPath(cleanInitialPath);
388
388
  if (cleanInitialPath) {
389
389
  const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
390
- setExpandedNodes(new Set(_chunkB6D4WWKDcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
390
+ setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
391
391
  }
392
392
  setExternalNavCount((n) => n + 1);
393
393
  }
@@ -412,7 +412,7 @@ function useDocumentTree(config, initialPath) {
412
412
  if (cleanInitialPath) {
413
413
  const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
414
414
  if (pathForExpansion) {
415
- setExpandedNodes(new Set(_chunkB6D4WWKDcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
415
+ setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
416
416
  }
417
417
  } else if (nodes.length > 0) {
418
418
  const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
@@ -453,7 +453,7 @@ function useDocumentTree(config, initialPath) {
453
453
  return;
454
454
  }
455
455
  const latestStructure = structureRef.current;
456
- const probe = _chunkB6D4WWKDcjs.findDocNodeByPath.call(void 0, _chunkB6D4WWKDcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), latestStructure);
456
+ const probe = _chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), latestStructure);
457
457
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
458
458
  const preStructureFolderLike = latestStructure.length === 0 && !path.endsWith(".md");
459
459
  if (probeIsNoReadmeFolder || preStructureFolderLike) {
@@ -510,16 +510,16 @@ function useDocumentTree(config, initialPath) {
510
510
  if (!structure || structure.length === 0) return;
511
511
  let pathToFetch = null;
512
512
  if (selectedPath === "") {
513
- const rootPath = _chunkB6D4WWKDcjs.rootDocumentPath.call(void 0, structure, folderIndexFile);
513
+ const rootPath = _chunkIC4IJJB2cjs.rootDocumentPath.call(void 0, structure, folderIndexFile);
514
514
  if (!rootPath) {
515
515
  lastFetchedPath.current = null;
516
516
  return;
517
517
  }
518
518
  pathToFetch = rootPath;
519
519
  } else {
520
- const node = _chunkB6D4WWKDcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
520
+ const node = _chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
521
521
  if (node && node.type === "folder" && !node.hasReadme) {
522
- const firstDocPath = _chunkB6D4WWKDcjs.findFirstDocPath.call(void 0, node);
522
+ const firstDocPath = _chunkIC4IJJB2cjs.findFirstDocPath.call(void 0, node);
523
523
  if (!firstDocPath) {
524
524
  lastFetchedPath.current = null;
525
525
  return;
@@ -558,16 +558,16 @@ function useDocumentTree(config, initialPath) {
558
558
  if (node.type === "folder") {
559
559
  setExpandedNodes((prev) => {
560
560
  if (prev.has(node.id)) {
561
- const ancestorIds = _chunkB6D4WWKDcjs.getDocAncestorNodeIds.call(void 0, node.path);
561
+ const ancestorIds = _chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, node.path);
562
562
  ancestorIds.pop();
563
563
  return new Set(ancestorIds);
564
564
  }
565
- return new Set(_chunkB6D4WWKDcjs.getDocAncestorNodeIds.call(void 0, node.path));
565
+ return new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, node.path));
566
566
  });
567
567
  } else {
568
568
  const lastSlash = node.path.lastIndexOf("/");
569
569
  if (lastSlash > 0) {
570
- setExpandedNodes(new Set(_chunkB6D4WWKDcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
570
+ setExpandedNodes(new Set(_chunkIC4IJJB2cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
571
571
  }
572
572
  }
573
573
  lastFetchedPath.current = null;
@@ -582,9 +582,9 @@ function useDocumentTree(config, initialPath) {
582
582
  const hashIndex = path.indexOf("#");
583
583
  const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
584
584
  const cleanPath = path.replace(/\/$/, "").split("#")[0];
585
- const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _5 => _5.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkB6D4WWKDcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
585
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _5 => _5.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
586
586
  if (anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
587
- _chunkGRCOEICKcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkGRCOEICKcjs.HUB_HEADER_OFFSET_PX });
587
+ _chunkG7GF4PWAcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
588
588
  return;
589
589
  }
590
590
  const scrollAfterNav = () => {
@@ -592,7 +592,7 @@ function useDocumentTree(config, initialPath) {
592
592
  setTimeout(() => {
593
593
  const el = document.getElementById(anchor.substring(1));
594
594
  if (el) {
595
- _chunkGRCOEICKcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkGRCOEICKcjs.HUB_HEADER_OFFSET_PX });
595
+ _chunkG7GF4PWAcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkG7GF4PWAcjs.HUB_HEADER_OFFSET_PX });
596
596
  } else {
597
597
  scrollToContent();
598
598
  }
@@ -646,17 +646,17 @@ function useDocumentTree(config, initialPath) {
646
646
  return docNavigation.register({
647
647
  baseRoute: normalizedBaseRoute,
648
648
  findNodeByPath: (path) => {
649
- const clean = _chunkB6D4WWKDcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
650
- return _nullishCoalesce(_chunkB6D4WWKDcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
649
+ const clean = _chunkIC4IJJB2cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
650
+ return _nullishCoalesce(_chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
651
651
  },
652
652
  selectNode
653
653
  });
654
654
  }, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
655
655
  const isEmptyFolder = _react.useMemo.call(void 0, () => {
656
656
  if (structure.length === 0) return false;
657
- if (!selectedPath) return !_chunkB6D4WWKDcjs.rootDocumentPath.call(void 0, structure, folderIndexFile);
658
- const node = _chunkB6D4WWKDcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
659
- return !!node && node.type === "folder" && !node.hasReadme && !_chunkB6D4WWKDcjs.findFirstDocPath.call(void 0, node);
657
+ if (!selectedPath) return !_chunkIC4IJJB2cjs.rootDocumentPath.call(void 0, structure, folderIndexFile);
658
+ const node = _chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
659
+ return !!node && node.type === "folder" && !node.hasReadme && !_chunkIC4IJJB2cjs.findFirstDocPath.call(void 0, node);
660
660
  }, [selectedPath, structure, folderIndexFile]);
661
661
  const isEmptySource = !isLoadingStructure && structure.length === 0;
662
662
  const settled = isEmptyFolder || isEmptySource;
@@ -742,14 +742,14 @@ function DocViewerContent({
742
742
  },
743
743
  docPath
744
744
  );
745
- const { activeSection, handleSectionClick } = _chunkKRTTH3ETcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _10 => _10.sections]));
745
+ const { activeSection, handleSectionClick } = _chunkBNHTBLAGcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _10 => _10.sections]));
746
746
  const docNav = useDocNavigation();
747
747
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
748
748
  const backCfg = backButton === false ? null : {
749
749
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _11 => _11.label]), () => ( "Back to home")),
750
750
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.href]), () => ( "/")))
751
751
  };
752
- const docSearch = _chunkPJNEBSP5cjs.useDocSearch.call(void 0, {
752
+ const docSearch = _chunk5RMBLOJ5cjs.useDocSearch.call(void 0, {
753
753
  source: chatSource,
754
754
  baseRoute,
755
755
  searchEndpoint,
@@ -773,8 +773,8 @@ function DocViewerContent({
773
773
  onResolveLink: resolveLink
774
774
  });
775
775
  }, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
776
- const selectedNodePath = structure.length > 0 && !selectedPath ? _chunkB6D4WWKDcjs.rootDocumentPath.call(void 0, structure, folderIndexFile) : selectedPath;
777
- const selectedNodeDocType = structure.length > 0 ? selectedNodePath ? _optionalChain([_chunkB6D4WWKDcjs.findDocNodeByPath.call(void 0, selectedNodePath, structure), 'optionalAccess', _13 => _13.documentType]) : void 0 : initialDocumentType;
776
+ const selectedNodePath = structure.length > 0 && !selectedPath ? _chunkIC4IJJB2cjs.rootDocumentPath.call(void 0, structure, folderIndexFile) : selectedPath;
777
+ const selectedNodeDocType = structure.length > 0 ? selectedNodePath ? _optionalChain([_chunkIC4IJJB2cjs.findDocNodeByPath.call(void 0, selectedNodePath, structure), 'optionalAccess', _13 => _13.documentType]) : void 0 : initialDocumentType;
778
778
  const isLoadingDocument = isLoadingContent || isLoadingStructure;
779
779
  const loadingContent = isLoadingDocument ? renderContent(
780
780
  { content: "", sections: [], path: _nullishCoalesce(selectedPath, () => ( "")), documentType: selectedNodeDocType },
@@ -789,10 +789,10 @@ function DocViewerContent({
789
789
  const bgClass = !isColorValue ? colorPalette.background : "";
790
790
  const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
791
791
  const resolvedEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : emptyStateText || "No documents yet.";
792
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4RTWH5Dcjs.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: [
793
- synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZEPEFKHAcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _18 => _18.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
792
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.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: [
793
+ synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _18 => _18.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
794
794
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
795
- _chunkPJNEBSP5cjs.DocSearchBar,
795
+ _chunk5RMBLOJ5cjs.DocSearchBar,
796
796
  {
797
797
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
798
798
  query: docSearch.query,
@@ -813,7 +813,7 @@ function DocViewerContent({
813
813
  !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: [
814
814
  /* @__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: [
815
815
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
816
- _chunkKRTTH3ETcjs.MobileNavigationDropdown,
816
+ _chunkBNHTBLAGcjs.MobileNavigationDropdown,
817
817
  {
818
818
  nodes: structure,
819
819
  selectedPath,
@@ -827,7 +827,7 @@ function DocViewerContent({
827
827
  /* @__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: [
828
828
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
829
829
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
830
- _chunkKRTTH3ETcjs.MultiLevelNavigation,
830
+ _chunkBNHTBLAGcjs.MultiLevelNavigation,
831
831
  {
832
832
  nodes: structure,
833
833
  selectedPath,
@@ -859,7 +859,7 @@ function DocViewerContent({
859
859
  isMarkdownContent && isLoadingDocument && /* @__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: [
860
860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
861
861
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingScope, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
862
- _chunkKRTTH3ETcjs.StickySectionNav,
862
+ _chunkBNHTBLAGcjs.StickySectionNav,
863
863
  {
864
864
  sections: [],
865
865
  activeSection: "",
@@ -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
- _chunkKRTTH3ETcjs.StickySectionNav,
875
+ _chunkBNHTBLAGcjs.StickySectionNav,
876
876
  {
877
877
  sections: stickyNavSections,
878
878
  activeSection,
@@ -887,18 +887,18 @@ function DocViewerContent({
887
887
  ) })
888
888
  ] })
889
889
  ] }) }) });
890
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZEPEFKHAcjs.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, _chunkGI6ECCWBcjs.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/docs-hub-page.tsx
894
894
 
895
895
  var DEFAULT_TITLE = "Documents";
896
896
  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" }) });
897
- var defaultPdfRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NGW73T2cjs.PdfViewer, { src: _nullishCoalesce(content.fileUrl, () => ( "")), fileName: content.fileName });
898
- var defaultGoogleSheetRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NGW73T2cjs.GoogleSheetsViewer, { externalUrl: _nullishCoalesce(content.externalUrl, () => ( "")), fileName: content.fileName });
899
- var defaultFigmaRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZEPEFKHAcjs.FigmaEmbed, { url: _nullishCoalesce(content.externalUrl, () => ( "")), title: content.fileName, iframeLoading: "eager" });
897
+ var defaultPdfRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTBGQMHCGcjs.PdfViewer, { src: _nullishCoalesce(content.fileUrl, () => ( "")), fileName: content.fileName });
898
+ var defaultGoogleSheetRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTBGQMHCGcjs.GoogleSheetsViewer, { externalUrl: _nullishCoalesce(content.externalUrl, () => ( "")), fileName: content.fileName });
899
+ var defaultFigmaRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.FigmaEmbed, { url: _nullishCoalesce(content.externalUrl, () => ( "")), title: content.fileName, iframeLoading: "eager" });
900
900
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
901
- _chunk2NGW73T2cjs.FileDownloadCard,
901
+ _chunkTBGQMHCGcjs.FileDownloadCard,
902
902
  {
903
903
  fileName: content.fileName,
904
904
  mimeType: content.mimeType,
@@ -28,7 +28,7 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
28
28
  var _chunkUAI4VMEFcjs = require('./chunk-UAI4VMEF.cjs');
29
29
 
30
30
 
31
- var _chunkJQCQCE6Ucjs = require('./chunk-JQCQCE6U.cjs');
31
+ var _chunkKKFDRCQFcjs = require('./chunk-KKFDRCQF.cjs');
32
32
 
33
33
 
34
34
 
@@ -823,7 +823,7 @@ function SlashCommandSuggestions({
823
823
  className
824
824
  ),
825
825
  children: commands.map((cmd, idx) => {
826
- const Icon = _chunkJQCQCE6Ucjs.resolveIcon.call(void 0, cmd.iconName);
826
+ const Icon = _chunkKKFDRCQFcjs.resolveIcon.call(void 0, cmd.iconName);
827
827
  const legacyMeta = !cmd.iconName && cmd.primarySourceId && resolveSourceIcon ? resolveSourceIcon(cmd.primarySourceId) : void 0;
828
828
  const LegacyIcon = _optionalChain([legacyMeta, 'optionalAccess', _4 => _4.Icon]);
829
829
  const title = _nullishCoalesce(_nullishCoalesce(cmd.label, () => ( _optionalChain([legacyMeta, 'optionalAccess', _5 => _5.label]))), () => ( cmd.id));
@@ -1,7 +1,7 @@
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 _chunkJQCQCE6Ucjs = require('./chunk-JQCQCE6U.cjs');
4
+ var _chunkKKFDRCQFcjs = require('./chunk-KKFDRCQF.cjs');
5
5
 
6
6
 
7
7
  var _chunkGG466XFQcjs = require('./chunk-GG466XFQ.cjs');
@@ -14,7 +14,7 @@ var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
14
14
 
15
15
  // src/hooks/ui/use-image-edge-color.ts
16
16
  var _react = require('react');
17
- var EDGE_SAMPLE_WIDTH = _chunkJQCQCE6Ucjs.IMAGE_FIXED_WIDTHS[2];
17
+ var EDGE_SAMPLE_WIDTH = _chunkKKFDRCQFcjs.IMAGE_FIXED_WIDTHS[2];
18
18
  function extractEdgeColor(img) {
19
19
  const canvas = document.createElement("canvas");
20
20
  const ctx = canvas.getContext("2d");
@@ -8,7 +8,7 @@ var _chunkCOWMXUHNcjs = require('./chunk-COWMXUHN.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkTIVPOVIMcjs = require('./chunk-TIVPOVIM.cjs');
11
+ var _chunkETZFBB7Ocjs = require('./chunk-ETZFBB7O.cjs');
12
12
 
13
13
  // src/hooks/ui/use-debounce.ts
14
14
  var _react = require('react');
@@ -671,23 +671,23 @@ function navigateSamePageHash(target, options = {}) {
671
671
 
672
672
  // src/components/chat/utils/execute-navigation.ts
673
673
  function isForeignOriginHref(href) {
674
- return /^https?:\/\//i.test(href) && !_chunkTIVPOVIMcjs.isSameOriginAbsoluteHref.call(void 0, href);
674
+ return /^https?:\/\//i.test(href) && !_chunkETZFBB7Ocjs.isSameOriginAbsoluteHref.call(void 0, href);
675
675
  }
676
676
  function executeNewTabNavigation({
677
677
  runtime,
678
678
  href,
679
679
  targetPlatform
680
680
  }) {
681
- if (runtime) _chunkTIVPOVIMcjs.resolveExternalNavigation.call(void 0, { href, targetPlatform, runtime }).open();
682
- else window.open(href, "_blank", _chunkTIVPOVIMcjs.newTabFeatures.call(void 0, href, targetPlatform));
681
+ if (runtime) _chunkETZFBB7Ocjs.resolveExternalNavigation.call(void 0, { href, targetPlatform, runtime }).open();
682
+ else window.open(href, "_blank", _chunkETZFBB7Ocjs.newTabFeatures.call(void 0, href, targetPlatform));
683
683
  }
684
684
  function runNavigation(runtime, href, path, targetPlatform, hostRoute, openIn) {
685
- const { isNewTab } = _chunkTIVPOVIMcjs.navLinkTarget.call(void 0, runtime, href, targetPlatform, { hostRoute, openIn });
685
+ const { isNewTab } = _chunkETZFBB7Ocjs.navLinkTarget.call(void 0, runtime, href, targetPlatform, { hostRoute, openIn });
686
686
  if (isNewTab) {
687
687
  executeNewTabNavigation({ runtime, href, targetPlatform });
688
688
  return;
689
689
  }
690
- const target = isForeignOriginHref(href) ? href : _chunkTIVPOVIMcjs.stripSameOriginToPath.call(void 0, href);
690
+ const target = isForeignOriginHref(href) ? href : _chunkETZFBB7Ocjs.stripSameOriginToPath.call(void 0, href);
691
691
  if (target.includes("#") && navigateSamePageHash(target, { headerOffset: STICKY_HEADER_OFFSET_PX })) {
692
692
  return;
693
693
  }
@@ -0,0 +1,28 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ // src/components/icons-v2-generated/brand-logos/stripe-icon.tsx
4
+ var _jsxruntime = require('react/jsx-runtime');
5
+ function StripeIcon({
6
+ className = "",
7
+ size = 24,
8
+ color = "var(--social-stripe)",
9
+ ...props
10
+ }) {
11
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12
+ "svg",
13
+ {
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ fill: color,
16
+ viewBox: "0 0 24 24",
17
+ width: size,
18
+ height: size,
19
+ className,
20
+ ...props,
21
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { d: "M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305z" })
22
+ }
23
+ );
24
+ }
25
+
26
+
27
+
28
+ exports.StripeIcon = StripeIcon;