@flamingo-stack/openframe-frontend-core 0.0.719 → 0.0.721

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 (228) hide show
  1. package/dist/assets/index.cjs +6 -0
  2. package/dist/assets/index.d.ts +1 -0
  3. package/dist/assets/index.d.ts.map +1 -1
  4. package/dist/assets/index.js +5 -1
  5. package/dist/assets/mobile-app-qr.d.ts +17 -0
  6. package/dist/assets/mobile-app-qr.d.ts.map +1 -0
  7. package/dist/{chunk-2JLP2X2M.js → chunk-2P2M27EW.js} +2396 -2369
  8. package/dist/{chunk-IWCPXJEE.js → chunk-2TXGR7IK.js} +138 -63
  9. package/dist/{chunk-FVQJBII6.js → chunk-3LY7V3RF.js} +3 -3
  10. package/dist/{chunk-HCFNEKO3.cjs → chunk-3R32ZNA2.cjs} +46 -46
  11. package/dist/{chunk-WSDT7LYL.js → chunk-3UBWDR65.js} +1 -1
  12. package/dist/{chunk-NZ5BHDFZ.js → chunk-44Q6MV7C.js} +2 -2
  13. package/dist/{chunk-CMZ3QTFQ.js → chunk-4I3K6LEH.js} +24 -0
  14. package/dist/{chunk-ZXCZYMN4.cjs → chunk-4LY6R4TN.cjs} +137 -62
  15. package/dist/{chunk-EAHOB64X.js → chunk-57UTI7ZH.js} +106 -42
  16. package/dist/{chunk-XGHGGBM3.js → chunk-5QXE5HMV.js} +4 -4
  17. package/dist/{chunk-NYWESHOQ.cjs → chunk-6AJIOW3S.cjs} +57 -57
  18. package/dist/{chunk-4QFWGLZO.js → chunk-6YBUQAOH.js} +1 -1
  19. package/dist/{chunk-JHQ334WS.js → chunk-742BGXNX.js} +2 -0
  20. package/dist/{chunk-D6PMVWDI.js → chunk-74N742ZG.js} +6 -6
  21. package/dist/{chunk-AECTRMGQ.cjs → chunk-7GRPR7XA.cjs} +13 -1
  22. package/dist/{chunk-4HJRHEXD.cjs → chunk-7Z5FMQYR.cjs} +22 -22
  23. package/dist/chunk-AFTRPEXO.js +13 -0
  24. package/dist/{chunk-WBNAEYTQ.cjs → chunk-BYUIFT7Q.cjs} +6 -6
  25. package/dist/{chunk-LCLDFMDF.cjs → chunk-BYVVE7HP.cjs} +58 -58
  26. package/dist/{chunk-JPD4NXH6.js → chunk-CO3FOZIH.js} +1 -1
  27. package/dist/{chunk-E7YCPY7K.cjs → chunk-D2DH6VZL.cjs} +3 -3
  28. package/dist/{chunk-HWVUR735.cjs → chunk-DFM572VH.cjs} +2 -2
  29. package/dist/{chunk-YDPKUAP4.js → chunk-DJ4IFQNQ.js} +2 -0
  30. package/dist/{chunk-5U3KWQXP.js → chunk-E6SMMMKV.js} +13 -13
  31. package/dist/chunk-EWPR7662.cjs +13 -0
  32. package/dist/{chunk-SWAVO7BB.cjs → chunk-F7ORKKEF.cjs} +108 -108
  33. package/dist/{chunk-AGVXKD4K.js → chunk-FSQQZFVG.js} +12 -0
  34. package/dist/{chunk-ETYLOZOB.cjs → chunk-GCK75D7F.cjs} +109 -22
  35. package/dist/{chunk-ZKNZ2CXW.cjs → chunk-GGBYZKMS.cjs} +11 -11
  36. package/dist/{chunk-Y4MB25KW.js → chunk-GYAXV3MZ.js} +3 -3
  37. package/dist/{chunk-UWQWMGJ7.cjs → chunk-HJMSNOBT.cjs} +1040 -696
  38. package/dist/{chunk-DFQYAYBH.cjs → chunk-HQIOMFJH.cjs} +2 -0
  39. package/dist/{chunk-JH2SIWPQ.js → chunk-HXB7SEYG.js} +1611 -1267
  40. package/dist/{chunk-LE5WKGJV.cjs → chunk-I2254QN6.cjs} +16 -16
  41. package/dist/{chunk-PSVSEN4J.cjs → chunk-IMTY3GRR.cjs} +2 -0
  42. package/dist/{chunk-ILNN6QRW.js → chunk-JDBZ4ZHU.js} +3 -3
  43. package/dist/{chunk-GQ7JJUIT.cjs → chunk-K2JUJ37D.cjs} +25 -1
  44. package/dist/{chunk-6YPTUHM7.js → chunk-K76ACBR3.js} +3 -3
  45. package/dist/{chunk-2NASBO7O.js → chunk-KFOAV77K.js} +2 -2
  46. package/dist/{chunk-CU6NWO2M.js → chunk-LAXKEBDD.js} +14 -18
  47. package/dist/{chunk-5YAGX5DY.js → chunk-LGKMR7NZ.js} +7 -7
  48. package/dist/{chunk-E2V2EH2G.cjs → chunk-LODMNSQY.cjs} +16 -16
  49. package/dist/{chunk-4D6NMPOO.js → chunk-NJ5TBTJG.js} +7 -7
  50. package/dist/{chunk-TDZ76NCB.cjs → chunk-NMPVK53I.cjs} +29 -29
  51. package/dist/{chunk-TTVOLEUS.js → chunk-NPSJE7J3.js} +90 -3
  52. package/dist/{chunk-H5VIMBRN.cjs → chunk-O5EHOJZD.cjs} +4 -4
  53. package/dist/{chunk-KT3U3ZRP.cjs → chunk-OKE5BIQH.cjs} +8 -8
  54. package/dist/{chunk-DC4RTYWK.cjs → chunk-QLTXT562.cjs} +5 -5
  55. package/dist/{chunk-H5V7GRN5.js → chunk-QQCFPMAA.js} +5 -7
  56. package/dist/{chunk-7BREFV7G.cjs → chunk-QYS4YVEP.cjs} +34 -36
  57. package/dist/{chunk-7BCY77W6.js → chunk-RCI3PALX.js} +8 -10
  58. package/dist/{chunk-P3JMAMHP.js → chunk-REETLEL5.js} +1 -1
  59. package/dist/{chunk-4JIGEK7C.cjs → chunk-RJMWJAJO.cjs} +97 -33
  60. package/dist/{chunk-WS7WRR5Z.cjs → chunk-RQZQHLNS.cjs} +86 -90
  61. package/dist/{chunk-FFT56TYB.cjs → chunk-RUZIICXT.cjs} +2 -2
  62. package/dist/{chunk-AJHSQ5XK.js → chunk-S63QBBT7.js} +6 -6
  63. package/dist/{chunk-TELAANY6.js → chunk-UXU7Y5BH.js} +2 -2
  64. package/dist/{chunk-NQVS4G7G.cjs → chunk-UZTOI6FJ.cjs} +773 -746
  65. package/dist/{chunk-DFEPUYTF.cjs → chunk-VFICDEYJ.cjs} +45 -47
  66. package/dist/{chunk-LOZLHG2U.cjs → chunk-XE2K53GH.cjs} +20 -20
  67. package/dist/{chunk-QBCDSTLE.cjs → chunk-XXO52RZR.cjs} +26 -26
  68. package/dist/{chunk-TTEFN6VO.js → chunk-ZLUFEWZZ.js} +10 -10
  69. package/dist/{chunk-MA4Q5RBP.cjs → chunk-ZSOFLPQN.cjs} +9 -9
  70. package/dist/{chunk-KBJJQFYU.js → chunk-ZZEKXGFS.js} +2 -2
  71. package/dist/{cloud-tenants-FBUO66GW.cjs → cloud-tenants-HZHKRUIW.cjs} +16 -16
  72. package/dist/{cloud-tenants-DNBPNQNP.js → cloud-tenants-Q4TCJS5Y.js} +15 -15
  73. package/dist/components/calendar.cjs +4 -4
  74. package/dist/components/calendar.js +1 -1
  75. package/dist/components/case-studies/index.cjs +30 -30
  76. package/dist/components/case-studies/index.js +16 -16
  77. package/dist/components/chat/ask-prompts.d.ts +10 -2
  78. package/dist/components/chat/ask-prompts.d.ts.map +1 -1
  79. package/dist/components/chat/assistant-ask-prompts.d.ts +27 -0
  80. package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -0
  81. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  82. package/dist/components/chat/hooks/index.d.ts +1 -0
  83. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  84. package/dist/components/chat/hooks/use-ask-prompts.d.ts +63 -0
  85. package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -0
  86. package/dist/components/chat/index.cjs +27 -10
  87. package/dist/components/chat/index.d.ts +1 -0
  88. package/dist/components/chat/index.d.ts.map +1 -1
  89. package/dist/components/chat/index.js +26 -9
  90. package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
  91. package/dist/components/contact/index.cjs +17 -17
  92. package/dist/components/contact/index.js +16 -16
  93. package/dist/components/docs/index.cjs +20 -20
  94. package/dist/components/docs/index.js +19 -19
  95. package/dist/components/embeds/index.cjs +17 -17
  96. package/dist/components/embeds/index.js +16 -16
  97. package/dist/components/faq/faq-ask-card.d.ts +44 -0
  98. package/dist/components/faq/faq-ask-card.d.ts.map +1 -0
  99. package/dist/components/faq/faq-document-page.d.ts +5 -1
  100. package/dist/components/faq/faq-document-page.d.ts.map +1 -1
  101. package/dist/components/faq/faq-section.d.ts +18 -5
  102. package/dist/components/faq/faq-section.d.ts.map +1 -1
  103. package/dist/components/faq/index.cjs +19 -18
  104. package/dist/components/faq/index.d.ts +1 -0
  105. package/dist/components/faq/index.d.ts.map +1 -1
  106. package/dist/components/faq/index.js +18 -17
  107. package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
  108. package/dist/components/features/index.cjs +16 -16
  109. package/dist/components/features/index.js +15 -15
  110. package/dist/components/help-center-pages/download-apps-page.d.ts +55 -0
  111. package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -0
  112. package/dist/components/help-center-pages/index.cjs +333 -119
  113. package/dist/components/help-center-pages/index.d.ts +1 -0
  114. package/dist/components/help-center-pages/index.d.ts.map +1 -1
  115. package/dist/components/help-center-pages/index.js +251 -37
  116. package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
  117. package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
  118. package/dist/components/index.cjs +131 -217
  119. package/dist/components/index.js +236 -322
  120. package/dist/components/meeting-scheduler/index.cjs +61 -62
  121. package/dist/components/meeting-scheduler/index.js +18 -19
  122. package/dist/components/navigation/index.cjs +19 -19
  123. package/dist/components/navigation/index.js +18 -18
  124. package/dist/components/navigation/mingo-ai-button.d.ts +1 -1
  125. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  126. package/dist/components/onboarding-guides/index.cjs +19 -20
  127. package/dist/components/onboarding-guides/index.js +18 -19
  128. package/dist/components/product-demo/index.cjs +8 -8
  129. package/dist/components/product-demo/index.js +8 -8
  130. package/dist/components/related-content/index.cjs +7 -9
  131. package/dist/components/related-content/index.js +6 -8
  132. package/dist/components/tickets/index.cjs +21 -21
  133. package/dist/components/tickets/index.js +20 -20
  134. package/dist/components/ui/button/button.d.ts.map +1 -1
  135. package/dist/components/ui/file-manager/index.cjs +11 -11
  136. package/dist/components/ui/file-manager/index.js +1 -1
  137. package/dist/components/ui/index.cjs +34 -16
  138. package/dist/components/ui/index.d.ts +1 -0
  139. package/dist/components/ui/index.d.ts.map +1 -1
  140. package/dist/components/ui/index.js +33 -15
  141. package/dist/components/ui/mobile-app-qr.d.ts +23 -0
  142. package/dist/components/ui/mobile-app-qr.d.ts.map +1 -0
  143. package/dist/components/ui/store-badges.d.ts +7 -4
  144. package/dist/components/ui/store-badges.d.ts.map +1 -1
  145. package/dist/contexts/assistant-runtime-context.d.ts +74 -0
  146. package/dist/contexts/assistant-runtime-context.d.ts.map +1 -0
  147. package/dist/contexts/index.cjs +7 -1
  148. package/dist/contexts/index.d.ts +1 -0
  149. package/dist/contexts/index.d.ts.map +1 -1
  150. package/dist/contexts/index.js +6 -0
  151. package/dist/{devices-5A5TY4JD.cjs → devices-6XHUFIC6.cjs} +17 -17
  152. package/dist/{devices-PLDAEUSL.js → devices-NOUGVTES.js} +15 -15
  153. package/dist/hooks/index.cjs +10 -5
  154. package/dist/hooks/index.d.ts +1 -0
  155. package/dist/hooks/index.d.ts.map +1 -1
  156. package/dist/hooks/index.js +9 -4
  157. package/dist/hooks/use-downloads.d.ts +41 -0
  158. package/dist/hooks/use-downloads.d.ts.map +1 -0
  159. package/dist/index.cjs +80 -20
  160. package/dist/index.js +79 -19
  161. package/dist/{knowledge-G6Q5KRWV.js → knowledge-2YTUXQ2Z.js} +15 -15
  162. package/dist/{knowledge-FKTJ723Z.cjs → knowledge-ANEKPMO2.cjs} +17 -17
  163. package/dist/{logs-CJCXUBU6.cjs → logs-U3IB3HUM.cjs} +25 -25
  164. package/dist/{logs-QMV6XIC4.js → logs-WVQIONUT.js} +15 -15
  165. package/dist/{policies-G6D7AX6F.js → policies-66EGDW2H.js} +15 -15
  166. package/dist/{policies-QMRTK3CY.cjs → policies-UFRN2EQF.cjs} +20 -20
  167. package/dist/{remote-session-DBD6OSTX.js → remote-session-6WEUJZDC.js} +5 -5
  168. package/dist/{remote-session-2JVI7RVA.cjs → remote-session-A75X5NPC.cjs} +7 -7
  169. package/dist/{software-update-PNZMRDBT.cjs → software-update-2MHKL76D.cjs} +20 -20
  170. package/dist/{software-update-6BQM6BKH.js → software-update-3ZD3MXF3.js} +15 -15
  171. package/dist/{tickets-board-BHLPAVNJ.cjs → tickets-board-IFWMIZ35.cjs} +9 -9
  172. package/dist/{tickets-board-PYDNELSK.js → tickets-board-MYXG3V72.js} +4 -4
  173. package/dist/types/downloads.d.ts +67 -0
  174. package/dist/types/downloads.d.ts.map +1 -0
  175. package/dist/types/index.cjs +24 -0
  176. package/dist/types/index.d.ts +1 -0
  177. package/dist/types/index.d.ts.map +1 -1
  178. package/dist/types/index.js +16 -1
  179. package/dist/utils/index.cjs +46 -2
  180. package/dist/utils/index.d.ts +2 -0
  181. package/dist/utils/index.d.ts.map +1 -1
  182. package/dist/utils/index.js +40 -3
  183. package/dist/utils/list-url.d.ts.map +1 -1
  184. package/dist/utils/mobile-app.cjs +46 -0
  185. package/dist/utils/mobile-app.d.ts +40 -0
  186. package/dist/utils/mobile-app.d.ts.map +1 -0
  187. package/dist/utils/mobile-app.js +40 -0
  188. package/dist/utils/source-icons.d.ts.map +1 -1
  189. package/dist/utils/trial.d.ts +18 -0
  190. package/dist/utils/trial.d.ts.map +1 -0
  191. package/package.json +7 -1
  192. package/src/assets/index.ts +1 -0
  193. package/src/assets/mobile-app-qr.ts +19 -0
  194. package/src/components/chat/ask-prompts.tsx +25 -3
  195. package/src/components/chat/assistant-ask-prompts.tsx +78 -0
  196. package/src/components/chat/entity-cards/dispatch.tsx +38 -4
  197. package/src/components/chat/hooks/index.ts +12 -0
  198. package/src/components/chat/hooks/use-ask-prompts.ts +188 -0
  199. package/src/components/chat/index.ts +1 -0
  200. package/src/components/chat/utils/icon-library.tsx +6 -0
  201. package/src/components/faq/faq-ask-card.tsx +115 -0
  202. package/src/components/faq/faq-document-page.tsx +6 -1
  203. package/src/components/faq/faq-section.tsx +27 -5
  204. package/src/components/faq/index.ts +1 -0
  205. package/src/components/features/auth/auth-benefits-panel.tsx +5 -4
  206. package/src/components/help-center-pages/download-apps-page.tsx +364 -0
  207. package/src/components/help-center-pages/index.ts +1 -0
  208. package/src/components/help-center-pages/trust-center-page.tsx +5 -2
  209. package/src/components/navigation/mingo-ai-button.tsx +27 -6
  210. package/src/components/ui/button/button.tsx +3 -0
  211. package/src/components/ui/index.ts +1 -0
  212. package/src/components/ui/mobile-app-qr.tsx +40 -0
  213. package/src/components/ui/store-badges.tsx +17 -9
  214. package/src/contexts/assistant-runtime-context.tsx +84 -0
  215. package/src/contexts/index.ts +9 -0
  216. package/src/hooks/index.ts +1 -0
  217. package/src/hooks/use-downloads.ts +138 -0
  218. package/src/types/downloads.ts +82 -0
  219. package/src/types/index.ts +1 -0
  220. package/src/utils/index.ts +3 -0
  221. package/src/utils/list-url.ts +4 -0
  222. package/src/utils/mobile-app.ts +57 -0
  223. package/src/utils/source-icons.ts +10 -2
  224. package/src/utils/trial.ts +19 -0
  225. package/dist/chunk-6X3O67OL.cjs +0 -89
  226. package/dist/chunk-AUMKE74M.cjs +0 -16
  227. package/dist/chunk-G3GRYDMS.js +0 -16
  228. package/dist/chunk-RR6PY34K.js +0 -89
