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

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 (166) hide show
  1. package/dist/{chunk-4JIGEK7C.cjs → chunk-2C72EWQR.cjs} +93 -29
  2. package/dist/{chunk-IWCPXJEE.js → chunk-3HZ6XSZC.js} +2 -4
  3. package/dist/{chunk-ZXCZYMN4.cjs → chunk-4SIZCHVZ.cjs} +13 -15
  4. package/dist/{chunk-E2V2EH2G.cjs → chunk-5XDCCQ4A.cjs} +15 -15
  5. package/dist/{chunk-HCFNEKO3.cjs → chunk-6BLN5WDS.cjs} +41 -41
  6. package/dist/{chunk-D6PMVWDI.js → chunk-6W46LVK4.js} +5 -5
  7. package/dist/{chunk-JHQ334WS.js → chunk-742BGXNX.js} +2 -0
  8. package/dist/{chunk-AECTRMGQ.cjs → chunk-7GRPR7XA.cjs} +13 -1
  9. package/dist/{chunk-AJHSQ5XK.js → chunk-7HYEQKN6.js} +6 -6
  10. package/dist/{chunk-2JLP2X2M.js → chunk-7IOU6BJE.js} +12 -11
  11. package/dist/{chunk-7BREFV7G.cjs → chunk-7LPR4RZ3.cjs} +34 -36
  12. package/dist/chunk-AFTRPEXO.js +13 -0
  13. package/dist/{chunk-JPD4NXH6.js → chunk-AZRI4XBP.js} +1 -1
  14. package/dist/{chunk-4QFWGLZO.js → chunk-B2N4YX66.js} +1 -1
  15. package/dist/{chunk-TELAANY6.js → chunk-B5LNX4GZ.js} +2 -2
  16. package/dist/{chunk-SWAVO7BB.cjs → chunk-DHNJSQGX.cjs} +91 -91
  17. package/dist/{chunk-LOZLHG2U.cjs → chunk-DOPOHO6H.cjs} +20 -20
  18. package/dist/{chunk-NQVS4G7G.cjs → chunk-DYDDAA6O.cjs} +519 -518
  19. package/dist/{chunk-DFEPUYTF.cjs → chunk-EVMM3JE6.cjs} +44 -46
  20. package/dist/chunk-EWPR7662.cjs +13 -0
  21. package/dist/{chunk-AGVXKD4K.js → chunk-FSQQZFVG.js} +12 -0
  22. package/dist/{chunk-TTVOLEUS.js → chunk-GANIUMRU.js} +89 -2
  23. package/dist/{chunk-TDZ76NCB.cjs → chunk-HFEYEPOG.cjs} +27 -27
  24. package/dist/{chunk-LE5WKGJV.cjs → chunk-HTS46FFY.cjs} +3 -3
  25. package/dist/{chunk-H5VIMBRN.cjs → chunk-IL3ZWNM2.cjs} +4 -4
  26. package/dist/{chunk-PSVSEN4J.cjs → chunk-IMTY3GRR.cjs} +2 -0
  27. package/dist/{chunk-WS7WRR5Z.cjs → chunk-ISCZ6UNF.cjs} +85 -89
  28. package/dist/{chunk-XGHGGBM3.js → chunk-K2BYVPGR.js} +3 -3
  29. package/dist/{chunk-HWVUR735.cjs → chunk-KSGMZHVV.cjs} +2 -2
  30. package/dist/{chunk-FVQJBII6.js → chunk-LO3KCLEF.js} +1 -1
  31. package/dist/{chunk-MA4Q5RBP.cjs → chunk-NYSMDM4J.cjs} +2 -2
  32. package/dist/{chunk-5YAGX5DY.js → chunk-O3MKJU6A.js} +6 -6
  33. package/dist/{chunk-H5V7GRN5.js → chunk-PSMJYZMV.js} +4 -6
  34. package/dist/{chunk-JH2SIWPQ.js → chunk-PXAKSPLZ.js} +1586 -1263
  35. package/dist/{chunk-CU6NWO2M.js → chunk-Q5327DXK.js} +13 -17
  36. package/dist/{chunk-NYWESHOQ.cjs → chunk-QF464PPL.cjs} +39 -39
  37. package/dist/{chunk-UWQWMGJ7.cjs → chunk-RDP5UZXQ.cjs} +888 -565
  38. package/dist/{chunk-ETYLOZOB.cjs → chunk-RFUOIQSG.cjs} +100 -13
  39. package/dist/{chunk-DC4RTYWK.cjs → chunk-RZQGIWK3.cjs} +3 -3
  40. package/dist/{chunk-EAHOB64X.js → chunk-TORERAXD.js} +105 -41
  41. package/dist/{chunk-6YPTUHM7.js → chunk-URW23QUM.js} +1 -1
  42. package/dist/{chunk-QBCDSTLE.cjs → chunk-UWJMDFDO.cjs} +18 -18
  43. package/dist/{chunk-4D6NMPOO.js → chunk-V6B2FBZK.js} +5 -5
  44. package/dist/{chunk-5U3KWQXP.js → chunk-VBHGJFA3.js} +10 -10
  45. package/dist/{chunk-LCLDFMDF.cjs → chunk-VF2CJXZ2.cjs} +15 -15
  46. package/dist/{chunk-7BCY77W6.js → chunk-VYVPII4W.js} +8 -10
  47. package/dist/{chunk-TTEFN6VO.js → chunk-VYZCKY5K.js} +9 -9
  48. package/dist/{chunk-E7YCPY7K.cjs → chunk-XSM46FHD.cjs} +3 -3
  49. package/dist/{chunk-NZ5BHDFZ.js → chunk-XW3Q623Q.js} +1 -1
  50. package/dist/{chunk-Y4MB25KW.js → chunk-YK3X74SF.js} +1 -1
  51. package/dist/{chunk-ZKNZ2CXW.cjs → chunk-ZHD3F2TH.cjs} +3 -3
  52. package/dist/{chunk-KBJJQFYU.js → chunk-ZPHOQDAE.js} +1 -1
  53. package/dist/{cloud-tenants-DNBPNQNP.js → cloud-tenants-RKQRSDNE.js} +9 -9
  54. package/dist/{cloud-tenants-FBUO66GW.cjs → cloud-tenants-UQZASXUB.cjs} +10 -10
  55. package/dist/components/case-studies/index.cjs +23 -23
  56. package/dist/components/case-studies/index.js +10 -10
  57. package/dist/components/chat/ask-prompts.d.ts +10 -2
  58. package/dist/components/chat/ask-prompts.d.ts.map +1 -1
  59. package/dist/components/chat/assistant-ask-prompts.d.ts +27 -0
  60. package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -0
  61. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  62. package/dist/components/chat/hooks/index.d.ts +1 -0
  63. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  64. package/dist/components/chat/hooks/use-ask-prompts.d.ts +63 -0
  65. package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -0
  66. package/dist/components/chat/index.cjs +23 -6
  67. package/dist/components/chat/index.d.ts +1 -0
  68. package/dist/components/chat/index.d.ts.map +1 -1
  69. package/dist/components/chat/index.js +22 -5
  70. package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
  71. package/dist/components/contact/index.cjs +11 -11
  72. package/dist/components/contact/index.js +10 -10
  73. package/dist/components/docs/index.cjs +14 -14
  74. package/dist/components/docs/index.js +13 -13
  75. package/dist/components/embeds/index.cjs +11 -11
  76. package/dist/components/embeds/index.js +10 -10
  77. package/dist/components/faq/faq-ask-card.d.ts +44 -0
  78. package/dist/components/faq/faq-ask-card.d.ts.map +1 -0
  79. package/dist/components/faq/faq-document-page.d.ts +5 -1
  80. package/dist/components/faq/faq-document-page.d.ts.map +1 -1
  81. package/dist/components/faq/faq-section.d.ts +18 -5
  82. package/dist/components/faq/faq-section.d.ts.map +1 -1
  83. package/dist/components/faq/index.cjs +13 -12
  84. package/dist/components/faq/index.d.ts +1 -0
  85. package/dist/components/faq/index.d.ts.map +1 -1
  86. package/dist/components/faq/index.js +12 -11
  87. package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
  88. package/dist/components/features/index.cjs +10 -10
  89. package/dist/components/features/index.js +9 -9
  90. package/dist/components/help-center-pages/index.cjs +104 -105
  91. package/dist/components/help-center-pages/index.js +28 -29
  92. package/dist/components/help-center-pages/trust-center-page.d.ts +4 -1
  93. package/dist/components/help-center-pages/trust-center-page.d.ts.map +1 -1
  94. package/dist/components/index.cjs +109 -197
  95. package/dist/components/index.js +228 -316
  96. package/dist/components/meeting-scheduler/index.cjs +50 -51
  97. package/dist/components/meeting-scheduler/index.js +12 -13
  98. package/dist/components/navigation/index.cjs +13 -13
  99. package/dist/components/navigation/index.js +12 -12
  100. package/dist/components/navigation/mingo-ai-button.d.ts +1 -1
  101. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  102. package/dist/components/onboarding-guides/index.cjs +13 -14
  103. package/dist/components/onboarding-guides/index.js +12 -13
  104. package/dist/components/product-demo/index.cjs +7 -7
  105. package/dist/components/product-demo/index.js +7 -7
  106. package/dist/components/related-content/index.cjs +5 -7
  107. package/dist/components/related-content/index.js +4 -6
  108. package/dist/components/tickets/index.cjs +15 -15
  109. package/dist/components/tickets/index.js +14 -14
  110. package/dist/components/ui/index.cjs +26 -10
  111. package/dist/components/ui/index.js +25 -9
  112. package/dist/contexts/assistant-runtime-context.d.ts +74 -0
  113. package/dist/contexts/assistant-runtime-context.d.ts.map +1 -0
  114. package/dist/contexts/index.cjs +7 -1
  115. package/dist/contexts/index.d.ts +1 -0
  116. package/dist/contexts/index.d.ts.map +1 -1
  117. package/dist/contexts/index.js +6 -0
  118. package/dist/{devices-5A5TY4JD.cjs → devices-7Q2EUM7B.cjs} +11 -11
  119. package/dist/{devices-PLDAEUSL.js → devices-U3Y4IIW4.js} +9 -9
  120. package/dist/hooks/index.cjs +3 -4
  121. package/dist/hooks/index.js +2 -3
  122. package/dist/index.cjs +34 -14
  123. package/dist/index.js +33 -13
  124. package/dist/{knowledge-G6Q5KRWV.js → knowledge-NST53EXE.js} +9 -9
  125. package/dist/{knowledge-FKTJ723Z.cjs → knowledge-UYIZ74MA.cjs} +11 -11
  126. package/dist/{logs-CJCXUBU6.cjs → logs-HTH7X7KV.cjs} +18 -18
  127. package/dist/{logs-QMV6XIC4.js → logs-JVTRG232.js} +9 -9
  128. package/dist/{policies-G6D7AX6F.js → policies-DTXTRK56.js} +9 -9
  129. package/dist/{policies-QMRTK3CY.cjs → policies-MXK2HB4W.cjs} +14 -14
  130. package/dist/{remote-session-DBD6OSTX.js → remote-session-LAJZKQBN.js} +3 -3
  131. package/dist/{remote-session-2JVI7RVA.cjs → remote-session-SKKF4PBV.cjs} +5 -5
  132. package/dist/{software-update-6BQM6BKH.js → software-update-6RHMPM3W.js} +9 -9
  133. package/dist/{software-update-PNZMRDBT.cjs → software-update-P6BSM6HX.cjs} +14 -14
  134. package/dist/utils/index.cjs +26 -2
  135. package/dist/utils/index.d.ts +1 -0
  136. package/dist/utils/index.d.ts.map +1 -1
  137. package/dist/utils/index.js +25 -3
  138. package/dist/utils/list-url.d.ts.map +1 -1
  139. package/dist/utils/source-icons.d.ts.map +1 -1
  140. package/dist/utils/trial.d.ts +18 -0
  141. package/dist/utils/trial.d.ts.map +1 -0
  142. package/package.json +1 -1
  143. package/src/components/chat/ask-prompts.tsx +25 -3
  144. package/src/components/chat/assistant-ask-prompts.tsx +78 -0
  145. package/src/components/chat/entity-cards/dispatch.tsx +38 -4
  146. package/src/components/chat/hooks/index.ts +12 -0
  147. package/src/components/chat/hooks/use-ask-prompts.ts +188 -0
  148. package/src/components/chat/index.ts +1 -0
  149. package/src/components/chat/utils/icon-library.tsx +6 -0
  150. package/src/components/faq/faq-ask-card.tsx +115 -0
  151. package/src/components/faq/faq-document-page.tsx +6 -1
  152. package/src/components/faq/faq-section.tsx +27 -5
  153. package/src/components/faq/index.ts +1 -0
  154. package/src/components/features/auth/auth-benefits-panel.tsx +5 -4
  155. package/src/components/help-center-pages/trust-center-page.tsx +5 -2
  156. package/src/components/navigation/mingo-ai-button.tsx +27 -6
  157. package/src/contexts/assistant-runtime-context.tsx +84 -0
  158. package/src/contexts/index.ts +9 -0
  159. package/src/utils/index.ts +1 -0
  160. package/src/utils/list-url.ts +4 -0
  161. package/src/utils/source-icons.ts +10 -2
  162. package/src/utils/trial.ts +19 -0
  163. package/dist/chunk-6X3O67OL.cjs +0 -89
  164. package/dist/chunk-AUMKE74M.cjs +0 -16
  165. package/dist/chunk-G3GRYDMS.js +0 -16
  166. package/dist/chunk-RR6PY34K.js +0 -89
