@flamingo-stack/openframe-frontend-core 0.0.705-snapshot.20261006160157 → 0.0.705

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 (194) hide show
  1. package/dist/{chunk-WCVZCGK5.cjs → chunk-2QEUFXNS.cjs} +71 -312
  2. package/dist/{chunk-N45D4ZXQ.js → chunk-2YXVWZVF.js} +715 -959
  3. package/dist/{chunk-7OFPU7WE.cjs → chunk-3MX5S4CF.cjs} +2547 -877
  4. package/dist/{chunk-MB4PNY7C.cjs → chunk-4I45Y3DN.cjs} +6 -6
  5. package/dist/{chunk-K6O43WDL.cjs → chunk-4KX6OED2.cjs} +46 -46
  6. package/dist/{chunk-JPG7OHEG.js → chunk-5HBHO5TB.js} +1 -1
  7. package/dist/{chunk-3PLDQDE6.cjs → chunk-6NJKKO73.cjs} +15 -15
  8. package/dist/{chunk-O2RSAA5M.js → chunk-6SEANMOU.js} +11 -11
  9. package/dist/{chunk-WMX26HB5.js → chunk-6XIF2Z7I.js} +3 -3
  10. package/dist/{chunk-TQ4LB2DS.cjs → chunk-7LS22BZU.cjs} +14 -14
  11. package/dist/{chunk-7GEBFJT2.js → chunk-7VVFKJY5.js} +3429 -1759
  12. package/dist/{chunk-DDVBX42E.cjs → chunk-A75QY6CD.cjs} +21 -21
  13. package/dist/{chunk-OF6GEI5A.cjs → chunk-ABU3TGXA.cjs} +3 -3
  14. package/dist/{chunk-4CJMQLB5.js → chunk-AQWZNP6A.js} +4 -4
  15. package/dist/{chunk-FI6GMDO7.js → chunk-CH5232HV.js} +662 -2455
  16. package/dist/{chunk-Y2GSOUCS.cjs → chunk-D7BTSVMS.cjs} +2 -2
  17. package/dist/{chunk-4ILM7W2R.js → chunk-DENB2XJC.js} +2 -2
  18. package/dist/{chunk-6232S532.js → chunk-DW7G4KG3.js} +3 -3
  19. package/dist/{chunk-3NCM4ZQB.js → chunk-F6AFPNDF.js} +15 -15
  20. package/dist/{chunk-PXOQIA5K.js → chunk-F6I6XZMN.js} +5 -5
  21. package/dist/{chunk-G6UMNAVI.js → chunk-FCGC42TS.js} +61 -57
  22. package/dist/{chunk-BHI6GVC4.js → chunk-G5A3PSPV.js} +691 -1080
  23. package/dist/{chunk-HZ7CBXPL.cjs → chunk-HPWWNJE7.cjs} +89 -89
  24. package/dist/{chunk-SW5ZV2BN.cjs → chunk-IHERL5V4.cjs} +34 -34
  25. package/dist/{chunk-UJ33ZXDT.cjs → chunk-IKTQ3ZAG.cjs} +6 -6
  26. package/dist/{chunk-SEKYEWQG.cjs → chunk-JEZKGCZI.cjs} +26 -26
  27. package/dist/{chunk-7SCNMP2B.cjs → chunk-KOWVJD4V.cjs} +56 -56
  28. package/dist/chunk-LMBC5FFP.js +43 -0
  29. package/dist/{chunk-F57ECE2I.js → chunk-MFFCUVWG.js} +1 -1
  30. package/dist/{chunk-KUC673HM.js → chunk-MKXO4Q5P.js} +142 -383
  31. package/dist/{chunk-6NTPY5QA.cjs → chunk-MMOODW57.cjs} +94 -1887
  32. package/dist/{chunk-CUME3VTQ.js → chunk-MP2C3LJ4.js} +1 -1
  33. package/dist/{chunk-VX4E6YSB.cjs → chunk-N3COXDBH.cjs} +5 -41
  34. package/dist/{chunk-FXJ3WWUB.js → chunk-NDESEPW5.js} +0 -68
  35. package/dist/chunk-O43V3EOS.js +252 -0
  36. package/dist/{chunk-PLYEKV3N.cjs → chunk-OHFS7VOU.cjs} +2 -2
  37. package/dist/{chunk-M75XEEGT.cjs → chunk-OUY3HHW6.cjs} +539 -928
  38. package/dist/{chunk-CZ7Y7UG4.js → chunk-PDWVPI3S.js} +72 -4
  39. package/dist/{chunk-TE773HEH.js → chunk-PN2RKPDF.js} +10 -10
  40. package/dist/{chunk-3EZ4HHAP.js → chunk-QFXRPRFT.js} +3 -3
  41. package/dist/chunk-QZVSJF2K.cjs +252 -0
  42. package/dist/chunk-RALRPFDW.cjs +43 -0
  43. package/dist/{chunk-YGJKKDDM.js → chunk-RBDP4WDE.js} +6 -6
  44. package/dist/{chunk-LM7TXMLU.cjs → chunk-RKV5B7EU.cjs} +4 -72
  45. package/dist/{chunk-UVTD52MD.cjs → chunk-TYWLNCNH.cjs} +82 -14
  46. package/dist/{chunk-IKJA3Y7Z.js → chunk-VA5T32XA.js} +2 -2
  47. package/dist/{chunk-GWQEYPYM.cjs → chunk-VESKITRQ.cjs} +732 -728
  48. package/dist/{chunk-RQRX4YC3.cjs → chunk-VHCACDKP.cjs} +39 -39
  49. package/dist/{chunk-4IBPRIQH.js → chunk-VR2ZLFCP.js} +1 -1
  50. package/dist/{chunk-RTIPR53L.cjs → chunk-WA6GUYQ4.cjs} +104 -104
  51. package/dist/{chunk-T5TMCHWM.js → chunk-X5MQ7JRP.js} +9 -9
  52. package/dist/{chunk-LLSUVPQC.cjs → chunk-X72J4ACL.cjs} +8 -252
  53. package/dist/{chunk-UDFRUKLC.cjs → chunk-XOYH2YQE.cjs} +2 -2
  54. package/dist/{chunk-LVSFKENJ.cjs → chunk-YFBM2K6X.cjs} +4 -4
  55. package/dist/{chunk-DWPAAWMR.js → chunk-YHM5AWTT.js} +6 -6
  56. package/dist/{chunk-NCPTID44.js → chunk-Z2VNQQ74.js} +942 -978
  57. package/dist/{chunk-STHZBOQI.cjs → chunk-ZSAGLQOD.cjs} +17 -17
  58. package/dist/{chunk-VZICIQW2.js → chunk-ZSAO2HBW.js} +15 -15
  59. package/dist/components/case-studies/index.cjs +32 -30
  60. package/dist/components/case-studies/index.js +16 -14
  61. package/dist/components/chat/entity-cards/case-study-card.d.ts +4 -11
  62. package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
  63. package/dist/components/chat/index.cjs +11 -9
  64. package/dist/components/chat/index.js +16 -14
  65. package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
  66. package/dist/components/contact/index.cjs +14 -12
  67. package/dist/components/contact/index.js +13 -11
  68. package/dist/components/docs/index.cjs +17 -15
  69. package/dist/components/docs/index.js +16 -14
  70. package/dist/components/embeds/index.cjs +14 -12
  71. package/dist/components/embeds/index.js +13 -11
  72. package/dist/components/faq/index.cjs +15 -13
  73. package/dist/components/faq/index.js +14 -12
  74. package/dist/components/features/index.cjs +14 -12
  75. package/dist/components/features/index.js +23 -21
  76. package/dist/components/footer-waitlist-button.d.ts +29 -0
  77. package/dist/components/footer-waitlist-button.d.ts.map +1 -0
  78. package/dist/components/footer.d.ts +47 -0
  79. package/dist/components/footer.d.ts.map +1 -0
  80. package/dist/components/help-center-pages/index.cjs +120 -118
  81. package/dist/components/help-center-pages/index.js +35 -33
  82. package/dist/components/icons/index.cjs +5 -3
  83. package/dist/components/icons/index.js +11 -9
  84. package/dist/components/icons-v2-generated/index.cjs +5 -3
  85. package/dist/components/icons-v2-generated/index.js +4 -2
  86. package/dist/components/index.cjs +159 -86
  87. package/dist/components/index.d.ts +2 -0
  88. package/dist/components/index.d.ts.map +1 -1
  89. package/dist/components/index.js +402 -329
  90. package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
  91. package/dist/components/meeting-scheduler/index.cjs +64 -62
  92. package/dist/components/meeting-scheduler/index.js +14 -12
  93. package/dist/components/navigation/client-only-header.d.ts +8 -0
  94. package/dist/components/navigation/client-only-header.d.ts.map +1 -0
  95. package/dist/components/navigation/header-skeleton.d.ts +12 -0
  96. package/dist/components/navigation/header-skeleton.d.ts.map +1 -0
  97. package/dist/components/navigation/header.d.ts +9 -0
  98. package/dist/components/navigation/header.d.ts.map +1 -0
  99. package/dist/components/navigation/index.cjs +16 -28
  100. package/dist/components/navigation/index.d.ts +10 -14
  101. package/dist/components/navigation/index.d.ts.map +1 -1
  102. package/dist/components/navigation/index.js +26 -38
  103. package/dist/components/navigation/mingo-ai-button.d.ts +3 -38
  104. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  105. package/dist/components/navigation/mobile-nav-panel.d.ts +10 -0
  106. package/dist/components/navigation/mobile-nav-panel.d.ts.map +1 -0
  107. package/dist/components/navigation/navigation-sidebar-item.d.ts +2 -1
  108. package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
  109. package/dist/components/navigation/top-navigation.d.ts +2 -2
  110. package/dist/components/navigation/top-navigation.d.ts.map +1 -1
  111. package/dist/components/onboarding-guides/index.cjs +17 -15
  112. package/dist/components/onboarding-guides/index.js +16 -14
  113. package/dist/components/related-content/index.cjs +8 -10
  114. package/dist/components/related-content/index.js +7 -9
  115. package/dist/components/tickets/index.cjs +18 -16
  116. package/dist/components/tickets/index.js +17 -15
  117. package/dist/components/ui/index.cjs +14 -12
  118. package/dist/components/ui/index.js +19 -17
  119. package/dist/hooks/index.cjs +11 -19
  120. package/dist/hooks/index.d.ts +0 -1
  121. package/dist/hooks/index.d.ts.map +1 -1
  122. package/dist/hooks/index.js +11 -19
  123. package/dist/hooks/ui/index.d.ts +0 -3
  124. package/dist/hooks/ui/index.d.ts.map +1 -1
  125. package/dist/index.cjs +22 -55
  126. package/dist/index.js +196 -229
  127. package/dist/types/case-study.d.ts +0 -9
  128. package/dist/types/case-study.d.ts.map +1 -1
  129. package/dist/types/navigation.d.ts +65 -95
  130. package/dist/types/navigation.d.ts.map +1 -1
  131. package/dist/utils/index.cjs +0 -55
  132. package/dist/utils/index.d.ts +0 -1
  133. package/dist/utils/index.d.ts.map +1 -1
  134. package/dist/utils/index.js +1 -50
  135. package/dist/utils/source-icons.d.ts.map +1 -1
  136. package/package.json +1 -1
  137. package/src/components/chat/entity-cards/case-study-card.tsx +5 -115
  138. package/src/components/chat/utils/icon-library.tsx +1 -35
  139. package/src/components/footer-waitlist-button.tsx +53 -0
  140. package/src/components/footer.tsx +195 -0
  141. package/src/components/index.ts +2 -0
  142. package/src/components/loading/page-layout-skeleton.tsx +1 -1
  143. package/src/components/navigation/client-only-header.tsx +22 -0
  144. package/src/components/navigation/header-skeleton.tsx +74 -0
  145. package/src/components/navigation/header.tsx +429 -0
  146. package/src/components/navigation/index.ts +14 -21
  147. package/src/components/navigation/mingo-ai-button.tsx +63 -139
  148. package/src/components/navigation/mobile-nav-panel.tsx +155 -0
  149. package/src/components/navigation/navigation-sidebar-item.tsx +2 -1
  150. package/src/components/navigation/ticket-alerts-button.tsx +2 -2
  151. package/src/components/navigation/top-navigation.tsx +2 -2
  152. package/src/hooks/index.ts +0 -1
  153. package/src/hooks/ui/index.ts +0 -3
  154. package/src/styles/chat-animations.css +2 -57
  155. package/src/types/case-study.ts +0 -16
  156. package/src/types/navigation.ts +66 -80
  157. package/src/utils/index.ts +0 -1
  158. package/src/utils/source-icons.ts +0 -13
  159. package/dist/components/navigation/mobile-nav-sheet-id.d.ts +0 -3
  160. package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +0 -1
  161. package/dist/components/navigation/mobile-nav-sheet.d.ts +0 -48
  162. package/dist/components/navigation/mobile-nav-sheet.d.ts.map +0 -1
  163. package/dist/components/navigation/nav-item-row.d.ts +0 -27
  164. package/dist/components/navigation/nav-item-row.d.ts.map +0 -1
  165. package/dist/components/navigation/nav-panel.d.ts +0 -43
  166. package/dist/components/navigation/nav-panel.d.ts.map +0 -1
  167. package/dist/components/navigation/site-footer.d.ts +0 -28
  168. package/dist/components/navigation/site-footer.d.ts.map +0 -1
  169. package/dist/components/navigation/site-header.d.ts +0 -61
  170. package/dist/components/navigation/site-header.d.ts.map +0 -1
  171. package/dist/components/navigation/site-nav-link.d.ts +0 -26
  172. package/dist/components/navigation/site-nav-link.d.ts.map +0 -1
  173. package/dist/hooks/ui/use-active-section.d.ts +0 -10
  174. package/dist/hooks/ui/use-active-section.d.ts.map +0 -1
  175. package/dist/hooks/ui/use-nav-menus.d.ts +0 -48
  176. package/dist/hooks/ui/use-nav-menus.d.ts.map +0 -1
  177. package/dist/hooks/ui/use-visitor-os.d.ts +0 -15
  178. package/dist/hooks/ui/use-visitor-os.d.ts.map +0 -1
  179. package/dist/hooks/use-location-hash.d.ts +0 -9
  180. package/dist/hooks/use-location-hash.d.ts.map +0 -1
  181. package/dist/utils/visitor-os.d.ts +0 -45
  182. package/dist/utils/visitor-os.d.ts.map +0 -1
  183. package/src/components/navigation/mobile-nav-sheet-id.ts +0 -2
  184. package/src/components/navigation/mobile-nav-sheet.tsx +0 -241
  185. package/src/components/navigation/nav-item-row.tsx +0 -129
  186. package/src/components/navigation/nav-panel.tsx +0 -196
  187. package/src/components/navigation/site-footer.tsx +0 -256
  188. package/src/components/navigation/site-header.tsx +0 -339
  189. package/src/components/navigation/site-nav-link.tsx +0 -41
  190. package/src/hooks/ui/use-active-section.ts +0 -44
  191. package/src/hooks/ui/use-nav-menus.ts +0 -200
  192. package/src/hooks/ui/use-visitor-os.ts +0 -33
  193. package/src/hooks/use-location-hash.ts +0 -34
  194. package/src/utils/visitor-os.ts +0 -84