@@ -2,30 +2,27 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkH5VIMBRNcjs = require('./chunk-H5VIMBRN.cjs');
5
+ var _chunkO5EHOJZDcjs = require('./chunk-O5EHOJZD.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkE2V2EH2Gcjs = require('./chunk-E2V2EH2G.cjs');
9
+ var _chunkLODMNSQYcjs = require('./chunk-LODMNSQY.cjs');
10
10
 
11
11
 
12
- var _chunk6X3O67OLcjs = require('./chunk-6X3O67OL.cjs');
13
12
 
14
13
 
15
14
 
16
15
 
16
+ var _chunkUZTOI6FJcjs = require('./chunk-UZTOI6FJ.cjs');
17
17
 
18
18
 
19
- var _chunkNQVS4G7Gcjs = require('./chunk-NQVS4G7G.cjs');
19
+ var _chunkBYVVE7HPcjs = require('./chunk-BYVVE7HP.cjs');
20
20
 
21
21
 
22
- var _chunkLCLDFMDFcjs = require('./chunk-LCLDFMDF.cjs');
23
22
 
24
23
 
25
24
 
26
-
27
-
28
- var _chunkUWQWMGJ7cjs = require('./chunk-UWQWMGJ7.cjs');
25
+ var _chunkHJMSNOBTcjs = require('./chunk-HJMSNOBT.cjs');
29
26
 
30
27
 
31
28
 
@@ -36,10 +33,11 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
36
33
 
37
34
 
38
35
 
39
- var _chunkETYLOZOBcjs = require('./chunk-ETYLOZOB.cjs');
36
+
37
+ var _chunkGCK75D7Fcjs = require('./chunk-GCK75D7F.cjs');
40
38
 
41
39
 
42
- var _chunkAECTRMGQcjs = require('./chunk-AECTRMGQ.cjs');
40
+ var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
43
41
 
44
42
 
45
43
  var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
@@ -64,7 +62,7 @@ function OnboardingGuidesCatalogSkeleton() {
64
62
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 rounded bg-ods-border/70" }),
65
63
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 rounded-full bg-ods-text-secondary/20" })
66
64
  ] }),