@@ -1,21 +1,29 @@
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 _chunkDYDDAA6Ocjs = require('./chunk-DYDDAA6O.cjs');
5
5
 
6
6
 
7
- var _chunkNQVS4G7Gcjs = require('./chunk-NQVS4G7G.cjs');
7
+ var _chunkVF2CJXZ2cjs = require('./chunk-VF2CJXZ2.cjs');
8
8
 
9
9
 
10
- var _chunkLCLDFMDFcjs = require('./chunk-LCLDFMDF.cjs');
10
+ var _chunk4SIZCHVZcjs = require('./chunk-4SIZCHVZ.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');
17
+
18
+
19
+
20
+
21
+ var _chunkRDP5UZXQcjs = require('./chunk-RDP5UZXQ.cjs');
22
+
23
+
24
+
25
+ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
26
+
19
27
 
20
28
 
21
29
 
@@ -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 _chunkRFUOIQSGcjs = require('./chunk-RFUOIQSG.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: _chunkRDP5UZXQcjs.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 _chunkRDP5UZXQcjs.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 } = _chunkGQ7JJUITcjs.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 = _chunkRDP5UZXQcjs.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]))), () => ( _chunkRDP5UZXQcjs.ASK_PROMPTS_DEFAULT_COUNT));
141
+ const { prompts, isLoading, supported } = _chunkRDP5UZXQcjs.useAskPrompts.call(void 0, {
142
+ topic,
143
+ count: slots,
144
+ exclude: _nullishCoalesce(excluded, () => ( void 0)),
145
+ enabled: reached && excluded !== null
146
+ });
147
+ const open = _chunkRDP5UZXQcjs.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
+ _chunkRDP5UZXQcjs.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 _chunkRFUOIQSGcjs.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: _chunkRDP5UZXQcjs.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, () => {
@@ -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(_chunkRDP5UZXQcjs.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,13 +281,13 @@ 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
+ _chunk4SIZCHVZcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkGQ7JJUITcjs.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();
@@ -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: _chunkRFUOIQSGcjs.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 } = _chunkRFUOIQSGcjs.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: _chunkRFUOIQSGcjs.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, _chunkVF2CJXZ2cjs.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, _chunkDYDDAA6Ocjs.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;
@@ -6,9 +6,6 @@ import {
6
6
  useEndpointsRuntime,
7
7
  useRequiredEndpointsRuntime
8
8
  } from "./chunk-HFL2F4RM.js";
9
- import {
10
- contentFetch
11
- } from "./chunk-G3GRYDMS.js";
12
9
  import {
13
10
  ELAPSED_MS_FIELD,
14
11
  FORM_RESCUE_ATTEMPT_FIELD,
@@ -47,11 +44,12 @@ import {
47
44
  useSearchParams
48
45
  } from "./chunk-GY4IZG22.js";
49
46
  import {
47
+ contentFetch,
50
48
  createSearchParams,
51
49
  parseSchemaParams,
52
50
  positiveInt,
53
51
  shouldIncludeInUrl
54
- } from "./chunk-AGVXKD4K.js";
52
+ } from "./chunk-FSQQZFVG.js";
55
53
  import {
56
54
  Chevron02DownIcon,
57
55
  XmarkIcon
@@ -8,9 +8,6 @@ var _chunkB4NCVYEQcjs = require('./chunk-B4NCVYEQ.cjs');
8
8
  var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
9
9
 
10
10
 
11
- var _chunkAUMKE74Mcjs = require('./chunk-AUMKE74M.cjs');
12
-
13
-
14
11
 
15
12
 
16
13
 
@@ -51,7 +48,8 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
51
48
 
52
49
 
53
50
 
54
- var _chunkAECTRMGQcjs = require('./chunk-AECTRMGQ.cjs');
51
+
52
+ var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
55
53
 
56
54
 
57
55
 
@@ -1123,7 +1121,7 @@ function useContactSubmission(options = {}) {
1123
1121
  if (isSubmitting) return;
1124
1122
  setIsSubmitting(true);
1125
1123
  try {
1126
- const response = await _chunkAUMKE74Mcjs.contentFetch.call(void 0, contactUrl, {
1124
+ const response = await _chunk7GRPR7XAcjs.contentFetch.call(void 0, contactUrl, {
1127
1125
  method: "POST",
1128
1126
  headers: { "Content-Type": "application/json" },
1129
1127
  body: JSON.stringify({
@@ -1818,7 +1816,7 @@ function variablesToUrlParams(variables, schema) {
1818
1816
  const params = new URLSearchParams();
1819
1817
  for (const [paramName, paramConfig] of Object.entries(schema)) {
1820
1818
  const value = getNestedValue(variables, paramConfig.graphqlPath);
1821
- if (!_chunkAECTRMGQcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
1819
+ if (!_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
1822
1820
  continue;
1823
1821
  }
1824
1822
  if (Array.isArray(value)) {
@@ -1847,7 +1845,7 @@ function coerceScalar(value, type) {
1847
1845
  return isNaN(num) ? null : num;
1848
1846
  }
1849
1847
  case "int":
1850
- return _chunkAECTRMGQcjs.positiveInt.call(void 0, value, null);
1848
+ return _chunk7GRPR7XAcjs.positiveInt.call(void 0, value, null);
1851
1849
  case "boolean":
1852
1850
  return value === "true" || value === "1";
1853
1851
  case "string":
@@ -2153,7 +2151,7 @@ function useApiParams(schema, options = {}) {
2153
2151
  return flattened;
2154
2152
  }, [stableSchema]);
2155
2153
  const rawParams = _react.useMemo.call(void 0, () => {
2156
- const result = _chunkAECTRMGQcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(searchString), {
2154
+ const result = _chunk7GRPR7XAcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(searchString), {
2157
2155
  absent: options.absent === "null" ? "null" : "undefined"
2158
2156
  });
2159
2157
  if (debug) {
@@ -2169,14 +2167,14 @@ function useApiParams(schema, options = {}) {
2169
2167
  }
2170
2168
  const params = stableParams;
2171
2169
  const addParamToSearchParams = _react.useCallback.call(void 0, (searchParams, key, value) => {
2172
- for (const [k, v] of _chunkAECTRMGQcjs.createSearchParams.call(void 0, { [key]: value })) searchParams.append(k, v);
2170
+ for (const [k, v] of _chunk7GRPR7XAcjs.createSearchParams.call(void 0, { [key]: value })) searchParams.append(k, v);
2173
2171
  }, []);
2174
2172
  const urlSearchParams = _react.useMemo.call(void 0, () => {
2175
2173
  const newParams = new URLSearchParams();
2176
2174
  for (const key of Object.keys(stableSchema)) {
2177
2175
  const value = params[key];
2178
2176
  const paramConfig = flattenedSchema[key];
2179
- if (!_chunkAECTRMGQcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
2177
+ if (!_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
2180
2178
  continue;
2181
2179
  }
2182
2180
  addParamToSearchParams(newParams, key, value);
@@ -2233,7 +2231,7 @@ function useApiParams(schema, options = {}) {
2233
2231
  return;
2234
2232
  }
2235
2233
  const newParams = new URLSearchParams();
2236
- if (_chunkAECTRMGQcjs.shouldIncludeInUrl.call(void 0, value, config)) {
2234
+ if (_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, config)) {
2237
2235
  addParamToSearchParams(newParams, key, value);
2238
2236
  updateUrl(newParams);
2239
2237
  } else {
@@ -2252,7 +2250,7 @@ function useApiParams(schema, options = {}) {
2252
2250
  console.warn(`[useApiParams] Unknown parameter: ${key}`);
2253
2251
  continue;
2254
2252
  }
2255
- if (_chunkAECTRMGQcjs.shouldIncludeInUrl.call(void 0, value, flattenedSchema[key])) {
2253
+ if (_chunk7GRPR7XAcjs.shouldIncludeInUrl.call(void 0, value, flattenedSchema[key])) {
2256
2254
  addParamToSearchParams(newParams, key, value);
2257
2255
  } else {
2258
2256
  keysToRemove.push(key);
@@ -2277,7 +2275,7 @@ function useApiParams(schema, options = {}) {
2277
2275
  }, [router, debug]);
2278
2276
  const pendingParams = _react.useMemo.call(void 0, () => {
2279
2277
  if (pendingTail === void 0 || pendingTail === searchString) return params;
2280
- return _chunkAECTRMGQcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(pendingTail), {
2278
+ return _chunk7GRPR7XAcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(pendingTail), {
2281
2279
  absent: options.absent === "null" ? "null" : "undefined"
2282
2280
  });
2283
2281
  }, [pendingTail, searchString, params, stableSchema, options.absent]);
@@ -2763,7 +2761,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
2763
2761
  ...resumeTokenRef.current ? { resume_token: resumeTokenRef.current } : {}
2764
2762
  };
2765
2763
  try {
2766
- void _chunkAUMKE74Mcjs.contentFetch.call(void 0, draftsUrl, {
2764
+ void _chunk7GRPR7XAcjs.contentFetch.call(void 0, draftsUrl, {
2767
2765
  method: "POST",
2768
2766
  headers: { "Content-Type": "application/json" },
2769
2767
  body: JSON.stringify({ ...body, ..._nullishCoalesce(_optionalChain([getSignalsRef, 'access', _36 => _36.current, 'optionalCall', _37 => _37()]), () => ( {})) }),
@@ -2792,7 +2790,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
2792
2790
  if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _38 => _38.current, 'optionalCall', _39 => _39(local.values)]);
2793
2791
  };
2794
2792
  if (_chunkGQ7JJUITcjs.isResumeToken.call(void 0, token) && draftsUrl) {
2795
- _chunkAUMKE74Mcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
2793
+ _chunk7GRPR7XAcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
2796
2794
  if (cancelled) return;
2797
2795
  if (!data || data.form_id !== formId) {
2798
2796
  restoreLocal();
@@ -1,18 +1,15 @@
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 _chunkNQVS4G7Gcjs = require('./chunk-NQVS4G7G.cjs');
4
+ var _chunkDYDDAA6Ocjs = require('./chunk-DYDDAA6O.cjs');
5
5
 
6
6
 
7
- var _chunkAUMKE74Mcjs = require('./chunk-AUMKE74M.cjs');
8
7
 
9
8
 
10
9
 
11
10
 
12
11
 
13
-
14
-
15
- var _chunkUWQWMGJ7cjs = require('./chunk-UWQWMGJ7.cjs');
12
+ var _chunkRDP5UZXQcjs = require('./chunk-RDP5UZXQ.cjs');
16
13
 
17
14
 
18
15
  var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
@@ -21,7 +18,10 @@ var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
21
18
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
22
19
 
23
20
 
24
- var _chunkETYLOZOBcjs = require('./chunk-ETYLOZOB.cjs');
21
+ var _chunkRFUOIQSGcjs = require('./chunk-RFUOIQSG.cjs');
22
+
23
+
24
+ var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.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 } = _chunkUWQWMGJ7cjs.resolveSourceIcon.call(void 0, {
42
+ const { Icon: SourceIcon, label: iconLabel } = _chunkRDP5UZXQcjs.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
- _chunkNQVS4G7Gcjs.SearchInput,
72
+ _chunkDYDDAA6Ocjs.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: `${_chunkUWQWMGJ7cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkUWQWMGJ7cjs.recordCountLabel.call(void 0, rows.length)}`,
122
+ title: `${_chunkRDP5UZXQcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkRDP5UZXQcjs.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 = _chunkETYLOZOBcjs.decideNewTab.call(void 0, {
185
+ const isNewTab = _chunkRFUOIQSGcjs.decideNewTab.call(void 0, {
186
186
  href,
187
187
  targetPlatform: composed ? composed.targetPlatform : targetPlatform,
188
188
  surface: "useUnifiedNav",
@@ -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 _chunkAUMKE74Mcjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
279
+ const response = await _chunk7GRPR7XAcjs.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", _chunkUWQWMGJ7cjs.NEW_TAB_FEATURES);
314
+ window.open(action.href, "_blank", _chunkRDP5UZXQcjs.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(_chunkUWQWMGJ7cjs.stripSameOriginToPath.call(void 0, action.href));
320
+ router.push(_chunkRDP5UZXQcjs.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
- _chunkUWQWMGJ7cjs.resolveExternalNavigation.call(void 0, {
327
+ _chunkRDP5UZXQcjs.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", _chunkUWQWMGJ7cjs.NEW_TAB_FEATURES);
334
+ window.open(action.href, "_blank", _chunkRDP5UZXQcjs.NEW_TAB_FEATURES);
335
335
  return;
336
336
  case "ask-ai":
337
337
  setKeepOpen(false);