@@ -1,12 +1,12 @@
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 _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
4
+ var _chunkVESKITRQcjs = require('./chunk-VESKITRQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
9
+ var _chunkMMOODW57cjs = require('./chunk-MMOODW57.cjs');
10
10
 
11
11
 
12
12
  var _chunkMGHIV4L6cjs = require('./chunk-MGHIV4L6.cjs');
@@ -64,7 +64,7 @@ function DetailPageSkeleton({
64
64
  ] });
65
65
  if (bare) return content;
66
66
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
67
- _chunkGWQEYPYMcjs.PageLayout,
67
+ _chunkVESKITRQcjs.PageLayout,
68
68
  {
69
69
  showHeader: false,
70
70
  className: "mx-auto max-w-[1280px] bg-ods-bg px-6 py-6 content-md:px-20 content-md:py-10",
@@ -77,7 +77,7 @@ function DetailPageSkeleton({
77
77
  var _lucidereact = require('lucide-react');
78
78
 
79
79
  function formatDate(value) {
80
- return _chunk6NTPY5QAcjs.formatDateWithTimezone.call(void 0, value, null, "long");
80
+ return _chunkMMOODW57cjs.formatDateWithTimezone.call(void 0, value, null, "long");
81
81
  }
82
82
  function ArticleAuthorByline({
83
83
  author,
@@ -93,7 +93,7 @@ function ArticleAuthorByline({
93
93
  }) {
94
94
  const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
95
95
  if (!author) return null;
96
- const proxiedAvatar = avatar ? proxyImageUrl ? proxyImageUrl(avatar) : _nullishCoalesce(_chunk6NTPY5QAcjs.getProxiedImageUrl.call(void 0, avatar, {
96
+ const proxiedAvatar = avatar ? proxyImageUrl ? proxyImageUrl(avatar) : _nullishCoalesce(_chunkMMOODW57cjs.getProxiedImageUrl.call(void 0, avatar, {
97
97
  proxyPrefix: _optionalChain([runtime, 'optionalAccess', _2 => _2.endpoints, 'access', _3 => _3.imageProxyUrlPrefix]),
98
98
  skipDomains: _optionalChain([runtime, 'optionalAccess', _4 => _4.endpoints, 'access', _5 => _5.imageProxySkipDomains]),
99
99
  directHttps: true
@@ -101,7 +101,7 @@ function ArticleAuthorByline({
101
101
  const avatarSizeClass = size === "lg" ? "w-16 h-16" : "w-14 h-14";
102
102
  const avatarIconClass = size === "lg" ? "w-8 h-8" : "w-7 h-7";
103
103
  const avatarDim = size === "lg" ? 64 : 56;
104
- const formattedBio = _chunk6NTPY5QAcjs.formatBioText.call(void 0, _nullishCoalesce(bio, () => ( null)));
104
+ const formattedBio = _chunkMMOODW57cjs.formatBioText.call(void 0, _nullishCoalesce(bio, () => ( null)));
105
105
  const dateLabel = publishedAt ? formatDate(publishedAt) : "";
106
106
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
107
107
  "div",
@@ -3,16 +3,16 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkTQ4LB2DScjs = require('./chunk-TQ4LB2DS.cjs');
6
+ var _chunk7LS22BZUcjs = require('./chunk-7LS22BZU.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkLVSFKENJcjs = require('./chunk-LVSFKENJ.cjs');
11
+ var _chunkYFBM2K6Xcjs = require('./chunk-YFBM2K6X.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunk3PLDQDE6cjs = require('./chunk-3PLDQDE6.cjs');
15
+ var _chunk6NJKKO73cjs = require('./chunk-6NJKKO73.cjs');
16
16
 
17
17
 
18
18
 
@@ -22,17 +22,17 @@ var _chunk3PLDQDE6cjs = require('./chunk-3PLDQDE6.cjs');
22
22
 
23
23
 
24
24
 
25
- var _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
25
+ var _chunkVESKITRQcjs = require('./chunk-VESKITRQ.cjs');
26
26
 
27
27
 
28
- var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
28
+ var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
29
29
 
30
30
 
31
31
 
32
32
 
33
33
 
34
34
 
35
- var _chunkUVTD52MDcjs = require('./chunk-UVTD52MD.cjs');
35
+ var _chunkTYWLNCNHcjs = require('./chunk-TYWLNCNH.cjs');
36
36
 
37
37
 
38
38
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
@@ -206,7 +206,7 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
206
206
  return _react.useCallback.call(void 0,
207
207
  async (href, currentPath) => {
208
208
  try {
209
- const response = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, resolvedResolveLinkEndpoint, {
209
+ const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, resolvedResolveLinkEndpoint, {
210
210
  method: "POST",
211
211
  headers: { "Content-Type": "application/json" },
212
212
  body: JSON.stringify({ link: href, currentPath, source: sourceId })
@@ -232,9 +232,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
232
232
  function scrollToContent() {
233
233
  const article = document.querySelector("article");
234
234
  if (article) {
235
- _chunkUVTD52MDcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkUVTD52MDcjs.HUB_HEADER_OFFSET_PX });
235
+ _chunkTYWLNCNHcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkTYWLNCNHcjs.HUB_HEADER_OFFSET_PX });
236
236
  } else {
237
- _chunkUVTD52MDcjs.scrollElementIntoView.call(void 0, document.documentElement);
237
+ _chunkTYWLNCNHcjs.scrollElementIntoView.call(void 0, document.documentElement);
238
238
  }
239
239
  }
240
240
  function findFirstDocPath(folder) {
@@ -333,8 +333,8 @@ function toDocContent(value, requestedPath) {
333
333
  }
334
334
  function useDocumentTree(config, initialPath) {
335
335
  const { structureEndpoint, contentEndpoint, baseRoute } = config;
336
- const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkGWQEYPYMcjs.DEFAULT_FOLDER_INDEX_FILE));
337
- const cleanInitialPath = _chunkGWQEYPYMcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
336
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkVESKITRQcjs.DEFAULT_FOLDER_INDEX_FILE));
337
+ const cleanInitialPath = _chunkVESKITRQcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
338
338
  const [structure, setStructure] = _react.useState.call(void 0, []);
339
339
  const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
340
340
  const [content, setContent] = _react.useState.call(void 0, null);
@@ -358,12 +358,12 @@ function useDocumentTree(config, initialPath) {
358
358
  } else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
359
359
  pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
360
360
  }
361
- pathFromUrl = _chunkGWQEYPYMcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
361
+ pathFromUrl = _chunkVESKITRQcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
362
362
  if (pathFromUrl !== selectedPathRef.current) {
363
363
  setSelectedPath(pathFromUrl);
364
364
  if (pathFromUrl) {
365
365
  const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
366
- setExpandedNodes(new Set(_chunkGWQEYPYMcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
366
+ setExpandedNodes(new Set(_chunkVESKITRQcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
367
367
  }
368
368
  setTimeout(() => {
369
369
  scrollToContent();
@@ -381,7 +381,7 @@ function useDocumentTree(config, initialPath) {
381
381
  setSelectedPath(cleanInitialPath);
382
382
  if (cleanInitialPath) {
383
383
  const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
384
- setExpandedNodes(new Set(_chunkGWQEYPYMcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
384
+ setExpandedNodes(new Set(_chunkVESKITRQcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
385
385
  }
386
386
  setExternalNavCount((n) => n + 1);
387
387
  }
@@ -395,7 +395,7 @@ function useDocumentTree(config, initialPath) {
395
395
  try {
396
396
  setIsLoadingStructure(true);
397
397
  setError(null);
398
- const response = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, structureEndpoint);
398
+ const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, structureEndpoint);
399
399
  if (!response.ok) {
400
400
  throw new Error("Failed to load documentation structure");
401
401
  }
@@ -406,7 +406,7 @@ function useDocumentTree(config, initialPath) {
406
406
  if (cleanInitialPath) {
407
407
  const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
408
408
  if (pathForExpansion) {
409
- setExpandedNodes(new Set(_chunkGWQEYPYMcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
409
+ setExpandedNodes(new Set(_chunkVESKITRQcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
410
410
  }
411
411
  } else if (nodes.length > 0) {
412
412
  const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
@@ -422,7 +422,7 @@ function useDocumentTree(config, initialPath) {
422
422
  }
423
423
  }
424
424
  } else {
425
- setError(_chunkUVTD52MDcjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
425
+ setError(_chunkTYWLNCNHcjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
426
426
  }
427
427
  } catch (err) {
428
428
  console.error("Error fetching documentation structure:", err);
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
434
434
  const fetchContent = async (path) => {
435
435
  try {
436
436
  setIsLoadingContent(true);
437
- const response = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, `${contentEndpoint}?path=${encodeURIComponent(path)}`);
437
+ const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, `${contentEndpoint}?path=${encodeURIComponent(path)}`);
438
438
  if (path !== lastFetchedPath.current) return;
439
439
  if (!response.ok) {
440
440
  if (response.status === 404) {
@@ -446,7 +446,7 @@ function useDocumentTree(config, initialPath) {
446
446
  setContent(null);
447
447
  return;
448
448
  }
449
- const probe = _chunkGWQEYPYMcjs.findDocNodeByPath.call(void 0, _chunkGWQEYPYMcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
449
+ const probe = _chunkVESKITRQcjs.findDocNodeByPath.call(void 0, _chunkVESKITRQcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
450
450
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
451
451
  const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
452
452
  if (probeIsNoReadmeFolder || preStructureFolderLike) {
@@ -455,7 +455,7 @@ function useDocumentTree(config, initialPath) {
455
455
  setContent(null);
456
456
  return;
457
457
  }
458
- setError(_chunkUVTD52MDcjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
458
+ setError(_chunkTYWLNCNHcjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
459
459
  setContent(null);
460
460
  return;
461
461
  }
@@ -473,7 +473,7 @@ function useDocumentTree(config, initialPath) {
473
473
  }
474
474
  setContent(doc);
475
475
  } else {
476
- setError(_chunkUVTD52MDcjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
476
+ setError(_chunkTYWLNCNHcjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
477
477
  setContent(null);
478
478
  }
479
479
  } catch (err) {
@@ -503,7 +503,7 @@ function useDocumentTree(config, initialPath) {
503
503
  if (selectedPath === "") {
504
504
  pathToFetch = folderIndexFile;
505
505
  } else {
506
- const node = _chunkGWQEYPYMcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
506
+ const node = _chunkVESKITRQcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
507
507
  if (node && node.type === "folder" && !node.hasReadme) {
508
508
  const firstDocPath = findFirstDocPath(node);
509
509
  if (!firstDocPath) {
@@ -544,16 +544,16 @@ function useDocumentTree(config, initialPath) {
544
544
  if (node.type === "folder") {
545
545
  setExpandedNodes((prev) => {
546
546
  if (prev.has(node.id)) {
547
- const ancestorIds = _chunkGWQEYPYMcjs.getDocAncestorNodeIds.call(void 0, node.path);
547
+ const ancestorIds = _chunkVESKITRQcjs.getDocAncestorNodeIds.call(void 0, node.path);
548
548
  ancestorIds.pop();
549
549
  return new Set(ancestorIds);
550
550
  }
551
- return new Set(_chunkGWQEYPYMcjs.getDocAncestorNodeIds.call(void 0, node.path));
551
+ return new Set(_chunkVESKITRQcjs.getDocAncestorNodeIds.call(void 0, node.path));
552
552
  });
553
553
  } else {
554
554
  const lastSlash = node.path.lastIndexOf("/");
555
555
  if (lastSlash > 0) {
556
- setExpandedNodes(new Set(_chunkGWQEYPYMcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
556
+ setExpandedNodes(new Set(_chunkVESKITRQcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
557
557
  }
558
558
  }
559
559
  lastFetchedPath.current = null;
@@ -568,9 +568,9 @@ function useDocumentTree(config, initialPath) {
568
568
  const hashIndex = path.indexOf("#");
569
569
  const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
570
570
  const cleanPath = path.replace(/\/$/, "").split("#")[0];
571
- const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkGWQEYPYMcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
571
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkVESKITRQcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
572
572
  if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
573
- _chunkUVTD52MDcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkUVTD52MDcjs.HUB_HEADER_OFFSET_PX });
573
+ _chunkTYWLNCNHcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkTYWLNCNHcjs.HUB_HEADER_OFFSET_PX });
574
574
  return;
575
575
  }
576
576
  const scrollAfterNav = () => {
@@ -578,7 +578,7 @@ function useDocumentTree(config, initialPath) {
578
578
  setTimeout(() => {
579
579
  const el = document.getElementById(anchor.substring(1));
580
580
  if (el) {
581
- _chunkUVTD52MDcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkUVTD52MDcjs.HUB_HEADER_OFFSET_PX });
581
+ _chunkTYWLNCNHcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkTYWLNCNHcjs.HUB_HEADER_OFFSET_PX });
582
582
  } else {
583
583
  scrollToContent();
584
584
  }
@@ -632,15 +632,15 @@ function useDocumentTree(config, initialPath) {
632
632
  return docNavigation.register({
633
633
  baseRoute: normalizedBaseRoute,
634
634
  findNodeByPath: (path) => {
635
- const clean = _chunkGWQEYPYMcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
636
- return _nullishCoalesce(_chunkGWQEYPYMcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
635
+ const clean = _chunkVESKITRQcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
636
+ return _nullishCoalesce(_chunkVESKITRQcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
637
637
  },
638
638
  selectNode
639
639
  });
640
640
  }, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
641
641
  const isEmptyFolder = _react.useMemo.call(void 0, () => {
642
642
  if (!selectedPath || structure.length === 0) return false;
643
- const node = _chunkGWQEYPYMcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
643
+ const node = _chunkVESKITRQcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
644
644
  return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
645
645
  }, [selectedPath, structure]);
646
646
  return {
@@ -671,7 +671,7 @@ function replaceHash(sectionId) {
671
671
  window.history.replaceState(window.history.state, "", `${pathname}${search}${next}`);
672
672
  }
673
673
  function resolveScroller(firstSection) {
674
- const container = firstSection ? _chunkUVTD52MDcjs.getScrollableAncestor.call(void 0, firstSection) : null;
674
+ const container = firstSection ? _chunkTYWLNCNHcjs.getScrollableAncestor.call(void 0, firstSection) : null;
675
675
  if (container) {
676
676
  return {
677
677
  target: container,
@@ -701,7 +701,7 @@ function useScrollSpy(sections, options = {}) {
701
701
  isScrollingFromClick.current = true;
702
702
  setActiveSection(sectionId);
703
703
  if (syncHash) replaceHash(sectionId);
704
- _chunkUVTD52MDcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
704
+ _chunkTYWLNCNHcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
705
705
  setTimeout(() => {
706
706
  isScrollingFromClick.current = false;
707
707
  }, 800);
@@ -823,7 +823,7 @@ function DocViewerContent({
823
823
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
824
824
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
825
825
  };
826
- const docSearch = _chunk3PLDQDE6cjs.useDocSearch.call(void 0, {
826
+ const docSearch = _chunk6NJKKO73cjs.useDocSearch.call(void 0, {
827
827
  source: chatSource,
828
828
  baseRoute,
829
829
  searchEndpoint,
@@ -847,7 +847,7 @@ function DocViewerContent({
847
847
  onResolveLink: resolveLink
848
848
  });
849
849
  }, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
850
- const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkGWQEYPYMcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
850
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkVESKITRQcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
851
851
  const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _19 => _19.documentType]), () => ( selectedNodeDocType));
852
852
  const isMarkdownContent = !activeDocType || activeDocType === "markdown";
853
853
  const showStickyNav = isMarkdownContent;
@@ -858,9 +858,9 @@ function DocViewerContent({
858
858
  const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
859
859
  const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
860
860
  const resolvedEmptyText = emptyStateText || defaultEmptyText;
861
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.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: [
861
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.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: [
862
862
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
863
- _chunk3PLDQDE6cjs.DocSearchBar,
863
+ _chunk6NJKKO73cjs.DocSearchBar,
864
864
  {
865
865
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _23 => _23.toLowerCase, 'call', _24 => _24()]) || "documents"}...`,
866
866
  query: docSearch.query,
@@ -879,9 +879,9 @@ function DocViewerContent({
879
879
  ] })
880
880
  ] }) }),
881
881
  !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: [
882
- /* @__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, _chunkGWQEYPYMcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
882
+ /* @__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, _chunkVESKITRQcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
883
883
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
884
- _chunkLVSFKENJcjs.MobileNavigationDropdown,
884
+ _chunkYFBM2K6Xcjs.MobileNavigationDropdown,
885
885
  {
886
886
  nodes: structure,
887
887
  selectedPath,
@@ -895,7 +895,7 @@ function DocViewerContent({
895
895
  /* @__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: [
896
896
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
897
897
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
898
- _chunkLVSFKENJcjs.MultiLevelNavigation,
898
+ _chunkYFBM2K6Xcjs.MultiLevelNavigation,
899
899
  {
900
900
  nodes: structure,
901
901
  selectedPath,
@@ -934,7 +934,7 @@ function DocViewerContent({
934
934
  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: [
935
935
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
936
936
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
937
- _chunkLVSFKENJcjs.StickySectionNav,
937
+ _chunkYFBM2K6Xcjs.StickySectionNav,
938
938
  {
939
939
  sections: stickyNavSections,
940
940
  activeSection,
@@ -949,7 +949,7 @@ function DocViewerContent({
949
949
  ) })
950
950
  ] })
951
951
  ] }) }) });
952
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
952
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
953
953
  }
954
954
 
955
955
  // src/components/docs/skeletons.tsx
@@ -1045,11 +1045,11 @@ function EmbedSkeleton({ documentType } = {}) {
1045
1045
 
1046
1046
  var DEFAULT_TITLE = "Documents";
1047
1047
  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" }) });
1048
- var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ4LB2DScjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1049
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ4LB2DScjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1050
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGWQEYPYMcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
1048
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7LS22BZUcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1049
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7LS22BZUcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1050
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVESKITRQcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
1051
1051
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1052
- _chunkTQ4LB2DScjs.FileDownloadCard,
1052
+ _chunk7LS22BZUcjs.FileDownloadCard,
1053
1053
  {
1054
1054
  fileName: content.fileName,
1055
1055
  mimeType: content.mimeType,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  UnifiedPagination
4
- } from "./chunk-F57ECE2I.js";
4
+ } from "./chunk-MFFCUVWG.js";
5
5
  import {
6
6
  cn
7
7
  } from "./chunk-7RXWKTAP.js";
@@ -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 _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
4
+ var _chunkVESKITRQcjs = require('./chunk-VESKITRQ.cjs');
5
5
 
6
6
 
7
- var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
7
+ var _chunkABU3TGXAcjs = require('./chunk-ABU3TGXA.cjs');
8
8
 
9
9
 
10
10
 
@@ -12,16 +12,16 @@ var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunk7OFPU7WEcjs = require('./chunk-7OFPU7WE.cjs');
15
+ var _chunk3MX5S4CFcjs = require('./chunk-3MX5S4CF.cjs');
16
16
 
17
17
 
18
- var _chunkUVTD52MDcjs = require('./chunk-UVTD52MD.cjs');
18
+ var _chunkTYWLNCNHcjs = require('./chunk-TYWLNCNH.cjs');
19
19
 
20
20
 
21
21
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
22
22
 
23
23
 
24
- var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
24
+ var _chunkMMOODW57cjs = require('./chunk-MMOODW57.cjs');
25
25
 
26
26
 
27
27
  var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
39
39
  function DocSearchResultRow({ result, isHighlighted }) {
40
40
  const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
41
41
  const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
42
- const { Icon: SourceIcon, label: iconLabel } = _chunk7OFPU7WEcjs.resolveSourceIcon.call(void 0, {
42
+ const { Icon: SourceIcon, label: iconLabel } = _chunk3MX5S4CFcjs.resolveSourceIcon.call(void 0, {
43
43
  sourceRepo,
44
44
  documentType: docType
45
45
  });
@@ -69,7 +69,7 @@ function DocSearchBar({
69
69
  renderResult
70
70
  }) {
71
71
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
72
- _chunkGWQEYPYMcjs.SearchInput,
72
+ _chunkVESKITRQcjs.SearchInput,
73
73
  {
74
74
  placeholder,
75
75
  value: query,
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
119
119
  results.push({
120
120
  id: `group-${entry.repo}`,
121
121
  // Same table label and count as the chat's grouped chip: one owner each.
122
- title: `${_chunk7OFPU7WEcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk7OFPU7WEcjs.recordCountLabel.call(void 0, rows.length)}`,
122
+ title: `${_chunk3MX5S4CFcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk3MX5S4CFcjs.recordCountLabel.call(void 0, rows.length)}`,
123
123
  path: rows[0].path,
124
124
  type: "file",
125
125
  metadata: {
@@ -182,7 +182,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
182
182
  if (composed && !isAbsoluteHref(href)) {
183
183
  return { kind: "navigate-same-tab", href };
184
184
  }
185
- const isNewTab = _chunk6NTPY5QAcjs.decideNewTab.call(void 0, {
185
+ const isNewTab = _chunkMMOODW57cjs.decideNewTab.call(void 0, {
186
186
  href,
187
187
  targetPlatform: composed ? composed.targetPlatform : targetPlatform,
188
188
  surface: "useUnifiedNav",
@@ -254,7 +254,7 @@ function useDocSearch(config) {
254
254
  const [query, setQuery] = _react.useState.call(void 0, "");
255
255
  const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
256
256
  const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
257
- const debouncedQuery = _chunkUVTD52MDcjs.useDebounce.call(void 0, query, 300);
257
+ const debouncedQuery = _chunkTYWLNCNHcjs.useDebounce.call(void 0, query, 300);
258
258
  const searchable = debouncedQuery.trim().length >= 2;
259
259
  const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
260
260
  if (wasSearchable !== searchable) {
@@ -276,7 +276,7 @@ function useDocSearch(config) {
276
276
  limit: "10"
277
277
  });
278
278
  if (tableIdsKey) params.set("tableIds", tableIdsKey);
279
- const response = await _chunkOF6GEI5Acjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
279
+ const response = await _chunkABU3TGXAcjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
280
280
  if (!response.ok) {
281
281
  throw new Error(`Search request failed: ${response.status}`);
282
282
  }
@@ -311,27 +311,27 @@ function useDocSearch(config) {
311
311
  case "navigate-same-tab": {
312
312
  if (wantsNewTab) {
313
313
  setKeepOpen(true);
314
- window.open(action.href, "_blank", _chunk7OFPU7WEcjs.NEW_TAB_FEATURES);
314
+ window.open(action.href, "_blank", _chunk3MX5S4CFcjs.NEW_TAB_FEATURES);
315
315
  return;
316
316
  }
317
317
  setKeepOpen(false);
318
318
  const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
319
319
  if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
320
- router.push(_chunk7OFPU7WEcjs.stripSameOriginToPath.call(void 0, action.href));
320
+ router.push(_chunk3MX5S4CFcjs.stripSameOriginToPath.call(void 0, action.href));
321
321
  return;
322
322
  }
323
323
  case "navigate-new-tab":
324
324
  setKeepOpen(true);
325
325
  if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
326
326
  const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
327
- _chunk7OFPU7WEcjs.resolveExternalNavigation.call(void 0, {
327
+ _chunk3MX5S4CFcjs.resolveExternalNavigation.call(void 0, {
328
328
  href: action.href,
329
329
  targetPlatform,
330
330
  runtime
331
331
  }).open();
332
332
  return;
333
333
  }
334
- window.open(action.href, "_blank", _chunk7OFPU7WEcjs.NEW_TAB_FEATURES);
334
+ window.open(action.href, "_blank", _chunk3MX5S4CFcjs.NEW_TAB_FEATURES);
335
335
  return;
336
336
  case "ask-ai":
337
337
  setKeepOpen(false);
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-4CJMQLB5.js";
4
+ } from "./chunk-AQWZNP6A.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
8
8
  DevCardRowSkeletonList,
9
9
  DevSectionPage,
10
10
  ListEmptyState
11
- } from "./chunk-6232S532.js";
11
+ } from "./chunk-DW7G4KG3.js";
12
12
  import {
13
13
  EmptyState,
14
14
  UnifiedPagination
15
- } from "./chunk-F57ECE2I.js";
15
+ } from "./chunk-MFFCUVWG.js";
16
16
  import {
17
17
  TICKET_MARK_READ_DEBOUNCE_MS,
18
18
  TICKET_TEXT_MAX_CHARS,
19
19
  TOAST_COPY,
20
20
  isOptimistic,
21
21
  useOptionalTicketLive
22
- } from "./chunk-3EZ4HHAP.js";
22
+ } from "./chunk-QFXRPRFT.js";
23
23
  import {
24
24
  AlertDialog,
25
25
  AlertDialogAction,
@@ -35,16 +35,16 @@ import {
35
35
  Textarea,
36
36
  TicketAttachmentsList,
37
37
  devSectionAnchorId
38
- } from "./chunk-G6UMNAVI.js";
38
+ } from "./chunk-FCGC42TS.js";
39
39
  import {
40
40
  toast,
41
41
  useScrollToHash
42
- } from "./chunk-KUC673HM.js";
42
+ } from "./chunk-MKXO4Q5P.js";
43
43
  import {
44
44
  PAGE_PARAM_LIMITS,
45
45
  pageCount,
46
46
  positiveInt
47
- } from "./chunk-CUME3VTQ.js";
47
+ } from "./chunk-MP2C3LJ4.js";
48
48
  import {
49
49
  ChatAttachmentAddButton,
50
50
  ChatAttachmentChipStrip,
@@ -55,11 +55,11 @@ import {
55
55
  formatRelativeTime,
56
56
  useChatAttachments,
57
57
  useChatIdentity
58
- } from "./chunk-7GEBFJT2.js";
58
+ } from "./chunk-7VVFKJY5.js";
59
59
  import {
60
60
  STICKY_HEADER_OFFSET_PX,
61
61
  scrollElementIntoView
62
- } from "./chunk-CZ7Y7UG4.js";
62
+ } from "./chunk-PDWVPI3S.js";
63
63
  import {
64
64
  usePathname,
65
65
  useRouter,
@@ -71,10 +71,10 @@ import {
71
71
  SquareAvatar,
72
72
  StatusBadge,
73
73
  getStatusColorScheme
74
- } from "./chunk-FI6GMDO7.js";
74
+ } from "./chunk-CH5232HV.js";
75
75
  import {
76
76
  embedAuthedFetch
77
- } from "./chunk-FXJ3WWUB.js";
77
+ } from "./chunk-NDESEPW5.js";
78
78
  import {
79
79
  useRequiredChatRuntime
80
80
  } from "./chunk-E4ABZWTJ.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useSelfFetch
4
- } from "./chunk-4IBPRIQH.js";
4
+ } from "./chunk-VR2ZLFCP.js";
5
5
  import {
6
6
  CONTENT_REF_GROUPS,
7
7
  Pagination,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-UT4YHQZW.js";
12
12
  import {
13
13
  pageCount
14
- } from "./chunk-CUME3VTQ.js";
14
+ } from "./chunk-MP2C3LJ4.js";
15
15
  import {
16
16
  AiPromptCard,
17
17
  AiPromptCardSkeleton,
@@ -42,7 +42,7 @@ import {
42
42
  decideNewTab,
43
43
  extractItemId,
44
44
  extractItems
45
- } from "./chunk-FI6GMDO7.js";
45
+ } from "./chunk-CH5232HV.js";
46
46
 
47
47
  // src/components/related-content/related-content-section.tsx
48
48
  import { useEffect, useMemo, useRef, useState } from "react";