67
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
65
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
68
66
  ] }, sectionIdx)) })
69
67
  ] });
70
68
  }
@@ -88,10 +86,10 @@ function OnboardingGuidesCatalogView({
88
86
  const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
89
87
  const activeSection = sectionValue || "all";
90
88
  const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
91
- const guidesRes = _chunk6X3O67OLcjs.useSelfFetch.call(void 0,
89
+ const guidesRes = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0,
92
90
  selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
93
91
  );
94
- const sectionsRes = _chunk6X3O67OLcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
92
+ const sectionsRes = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
95
93
  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])]);
96
94
  const sections = _react.useMemo.call(void 0,
97
95
  () => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
@@ -134,25 +132,25 @@ function OnboardingGuidesCatalogView({
134
132
  });
135
133
  };
136
134
  const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
137
- const docSearch = _chunkE2V2EH2Gcjs.useDocSearch.call(void 0, {
135
+ const docSearch = _chunkLODMNSQYcjs.useDocSearch.call(void 0, {
138
136
  source,
139
137
  baseRoute: basePath,
140
138
  onNavigate: (path) => router.push(path),
141
139
  tableIds: ["onboarding-guides"]
142
140
  });
143
141
  const defaultRenderCard = (guide) => {
144
- const cta = _chunkUWQWMGJ7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
142
+ const cta = _chunkHJMSNOBTcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
145
143
  type: "onboarding_guide",
146
144
  slug: guide.slug,
147
145
  basePath,
148
146
  platforms: guide.onboarding_guide_platforms
149
147
  });
150
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
148
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
151
149
  };
152
150
  const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
153
151
  const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
154
152
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
155
- _chunkE2V2EH2Gcjs.DocSearchBar,
153
+ _chunkLODMNSQYcjs.DocSearchBar,
156
154
  {
157
155
  placeholder: "Search onboarding guides, releases, case studies\u2026",
158
156
  query: docSearch.query,
@@ -164,7 +162,7 @@ function OnboardingGuidesCatalogView({
164
162
  }
165
163
  ),
166
164
  sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
167
- _chunkNQVS4G7Gcjs.FilterPillRow,
165
+ _chunkUZTOI6FJcjs.FilterPillRow,
168
166
  {
169
167
  label: "Section",
170
168
  selectedValue: activeSection,
@@ -174,7 +172,7 @@ function OnboardingGuidesCatalogView({
174
172
  )
175
173
  ] });
176
174
  if (selfFetch && guidesRes.error) {
177
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNQVS4G7Gcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
175
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
178
176
  }
179
177
  if (selfFetch && guidesRes.data == null && isLoading) {
180
178
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
@@ -206,7 +204,7 @@ function OnboardingGuideDetailView({
206
204
  slug,
207
205
  guideEndpoint,
208
206
  related = [],
209
- MarkdownRenderer = _chunkNQVS4G7Gcjs.RichMarkdownRenderer,
207
+ MarkdownRenderer = _chunkUZTOI6FJcjs.RichMarkdownRenderer,
210
208
  renderRelatedCard,
211
209
  backHref,
212
210
  backLabel = "Back to Getting Started",
@@ -216,51 +214,51 @@ function OnboardingGuideDetailView({
216
214
  }) {
217
215
  const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
218
216
  const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
219
- const captions = _chunkUWQWMGJ7cjs.useCaptions.call(void 0, );
217
+ const captions = _chunkHJMSNOBTcjs.useCaptions.call(void 0, );
220
218
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
221
- const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNQVS4G7Gcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
219
+ const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
222
220
  const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
223
- const { data: guide, isLoading, error, reload } = _chunk6X3O67OLcjs.useSelfFetch.call(void 0, url, { initialData });
224
- const { ref: videoWarmupRef } = _chunkETYLOZOBcjs.useVideoWarmup.call(void 0, {
221
+ const { data: guide, isLoading, error, reload } = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, url, { initialData });
222
+ const { ref: videoWarmupRef } = _chunkGCK75D7Fcjs.useVideoWarmup.call(void 0, {
225
223
  videoUrl: _optionalChain([guide, 'optionalAccess', _8 => _8.main_video_url]),
226
224
  supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
227
225
  });
228
226
  if (error || !guide && !isLoading) {
229
- return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNQVS4G7Gcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
227
+ return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
230
228
  }
231
229
  if (!guide) {
232
230
  return renderShell(
233
231
  // Match the loaded page's top offset (TitleBlock's
234
232
  // `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
235
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH5VIMBRNcjs.DetailPageSkeleton, { bare: true, showImageGallery: false }) })
233
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO5EHOJZDcjs.DetailPageSkeleton, { bare: true, showImageGallery: false }) })
236
234
  );
237
235
  }
238
236
  const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", guide);
239
237
  const videoPoster = guide.main_video_thumbnail || guide.featured_image || guide.og_image_url || // `buildOgPlaceholderUrl` always returns a usable string (relative route at
240
238
  // worst), so it's the terminal fallback — no trailing `|| undefined` needed.
241
- _chunkAECTRMGQcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
239
+ _chunk7GRPR7XAcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
242
240
  const defaultRenderRelatedCard = (g) => {
243
- const cta = _chunkUWQWMGJ7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
241
+ const cta = _chunkHJMSNOBTcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
244
242
  type: "onboarding_guide",
245
243
  slug: g.slug,
246
244
  basePath,
247
245
  platforms: g.onboarding_guide_platforms
248
246
  });
249
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
247
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGCK75D7Fcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
250
248
  };
251
249
  const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
252
250
  return renderShell(
253
251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
254
- _chunkLCLDFMDFcjs.PageLayout,
252
+ _chunkBYVVE7HPcjs.PageLayout,
255
253
  {
256
254
  title: guide.title,
257
255
  titleSize: "h1",
258
256
  titleWrap: true,
259
257
  backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
260
258
  children: [
261
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNQVS4G7Gcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
259
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
262
260
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
263
- _chunkETYLOZOBcjs.EntityAuthorCard,
261
+ _chunkGCK75D7Fcjs.EntityAuthorCard,
264
262
  {
265
263
  author: guide.author,
266
264
  authorHref,
@@ -275,7 +273,7 @@ function OnboardingGuideDetailView({
275
273
  }
276
274
  ),
277
275
  (guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
278
- _chunkUWQWMGJ7cjs.EntityVideoSection,
276
+ _chunkHJMSNOBTcjs.EntityVideoSection,
279
277
  {
280
278
  mainVideoUrl: guide.main_video_url,
281
279
  youtubeUrl: guide.youtube_url || void 0,
@@ -293,17 +291,17 @@ function OnboardingGuideDetailView({
293
291
  ) }),
294
292
  guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
295
293
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
296
- _chunkUWQWMGJ7cjs.VideoBitesStrip,
294
+ _chunkHJMSNOBTcjs.VideoBitesStrip,
297
295
  {
298
296
  bites: _nullishCoalesce(guide.video_bites, () => ( [])),
299
297
  filterPublished: true,
300
298
  showTitle: false,
301
- profile: _chunkETYLOZOBcjs.toStripProfile.call(void 0, guide.author),
299
+ profile: _chunkGCK75D7Fcjs.toStripProfile.call(void 0, guide.author),
302
300
  href: `/onboarding-guides/${guide.slug}`
303
301
  }
304
302
  ),
305
303
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
306
- _chunkH5VIMBRNcjs.ArticleAuthorByline,
304
+ _chunkO5EHOJZDcjs.ArticleAuthorByline,
307
305
  {
308
306
  author: _nullishCoalesce(_optionalChain([guide, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
309
307
  avatar: _optionalChain([guide, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
@@ -2,30 +2,27 @@
2
2
  import {
3
3
  ArticleAuthorByline,
4
4
  DetailPageSkeleton
5
- } from "./chunk-TELAANY6.js";
5
+ } from "./chunk-UXU7Y5BH.js";
6
6
  import {
7
7
  DocSearchBar,
8
8
  useDocSearch
9
- } from "./chunk-5YAGX5DY.js";
10
- import {
11
- useSelfFetch
12
- } from "./chunk-RR6PY34K.js";
9
+ } from "./chunk-LGKMR7NZ.js";
13
10
  import {
14
11
  EntityTagBadges,
15
12
  FilterPillRow,
16
13
  LoadError,
17
14
  PageShell,
18
15
  RichMarkdownRenderer
19
- } from "./chunk-2JLP2X2M.js";
16
+ } from "./chunk-2P2M27EW.js";
20
17
  import {
21
18
  PageLayout
22
- } from "./chunk-Y4MB25KW.js";
19
+ } from "./chunk-GYAXV3MZ.js";
23
20
  import {
24
21
  EntityVideoSection,
25
22
  VideoBitesStrip,
26
23
  resolveContentHref,
27
24
  useCaptions
28
- } from "./chunk-JH2SIWPQ.js";
25
+ } from "./chunk-HXB7SEYG.js";
29
26
  import {
30
27
  useRouter,
31
28
  useSearchParams
@@ -35,11 +32,12 @@ import {
35
32
  OnboardingGuideCard,
36
33
  OnboardingGuideCardSkeleton,
37
34
  toStripProfile,
35
+ useSelfFetch,
38
36
  useVideoWarmup
39
- } from "./chunk-TTVOLEUS.js";
37
+ } from "./chunk-NPSJE7J3.js";
40
38
  import {
41
39
  buildOgPlaceholderUrl
42
- } from "./chunk-AGVXKD4K.js";
40
+ } from "./chunk-FSQQZFVG.js";
43
41
  import {
44
42
  useChatRuntime
45
43
  } from "./chunk-E4ABZWTJ.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-WI6FHKD7.js";
11
11
  import {
12
12
  Button
13
- } from "./chunk-YDPKUAP4.js";
13
+ } from "./chunk-DJ4IFQNQ.js";
14
14
  import {
15
15
  next_link_default
16
16
  } from "./chunk-DAAVMYUT.js";
@@ -1,25 +1,33 @@
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 _chunk6X3O67OLcjs = require('./chunk-6X3O67OL.cjs');
4
+ var _chunkUZTOI6FJcjs = require('./chunk-UZTOI6FJ.cjs');
5
5
 
6
6
 
7
- var _chunkNQVS4G7Gcjs = require('./chunk-NQVS4G7G.cjs');
7
+ var _chunkBYVVE7HPcjs = require('./chunk-BYVVE7HP.cjs');
8
8
 
9
9
 
10
- var _chunkLCLDFMDFcjs = require('./chunk-LCLDFMDF.cjs');
10
+ var _chunk4LY6R4TNcjs = require('./chunk-4LY6R4TN.cjs');
11
11
 
12
12
 
13
- var _chunkZXCZYMN4cjs = require('./chunk-ZXCZYMN4.cjs');
14
13
 
15
14
 
16
15
 
17
16
 
18
- var _chunkUWQWMGJ7cjs = require('./chunk-UWQWMGJ7.cjs');
19
17
 
20
18
 
21
19
 
22
- var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
20
+
21
+ var _chunkHJMSNOBTcjs = require('./chunk-HJMSNOBT.cjs');
22
+
23
+
24
+
25
+ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
26
+
27
+
28
+
29
+
30
+ var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
23
31
 
24
32
 
25
33
  var _chunkWVOTC7HWcjs = require('./chunk-WVOTC7HW.cjs');
@@ -29,7 +37,8 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
29
37
 
30
38
 
31
39
 
32
- var _chunkETYLOZOBcjs = require('./chunk-ETYLOZOB.cjs');
40
+
41
+ var _chunkGCK75D7Fcjs = require('./chunk-GCK75D7F.cjs');
33
42
 
34
43
 
35
44
  var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
@@ -61,7 +70,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
61
70
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
62
71
  "div",
63
72
  {
64
- id: _chunkUWQWMGJ7cjs.faqItemAnchor.call(void 0, item.id),
73
+ id: _chunkHJMSNOBTcjs.faqItemAnchor.call(void 0, item.id),
65
74
  className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
66
75
  children: [
67
76
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -109,6 +118,54 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
109
118
  }) });
110
119
  }
111
120
 
121
+ // src/components/faq/faq-ask-card.tsx
122
+
123
+
124
+ var DEFAULT_ASK_CARD = {
125
+ title: "Still deciding?",
126
+ description: "{assistant} answers from our docs and customer stories."
127
+ };
128
+ var PICK_ROOT_MARGIN = "600px";
129
+ var fillAssistant = (text, name) => text.split("{assistant}").join(name);
130
+ function faqAskCardShown(assistant) {
131
+ return _chunkHJMSNOBTcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
132
+ }
133
+ function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
134
+ const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
135
+ const { ref, inView } = _chunkK2JUJ37Dcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
136
+ const [reached, setReached] = _react.useState.call(void 0, false);
137
+ if (inView && !reached) setReached(true);
138
+ const shownElsewhere = _chunkHJMSNOBTcjs.useShownAskPromptIds.call(void 0, );
139
+ const excluded = exclude === void 0 ? shownElsewhere : exclude;
140
+ const slots = _nullishCoalesce(_nullishCoalesce(count, () => ( _optionalChain([assistant, 'optionalAccess', _2 => _2.askCard, 'optionalAccess', _3 => _3.count]))), () => ( _chunkHJMSNOBTcjs.ASK_PROMPTS_DEFAULT_COUNT));
141
+ const { prompts, isLoading, supported } = _chunkHJMSNOBTcjs.useAskPrompts.call(void 0, {
142
+ topic,
143
+ count: slots,
144
+ exclude: _nullishCoalesce(excluded, () => ( void 0)),
145
+ enabled: reached && excluded !== null
146
+ });
147
+ const open = _chunkHJMSNOBTcjs.useAssistantOpen.call(void 0, topic, onOpen);
148
+ const scoped = _react.useMemo.call(void 0, () => assistant ? { ...assistant, open } : null, [assistant, open]);
149
+ if (!faqAskCardShown(assistant) || !assistant.name) return null;
150
+ const name = assistant.name;
151
+ const cardDescription = _nullishCoalesce(_nullishCoalesce(description, () => ( _optionalChain([assistant, 'access', _4 => _4.askCard, 'optionalAccess', _5 => _5.description]))), () => ( DEFAULT_ASK_CARD.description));
152
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWPR7662cjs.AssistantRuntimeContext.Provider, { value: scoped, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
153
+ _chunkHJMSNOBTcjs.AskCard,
154
+ {
155
+ title: fillAssistant(_nullishCoalesce(_nullishCoalesce(title, () => ( _optionalChain([assistant, 'access', _6 => _6.askCard, 'optionalAccess', _7 => _7.title]))), () => ( DEFAULT_ASK_CARD.title)), name),
156
+ description: cardDescription ? fillAssistant(cardDescription, name) : void 0,
157
+ prompts,
158
+ count: supported ? slots : 0,
159
+ loading: isLoading,
160
+ source: assistant.source,
161
+ label: name,
162
+ icon: assistant.icon,
163
+ onOpen: open,
164
+ onAsk: (prompt) => _optionalChain([assistant, 'access', _8 => _8.onAsk, 'optionalCall', _9 => _9({ promptId: prompt.id, topic })])
165
+ }
166
+ ) }) });
167
+ }
168
+
112
169
  // src/components/faq/json-ld.ts
113
170
  var DEFAULT_NAME = "Frequently Asked Questions";
114
171
  var DEFAULT_DESCRIPTION = "Answers to common questions.";
@@ -139,14 +196,14 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
139
196
 
140
197
  var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
141
198
  function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
142
- return _chunkETYLOZOBcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
199
+ return _chunkGCK75D7Fcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
143
200
  }
144
201
  function groupFaqsBySection(faqs) {
145
202
  const byName = /* @__PURE__ */ new Map();
146
203
  let uncategorized = null;
147
204
  for (const faq of faqs) {
148
205
  const item = { id: faq.id, question: faq.question, answer: faq.answer };
149
- const name = _optionalChain([faq, 'access', _2 => _2.section, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]);
206
+ const name = _optionalChain([faq, 'access', _10 => _10.section, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]);
150
207
  if (!name) {
151
208
  if (!uncategorized) uncategorized = { section: null, slug: null, items: [] };
152
209
  uncategorized.items.push(item);
@@ -154,7 +211,7 @@ function groupFaqsBySection(faqs) {
154
211
  }
155
212
  let group = byName.get(name);
156
213
  if (!group) {
157
- group = { section: name, slug: _chunkUWQWMGJ7cjs.faqSectionSlug.call(void 0, name), items: [] };
214
+ group = { section: name, slug: _chunkHJMSNOBTcjs.faqSectionSlug.call(void 0, name), items: [] };
158
215
  byName.set(name, group);
159
216
  }
160
217
  group.items.push(item);
@@ -173,7 +230,7 @@ function GroupedFaqList({
173
230
  }) {
174
231
  const CategoryHeading = categoryHeadingAs;
175
232
  const navGroups = _react.useMemo.call(void 0, () => groups.filter((g) => g.slug), [groups]);
176
- const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access', _5 => _5[0], 'optionalAccess', _6 => _6.slug]), () => ( null)));
233
+ const [activeSlug, setActiveSlug] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([navGroups, 'access', _13 => _13[0], 'optionalAccess', _14 => _14.slug]), () => ( null)));
177
234
  const slugKey = navGroups.map((g) => g.slug).join("|");
178
235
  const navGroupsRef = _react.useRef.call(void 0, navGroups);
179
236
  _react.useEffect.call(void 0, () => {
@@ -199,7 +256,7 @@ function GroupedFaqList({
199
256
  }
200
257
  if (bestId) setActiveSlug(bestId);
201
258
  },
202
- { rootMargin: `-${_chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
259
+ { rootMargin: `-${_chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
203
260
  );
204
261
  for (const group of navGroupsRef.current) {
205
262
  const el = group.slug ? document.getElementById(group.slug) : null;
@@ -209,13 +266,13 @@ function GroupedFaqList({
209
266
  }, [slugKey]);
210
267
  const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
211
268
  _react.useEffect.call(void 0, () => {
212
- const refresh = () => setHashTarget(_chunkUWQWMGJ7cjs.parseFaqHash.call(void 0, window.location.hash));
269
+ const refresh = () => setHashTarget(_chunkHJMSNOBTcjs.parseFaqHash.call(void 0, window.location.hash));
213
270
  refresh();
214
271
  window.addEventListener("hashchange", refresh);
215
272
  return () => window.removeEventListener("hashchange", refresh);
216
273
  }, []);
217
274
  const defaultOpenByGroupKey = _react.useMemo.call(void 0, () => {
218
- if (_optionalChain([hashTarget, 'optionalAccess', _7 => _7.kind]) !== "item") return null;
275
+ if (_optionalChain([hashTarget, 'optionalAccess', _15 => _15.kind]) !== "item") return null;
219
276
  const targetId = hashTarget.rawId;
220
277
  const result = /* @__PURE__ */ new Map();
221
278
  for (const group of groups) {
@@ -224,18 +281,18 @@ function GroupedFaqList({
224
281
  }
225
282
  return result.size > 0 ? result : null;
226
283
  }, [groups, hashTarget]);
227
- const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
228
- const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
229
- _chunkZXCZYMN4cjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX });
284
+ const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _16 => _16.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
285
+ const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _17 => _17.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _18 => _18.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
286
+ _chunk4LY6R4TNcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX });
230
287
  const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
231
288
  if (pillSyncedHash !== hashTarget) {
232
289
  setPillSyncedHash(hashTarget);
233
- if (_optionalChain([hashTarget, 'optionalAccess', _11 => _11.kind]) === "section") setActiveSlug(hashTarget.slug);
290
+ if (_optionalChain([hashTarget, 'optionalAccess', _19 => _19.kind]) === "section") setActiveSlug(hashTarget.slug);
234
291
  }
235
292
  const handleJump = _react.useCallback.call(void 0, (e, slug) => {
236
293
  e.preventDefault();
237
- _chunkGQ7JJUITcjs.navigateSamePageHash.call(void 0, "#" + slug, {
238
- headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX,
294
+ _chunkK2JUJ37Dcjs.navigateSamePageHash.call(void 0, "#" + slug, {
295
+ headerOffset: _chunkK2JUJ37Dcjs.STICKY_HEADER_OFFSET_PX,
239
296
  history: "replace"
240
297
  });
241
298
  }, []);
@@ -259,12 +316,12 @@ function GroupedFaqList({
259
316
  const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
260
317
  const key = groupKey(group);
261
318
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
262
- group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkETYLOZOBcjs.SECTION_HEADING_CLASS, children: group.section }),
319
+ group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkGCK75D7Fcjs.SECTION_HEADING_CLASS, children: group.section }),
263
320
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
264
321
  FaqAccordion,
265
322
  {
266
323
  items: group.items,
267
- defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _12 => _12.get, 'call', _13 => _13(key)])
324
+ defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _20 => _20.get, 'call', _21 => _21(key)])
268
325
  },
269
326
  `${key}:${accordionKeySuffix}`
270
327
  )
@@ -304,17 +361,21 @@ function FaqSection({
304
361
  className,
305
362
  minResults,
306
363
  apiBaseUrl = "",
307
- aside
364
+ aside: asideProp,
365
+ ask
308
366
  }) {
367
+ const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
368
+ const askTopic = ask === false ? void 0 : _optionalChain([ask, 'optionalAccess', _22 => _22.topic]) || entityType;
369
+ const aside = _nullishCoalesce(asideProp, () => ( (ask !== false && askTopic && faqAskCardShown(assistant) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqAskCard, { ...ask, topic: askTopic }) : void 0)));
309
370
  const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
310
371
  const initialData = _react.useMemo.call(void 0,
311
372
  () => initialFaqs ? { faqs: initialFaqs } : void 0,
312
373
  [initialFaqs]
313
374
  );
314
- const { data, isLoading, error } = _chunk6X3O67OLcjs.useSelfFetch.call(void 0, url, { initialData });
315
- const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _14 => _14.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _15 => _15.faqs])]);
375
+ const { data, isLoading, error } = _chunkGCK75D7Fcjs.useSelfFetch.call(void 0, url, { initialData });
376
+ const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _23 => _23.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _24 => _24.faqs])]);
316
377
  const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
317
- const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkETYLOZOBcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
378
+ const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkGCK75D7Fcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
318
379
  if (error) return null;
319
380
  if (!isLoading && faqs.length === 0) return null;
320
381
  if (isLoading && faqs.length === 0) {
@@ -357,14 +418,15 @@ function FaqDocumentPage({
357
418
  entityType,
358
419
  entityId,
359
420
  minResults,
421
+ ask,
360
422
  shell = true
361
423
  }) {
362
424
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
363
425
  const backCfg = backButton === false ? void 0 : {
364
- label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
365
- onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
426
+ label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _25 => _25.label]), () => ( "Back to home")),
427
+ onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _26 => _26.href]), () => ( "/")))
366
428
  };
367
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLCLDFMDFcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
429
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBYVVE7HPcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
368
430
  FaqSection,
369
431
  {
370
432
  initialFaqs,
@@ -374,14 +436,16 @@ function FaqDocumentPage({
374
436
  apiBaseUrl,
375
437
  entityType,
376
438
  entityId,
377
- minResults
439
+ minResults,
440
+ ask
378
441
  }
379
442
  ) });
380
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNQVS4G7Gcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
443
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUZTOI6FJcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
381
444
  }
382
445
 
383
446
 
384
447
 
385
448
 
386
449
 
387
- exports.FaqAccordion = FaqAccordion; exports.FaqSection = FaqSection; exports.FaqDocumentPage = FaqDocumentPage;
450
+
451
+ exports.FaqAccordion = FaqAccordion; exports.FaqAskCard = FaqAskCard; exports.FaqSection = FaqSection; exports.FaqDocumentPage = FaqDocumentPage;