@flamingo-stack/openframe-frontend-core 0.0.816 → 0.0.817

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 (193) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-NLT2JVI7.cjs → case-study-card-IZBMHA6R.cjs} +3 -3
  3. package/dist/{chunk-7ERD34HQ.cjs → chunk-24M2JYM5.cjs} +566 -774
  4. package/dist/{chunk-3E4FIJAM.cjs → chunk-4ROR52OW.cjs} +15 -15
  5. package/dist/{chunk-SWBLTIN4.cjs → chunk-5TSYOIIZ.cjs} +54 -52
  6. package/dist/{chunk-JH65CEO4.cjs → chunk-6F4YGHGM.cjs} +36 -36
  7. package/dist/{chunk-VDXI26G7.cjs → chunk-7KBHLP4E.cjs} +81 -78
  8. package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
  9. package/dist/{chunk-633NTKO2.cjs → chunk-BL2J5RJK.cjs} +31 -53
  10. package/dist/{chunk-7NYWHEQM.cjs → chunk-C2OUXL3Q.cjs} +15 -15
  11. package/dist/{chunk-53JJLHJM.cjs → chunk-DSBRWP5M.cjs} +20 -20
  12. package/dist/chunk-DVHSYPDB.cjs +471 -0
  13. package/dist/{chunk-5TUR7O7H.cjs → chunk-EX7M3VQC.cjs} +90 -90
  14. package/dist/{chunk-EJCUAADF.cjs → chunk-F2LVBRHC.cjs} +4 -4
  15. package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
  16. package/dist/{chunk-FUEK43FL.cjs → chunk-IOFIHVVW.cjs} +206 -200
  17. package/dist/{chunk-JOOZTRXQ.cjs → chunk-JMOCM2SW.cjs} +4 -4
  18. package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
  19. package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
  20. package/dist/{chunk-L7W4455K.cjs → chunk-MAHJY2PO.cjs} +3 -3
  21. package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
  22. package/dist/{chunk-EB7YAUER.cjs → chunk-P7JQGOX4.cjs} +19 -19
  23. package/dist/{chunk-O6VWD2SB.cjs → chunk-RDHF3F5R.cjs} +3 -3
  24. package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
  25. package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
  26. package/dist/{chunk-ZAWHRYJZ.cjs → chunk-TKEYWSDZ.cjs} +45 -45
  27. package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
  28. package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
  29. package/dist/{chunk-RYJJHSHV.cjs → chunk-UFBVOBYR.cjs} +23 -23
  30. package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
  31. package/dist/{chunk-3ELDGEM2.cjs → chunk-ZP4JMX7G.cjs} +87 -84
  32. package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-NMAXIJLL.cjs} +11 -11
  33. package/dist/components/announcement-bar.d.ts.map +1 -1
  34. package/dist/components/announcement-bar.js +5 -5
  35. package/dist/components/case-studies/index.cjs +26 -26
  36. package/dist/components/chat/chat-markdown-link.d.ts +15 -0
  37. package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
  38. package/dist/components/chat/chat-markdown-link.js +22 -0
  39. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  40. package/dist/components/chat/chat-message-enhanced.js +3 -9
  41. package/dist/components/chat/embeddable-chat.d.ts +4 -0
  42. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  43. package/dist/components/chat/embeddable-chat.js +30 -67
  44. package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
  45. package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
  46. package/dist/components/chat/entity-cards/dispatch.d.ts +5 -5
  47. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  48. package/dist/components/chat/entity-cards/dispatch.js +18 -17
  49. package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
  50. package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
  51. package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
  52. package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
  53. package/dist/components/chat/index.cjs +28 -21
  54. package/dist/components/chat/index.d.ts +2 -2
  55. package/dist/components/chat/index.d.ts.map +1 -1
  56. package/dist/components/chat/index.js +4 -3
  57. package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
  58. package/dist/components/chat/inline-chip.d.ts.map +1 -0
  59. package/dist/components/chat/inline-chip.js +27 -0
  60. package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
  61. package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
  62. package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
  63. package/dist/components/chat/source-action-button.d.ts +12 -3
  64. package/dist/components/chat/source-action-button.d.ts.map +1 -1
  65. package/dist/components/chat/source-action-button.js +41 -26
  66. package/dist/components/chat/types/component.types.d.ts +1 -1
  67. package/dist/components/chat/types/message.types.d.ts +1 -1
  68. package/dist/components/chat/types/message.types.d.ts.map +1 -1
  69. package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
  70. package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
  71. package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
  72. package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
  73. package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
  74. package/dist/components/chat/utils/decide-new-tab.js +0 -1
  75. package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
  76. package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
  77. package/dist/components/chat/utils/execute-navigation.js +23 -19
  78. package/dist/components/chat/utils/index.d.ts +5 -5
  79. package/dist/components/chat/utils/index.d.ts.map +1 -1
  80. package/dist/components/chat/utils/index.js +14 -6
  81. package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
  82. package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
  83. package/dist/components/chat/utils/nav-anchor-props.js +14 -5
  84. package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
  85. package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
  86. package/dist/components/chat/utils/new-tab-rel.js +25 -0
  87. package/dist/components/contact/index.cjs +12 -12
  88. package/dist/components/docs/index.cjs +15 -15
  89. package/dist/components/embeds/index.cjs +12 -12
  90. package/dist/components/faq/index.cjs +13 -13
  91. package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
  92. package/dist/components/features/devices/devices-table-columns.js +4 -1
  93. package/dist/components/features/index.cjs +11 -11
  94. package/dist/components/help-center-pages/index.cjs +105 -105
  95. package/dist/components/index.cjs +91 -83
  96. package/dist/components/meeting-scheduler/index.cjs +50 -50
  97. package/dist/components/navigation/app-header.d.ts +1 -4
  98. package/dist/components/navigation/app-header.d.ts.map +1 -1
  99. package/dist/components/navigation/app-header.js +0 -2
  100. package/dist/components/navigation/index.cjs +14 -14
  101. package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
  102. package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
  103. package/dist/components/navigation/ticket-alerts-button.js +5 -5
  104. package/dist/components/onboarding-guides/index.cjs +14 -14
  105. package/dist/components/product-demo/index.cjs +20 -20
  106. package/dist/components/related-content/card-registry.d.ts +1 -1
  107. package/dist/components/related-content/index.cjs +7 -7
  108. package/dist/components/related-content/related-content-section.d.ts +3 -3
  109. package/dist/components/related-content/related-content-section.d.ts.map +1 -1
  110. package/dist/components/related-content/related-content-section.js +5 -3
  111. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
  112. package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
  113. package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
  114. package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
  115. package/dist/components/shared/doc-search/use-doc-search.js +15 -27
  116. package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
  117. package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
  118. package/dist/components/shared/product-release/product-releases-view.js +1 -3
  119. package/dist/components/tickets/index.cjs +18 -18
  120. package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
  121. package/dist/components/tickets/ticket-detail-drawer.js +6 -3
  122. package/dist/components/tickets/types.d.ts +1 -1
  123. package/dist/components/ui/button/button.d.ts +1 -1
  124. package/dist/components/ui/hover-dropdown.d.ts +2 -2
  125. package/dist/components/ui/index.cjs +31 -23
  126. package/dist/components/ui/service-card.d.ts.map +1 -1
  127. package/dist/components/ui/service-card.js +4 -1
  128. package/dist/components/vendor-display-button.d.ts.map +1 -1
  129. package/dist/components/vendor-display-button.js +4 -1
  130. package/dist/contexts/chat-runtime-context.d.ts +11 -11
  131. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  132. package/dist/{devices-DL4YU64N.cjs → devices-QBKWVHE6.cjs} +12 -12
  133. package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-WNPCPMDL.cjs} +96 -137
  134. package/dist/hooks/index.cjs +5 -5
  135. package/dist/hooks/use-contact-submission.d.ts.map +1 -1
  136. package/dist/hooks/use-contact-submission.js +11 -8
  137. package/dist/index.cjs +40 -34
  138. package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-FSAYWM25.cjs} +12 -12
  139. package/dist/{logs-IY3WBLMW.cjs → logs-OZX4SYHG.cjs} +19 -19
  140. package/dist/{policies-IXWTWMJO.cjs → policies-LPCUCTLX.cjs} +15 -15
  141. package/dist/{scripts-D5CLO5EG.cjs → scripts-ZNFZSONW.cjs} +16 -16
  142. package/dist/{software-update-ULNP6CKJ.cjs → software-update-BRYOVQVY.cjs} +14 -14
  143. package/dist/utils/index.cjs +116 -89
  144. package/dist/utils/open-in-new-tab.d.ts +2 -1
  145. package/dist/utils/open-in-new-tab.d.ts.map +1 -1
  146. package/dist/utils/open-in-new-tab.js +2 -1
  147. package/dist/utils/scroll-into-view.d.ts +1 -1
  148. package/eslint-config/base.js +11 -0
  149. package/eslint-config/navigation.js +142 -0
  150. package/package.json +1 -1
  151. package/src/components/announcement-bar.tsx +8 -6
  152. package/src/components/chat/chat-markdown-link.tsx +42 -0
  153. package/src/components/chat/chat-message-enhanced.tsx +10 -36
  154. package/src/components/chat/embeddable-chat.tsx +63 -106
  155. package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
  156. package/src/components/chat/entity-cards/dispatch.tsx +45 -35
  157. package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
  158. package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
  159. package/src/components/chat/index.ts +3 -1
  160. package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
  161. package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
  162. package/src/components/chat/source-action-button.tsx +57 -33
  163. package/src/components/chat/types/component.types.ts +1 -1
  164. package/src/components/chat/types/message.types.ts +1 -1
  165. package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
  166. package/src/components/chat/utils/decide-new-tab.ts +0 -3
  167. package/src/components/chat/utils/execute-navigation.ts +58 -58
  168. package/src/components/chat/utils/index.ts +13 -6
  169. package/src/components/chat/utils/nav-anchor-props.ts +56 -9
  170. package/src/components/chat/utils/new-tab-rel.ts +39 -0
  171. package/src/components/features/devices/devices-table-columns.tsx +4 -1
  172. package/src/components/navigation/app-header.tsx +0 -5
  173. package/src/components/navigation/ticket-alerts-button.tsx +7 -8
  174. package/src/components/related-content/card-registry.tsx +1 -1
  175. package/src/components/related-content/related-content-section.tsx +10 -10
  176. package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
  177. package/src/components/shared/doc-search/use-doc-search.ts +21 -44
  178. package/src/components/shared/product-release/product-release-card.tsx +4 -4
  179. package/src/components/shared/product-release/product-releases-view.tsx +2 -5
  180. package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
  181. package/src/components/tickets/types.ts +1 -1
  182. package/src/components/ui/button/button.tsx +2 -2
  183. package/src/components/ui/hover-dropdown.tsx +2 -2
  184. package/src/components/ui/service-card.tsx +4 -1
  185. package/src/components/vendor-display-button.tsx +5 -2
  186. package/src/contexts/chat-runtime-context.tsx +15 -12
  187. package/src/hooks/use-contact-submission.ts +13 -8
  188. package/src/utils/index.ts +1 -1
  189. package/src/utils/open-in-new-tab.ts +4 -2
  190. package/src/utils/scroll-into-view.ts +1 -1
  191. package/dist/chunk-RD66AGUI.cjs +0 -156
  192. package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
  193. package/dist/components/chat/inline-app-link-chip.js +0 -37
@@ -257,16 +257,15 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
257
257
 
258
258
 
259
259
 
260
- var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
261
260
 
262
261
 
263
- var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
262
+ var _chunkA34UNP5Vcjs = require('./chunk-A34UNP5V.cjs');
264
263
 
265
264
 
266
- var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
265
+ var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
267
266
 
268
267
 
269
- var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
268
+ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
270
269
 
271
270
 
272
271
  var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
@@ -301,10 +300,10 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
301
300
 
302
301
 
303
302
 
303
+ var _chunkIM366HS6cjs = require('./chunk-IM366HS6.cjs');
304
304
 
305
305
 
306
306
 
307
- var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
308
307
 
309
308
 
310
309
 
@@ -326,28 +325,29 @@ var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
326
325
 
327
326
 
328
327
 
328
+ var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
329
329
 
330
330
 
331
+ var _chunk25HBH4J6cjs = require('./chunk-25HBH4J6.cjs');
331
332
 
332
333
 
333
334
 
334
335
 
335
336
 
336
- var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
337
337
 
338
338
 
339
- var _chunk25HBH4J6cjs = require('./chunk-25HBH4J6.cjs');
339
+ var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
340
340
 
341
341
 
342
+ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
342
343
 
343
344
 
344
345
 
345
346
 
346
347
 
347
- var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
348
348
 
349
349
 
350
- var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
350
+ var _chunkDVHSYPDBcjs = require('./chunk-DVHSYPDB.cjs');
351
351
 
352
352
 
353
353
  var _chunkNTPX5GXIcjs = require('./chunk-NTPX5GXI.cjs');
@@ -691,14 +691,14 @@ function buildHeadingIdMap(content, sectionIds) {
691
691
  for (const section of sectionIds) {
692
692
  sectionIdMap.set(section.title, section.id);
693
693
  sectionIdMap.set(section.title.toLowerCase(), section.id);
694
- sectionIdMap.set(_chunkCNTBGJA7cjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
694
+ sectionIdMap.set(_chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, section.title).toLowerCase(), section.id);
695
695
  }
696
696
  }
697
- const dedupe = _chunkCNTBGJA7cjs.createHeadingIdDeduper.call(void 0, );
697
+ const dedupe = _chunkA34UNP5Vcjs.createHeadingIdDeduper.call(void 0, );
698
698
  const map = /* @__PURE__ */ new Map();
699
699
  let sectionOrdinal = 0;
700
700
  let headingOrdinal = 0;
701
- for (const { line, level, text: rawText } of _chunkCNTBGJA7cjs.scanHeadings.call(void 0, content)) {
701
+ for (const { line, level, text: rawText } of _chunkA34UNP5Vcjs.scanHeadings.call(void 0, content)) {
702
702
  const text2 = stripInlineMarkdown(rawText).trim();
703
703
  headingOrdinal++;
704
704
  if (level <= EXTRACTOR_MAX_LEVEL) sectionOrdinal++;
@@ -707,8 +707,8 @@ function buildHeadingIdMap(content, sectionIds) {
707
707
  for (const variation of [
708
708
  text2,
709
709
  text2.toLowerCase(),
710
- _chunkCNTBGJA7cjs.stripHeadingEmojis.call(void 0, text2),
711
- _chunkCNTBGJA7cjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
710
+ _chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, text2),
711
+ _chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, text2).toLowerCase()
712
712
  ]) {
713
713
  const id = sectionIdMap.get(variation);
714
714
  if (id) {
@@ -718,7 +718,7 @@ function buildHeadingIdMap(content, sectionIds) {
718
718
  }
719
719
  }
720
720
  if (assigned === void 0) {
721
- const baseId = _chunkCNTBGJA7cjs.slugifyHeadingText.call(void 0, text2);
721
+ const baseId = _chunkA34UNP5Vcjs.slugifyHeadingText.call(void 0, text2);
722
722
  assigned = dedupe(
723
723
  baseId || (level <= EXTRACTOR_MAX_LEVEL ? `section-${sectionOrdinal}` : `heading-${headingOrdinal}`)
724
724
  );
@@ -1333,7 +1333,7 @@ function buildBaseComponents({
1333
1333
  const mapped = useHeadingId(node);
1334
1334
  const taken = useAssignedHeadingIds();
1335
1335
  const explicit = typeof _optionalChain([node, 'optionalAccess', _27 => _27.properties, 'optionalAccess', _28 => _28.id]) === "string" && node.properties.id !== "" ? node.properties.id : void 0;
1336
- const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkCNTBGJA7cjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
1336
+ const id = _nullishCoalesce(_nullishCoalesce(explicit, () => ( mapped)), () => ( resolveFallbackHeadingId(_chunkA34UNP5Vcjs.slugifyHeadingText.call(void 0, extractText(children)), taken)));
1337
1337
  const EffectiveTag = Tag2 === "h1" && demoteMarkdownH1ToH2 ? "h2" : Tag2;
1338
1338
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EffectiveTag, { id: id || void 0, className: headingClassName, children });
1339
1339
  }
@@ -1405,10 +1405,10 @@ function buildBaseComponents({
1405
1405
  const handleAnchorClick = (e) => {
1406
1406
  if (inPageAnchorId === null) return;
1407
1407
  if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
1408
- const target = _chunkCNTBGJA7cjs.getHashTargetElement.call(void 0, inPageAnchorId);
1408
+ const target = _chunkA34UNP5Vcjs.getHashTargetElement.call(void 0, inPageAnchorId);
1409
1409
  if (!_optionalChain([target, 'optionalAccess', _29 => _29.id])) return;
1410
1410
  e.preventDefault();
1411
- _chunkCNTBGJA7cjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkCNTBGJA7cjs.HUB_HEADER_OFFSET_PX });
1411
+ _chunkA34UNP5Vcjs.navigateSamePageHash.call(void 0, `#${target.id}`, { headerOffset: _chunkA34UNP5Vcjs.HUB_HEADER_OFFSET_PX });
1412
1412
  };
1413
1413
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1414
1414
  _chunkV45KLJQPcjs.next_link_default,
@@ -2017,7 +2017,7 @@ function findInlineCodeRanges(source) {
2017
2017
  while (pos <= len) {
2018
2018
  let end = source.indexOf("\n", pos);
2019
2019
  if (end === -1) end = len;
2020
- const blank = _chunkCNTBGJA7cjs.isBlankLine.call(void 0, source.slice(pos, end));
2020
+ const blank = _chunkA34UNP5Vcjs.isBlankLine.call(void 0, source.slice(pos, end));
2021
2021
  if (blank && segStart !== -1) break;
2022
2022
  if (!blank) {
2023
2023
  if (segStart === -1) segStart = pos;
@@ -2099,7 +2099,7 @@ function toMaskLines(source) {
2099
2099
  return out;
2100
2100
  }
2101
2101
  function blankFencedRegions(masked, lines) {
2102
- const fences = _chunkCNTBGJA7cjs.createFenceTracker.call(void 0, );
2102
+ const fences = _chunkA34UNP5Vcjs.createFenceTracker.call(void 0, );
2103
2103
  const ranges = [];
2104
2104
  let openStart = null;
2105
2105
  let lastEnd = 0;
@@ -2138,7 +2138,7 @@ function blankIndentedCode(masked, lines) {
2138
2138
  const listContentCols = [];
2139
2139
  const ranges = [];
2140
2140
  for (const line of lines) {
2141
- if (_chunkCNTBGJA7cjs.isBlankLine.call(void 0, line.content)) continue;
2141
+ if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line.content)) continue;
2142
2142
  const indent = leadingIndent(line.content);
2143
2143
  const top = listContentCols.length ? listContentCols[listContentCols.length - 1] : 0;
2144
2144
  if (indent >= top + 4) {
@@ -2229,7 +2229,7 @@ function contPrefixLen(c) {
2229
2229
  function findLabelClose(lines, i, from) {
2230
2230
  for (let j = i; j < lines.length; j++) {
2231
2231
  const c = stripCr(lines[j].content);
2232
- if (j > i && _chunkCNTBGJA7cjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
2232
+ if (j > i && _chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) return { stoppedAt: j };
2233
2233
  for (let q = j === i ? from : contPrefixLen(c); q < c.length; q = skipEscaped(c, q)) {
2234
2234
  if (c[q] === "[") return { stoppedAt: j };
2235
2235
  if (c[q] !== "]") continue;
@@ -2247,7 +2247,7 @@ function blankLinkDefinitions(masked, lines) {
2247
2247
  let k = from;
2248
2248
  for (; k < lines.length; k++) {
2249
2249
  const c = stripCr(lines[k].content);
2250
- if (_chunkCNTBGJA7cjs.isBlankLine.call(void 0, c)) break;
2250
+ if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) break;
2251
2251
  blankLine(lines[k]);
2252
2252
  if (stop(c)) {
2253
2253
  k++;
@@ -2290,7 +2290,7 @@ function blankLinkDefinitions(masked, lines) {
2290
2290
  const k = j + 1;
2291
2291
  if (k >= lines.length) break;
2292
2292
  const c = stripCr(lines[k].content);
2293
- if (_chunkCNTBGJA7cjs.isBlankLine.call(void 0, c)) break;
2293
+ if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) break;
2294
2294
  const at = contPrefixLen(c);
2295
2295
  const next = tail.k === "needDest" ? parseDefTail(c, at) : parseTitleTail(c, skipSpaces(c, at));
2296
2296
  if (next.k === "decline") break;
@@ -2360,7 +2360,7 @@ function blankUnreferencedFootnotes(masked, lines, folded) {
2360
2360
  let sawBlank = false;
2361
2361
  for (let k = i + 1; k < lines.length; k++) {
2362
2362
  const c = text2(lines[k]);
2363
- if (_chunkCNTBGJA7cjs.isBlankLine.call(void 0, c)) {
2363
+ if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, c)) {
2364
2364
  sawBlank = true;
2365
2365
  continue;
2366
2366
  }
@@ -2460,7 +2460,7 @@ function paragraphEnd(s, from) {
2460
2460
  lineStart += 1;
2461
2461
  const next = s.indexOf("\n", lineStart);
2462
2462
  const line = s.slice(lineStart, next === -1 ? s.length : next);
2463
- if (_chunkCNTBGJA7cjs.isBlankLine.call(void 0, line)) return lineStart;
2463
+ if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line)) return lineStart;
2464
2464
  if (next === -1) break;
2465
2465
  lineStart = next;
2466
2466
  }
@@ -2614,7 +2614,7 @@ function blankListItemCode(masked, lines, depth = 0) {
2614
2614
  run = [];
2615
2615
  };
2616
2616
  for (const line of lines) {
2617
- if (_chunkCNTBGJA7cjs.isBlankLine.call(void 0, line.content)) {
2617
+ if (_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line.content)) {
2618
2618
  if (run.length > 0) run.push({ ...line, content: "" });
2619
2619
  continue;
2620
2620
  }
@@ -2839,7 +2839,7 @@ function htmlBlockStartKind(line, inParagraph) {
2839
2839
  function computeHtmlBlockRanges(text2) {
2840
2840
  if (text2.indexOf("<") === -1) return [];
2841
2841
  const ranges = [];
2842
- const fences = _chunkCNTBGJA7cjs.createFenceTracker.call(void 0, );
2842
+ const fences = _chunkA34UNP5Vcjs.createFenceTracker.call(void 0, );
2843
2843
  let kind = null;
2844
2844
  let start = 0;
2845
2845
  let lastEnd = 0;
@@ -2854,9 +2854,9 @@ function computeHtmlBlockRanges(text2) {
2854
2854
  const expanded = expandTabs(line);
2855
2855
  const norm = stripContainerPrefix(expanded, listContentCol);
2856
2856
  if (norm.openedListCol >= 0) listContentCol = norm.openedListCol;
2857
- else if (!_chunkCNTBGJA7cjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
2858
- const normBlank = _chunkCNTBGJA7cjs.isBlankLine.call(void 0, norm.text);
2859
- const blank = openPrefixLen > 0 ? _chunkCNTBGJA7cjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkCNTBGJA7cjs.isBlankLine.call(void 0, line);
2857
+ else if (!_chunkA34UNP5Vcjs.isBlankLine.call(void 0, norm.text) && norm.text === expanded) listContentCol = 0;
2858
+ const normBlank = _chunkA34UNP5Vcjs.isBlankLine.call(void 0, norm.text);
2859
+ const blank = openPrefixLen > 0 ? _chunkA34UNP5Vcjs.isBlankLine.call(void 0, expanded.slice(openPrefixLen)) : _chunkA34UNP5Vcjs.isBlankLine.call(void 0, line);
2860
2860
  if (kind !== null) {
2861
2861
  if (kind >= 6) {
2862
2862
  if (blank) {
@@ -3010,7 +3010,7 @@ var ScanState = class {
3010
3010
  * `FENCE_RE` plus its own open/close state machine, cross-referenced by a
3011
3011
  * comment) is precisely the drift that produced the `~~~` bug.
3012
3012
  */
3013
- this.fences = _chunkCNTBGJA7cjs.createFenceTracker.call(void 0, );
3013
+ this.fences = _chunkA34UNP5Vcjs.createFenceTracker.call(void 0, );
3014
3014
  /** Depth of currently open raw HTML block containers. */
3015
3015
  this.htmlDepth = 0;
3016
3016
  /** Raw-block tag name of a start tag still waiting for its `>`, or null. */
@@ -3083,7 +3083,7 @@ function splitStreamingBlocks(content) {
3083
3083
  const isListOrQuote = (line) => /^\s{0,3}(?:[-+*]\s|\d{1,9}[.)]\s|>)/.test(line);
3084
3084
  const firstNonBlank = (arr) => {
3085
3085
  for (const line of arr) {
3086
- if (!_chunkCNTBGJA7cjs.isBlankLine.call(void 0, line)) return line;
3086
+ if (!_chunkA34UNP5Vcjs.isBlankLine.call(void 0, line)) return line;
3087
3087
  }
3088
3088
  return void 0;
3089
3089
  };
@@ -3093,10 +3093,10 @@ function splitStreamingBlocks(content) {
3093
3093
  state.scanLine(line);
3094
3094
  if (state.htmlMark() !== markBefore || state.htmlLatched()) currentTouchedHtml = true;
3095
3095
  current.push(line);
3096
- const isBlank = _chunkCNTBGJA7cjs.isBlankLine.call(void 0, line);
3096
+ const isBlank = _chunkA34UNP5Vcjs.isBlankLine.call(void 0, line);
3097
3097
  if (!isBlank || state.fences.openChar() !== null || state.htmlBlocksCut()) continue;
3098
3098
  let j = i + 1;
3099
- while (j < lines.length && _chunkCNTBGJA7cjs.isBlankLine.call(void 0, lines[j])) j++;
3099
+ while (j < lines.length && _chunkA34UNP5Vcjs.isBlankLine.call(void 0, lines[j])) j++;
3100
3100
  if (j >= lines.length) continue;
3101
3101
  const next = lines[j];
3102
3102
  if (/^\s/.test(next)) continue;
@@ -3104,7 +3104,7 @@ function splitStreamingBlocks(content) {
3104
3104
  if (isListOrQuote(next) && unitOpener !== void 0 && isListOrQuote(unitOpener)) {
3105
3105
  continue;
3106
3106
  }
3107
- if (current.every(_chunkCNTBGJA7cjs.isBlankLine)) continue;
3107
+ if (current.every(_chunkA34UNP5Vcjs.isBlankLine)) continue;
3108
3108
  units.push(current);
3109
3109
  unitTouchedHtml.push(currentTouchedHtml);
3110
3110
  current = [];
@@ -4075,7 +4075,7 @@ function renderQuickActionIcon(icon) {
4075
4075
  if (!spec.name && !spec.url) return void 0;
4076
4076
  const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
4077
4077
  const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
4078
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
4078
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
4079
4079
  }
4080
4080
  function composeChipLabel(label, lozenge) {
4081
4081
  if (!lozenge) return label;
@@ -5069,12 +5069,7 @@ function ChatContextChipStrip({
5069
5069
  );
5070
5070
  }
5071
5071
 
5072
- // src/components/chat/entity-cards/block-card.tsx
5073
- function BlockCard(_props) {
5074
- return null;
5075
- }
5076
-
5077
- // src/components/chat/inline-app-link-chip.tsx
5072
+ // src/components/chat/inline-chip.tsx
5078
5073
 
5079
5074
  var INLINE_CHIP_CLASS = "max-w-[16rem] align-middle [&_svg]:size-4 [&_svg]:text-ods-text-secondary hover:border-ods-border";
5080
5075
  function InlineChip({
@@ -5091,17 +5086,15 @@ function InlineChip({
5091
5086
  icon,
5092
5087
  label,
5093
5088
  loading,
5094
- className: _chunk63A4GZMBcjs.cn.call(void 0, INLINE_CHIP_CLASS, className)
5089
+ className: _chunk63A4GZMBcjs.cn.call(void 0, INLINE_CHIP_CLASS, className),
5090
+ "data-testid": "inline-chip"
5095
5091
  }
5096
5092
  );
5097
5093
  }
5098
- function InlineAppLinkChip({
5099
- href,
5100
- children,
5101
- anchor: Anchor
5102
- }) {
5103
- const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineChip, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRD4RFX3Kcjs.BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" });
5104
- return Anchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor, { href, className: "no-underline", children: chip }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: "no-underline", children: chip });
5094
+
5095
+ // src/components/chat/entity-cards/block-card.tsx
5096
+ function BlockCard(_props) {
5097
+ return null;
5105
5098
  }
5106
5099
 
5107
5100
  // src/components/chat/remark-card-links.ts
@@ -5302,6 +5295,22 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
5302
5295
  // src/components/chat/chat-message-enhanced.tsx
5303
5296
 
5304
5297
 
5298
+ // src/components/chat/chat-markdown-link.tsx
5299
+
5300
+ function ChatMarkdownLink({
5301
+ anchor: Anchor,
5302
+ href,
5303
+ className,
5304
+ children,
5305
+ ...anchorProps
5306
+ }) {
5307
+ const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
5308
+ if (!runtime || _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, href).isNewTab) {
5309
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor, { href, className, ...anchorProps, children });
5310
+ }
5311
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Anchor, { href, ...anchorProps, className: "no-underline", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineChip, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRD4RFX3Kcjs.BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" }) });
5312
+ }
5313
+
5305
5314
  // src/components/chat/chat-message-layout.ts
5306
5315
  var CHAT_MESSAGE_ROW_PADDING_CLASS = {
5307
5316
  [_chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
@@ -5435,9 +5444,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5435
5444
  /* @__PURE__ */ new Map()
5436
5445
  );
5437
5446
  const refByKey = _react.useMemo.call(void 0, () => {
5438
- const byKey2 = /* @__PURE__ */ new Map();
5439
- for (const described of _nullishCoalesce(refs, () => ( []))) byKey2.set(`${described.type}:${described.id}`, described);
5440
- return byKey2;
5447
+ const byKey = /* @__PURE__ */ new Map();
5448
+ for (const described of _nullishCoalesce(refs, () => ( []))) byKey.set(`${described.type}:${described.id}`, described);
5449
+ return byKey;
5441
5450
  }, [refs]);
5442
5451
  const renderingPlan = _react.useMemo.call(void 0, () => {
5443
5452
  if (!hasMarkerSupport) return null;
@@ -5515,7 +5524,6 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5515
5524
  }, [renderingPlan]);
5516
5525
  const renderingPlanRef = _react.useRef.call(void 0, renderingPlan);
5517
5526
  renderingPlanRef.current = renderingPlan;
5518
- const chatRuntime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
5519
5527
  const cardComponentOverrides = _react.useMemo.call(void 0, () => {
5520
5528
  if (!hasMarkerSupport && !hasMentionSupport) return void 0;
5521
5529
  return {
@@ -5546,16 +5554,13 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5546
5554
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary opacity-60", children: cardId });
5547
5555
  }
5548
5556
  }
5549
- if (typeof href === "string" && !href.startsWith("#") && chatRuntime && !_chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, chatRuntime, href, null)) {
5550
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InlineAppLinkChip, { href, anchor: NavLinkAnchor, children });
5551
- }
5552
5557
  if (typeof href === "string" && NavLinkAnchor && !href.startsWith("#")) {
5553
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavLinkAnchor, { href, className: linkClassName, ...rest, children });
5558
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatMarkdownLink, { anchor: NavLinkAnchor, href, className: linkClassName, ...rest, children });
5554
5559
  }
5555
5560
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: linkClassName, ...rest, children });
5556
5561
  }
5557
5562
  };
5558
- }, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor, chatRuntime]);
5563
+ }, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor]);
5559
5564
  const renderSegmentBody = (segIndex, text2, isStreaming) => {
5560
5565
  const parts = _optionalChain([renderingPlan, 'optionalAccess', _99 => _99.partsBySegment, 'access', _100 => _100.get, 'call', _101 => _101(segIndex)]);
5561
5566
  if (!parts || parts.length === 0) {
@@ -6453,178 +6458,6 @@ var ChatMessageList = _react.forwardRef.call(void 0,
6453
6458
  );
6454
6459
  ChatMessageList.displayName = "ChatMessageList";
6455
6460
 
6456
- // src/platform-domains.ts
6457
- var PLATFORM_DOMAINS = [
6458
- { key: "marketing-hub", defaultUrl: "https://marketing-hub.flamingo.so", envVar: "NEXT_PUBLIC_MARKETING_HUB_URL" },
6459
- { key: "company-hub", defaultUrl: "https://company-hub.flamingo.so", envVar: "NEXT_PUBLIC_COMPANY_HUB_URL" },
6460
- { key: "product-hub", defaultUrl: "https://product-hub.flamingo.so", envVar: "NEXT_PUBLIC_PRODUCT_HUB_URL" },
6461
- { key: "revenue-hub", defaultUrl: "https://revenue-hub.flamingo.so", envVar: "NEXT_PUBLIC_REVENUE_HUB_URL" },
6462
- { key: "people-hub", defaultUrl: "https://people-hub.flamingo.so", envVar: "NEXT_PUBLIC_PEOPLE_HUB_URL" },
6463
- { key: "coding-hub", defaultUrl: "https://coding-hub.flamingo.so", envVar: "NEXT_PUBLIC_CODING_HUB_URL" },
6464
- { key: "openmsp", defaultUrl: "https://www.openmsp.ai", envVar: "NEXT_PUBLIC_OPENMSP_URL" },
6465
- // ORDERING INVARIANT (first-wins, load-bearing): `flamingo` MUST precede `universal`.
6466
- // Both resolve to www.flamingo.run; the reverse index is first-wins → flamingo claims the shared host,
6467
- // universal contributes no unique host. `flamingo.cx` is the company's older domain: it maps to flamingo.
6468
- // ⚠️ DO NOT REORDER — enforced by the module-load self-check at the bottom of this file.
6469
- {
6470
- key: "flamingo",
6471
- defaultUrl: "https://www.flamingo.run",
6472
- envVar: "NEXT_PUBLIC_FLAMINGO_URL",
6473
- aliasHostnames: ["flamingo.cx", "www.flamingo.cx"]
6474
- },
6475
- { key: "tmcg", defaultUrl: "https://www.tmcg.miami", envVar: "NEXT_PUBLIC_TMCG_URL" },
6476
- { key: "mlg", defaultUrl: "https://www.mlg.soccer", envVar: "NEXT_PUBLIC_MLG_URL" },
6477
- {
6478
- key: "openframe",
6479
- defaultUrl: "https://openframe.ai",
6480
- envVar: "NEXT_PUBLIC_OPENFRAME_URL",
6481
- aliasHostnames: ["openframe.ai", "www.openframe.ai", "hub.openframe.ai"]
6482
- },
6483
- {
6484
- key: "openframe-dashboard",
6485
- defaultUrl: "https://openframe.ai",
6486
- envVar: "NEXT_PUBLIC_OPENFRAME_DASHBOARD_URL",
6487
- pseudo: true
6488
- },
6489
- { key: "universal", defaultUrl: "https://www.flamingo.run", envVar: "NEXT_PUBLIC_FLAMINGO_URL" }
6490
- ];
6491
- var ENV_OVERRIDES = {
6492
- NEXT_PUBLIC_MARKETING_HUB_URL: process.env.NEXT_PUBLIC_MARKETING_HUB_URL,
6493
- NEXT_PUBLIC_COMPANY_HUB_URL: process.env.NEXT_PUBLIC_COMPANY_HUB_URL,
6494
- NEXT_PUBLIC_PRODUCT_HUB_URL: process.env.NEXT_PUBLIC_PRODUCT_HUB_URL,
6495
- NEXT_PUBLIC_REVENUE_HUB_URL: process.env.NEXT_PUBLIC_REVENUE_HUB_URL,
6496
- NEXT_PUBLIC_PEOPLE_HUB_URL: process.env.NEXT_PUBLIC_PEOPLE_HUB_URL,
6497
- NEXT_PUBLIC_CODING_HUB_URL: process.env.NEXT_PUBLIC_CODING_HUB_URL,
6498
- NEXT_PUBLIC_OPENMSP_URL: process.env.NEXT_PUBLIC_OPENMSP_URL,
6499
- NEXT_PUBLIC_FLAMINGO_URL: process.env.NEXT_PUBLIC_FLAMINGO_URL,
6500
- NEXT_PUBLIC_TMCG_URL: process.env.NEXT_PUBLIC_TMCG_URL,
6501
- NEXT_PUBLIC_MLG_URL: process.env.NEXT_PUBLIC_MLG_URL,
6502
- NEXT_PUBLIC_OPENFRAME_URL: process.env.NEXT_PUBLIC_OPENFRAME_URL,
6503
- NEXT_PUBLIC_OPENFRAME_DASHBOARD_URL: process.env.NEXT_PUBLIC_OPENFRAME_DASHBOARD_URL
6504
- };
6505
- function byKey(key) {
6506
- return PLATFORM_DOMAINS.find((e) => e.key === key);
6507
- }
6508
- function envOverrideFor(key) {
6509
- const envVar = _optionalChain([byKey, 'call', _125 => _125(key), 'optionalAccess', _126 => _126.envVar]);
6510
- if (!envVar) return null;
6511
- return ENV_OVERRIDES[envVar] || null;
6512
- }
6513
- function ensureScheme(url) {
6514
- const trimmed = url.trim();
6515
- if (/^[a-z][a-z0-9+.-]*:\/\//i.test(trimmed)) return trimmed;
6516
- return `https://${trimmed.replace(/^\/+/, "")}`;
6517
- }
6518
- function getPlatformProductionUrl(platform) {
6519
- const resolved = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(envOverrideFor(platform), () => ( _optionalChain([byKey, 'call', _127 => _127(platform), 'optionalAccess', _128 => _128.defaultUrl]))), () => ( envOverrideFor("flamingo"))), () => ( "https://www.flamingo.run"));
6520
- return ensureScheme(resolved);
6521
- }
6522
- function getPlatformUrl(platform, options = {}) {
6523
- const url = options.environment !== "production" && process.env.NODE_ENV !== "production" ? process.env.NEXT_PUBLIC_DEV_URL || "http://localhost:3000" : getPlatformProductionUrl(platform);
6524
- return url.replace(/\/+$/, "");
6525
- }
6526
- function getDeploymentUrl(options) {
6527
- if (typeof window !== "undefined") return window.location.origin;
6528
- const configured = _optionalChain([options, 'access', _129 => _129.configuredUrl, 'optionalAccess', _130 => _130.trim, 'call', _131 => _131()]);
6529
- if (configured) return ensureScheme(configured).replace(/\/+$/, "");
6530
- if (process.env.VERCEL_ENV === "preview" && process.env.VERCEL_URL) {
6531
- return ensureScheme(process.env.VERCEL_URL).replace(/\/+$/, "");
6532
- }
6533
- if (process.env.VERCEL_ENV === "production" || process.env.NODE_ENV === "production") {
6534
- return getPlatformUrl(options.platform, { environment: "production" });
6535
- }
6536
- return (process.env.NEXT_PUBLIC_DEV_URL || `http://localhost:${_nullishCoalesce(process.env.PORT, () => ( 3e3))}`).replace(/\/+$/, "");
6537
- }
6538
- var LOCAL_HOSTNAME = /^(localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\])$/i;
6539
- function isLocalUrl(url) {
6540
- try {
6541
- return LOCAL_HOSTNAME.test(new URL(url).hostname);
6542
- } catch (e3) {
6543
- return false;
6544
- }
6545
- }
6546
- function getRequestOrigin(headers, options) {
6547
- const host = headers.get("host");
6548
- if (!host) return getDeploymentUrl(options);
6549
- const local = LOCAL_HOSTNAME.test(host.replace(/:\d+$/, ""));
6550
- const proto = _optionalChain([headers, 'access', _132 => _132.get, 'call', _133 => _133("x-forwarded-proto"), 'optionalAccess', _134 => _134.split, 'call', _135 => _135(","), 'access', _136 => _136[0], 'access', _137 => _137.trim, 'call', _138 => _138()]) || (local ? "http" : "https");
6551
- return `${proto}://${host}`;
6552
- }
6553
- function resolveRedirectTarget(origin, target) {
6554
- const url = new URL(target, origin);
6555
- if (!/^https?:\/\//i.test(target) && url.origin !== new URL(origin).origin) {
6556
- throw new Error(`resolveRedirectTarget: "${target}" is not a same-origin path`);
6557
- }
6558
- return url;
6559
- }
6560
- function hostOf(value) {
6561
- if (!value) return null;
6562
- try {
6563
- return new URL(value).hostname.toLowerCase();
6564
- } catch (e4) {
6565
- return null;
6566
- }
6567
- }
6568
- function expandWwwApex(host) {
6569
- if (host.startsWith("www.")) return [host, host.slice(4)];
6570
- if (host.split(".").length === 2) return [host, `www.${host}`];
6571
- return [host];
6572
- }
6573
- function toRegistrableBaseDomain(host) {
6574
- const parts = host.split(".");
6575
- if (parts.length >= 2) return parts.slice(-2).join(".");
6576
- return void 0;
6577
- }
6578
- function aliasHostsOf(key) {
6579
- return _nullishCoalesce(_optionalChain([byKey, 'call', _139 => _139(key), 'optionalAccess', _140 => _140.aliasHostnames]), () => ( []));
6580
- }
6581
- function hostsForEntry(entry, opts) {
6582
- const resolved = hostOf(getPlatformProductionUrl(entry.key));
6583
- const hosts = resolved ? expandWwwApex(resolved) : [];
6584
- if (opts.includeAliases) hosts.push(...aliasHostsOf(entry.key));
6585
- return hosts;
6586
- }
6587
- function getPlatformByHostname(hostname) {
6588
- const host = hostname.toLowerCase();
6589
- for (const entry of PLATFORM_DOMAINS) {
6590
- if (entry.pseudo) continue;
6591
- if (hostsForEntry(entry, { includeAliases: true }).includes(host)) return entry.key;
6592
- }
6593
- return null;
6594
- }
6595
- function isPreviewHost(hostname) {
6596
- return hostname.endsWith(".vercel.app");
6597
- }
6598
- function getAllPlatformBaseDomains() {
6599
- if (typeof window === "undefined") return [];
6600
- const hostname = window.location.hostname;
6601
- if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("127.")) {
6602
- return [];
6603
- }
6604
- const previewEnv = process.env.VERCEL_ENV === "preview" || process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" || isPreviewHost(hostname);
6605
- if (previewEnv) {
6606
- return [".vercel.app", "vercel.app"];
6607
- }
6608
- const baseDomains = /* @__PURE__ */ new Set();
6609
- for (const entry of PLATFORM_DOMAINS) {
6610
- if (entry.pseudo) continue;
6611
- const host = hostOf(getPlatformProductionUrl(entry.key));
6612
- if (!host) continue;
6613
- const base = toRegistrableBaseDomain(host);
6614
- if (base) {
6615
- baseDomains.add(`.${base}`);
6616
- baseDomains.add(base);
6617
- }
6618
- }
6619
- return Array.from(baseDomains);
6620
- }
6621
- var _orderIdx = (k) => PLATFORM_DOMAINS.findIndex((e) => e.key === k);
6622
- if (_orderIdx("flamingo") > _orderIdx("universal") || getPlatformByHostname("flamingo.cx") !== "flamingo" || getPlatformByHostname("hub.openframe.ai") !== "openframe") {
6623
- console.error(
6624
- "[platform-domains] \u26A0\uFE0F PLATFORM_DOMAINS ordering invariant violated \u2014 `flamingo` must precede `universal`, and the openframe and flamingo.cx aliases must be intact. Do not reorder the table."
6625
- );
6626
- }
6627
-
6628
6461
  // src/utils/design-doc-readiness.ts
6629
6462
  var DESIGN_DOC_READINESS = ["ready", "not_ready"];
6630
6463
  var DESIGN_DOC_READINESS_DISPLAY = {
@@ -6872,13 +6705,13 @@ function recordCountLabel(count) {
6872
6705
  }
6873
6706
  function buildGroupedSource(spec) {
6874
6707
  const first = spec.rows[0];
6875
- const externalUrl = _nullishCoalesce(spec.externalUrl, () => ( _optionalChain([first, 'optionalAccess', _141 => _141.externalUrl])));
6876
- const targetPlatform = spec.targetPlatform !== void 0 ? spec.targetPlatform : _optionalChain([first, 'optionalAccess', _142 => _142.targetPlatform]);
6708
+ const externalUrl = _nullishCoalesce(spec.externalUrl, () => ( _optionalChain([first, 'optionalAccess', _125 => _125.externalUrl])));
6709
+ const targetPlatform = spec.targetPlatform !== void 0 ? spec.targetPlatform : _optionalChain([first, 'optionalAccess', _126 => _126.targetPlatform]);
6877
6710
  return {
6878
6711
  index: spec.index,
6879
6712
  name: `${getSourceLabel(spec.sourceRepo)} ${recordCountLabel(spec.rows.length)}`,
6880
- path: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _143 => _143.path]), () => ( "")),
6881
- documentType: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _144 => _144.documentType]), () => ( "")),
6713
+ path: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _127 => _127.path]), () => ( "")),
6714
+ documentType: _nullishCoalesce(_optionalChain([first, 'optionalAccess', _128 => _128.documentType]), () => ( "")),
6882
6715
  ...externalUrl ? { externalUrl } : {},
6883
6716
  targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
6884
6717
  sourceRepo: spec.sourceRepo,
@@ -6946,7 +6779,7 @@ function groupSourcesByTable(sources2) {
6946
6779
  index: source.index,
6947
6780
  sourceRepo: source.sourceRepo,
6948
6781
  rows: uniqueRows(members.flatMap(rowsOf)),
6949
- ..._optionalChain([serverChip, 'optionalAccess', _145 => _145.externalUrl]) ? { externalUrl: serverChip.externalUrl } : {},
6782
+ ..._optionalChain([serverChip, 'optionalAccess', _129 => _129.externalUrl]) ? { externalUrl: serverChip.externalUrl } : {},
6950
6783
  ...serverChip && serverChip.targetPlatform !== void 0 ? { targetPlatform: serverChip.targetPlatform } : {}
6951
6784
  })
6952
6785
  );
@@ -6994,7 +6827,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
6994
6827
 
6995
6828
  [Attached: ${safeName}](${url})`;
6996
6829
  }
6997
- var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkGAR2IIU6cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
6830
+ var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkIM366HS6cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
6998
6831
  var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
6999
6832
  `^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
7000
6833
  "gm"
@@ -7018,7 +6851,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
7018
6851
  function buildAutoContinuationDirective(toolName, opts = {}) {
7019
6852
  const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
7020
6853
  const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
7021
- const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _146 => _146.status, 'optionalAccess', _147 => _147.toUpperCase, 'call', _148 => _148()]) === "CLOSED";
6854
+ const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _130 => _130.status, 'optionalAccess', _131 => _131.toUpperCase, 'call', _132 => _132()]) === "CLOSED";
7022
6855
  if (toolName === "create_ticket") {
7023
6856
  return `${AUTO_CONTINUATION_DIRECTIVE_PREFIX} The user just approved create_ticket${ticketRef}. Per ticket-protocol \xA71a, ask 2-4 SHORT, issue-specific diagnostic follow-up questions tailored to the symptom they reported in their original message. When they answer, propose an update_ticket with content_addendum carrying a clean Q&A digest. Do NOT call any tool in this turn \u2014 just write the questions as prose.`;
7024
6857
  }
@@ -7080,7 +6913,7 @@ function formatSingularLookupInvocation(cmdId, value) {
7080
6913
  return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
7081
6914
  }
7082
6915
  function extractEntityIdFilter(override, expectedTableId) {
7083
- const f = _optionalChain([override, 'optionalAccess', _149 => _149.entityIdFilter]);
6916
+ const f = _optionalChain([override, 'optionalAccess', _133 => _133.entityIdFilter]);
7084
6917
  if (!f) return null;
7085
6918
  const tableId = typeof f.tableId === "string" ? f.tableId : "";
7086
6919
  const id = typeof f.id === "string" ? f.id : "";
@@ -7244,7 +7077,7 @@ function MarqueeWallFades({
7244
7077
  }) });
7245
7078
  }
7246
7079
  function CloneCopy({ className, style, children }) {
7247
- const ref = _chunkCNTBGJA7cjs.useSuppressCloneFocus.call(void 0, true);
7080
+ const ref = _chunkA34UNP5Vcjs.useSuppressCloneFocus.call(void 0, true);
7248
7081
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, "aria-hidden": true, "data-marquee-copy": "clone", className, style, children });
7249
7082
  }
7250
7083
  function MarqueeWall({
@@ -7281,7 +7114,7 @@ function MarqueeWall({
7281
7114
  if (!container || !copy) return;
7282
7115
  const size = axis === "y" ? copy.offsetHeight : copy.offsetWidth;
7283
7116
  copySizeRef.current = size;
7284
- const clone = _optionalChain([trackRef, 'access', _150 => _150.current, 'optionalAccess', _151 => _151.querySelector, 'call', _152 => _152('[data-marquee-copy="clone"]')]);
7117
+ const clone = _optionalChain([trackRef, 'access', _134 => _134.current, 'optionalAccess', _135 => _135.querySelector, 'call', _136 => _136('[data-marquee-copy="clone"]')]);
7285
7118
  wrapSizeRef.current = clone ? axis === "y" ? clone.offsetTop - copy.offsetTop : clone.offsetLeft - copy.offsetLeft : size + (typeof copyGap === "number" ? copyGap : 0);
7286
7119
  const avail = axis === "y" ? container.clientHeight : container.clientWidth;
7287
7120
  setOverflows(size > avail + 1);
@@ -7298,7 +7131,7 @@ function MarqueeWall({
7298
7131
  ro.observe(copy);
7299
7132
  return () => ro.disconnect();
7300
7133
  }, [measure, marqueeMounted]);
7301
- const { ref: observe, inView: nearViewport } = _chunkCNTBGJA7cjs.useInView.call(void 0, {
7134
+ const { ref: observe, inView: nearViewport } = _chunkA34UNP5Vcjs.useInView.call(void 0, {
7302
7135
  rootMargin: _chunkNTPX5GXIcjs.NEAR_VIEWPORT_ROOT_MARGIN,
7303
7136
  initial: true
7304
7137
  });
@@ -7306,7 +7139,7 @@ function MarqueeWall({
7306
7139
  observe(containerRef.current);
7307
7140
  return () => observe(null);
7308
7141
  }, [observe]);
7309
- const autoplay = _chunkCNTBGJA7cjs.useAutoplay.call(void 0, nearViewport);
7142
+ const autoplay = _chunkA34UNP5Vcjs.useAutoplay.call(void 0, nearViewport);
7310
7143
  const pointerInsideRef = _react.useRef.call(void 0, false);
7311
7144
  const clearPointerInside = _react.useCallback.call(void 0, () => {
7312
7145
  pointerInsideRef.current = false;
@@ -7319,7 +7152,7 @@ function MarqueeWall({
7319
7152
  if (e.pointerType === "touch") return;
7320
7153
  pointerInsideRef.current = false;
7321
7154
  }, []);
7322
- _chunkCNTBGJA7cjs.useResetOnPageHidden.call(void 0, clearPointerInside);
7155
+ _chunkA34UNP5Vcjs.useResetOnPageHidden.call(void 0, clearPointerInside);
7323
7156
  const draggingRef = _react.useRef.call(void 0, false);
7324
7157
  const dragSuppressUntilRef = _react.useRef.call(void 0, 0);
7325
7158
  const applyTransform = _react.useCallback.call(void 0,
@@ -7372,7 +7205,7 @@ function MarqueeWall({
7372
7205
  if (!sync) return void 0;
7373
7206
  return sync.register(member);
7374
7207
  }, [sync, member]);
7375
- const { posRef, wrap } = _chunkCNTBGJA7cjs.useMarqueeEngine.call(void 0, {
7208
+ const { posRef, wrap } = _chunkA34UNP5Vcjs.useMarqueeEngine.call(void 0, {
7376
7209
  active: marqueeActive && autoplay.playing && isDriver,
7377
7210
  speed,
7378
7211
  isPaused: (now) => pauseOnHover && pointerInsideRef.current || draggingRef.current || now < dragSuppressUntilRef.current,
@@ -7412,8 +7245,8 @@ function MarqueeWall({
7412
7245
  if (Math.abs(delta) > 3 && !dragMovedRef.current) {
7413
7246
  dragMovedRef.current = true;
7414
7247
  try {
7415
- _optionalChain([containerRef, 'access', _153 => _153.current, 'optionalAccess', _154 => _154.setPointerCapture, 'call', _155 => _155(e.pointerId)]);
7416
- } catch (e5) {
7248
+ _optionalChain([containerRef, 'access', _137 => _137.current, 'optionalAccess', _138 => _138.setPointerCapture, 'call', _139 => _139(e.pointerId)]);
7249
+ } catch (e3) {
7417
7250
  }
7418
7251
  }
7419
7252
  posRef.current = wrap(dragStartRef.current.pos + (reverse ? delta : -delta));
@@ -7429,8 +7262,8 @@ function MarqueeWall({
7429
7262
  dragSuppressUntilRef.current = performance.now() + DRAG_RESUME_MS;
7430
7263
  if (dragMovedRef.current) {
7431
7264
  try {
7432
- _optionalChain([containerRef, 'access', _156 => _156.current, 'optionalAccess', _157 => _157.releasePointerCapture, 'call', _158 => _158(e.pointerId)]);
7433
- } catch (e6) {
7265
+ _optionalChain([containerRef, 'access', _140 => _140.current, 'optionalAccess', _141 => _141.releasePointerCapture, 'call', _142 => _142(e.pointerId)]);
7266
+ } catch (e4) {
7434
7267
  }
7435
7268
  }
7436
7269
  }, []);
@@ -7787,11 +7620,11 @@ function MingoChatHistoryRow({
7787
7620
  ...props
7788
7621
  }) {
7789
7622
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp || !dialog;
7790
- const title = _optionalChain([dialog, 'optionalAccess', _159 => _159.title]) || "Untitled Chat";
7791
- const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _160 => _160.unreadMessagesCount]), () => ( 0));
7623
+ const title = _optionalChain([dialog, 'optionalAccess', _143 => _143.title]) || "Untitled Chat";
7624
+ const unread = _nullishCoalesce(_optionalChain([dialog, 'optionalAccess', _144 => _144.unreadMessagesCount]), () => ( 0));
7792
7625
  const hasMenu = !loading && (!!onRequestRename || !!onRequestArchive || !!onRequestCopyLink || !!onRequestCompact);
7793
- const owner = _optionalChain([dialog, 'optionalAccess', _161 => _161.owner]);
7794
- const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _162 => _162.name]) || _optionalChain([owner, 'optionalAccess', _163 => _163.avatarUrl]));
7626
+ const owner = _optionalChain([dialog, 'optionalAccess', _145 => _145.owner]);
7627
+ const hasAvatar = !loading && !!(_optionalChain([owner, 'optionalAccess', _146 => _146.name]) || _optionalChain([owner, 'optionalAccess', _147 => _147.avatarUrl]));
7795
7628
  const [menuOpen, setMenuOpen] = _react.useState.call(void 0, false);
7796
7629
  const menuItems = dialog ? chatDialogMenuItems({
7797
7630
  onCopyLink: onRequestCopyLink && (() => onRequestCopyLink(dialog)),
@@ -7799,7 +7632,7 @@ function MingoChatHistoryRow({
7799
7632
  onCompact: onRequestCompact && (() => onRequestCompact(dialog)),
7800
7633
  onArchive: onRequestArchive && (() => onRequestArchive(dialog))
7801
7634
  }) : [];
7802
- const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _164 => _164(dialog.id)]);
7635
+ const select = () => dialog && _optionalChain([onSelect, 'optionalCall', _148 => _148(dialog.id)]);
7803
7636
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7804
7637
  "div",
7805
7638
  {
@@ -7897,7 +7730,7 @@ function MingoChatHistoryRow({
7897
7730
  "span",
7898
7731
  {
7899
7732
  onClick: select,
7900
- title: _optionalChain([owner, 'optionalAccess', _165 => _165.name]) || void 0,
7733
+ title: _optionalChain([owner, 'optionalAccess', _149 => _149.name]) || void 0,
7901
7734
  className: _chunk63A4GZMBcjs.cn.call(void 0,
7902
7735
  "absolute inset-0 flex cursor-pointer items-center justify-center transition-opacity",
7903
7736
  hasMenu && (menuOpen ? "pointer-events-none opacity-0" : "md:group-hover/row:pointer-events-none md:group-hover/row:opacity-0 md:peer-[:focus-within]/menu:pointer-events-none md:peer-[:focus-within]/menu:opacity-0")
@@ -7907,9 +7740,9 @@ function MingoChatHistoryRow({
7907
7740
  {
7908
7741
  variant: "round",
7909
7742
  sizePx: 24,
7910
- src: _optionalChain([owner, 'optionalAccess', _166 => _166.avatarUrl]) || void 0,
7911
- alt: _optionalChain([owner, 'optionalAccess', _167 => _167.name]) || void 0,
7912
- fallback: _optionalChain([owner, 'optionalAccess', _168 => _168.name]) || void 0,
7743
+ src: _optionalChain([owner, 'optionalAccess', _150 => _150.avatarUrl]) || void 0,
7744
+ alt: _optionalChain([owner, 'optionalAccess', _151 => _151.name]) || void 0,
7745
+ fallback: _optionalChain([owner, 'optionalAccess', _152 => _152.name]) || void 0,
7913
7746
  initialsClassName: "text-[10px] text-ods-text-secondary"
7914
7747
  }
7915
7748
  )
@@ -7958,7 +7791,7 @@ function MingoChatHistory({
7958
7791
  }) {
7959
7792
  const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading;
7960
7793
  const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
7961
- const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _169 => _169.trim, 'call', _170 => _170()]);
7794
+ const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _153 => _153.trim, 'call', _154 => _154()]);
7962
7795
  const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
7963
7796
  const sentinelRef = _react.useRef.call(void 0, null);
7964
7797
  const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
@@ -7975,7 +7808,7 @@ function MingoChatHistory({
7975
7808
  const io = new IntersectionObserver(
7976
7809
  ([entry]) => {
7977
7810
  if (entry.isIntersecting && !isLoadingMoreRef.current) {
7978
- _optionalChain([onLoadMoreRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172()]);
7811
+ _optionalChain([onLoadMoreRef, 'access', _155 => _155.current, 'optionalCall', _156 => _156()]);
7979
7812
  }
7980
7813
  },
7981
7814
  { root, rootMargin: "120px", threshold: 0.1 }
@@ -8068,7 +7901,7 @@ function MingoWelcome({
8068
7901
  try {
8069
7902
  const store = promoStorage === "session" ? window.sessionStorage : window.localStorage;
8070
7903
  return store.getItem(promoStorageKey) === "1";
8071
- } catch (e7) {
7904
+ } catch (e5) {
8072
7905
  return false;
8073
7906
  }
8074
7907
  }, [hydrated, resolvedPromo, promoStorage, promoStorageKey]);
@@ -8078,7 +7911,7 @@ function MingoWelcome({
8078
7911
  try {
8079
7912
  const store = promoStorage === "session" ? window.sessionStorage : window.localStorage;
8080
7913
  store.setItem(promoStorageKey, "1");
8081
- } catch (e8) {
7914
+ } catch (e6) {
8082
7915
  }
8083
7916
  }, [promoStorage, promoStorageKey]);
8084
7917
  const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkZRDVFADQcjs.useScrollFade.call(void 0, );
@@ -8164,8 +7997,8 @@ function MingoWelcome({
8164
7997
  icon: action.icon,
8165
7998
  variant: action.variant,
8166
7999
  onSelect: action.onClick,
8167
- onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _173 => _173(action)]),
8168
- onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _174 => _174()])
8000
+ onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _157 => _157(action)]),
8001
+ onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _158 => _158()])
8169
8002
  })),
8170
8003
  agentSlug,
8171
8004
  rows: 4,
@@ -8219,9 +8052,9 @@ function GuideWelcome({
8219
8052
  props: action.iconProps,
8220
8053
  accent: _nullishCoalesce(_nullishCoalesce(action.accent, () => ( accentFromIdentityIcon(icon))), () => ( "cyan"))
8221
8054
  },
8222
- onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _175 => _175(action)]),
8223
- onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _176 => _176(action)]),
8224
- onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _177 => _177()])
8055
+ onSelect: () => _optionalChain([onQuickAction, 'optionalCall', _159 => _159(action)]),
8056
+ onHoverStart: () => _optionalChain([onQuickActionHover, 'optionalCall', _160 => _160(action)]),
8057
+ onHoverEnd: () => _optionalChain([onQuickActionHoverEnd, 'optionalCall', _161 => _161()])
8225
8058
  })),
8226
8059
  [quickActions, icon, onQuickAction, onQuickActionHover, onQuickActionHoverEnd]
8227
8060
  );
@@ -8238,7 +8071,7 @@ function GuideWelcome({
8238
8071
  icon && (icon.name || icon.url) ? (
8239
8072
  // Agent-mode identity glyph (chat-config Identity tab). Sized to
8240
8073
  // match the default Mingo mark (48px).
8241
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
8074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
8242
8075
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
8243
8076
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
8244
8077
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
@@ -8320,7 +8153,7 @@ function MingoArchiveList({
8320
8153
  if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
8321
8154
  const observer = new IntersectionObserver(
8322
8155
  ([entry]) => {
8323
- if (_optionalChain([entry, 'optionalAccess', _178 => _178.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180()]);
8156
+ if (_optionalChain([entry, 'optionalAccess', _162 => _162.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _163 => _163.current, 'optionalCall', _164 => _164()]);
8324
8157
  },
8325
8158
  { rootMargin: "120px", threshold: 0.1 }
8326
8159
  );
@@ -8340,7 +8173,7 @@ function MingoArchiveList({
8340
8173
  {
8341
8174
  "data-loading-item": true,
8342
8175
  title: dialog.title || "Untitled Chat",
8343
- onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _181 => _181(dialog.id)]),
8176
+ onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _165 => _165(dialog.id)]),
8344
8177
  trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
8345
8178
  dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkOBQ5WUNGcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
8346
8179
  dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8445,7 +8278,7 @@ function ChatHeaderSearchField({
8445
8278
  className
8446
8279
  }) {
8447
8280
  const [value, setValue] = _react.useState.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
8448
- const debounced = _chunkCNTBGJA7cjs.useDebounce.call(void 0, value, 300);
8281
+ const debounced = _chunkA34UNP5Vcjs.useDebounce.call(void 0, value, 300);
8449
8282
  const lastEmitted = _react.useRef.call(void 0, _nullishCoalesce(initialValue, () => ( "")));
8450
8283
  const [exiting, setExiting] = _react.useState.call(void 0, false);
8451
8284
  const collapsedRef = _react.useRef.call(void 0, false);
@@ -8458,7 +8291,7 @@ function ChatHeaderSearchField({
8458
8291
  const finishCollapse = _react.useCallback.call(void 0, () => {
8459
8292
  if (collapsedRef.current) return;
8460
8293
  collapsedRef.current = true;
8461
- _optionalChain([onCollapse, 'optionalCall', _182 => _182()]);
8294
+ _optionalChain([onCollapse, 'optionalCall', _166 => _166()]);
8462
8295
  }, [onCollapse]);
8463
8296
  const beginCollapse = _react.useCallback.call(void 0, () => {
8464
8297
  setExiting(true);
@@ -8540,7 +8373,7 @@ var STATUS_GLYPHS = {
8540
8373
  approval: { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { className: "text-ods-accent" }), label: "Waiting for approval" }
8541
8374
  };
8542
8375
  function statusFor(dialog, statusOf) {
8543
- return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _183 => _183(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
8376
+ return _nullishCoalesce(_optionalChain([statusOf, 'optionalCall', _167 => _167(dialog)]), () => ( ((_nullishCoalesce(dialog.unreadMessagesCount, () => ( 0))) > 0 ? "unread" : void 0)));
8544
8377
  }
8545
8378
  function MingoChatRail({
8546
8379
  dialogs,
@@ -8571,8 +8404,8 @@ function MingoChatRail({
8571
8404
  className
8572
8405
  }) {
8573
8406
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
8574
- const [searchOpen, setSearchOpen] = _react.useState.call(void 0, !!_optionalChain([searchQuery, 'optionalAccess', _184 => _184.trim, 'call', _185 => _185()]));
8575
- const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _186 => _186.trim, 'call', _187 => _187()]);
8407
+ const [searchOpen, setSearchOpen] = _react.useState.call(void 0, !!_optionalChain([searchQuery, 'optionalAccess', _168 => _168.trim, 'call', _169 => _169()]));
8408
+ const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _170 => _170.trim, 'call', _171 => _171()]);
8576
8409
  const items = [];
8577
8410
  if (onNewChat) items.push({ id: "new", label: "Start New Chat", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIZPN2P7Ucjs.ChatPlusIcon, {}), onClick: onNewChat });
8578
8411
  if (onOpenArchive) {
@@ -8629,7 +8462,7 @@ function MingoChatRail({
8629
8462
  if (!sentinel || !hasMore || typeof IntersectionObserver === "undefined") return void 0;
8630
8463
  const observer = new IntersectionObserver(
8631
8464
  ([entry]) => {
8632
- if (_optionalChain([entry, 'optionalAccess', _188 => _188.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190()]);
8465
+ if (_optionalChain([entry, 'optionalAccess', _172 => _172.isIntersecting]) && !isLoadingMoreRef.current) _optionalChain([onLoadMoreRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174()]);
8633
8466
  },
8634
8467
  { rootMargin: "120px", threshold: 0.1 }
8635
8468
  );
@@ -8744,7 +8577,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
8744
8577
  {
8745
8578
  active,
8746
8579
  title,
8747
- onClick: () => _optionalChain([onSelect, 'optionalCall', _191 => _191(dialog.id)]),
8580
+ onClick: () => _optionalChain([onSelect, 'optionalCall', _175 => _175(dialog.id)]),
8748
8581
  className: _chunk63A4GZMBcjs.cn.call(void 0, hasMenu && "pr-10"),
8749
8582
  trailing: glyph ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8750
8583
  "span",
@@ -8875,7 +8708,7 @@ function MingoHistoryRail({
8875
8708
  className
8876
8709
  }) {
8877
8710
  const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoadingHistory;
8878
- const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _192 => _192.trim, 'call', _193 => _193()]);
8711
+ const hasSearch = !!_optionalChain([searchQuery, 'optionalAccess', _176 => _176.trim, 'call', _177 => _177()]);
8879
8712
  const hasList = dialogs.length > 0 || hasSearch;
8880
8713
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
8881
8714
  "div",
@@ -9023,7 +8856,7 @@ function ChatDialogModals({
9023
8856
  RenameChatModal,
9024
8857
  {
9025
8858
  isOpen: renameTarget != null,
9026
- initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _194 => _194.title]), () => ( "")),
8859
+ initialName: _nullishCoalesce(_optionalChain([renameTarget, 'optionalAccess', _178 => _178.title]), () => ( "")),
9027
8860
  onClose: () => setRenameTarget(null),
9028
8861
  onSave: onConfirmRename
9029
8862
  }
@@ -9247,7 +9080,7 @@ function ChatAttachmentAddButton({
9247
9080
  const canAddMore = slotsAvailable > 0 && !disabled;
9248
9081
  const handlePick = () => {
9249
9082
  if (!canAddMore) return;
9250
- _optionalChain([fileInputRef, 'access', _195 => _195.current, 'optionalAccess', _196 => _196.click, 'call', _197 => _197()]);
9083
+ _optionalChain([fileInputRef, 'access', _179 => _179.current, 'optionalAccess', _180 => _180.click, 'call', _181 => _181()]);
9251
9084
  };
9252
9085
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
9253
9086
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9412,7 +9245,7 @@ function ChatContextMemoryBar({
9412
9245
  _react.useEffect.call(void 0, () => {
9413
9246
  if (!open) return void 0;
9414
9247
  const onOutside = (e) => {
9415
- if (_optionalChain([rootRef, 'access', _198 => _198.current, 'optionalAccess', _199 => _199.contains, 'call', _200 => _200(e.target)])) return;
9248
+ if (_optionalChain([rootRef, 'access', _182 => _182.current, 'optionalAccess', _183 => _183.contains, 'call', _184 => _184(e.target)])) return;
9416
9249
  setOpen(false);
9417
9250
  };
9418
9251
  document.addEventListener("mousedown", onOutside, true);
@@ -9721,7 +9554,7 @@ function ChatComposer({
9721
9554
  const locked = lock != null;
9722
9555
  const selected = _nullishCoalesce(selectedContextItems, () => ( []));
9723
9556
  const memory = _nullishCoalesce(contextMemoryItems, () => ( []));
9724
- const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _201 => _201.entityTypes]);
9557
+ const entityTypes = _optionalChain([contextPicker, 'optionalAccess', _185 => _185.entityTypes]);
9725
9558
  const iconByType = _react.useMemo.call(void 0, () => {
9726
9559
  const map = /* @__PURE__ */ new Map();
9727
9560
  for (const t of _nullishCoalesce(entityTypes, () => ( []))) map.set(t.type, t.icon);
@@ -9737,7 +9570,7 @@ function ChatComposer({
9737
9570
  sending,
9738
9571
  placeholder,
9739
9572
  disabled: locked,
9740
- disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _202 => _202.placeholder]),
9573
+ disabledPlaceholder: _optionalChain([lock, 'optionalAccess', _186 => _186.placeholder]),
9741
9574
  previewText,
9742
9575
  fullWidth: true,
9743
9576
  className: "px-0",
@@ -9750,7 +9583,7 @@ function ChatComposer({
9750
9583
  startIcon: contextEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9751
9584
  ChatComposerPlusMenu,
9752
9585
  {
9753
- onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _203 => _203()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _204 => _204()]),
9586
+ onToggle: () => contextPickerOpen ? _optionalChain([onCloseContextPicker, 'optionalCall', _187 => _187()]) : _optionalChain([onOpenContextPicker, 'optionalCall', _188 => _188()]),
9754
9587
  open: contextPickerOpen,
9755
9588
  disabled: attachmentsDisabled || locked,
9756
9589
  dropdown: contextPicker ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -9759,8 +9592,8 @@ function ChatComposer({
9759
9592
  open: contextPickerOpen,
9760
9593
  config: contextPicker,
9761
9594
  selectedItems: selected,
9762
- onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _205 => _205(item)]),
9763
- onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _206 => _206()]),
9595
+ onToggleItem: (item) => _optionalChain([onToggleContextItem, 'optionalCall', _189 => _189(item)]),
9596
+ onClose: () => _optionalChain([onCloseContextPicker, 'optionalCall', _190 => _190()]),
9764
9597
  mentionQuery
9765
9598
  }
9766
9599
  ) : void 0
@@ -9898,101 +9731,57 @@ function ChatArchivePage(props) {
9898
9731
  ] });
9899
9732
  }
9900
9733
 
9901
- // src/components/chat/utils/execute-navigation.ts
9902
- function isForeignOriginHref(href) {
9903
- return /^https?:\/\//i.test(href) && !_chunkY6MJMPHVcjs.isSameOriginAbsoluteHref.call(void 0, href);
9904
- }
9905
- function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
9906
- const isNewTab = runtime ? _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
9907
- if (isNewTab) {
9908
- if (_optionalChain([runtime, 'optionalAccess', _207 => _207.navigation, 'access', _208 => _208.openExternal])) runtime.navigation.openExternal(href);
9909
- else window.open(href, "_blank", _chunkGAR2IIU6cjs.NEW_TAB_FEATURES);
9910
- return;
9911
- }
9912
- const target = isForeignOriginHref(href) ? href : _chunkGAR2IIU6cjs.stripSameOriginToPath.call(void 0, href);
9913
- if (target.includes("#") && _chunkCNTBGJA7cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX })) {
9914
- return;
9915
- }
9916
- const handled = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _209 => _209.navigation, 'access', _210 => _210.navigate, 'optionalCall', _211 => _211({ href, path, targetPlatform })]), () => ( false));
9917
- if (!handled) {
9918
- if (fallbackNavigate) fallbackNavigate(target);
9919
- else window.location.assign(target);
9920
- }
9921
- }
9922
- function executeNavigation({
9923
- event,
9924
- runtime,
9925
- href,
9926
- path,
9927
- targetPlatform,
9928
- fallbackNavigate
9929
- }) {
9930
- if (!href) {
9931
- event.preventDefault();
9932
- return true;
9933
- }
9934
- if (event.button !== void 0 && event.button !== 0) return false;
9935
- if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return false;
9936
- event.preventDefault();
9937
- runNavigation(runtime, href, path, targetPlatform, fallbackNavigate);
9938
- return true;
9939
- }
9940
- function executeNavigationImperative({
9941
- runtime,
9942
- href,
9943
- targetPlatform,
9944
- fallbackNavigate
9945
- }) {
9946
- runNavigation(runtime, href, void 0, targetPlatform, fallbackNavigate);
9947
- }
9948
- function handleChatNavClick(event, runtime, { href, path, targetPlatform }, fallbackNavigate) {
9949
- return executeNavigation({ event, runtime, href, path, targetPlatform, fallbackNavigate });
9950
- }
9951
-
9952
9734
  // src/components/chat/nav-link-anchor-via-runtime.tsx
9953
9735
 
9736
+
9737
+ function useNavLinkTarget(href, targetPlatform, openIn) {
9738
+ return _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ), href, targetPlatform, { openIn });
9739
+ }
9954
9740
  function useNavLinkViaRuntime({
9955
9741
  href,
9956
9742
  path,
9957
9743
  targetPlatform,
9744
+ openIn,
9958
9745
  onClick: onClickProp
9959
9746
  }) {
9960
9747
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
9961
- const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
9962
9748
  const panel = useChatPanel();
9963
- const resolvedHref = _chunkGAR2IIU6cjs.resolveHrefForRuntime.call(void 0, href, runtime);
9964
- const isNewTab = _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
9749
+ const { href: resolvedHref, isNewTab } = useNavLinkTarget(_nullishCoalesce(href, () => ( "")), targetPlatform, openIn);
9750
+ if (href == null) return null;
9965
9751
  const onClick = (e) => {
9966
- _optionalChain([onClickProp, 'optionalCall', _212 => _212(e)]);
9752
+ _optionalChain([onClickProp, 'optionalCall', _191 => _191(e)]);
9967
9753
  if (e.defaultPrevented) return;
9968
- const handled = executeNavigation({
9969
- event: e,
9970
- runtime,
9971
- href: resolvedHref,
9972
- path,
9973
- targetPlatform,
9974
- fallbackNavigate: router.push
9975
- });
9976
- if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _213 => _213.closeChat])) panel.closeChat();
9977
- };
9978
- const attrs = _chunkY6MJMPHVcjs.newTabAnchorAttrs.call(void 0, isNewTab);
9979
- return {
9980
- href: resolvedHref,
9981
- ...attrs,
9982
- ...isNewTab && targetPlatform && { rel: "noopener" },
9983
- onClick
9754
+ const handled = _chunkA34UNP5Vcjs.executeNavigation.call(void 0, { event: e, runtime, href: resolvedHref, path, targetPlatform, openIn });
9755
+ if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _192 => _192.closeChat])) panel.closeChat();
9984
9756
  };
9757
+ return { href: resolvedHref, ..._chunkDVHSYPDBcjs.newTabAnchorAttrs.call(void 0, isNewTab, resolvedHref, targetPlatform), onClick };
9758
+ }
9759
+ function useNavigateViaRuntime() {
9760
+ const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
9761
+ return _react.useCallback.call(void 0,
9762
+ ({ href, path, targetPlatform, openIn, modifierEvent }) => {
9763
+ if (!href) return;
9764
+ if (modifierEvent && _chunkDVHSYPDBcjs.isModifierClick.call(void 0, modifierEvent)) {
9765
+ const button = _nullishCoalesce(modifierEvent.button, () => ( 0));
9766
+ if (button === 0 || button === 1) _chunkA34UNP5Vcjs.executeNewTabNavigation.call(void 0, { runtime, href, targetPlatform });
9767
+ return;
9768
+ }
9769
+ _chunkA34UNP5Vcjs.executeNavigationImperative.call(void 0, { runtime, href, path, targetPlatform, openIn });
9770
+ },
9771
+ [runtime]
9772
+ );
9985
9773
  }
9986
9774
  function NavLinkAnchorViaRuntime({
9987
9775
  href,
9988
9776
  path,
9989
9777
  targetPlatform,
9778
+ openIn,
9990
9779
  className,
9991
9780
  children,
9992
9781
  onClick,
9993
9782
  ...anchorAttrs
9994
9783
  }) {
9995
- const linkProps = useNavLinkViaRuntime({ href, path, targetPlatform, onClick });
9784
+ const linkProps = useNavLinkViaRuntime({ href, path, targetPlatform, openIn, onClick });
9996
9785
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...linkProps, ...anchorAttrs, className, children });
9997
9786
  }
9998
9787
 
@@ -10020,24 +9809,49 @@ var DENSITY_STYLES = {
10020
9809
  className: "!h-auto !px-1.5 !py-0.5 text-h6 font-normal text-ods-text-secondary opacity-60 hover:opacity-100 hover:text-ods-text-primary hover:bg-ods-accent/10"
10021
9810
  }
10022
9811
  };
10023
- function FooterActionSkeleton({
9812
+ function FooterAction({
10024
9813
  label,
9814
+ icon,
9815
+ trailingIcon,
10025
9816
  className,
10026
9817
  showLabel = true,
10027
- size = "small"
9818
+ size = "small",
9819
+ onClick,
9820
+ ariaLabel,
9821
+ ariaExpanded,
9822
+ title,
9823
+ loading
10028
9824
  }) {
10029
- const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3 w-3 rounded-sm") });
10030
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, inert: true, className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9825
+ if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading) {
9826
+ const mark = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3 w-3 rounded-sm") });
9827
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, inert: true, className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9828
+ _chunkFCZAUK4Dcjs.Button,
9829
+ {
9830
+ variant: "transparent",
9831
+ size,
9832
+ tabIndex: -1,
9833
+ leftIcon: showLabel ? mark : void 0,
9834
+ rightIcon: trailingIcon ? mark : void 0,
9835
+ className: _chunk63A4GZMBcjs.cn.call(void 0, className, "pointer-events-none"),
9836
+ children: showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextHold, { children: label }) : mark
9837
+ }
9838
+ ) });
9839
+ }
9840
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10031
9841
  _chunkFCZAUK4Dcjs.Button,
10032
9842
  {
10033
9843
  variant: "transparent",
10034
9844
  size,
10035
- tabIndex: -1,
10036
9845
  leftIcon: showLabel ? icon : void 0,
10037
- className: _chunk63A4GZMBcjs.cn.call(void 0, className, "pointer-events-none"),
10038
- children: showLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextHold, { children: label }) : icon
9846
+ rightIcon: trailingIcon,
9847
+ onClick,
9848
+ "aria-label": ariaLabel,
9849
+ "aria-expanded": ariaExpanded,
9850
+ title,
9851
+ className,
9852
+ children: showLabel ? label : icon
10039
9853
  }
10040
- ) });
9854
+ );
10041
9855
  }
10042
9856
  function SourceActionButton({
10043
9857
  chatRef,
@@ -10048,18 +9862,6 @@ function SourceActionButton({
10048
9862
  loading
10049
9863
  }) {
10050
9864
  if (!chatRef || !onDiscuss) return null;
10051
- if (loading) {
10052
- const s = DENSITY_STYLES[density];
10053
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10054
- FooterActionSkeleton,
10055
- {
10056
- label,
10057
- size: s.size,
10058
- showLabel: s.showLabel,
10059
- className: `${s.className}${className ? ` ${className}` : ""}`
10060
- }
10061
- );
10062
- }
10063
9865
  const isDisplay = label === "Display";
10064
9866
  const verbLabel = isDisplay ? `Display ${chatRef.title || "this item"}` : `Ask about ${chatRef.title || "this item"}`;
10065
9867
  const handle = (e) => {
@@ -10071,16 +9873,17 @@ function SourceActionButton({
10071
9873
  const IconComponent = isDisplay ? _lucidereact.FileText : _lucidereact.MessageSquare;
10072
9874
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: styles.iconSize });
10073
9875
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10074
- _chunkFCZAUK4Dcjs.Button,
9876
+ FooterAction,
10075
9877
  {
10076
- variant: "transparent",
9878
+ label,
9879
+ icon,
10077
9880
  size: styles.size,
10078
- leftIcon: styles.showLabel ? icon : void 0,
9881
+ showLabel: styles.showLabel,
10079
9882
  onClick: handle,
10080
- "aria-label": verbLabel,
9883
+ ariaLabel: verbLabel,
10081
9884
  title: verbLabel,
10082
9885
  className: `${styles.className}${className ? ` ${className}` : ""}`,
10083
- children: styles.showLabel ? label : icon
9886
+ loading
10084
9887
  }
10085
9888
  );
10086
9889
  }
@@ -10090,11 +9893,11 @@ var DEFAULT_CAPTIONS_PATH = "/api/captions";
10090
9893
  function getCaptionsUrl(entityType, entityId, srtContent, options) {
10091
9894
  if (!srtContent) return void 0;
10092
9895
  const hash = `${srtContent.length}-${srtContent.slice(0, 8).replace(/\s/g, "")}`;
10093
- const variant = _optionalChain([options, 'optionalAccess', _214 => _214.variant]) ? `&variant=${options.variant}` : "";
9896
+ const variant = _optionalChain([options, 'optionalAccess', _193 => _193.variant]) ? `&variant=${options.variant}` : "";
10094
9897
  return `${DEFAULT_CAPTIONS_PATH}/${entityType}/${entityId}?v=${hash}${variant}`;
10095
9898
  }
10096
9899
  function resolveCaptionsBase(endpoints) {
10097
- return _optionalChain([endpoints, 'optionalAccess', _215 => _215.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
9900
+ return _optionalChain([endpoints, 'optionalAccess', _194 => _194.captionsUrlPrefix]) || DEFAULT_CAPTIONS_PATH;
10098
9901
  }
10099
9902
  function rebaseCaptionsUrl(endpoints, url) {
10100
9903
  if (!url || !url.startsWith(`${DEFAULT_CAPTIONS_PATH}/`)) return url;
@@ -10129,7 +9932,7 @@ function captionsEntityTypeForDocType(docType) {
10129
9932
  // src/components/features/use-captions.ts
10130
9933
 
10131
9934
  function useCaptions() {
10132
- const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _216 => _216.endpoints]), () => ( null));
9935
+ const endpoints = _nullishCoalesce(_optionalChain([_chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _195 => _195.endpoints]), () => ( null));
10133
9936
  return _react.useMemo.call(void 0,
10134
9937
  () => ({
10135
9938
  forEntity: (entityType, entity) => getEntityCaptionUrls(endpoints, entityType, entity),
@@ -10153,7 +9956,7 @@ function UserDisplay({
10153
9956
  compact = false,
10154
9957
  className
10155
9958
  }) {
10156
- const avatarSrc = _chunkGAR2IIU6cjs.useProxiedImageUrl.call(void 0, avatarUrl);
9959
+ const avatarSrc = _chunkIM366HS6cjs.useProxiedImageUrl.call(void 0, avatarUrl);
10157
9960
  if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
10158
9961
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10159
9962
  UserDisplaySkeleton,
@@ -10293,7 +10096,7 @@ function ManagedCell({
10293
10096
  }) {
10294
10097
  const hintedWidth = _react2.default.isValidElement(item) ? item.props["data-strip-cell-width"] : void 0;
10295
10098
  const desktopWidth = typeof hintedWidth === "number" ? hintedWidth : cardWidthDesktop;
10296
- const cloneRef = _chunkCNTBGJA7cjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
10099
+ const cloneRef = _chunkA34UNP5Vcjs.useSuppressCloneFocus.call(void 0, ctx.isClone);
10297
10100
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10298
10101
  "div",
10299
10102
  {
@@ -10411,12 +10214,12 @@ function CardsStrip(props) {
10411
10214
  }, [measure, items.length, marqueeActive, isMobile]);
10412
10215
  const chevronSuppressUntilRef = _react.useRef.call(void 0, 0);
10413
10216
  const userScrollSuppressUntilRef = _react.useRef.call(void 0, 0);
10414
- const { ref: observe, inView: nearViewport } = _chunkCNTBGJA7cjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
10217
+ const { ref: observe, inView: nearViewport } = _chunkA34UNP5Vcjs.useInView.call(void 0, { rootMargin: "200px", initial: true });
10415
10218
  _react.useEffect.call(void 0, () => {
10416
10219
  observe(wrapperRef.current);
10417
10220
  return () => observe(null);
10418
10221
  }, [observe]);
10419
- const autoplay = _chunkCNTBGJA7cjs.useAutoplay.call(void 0, nearViewport);
10222
+ const autoplay = _chunkA34UNP5Vcjs.useAutoplay.call(void 0, nearViewport);
10420
10223
  const [activeKey, setActiveKey] = _react.useState.call(void 0, null);
10421
10224
  const activeKeyRef = _react.useRef.call(void 0, null);
10422
10225
  const activate = _react.useCallback.call(void 0, (key) => {
@@ -10433,9 +10236,9 @@ function CardsStrip(props) {
10433
10236
  const p = hoverPointerRef.current;
10434
10237
  if (!p.inside) return;
10435
10238
  const el = typeof document !== "undefined" ? document.elementFromPoint(p.x, p.y) : null;
10436
- const cardEl = _optionalChain([el, 'optionalAccess', _217 => _217.closest, 'optionalCall', _218 => _218("[data-strip-card-key]")]);
10437
- const scoped = cardEl && _optionalChain([scrollerRef, 'access', _219 => _219.current, 'optionalAccess', _220 => _220.contains, 'call', _221 => _221(cardEl)]) ? cardEl : null;
10438
- const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _222 => _222.getAttribute, 'call', _223 => _223("data-strip-card-key")]), () => ( null));
10239
+ const cardEl = _optionalChain([el, 'optionalAccess', _196 => _196.closest, 'optionalCall', _197 => _197("[data-strip-card-key]")]);
10240
+ const scoped = cardEl && _optionalChain([scrollerRef, 'access', _198 => _198.current, 'optionalAccess', _199 => _199.contains, 'call', _200 => _200(cardEl)]) ? cardEl : null;
10241
+ const key = _nullishCoalesce(_optionalChain([scoped, 'optionalAccess', _201 => _201.getAttribute, 'call', _202 => _202("data-strip-card-key")]), () => ( null));
10439
10242
  const current = activeKeyRef.current;
10440
10243
  if (key === current) return;
10441
10244
  if (current !== null) deactivate(current);
@@ -10463,7 +10266,7 @@ function CardsStrip(props) {
10463
10266
  const current = activeKeyRef.current;
10464
10267
  if (current !== null) deactivate(current);
10465
10268
  }, [deactivate]);
10466
- _chunkCNTBGJA7cjs.useResetOnPageHidden.call(void 0, clearHover);
10269
+ _chunkA34UNP5Vcjs.useResetOnPageHidden.call(void 0, clearHover);
10467
10270
  const syncHoverIfScrolled = _react.useCallback.call(void 0, () => {
10468
10271
  const scroller = scrollerRef.current;
10469
10272
  if (!scroller) return;
@@ -10473,7 +10276,7 @@ function CardsStrip(props) {
10473
10276
  }, [syncHoverToPointer]);
10474
10277
  const seamBuffer = _react.useCallback.call(void 0, () => {
10475
10278
  const half = singleCopyWidthRef.current;
10476
- const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _224 => _224.current, 'optionalAccess', _225 => _225.clientWidth]), () => ( 0));
10279
+ const viewport = _nullishCoalesce(_optionalChain([scrollerRef, 'access', _203 => _203.current, 'optionalAccess', _204 => _204.clientWidth]), () => ( 0));
10477
10280
  return Math.max(0, Math.min(200, half / 4, half - viewport - TRACK_GAP_PX - 1));
10478
10281
  }, []);
10479
10282
  const mirror = _react.useCallback.call(void 0,
@@ -10484,7 +10287,7 @@ function CardsStrip(props) {
10484
10287
  },
10485
10288
  [reverse, seamBuffer]
10486
10289
  );
10487
- const { posRef: marqueePosRef, glideBy } = _chunkCNTBGJA7cjs.useMarqueeEngine.call(void 0, {
10290
+ const { posRef: marqueePosRef, glideBy } = _chunkA34UNP5Vcjs.useMarqueeEngine.call(void 0, {
10488
10291
  // Viewport gates `active` (the rAF fully stops off-screen — a paused
10489
10292
  // engine would keep scheduling frames forever), same treatment as
10490
10293
  // <MarqueeWall>; the envelope persists, so re-entry resumes at cruise.
@@ -10497,7 +10300,7 @@ function CardsStrip(props) {
10497
10300
  const scroller = scrollerRef.current;
10498
10301
  if (scroller) scroller.scrollLeft = mirror(pos);
10499
10302
  },
10500
- readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _226 => _226.current, 'optionalAccess', _227 => _227.scrollLeft]), () => ( 0))),
10303
+ readBack: () => mirror(_nullishCoalesce(_optionalChain([scrollerRef, 'access', _205 => _205.current, 'optionalAccess', _206 => _206.scrollLeft]), () => ( 0))),
10501
10304
  onAfterFrame: syncHoverIfScrolled
10502
10305
  });
10503
10306
  const [mountedIdx, setMountedIdx] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
@@ -10545,11 +10348,11 @@ function CardsStrip(props) {
10545
10348
  fn = (el) => {
10546
10349
  if (!el) return void 0;
10547
10350
  cardElIdxRef.current.set(el, idx);
10548
- _optionalChain([cardObserverRef, 'access', _228 => _228.current, 'optionalAccess', _229 => _229.observe, 'call', _230 => _230(el)]);
10351
+ _optionalChain([cardObserverRef, 'access', _207 => _207.current, 'optionalAccess', _208 => _208.observe, 'call', _209 => _209(el)]);
10549
10352
  return () => {
10550
10353
  cardElIdxRef.current.delete(el);
10551
10354
  cardElNearRef.current.delete(el);
10552
- _optionalChain([cardObserverRef, 'access', _231 => _231.current, 'optionalAccess', _232 => _232.unobserve, 'call', _233 => _233(el)]);
10355
+ _optionalChain([cardObserverRef, 'access', _210 => _210.current, 'optionalAccess', _211 => _211.unobserve, 'call', _212 => _212(el)]);
10553
10356
  };
10554
10357
  };
10555
10358
  cardRefFns.set(idx, fn);
@@ -10568,7 +10371,7 @@ function CardsStrip(props) {
10568
10371
  const track = trackRef.current;
10569
10372
  if (!scroller || !track) return;
10570
10373
  const firstCard = track.firstElementChild;
10571
- const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _234 => _234.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
10374
+ const step = (_nullishCoalesce(_optionalChain([firstCard, 'optionalAccess', _213 => _213.offsetWidth]), () => ( 320))) + TRACK_GAP_PX;
10572
10375
  chevronSuppressUntilRef.current = performance.now() + CHEVRON_SUPPRESS_MS;
10573
10376
  if (marqueeActiveRef.current) {
10574
10377
  glideBy((reverse ? -dir : dir) * step);
@@ -10621,7 +10424,7 @@ function CardsStrip(props) {
10621
10424
  }
10622
10425
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
10623
10426
  };
10624
- const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkGAR2IIU6cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkGAR2IIU6cjs.accentSentenceMarks.call(void 0, title) });
10427
+ const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkIM366HS6cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkIM366HS6cjs.accentSentenceMarks.call(void 0, title) });
10625
10428
  if (items.length === 0) {
10626
10429
  if (!inScope || !skeleton) return null;
10627
10430
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
@@ -10649,7 +10452,7 @@ function CardsStrip(props) {
10649
10452
  {
10650
10453
  ref: (node) => {
10651
10454
  wrapperRef.current = node;
10652
- _optionalChain([rootRef, 'optionalCall', _235 => _235(node)]);
10455
+ _optionalChain([rootRef, 'optionalCall', _214 => _214(node)]);
10653
10456
  },
10654
10457
  className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className),
10655
10458
  children: [
@@ -10811,7 +10614,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
10811
10614
  );
10812
10615
  function VideoBitesStrip({
10813
10616
  bites,
10814
- title = _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
10617
+ title = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
10815
10618
  showTitle = true,
10816
10619
  filterPublished = true,
10817
10620
  profile = null,
@@ -10824,7 +10627,7 @@ function VideoBitesStrip({
10824
10627
  cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
10825
10628
  showChevrons = true,
10826
10629
  onBiteNavigate,
10827
- sortComparator = _chunkY6MJMPHVcjs.sortBitesByCreatedAtDesc,
10630
+ sortComparator = _chunkUEULXVW2cjs.sortBitesByCreatedAtDesc,
10828
10631
  skeletonCount,
10829
10632
  className
10830
10633
  }) {
@@ -10833,7 +10636,7 @@ function VideoBitesStrip({
10833
10636
  const filtered = filterPublished ? bites.filter((b) => b.published) : [...bites];
10834
10637
  return filtered.sort(sortComparator);
10835
10638
  }, [bites, filterPublished, sortComparator]);
10836
- const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _236 => _236[0], 'optionalAccess', _237 => _237.url]) || null });
10639
+ const warmup = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, { videoUrl: inScope ? null : _optionalChain([items, 'access', _215 => _215[0], 'optionalAccess', _216 => _216.url]) || null });
10837
10640
  if (inScope) {
10838
10641
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10839
10642
  VideoBitesStripSkeleton,
@@ -10922,7 +10725,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
10922
10725
  function VideoBitesStripSkeleton({
10923
10726
  count = VIDEO_BITES_SKELETON_COUNT,
10924
10727
  aspect = "9:16",
10925
- title = _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
10728
+ title = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
10926
10729
  showTitle = true,
10927
10730
  headerSlot,
10928
10731
  cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
@@ -10974,8 +10777,8 @@ function VideoBiteCard({
10974
10777
  const controlled = active !== void 0;
10975
10778
  const [selfActive, setSelfActive] = _react.useState.call(void 0, false);
10976
10779
  const isActive = controlled ? !!active : selfActive;
10977
- const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _238 => _238(key)]) : setSelfActive(true);
10978
- const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _239 => _239(key)]) : setSelfActive(false);
10780
+ const activate = () => controlled ? _optionalChain([onActivate, 'optionalCall', _217 => _217(key)]) : setSelfActive(true);
10781
+ const deactivate = () => controlled ? _optionalChain([onDeactivate, 'optionalCall', _218 => _218(key)]) : setSelfActive(false);
10979
10782
  const titleInputRef = _react.useRef.call(void 0, null);
10980
10783
  _chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
10981
10784
  const el = titleInputRef.current;
@@ -10985,7 +10788,7 @@ function VideoBiteCard({
10985
10788
  });
10986
10789
  const navigate = () => {
10987
10790
  if (bite.onNavigate) bite.onNavigate();
10988
- else _optionalChain([onBiteNavigate, 'optionalCall', _240 => _240(bite, index)]);
10791
+ else _optionalChain([onBiteNavigate, 'optionalCall', _219 => _219(bite, index)]);
10989
10792
  };
10990
10793
  const handlePointerEnter = () => {
10991
10794
  if (!isTouch) activate();
@@ -11010,9 +10813,9 @@ function VideoBiteCard({
11010
10813
  placeholder: "Title (optional)",
11011
10814
  "aria-label": "Bite title",
11012
10815
  rows: 1,
11013
- onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _241 => _241(e.target.value)]),
10816
+ onChange: (e) => _optionalChain([onTitleChange, 'optionalCall', _220 => _220(e.target.value)]),
11014
10817
  ref: titleInputRef,
11015
- onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _242 => _242(e.target.value)]),
10818
+ onBlur: (e) => _optionalChain([onTitleCommit, 'optionalCall', _221 => _221(e.target.value)]),
11016
10819
  onClick: (e) => e.stopPropagation(),
11017
10820
  className: _chunk63A4GZMBcjs.cn.call(void 0,
11018
10821
  titleClass,
@@ -11054,7 +10857,7 @@ function VideoBiteCard({
11054
10857
  style: biteMediaStyle(cssAspect, height, heightMobile),
11055
10858
  children: [
11056
10859
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11057
- _chunkY6MJMPHVcjs.VideoHoverPreviewSurface,
10860
+ _chunkUEULXVW2cjs.VideoHoverPreviewSurface,
11058
10861
  {
11059
10862
  url: bite.url,
11060
10863
  posterUrl: bite.thumbnail_url,
@@ -11089,7 +10892,7 @@ function VideoBiteCard({
11089
10892
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11090
10893
  "div",
11091
10894
  {
11092
- ref: (node) => _optionalChain([rootRef, 'optionalCall', _243 => _243(node)]),
10895
+ ref: (node) => _optionalChain([rootRef, 'optionalCall', _222 => _222(node)]),
11093
10896
  "aria-hidden": isClone || void 0,
11094
10897
  "data-strip-card-key": key,
11095
10898
  className: _chunk63A4GZMBcjs.cn.call(void 0, "group/card", BITE_CARD_FRAME_CLASS, height !== void 0 ? "shrink-0" : "w-full", className),
@@ -11126,7 +10929,7 @@ function EntityVideoSection({
11126
10929
  title = "Video",
11127
10930
  videoSummary,
11128
10931
  videoBites,
11129
- bitesTitle = _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
10932
+ bitesTitle = _chunkUEULXVW2cjs.DEFAULT_VIDEO_BITES_TITLE,
11130
10933
  filterPublishedBites = true,
11131
10934
  bitesProfile = null,
11132
10935
  bitesHref,
@@ -11146,8 +10949,8 @@ function EntityVideoSection({
11146
10949
  const hasHighlight = !!highlightVideoUrl;
11147
10950
  const hasVideo = hasFullVideo || hasHighlight;
11148
10951
  const derivedCaptions = captionsEntity ? captions.forEntityId(captionsEntity.type, captionsEntity.id) : null;
11149
- const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _244 => _244.captionsUrl])));
11150
- const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _245 => _245.highlightCaptionsUrl])));
10952
+ const captionsUrl = _nullishCoalesce(captionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _223 => _223.captionsUrl])));
10953
+ const highlightCaptionsUrl = _nullishCoalesce(highlightCaptionsUrlProp, () => ( _optionalChain([derivedCaptions, 'optionalAccess', _224 => _224.highlightCaptionsUrl])));
11151
10954
  if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityVideoSectionSkeleton, { tabs: skeletonTabs });
11152
10955
  if (!hasVideo && !videoSummary && (!videoBites || videoBites.length === 0)) {
11153
10956
  return null;
@@ -11161,7 +10964,7 @@ function EntityVideoSection({
11161
10964
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
11162
10965
  ] }),
11163
10966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11164
- _chunkY6MJMPHVcjs.Video,
10967
+ _chunkUEULXVW2cjs.Video,
11165
10968
  {
11166
10969
  kind: fullVideoKind,
11167
10970
  url: fullVideoUrl,
@@ -11173,7 +10976,7 @@ function EntityVideoSection({
11173
10976
  }
11174
10977
  ) }),
11175
10978
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11176
- _chunkY6MJMPHVcjs.Video,
10979
+ _chunkUEULXVW2cjs.Video,
11177
10980
  {
11178
10981
  url: highlightVideoUrl,
11179
10982
  poster: highlightVideoThumbnail,
@@ -11182,7 +10985,7 @@ function EntityVideoSection({
11182
10985
  }
11183
10986
  ) })
11184
10987
  ] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11185
- _chunkY6MJMPHVcjs.Video,
10988
+ _chunkUEULXVW2cjs.Video,
11186
10989
  {
11187
10990
  kind: fullVideoKind,
11188
10991
  url: fullVideoUrl,
@@ -11193,7 +10996,7 @@ function EntityVideoSection({
11193
10996
  priority
11194
10997
  }
11195
10998
  ) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11196
- _chunkY6MJMPHVcjs.Video,
10999
+ _chunkUEULXVW2cjs.Video,
11197
11000
  {
11198
11001
  url: highlightVideoUrl,
11199
11002
  poster: highlightVideoThumbnail,
@@ -11203,7 +11006,7 @@ function EntityVideoSection({
11203
11006
  }
11204
11007
  ) : null),
11205
11008
  videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
11206
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkGAR2IIU6cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
11009
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkIM366HS6cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
11207
11010
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: videoSummary }) })
11208
11011
  ] }),
11209
11012
  videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11222,13 +11025,13 @@ function EntityVideoSection({
11222
11025
  ] });
11223
11026
  }
11224
11027
  function EntityVideoSectionSkeleton({ tabs = false, className }) {
11225
- if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.Video, { loading: true, url: "", layout: "centered", className });
11028
+ if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { loading: true, url: "", layout: "centered", className });
11226
11029
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
11227
11030
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
11228
11031
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
11229
11032
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
11230
11033
  ] }),
11231
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.Video, { loading: true, url: "", layout: "centered" }) })
11034
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Video, { loading: true, url: "", layout: "centered" }) })
11232
11035
  ] });
11233
11036
  }
11234
11037
 
@@ -11269,18 +11072,18 @@ function pick(...values) {
11269
11072
  return void 0;
11270
11073
  }
11271
11074
  function videoFromItem(item, chatRef) {
11272
- const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _246 => _246.metadata]), () => ( {}));
11075
+ const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _225 => _225.metadata]), () => ( {}));
11273
11076
  const out = {};
11274
- const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _247 => _247.custom_video_url]), _optionalChain([item, 'optionalAccess', _248 => _248.main_video_url]));
11275
- const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _249 => _249.youtube_url]), _optionalChain([item, 'optionalAccess', _250 => _250.testimonial_video_url]));
11276
- const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _251 => _251.highlight_video_url]));
11077
+ const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _226 => _226.custom_video_url]), _optionalChain([item, 'optionalAccess', _227 => _227.main_video_url]));
11078
+ const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _228 => _228.youtube_url]), _optionalChain([item, 'optionalAccess', _229 => _229.testimonial_video_url]));
11079
+ const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _230 => _230.highlight_video_url]));
11277
11080
  const videoPoster = pick(
11278
11081
  m.videoPoster,
11279
- _optionalChain([item, 'optionalAccess', _252 => _252.main_video_thumbnail]),
11280
- _optionalChain([item, 'optionalAccess', _253 => _253.highlight_video_thumbnail]),
11281
- _optionalChain([item, 'optionalAccess', _254 => _254.featured_image])
11082
+ _optionalChain([item, 'optionalAccess', _231 => _231.main_video_thumbnail]),
11083
+ _optionalChain([item, 'optionalAccess', _232 => _232.highlight_video_thumbnail]),
11084
+ _optionalChain([item, 'optionalAccess', _233 => _233.featured_image])
11282
11085
  );
11283
- const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _255 => _255.highlight_video_thumbnail]));
11086
+ const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _234 => _234.highlight_video_thumbnail]));
11284
11087
  if (videoUrl) out.videoUrl = videoUrl;
11285
11088
  if (youtubeUrl) out.youtubeUrl = youtubeUrl;
11286
11089
  if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
@@ -11313,25 +11116,23 @@ function ChatCardDisclosureButton({
11313
11116
  loading
11314
11117
  }) {
11315
11118
  const spec = CHAT_CARD_DISCLOSURES[kind];
11316
- if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FooterActionSkeleton, { label: spec.label, className: CARD_FOOTER_ACTION_CLASS });
11317
11119
  const label = open ? spec.openLabel : spec.label;
11318
11120
  const Icon = spec.icon;
11319
11121
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11320
- _chunkFCZAUK4Dcjs.Button,
11122
+ FooterAction,
11321
11123
  {
11322
- variant: "transparent",
11323
- size: "small",
11324
- leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
11325
- rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
11124
+ label,
11125
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "!h-3 !w-3" }),
11126
+ trailingIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.ExpandChevron, { expanded: open, className: "!h-3 !w-3" }),
11326
11127
  onClick: (e) => {
11327
11128
  e.preventDefault();
11328
11129
  e.stopPropagation();
11329
- _optionalChain([onToggle, 'optionalCall', _256 => _256()]);
11130
+ _optionalChain([onToggle, 'optionalCall', _235 => _235()]);
11330
11131
  },
11331
- "aria-expanded": open,
11332
- "aria-label": title ? `${label}: ${title}` : label,
11132
+ ariaExpanded: open,
11133
+ ariaLabel: title ? `${label}: ${title}` : label,
11333
11134
  className: CARD_FOOTER_ACTION_CLASS,
11334
- children: label
11135
+ loading
11335
11136
  }
11336
11137
  );
11337
11138
  }
@@ -11375,7 +11176,7 @@ function ChatCardDisclosureRow({
11375
11176
 
11376
11177
  function designDocPeople(doc) {
11377
11178
  const people = [];
11378
- if (_optionalChain([doc, 'access', _257 => _257.author, 'optionalAccess', _258 => _258.full_name]))
11179
+ if (_optionalChain([doc, 'access', _236 => _236.author, 'optionalAccess', _237 => _237.full_name]))
11379
11180
  people.push({
11380
11181
  key: `dri-${_nullishCoalesce(doc.author.id, () => ( doc.author.full_name))}`,
11381
11182
  name: doc.author.full_name,
@@ -11388,7 +11189,7 @@ function designDocPeople(doc) {
11388
11189
  return people;
11389
11190
  }
11390
11191
  function designDocMetaLine(doc) {
11391
- return [_optionalChain([doc, 'access', _259 => _259.author, 'optionalAccess', _260 => _260.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkGAR2IIU6cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
11192
+ return [_optionalChain([doc, 'access', _238 => _238.author, 'optionalAccess', _239 => _239.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkIM366HS6cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
11392
11193
  }
11393
11194
  var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
11394
11195
  var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
@@ -11398,15 +11199,15 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk3TOWCFIKcjs.TE
11398
11199
  var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk3TOWCFIKcjs.TEXT_LINES_MIN[3]}`;
11399
11200
  var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
11400
11201
  function DesignDocCardSkeleton({ className } = {}) {
11401
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkY6MJMPHVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
11202
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunkUEULXVW2cjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
11402
11203
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
11403
11204
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
11404
11205
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
11405
11206
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
11406
11207
  ] }),
11407
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
11208
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
11408
11209
  ] }),
11409
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
11210
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
11410
11211
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
11411
11212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
11412
11213
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
@@ -11418,7 +11219,7 @@ function DesignDocCardSkeleton({ className } = {}) {
11418
11219
  function DesignDocCard({ doc, href, target, rel, className }) {
11419
11220
  const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
11420
11221
  const people = designDocPeople(doc);
11421
- const link = _chunkY6MJMPHVcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
11222
+ const link = _chunkUEULXVW2cjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
11422
11223
  if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
11423
11224
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
11424
11225
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
@@ -11427,7 +11228,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
11427
11228
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
11428
11229
  ] }),
11429
11230
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11430
- _chunkY6MJMPHVcjs.StatusBadge,
11231
+ _chunkUEULXVW2cjs.StatusBadge,
11431
11232
  {
11432
11233
  text: readiness.label,
11433
11234
  colorScheme: readiness.scheme,
@@ -11437,7 +11238,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
11437
11238
  }
11438
11239
  )
11439
11240
  ] }),
11440
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
11241
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
11441
11242
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
11442
11243
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
11443
11244
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
@@ -11445,7 +11246,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
11445
11246
  people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk25HBH4J6cjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
11446
11247
  ] })
11447
11248
  ] });
11448
- const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkY6MJMPHVcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
11249
+ const outer = _chunk63A4GZMBcjs.cn.call(void 0, _chunkUEULXVW2cjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
11449
11250
  return link ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: link, target, rel, className: outer, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: outer, children: body });
11450
11251
  }
11451
11252
 
@@ -11460,7 +11261,7 @@ function parseRepoFromUrl(url) {
11460
11261
  if (u.host !== "github.com") return null;
11461
11262
  const parts = u.pathname.split("/").filter(Boolean);
11462
11263
  if (parts.length >= 2) return `${parts[0]}/${parts[1]}`;
11463
- } catch (e9) {
11264
+ } catch (e7) {
11464
11265
  }
11465
11266
  return null;
11466
11267
  }
@@ -11587,26 +11388,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
11587
11388
  metaParts.push(
11588
11389
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
11589
11390
  );
11590
- const href = _chunkY6MJMPHVcjs.safeHref.call(void 0, item.url);
11391
+ const href = _chunkUEULXVW2cjs.safeHref.call(void 0, item.url);
11591
11392
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
11592
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
11593
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
11594
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
11393
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
11394
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TEXT_COL, children: [
11395
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
11595
11396
  reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
11596
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE, children: primaryText })
11397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE, children: primaryText })
11597
11398
  ] }),
11598
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
11399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
11599
11400
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
11600
11401
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
11601
11402
  ] }, i)) }) }),
11602
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_SUMMARY, children: _chunkY6MJMPHVcjs.COMPACT_CARD_ROW_FILLER }) })
11403
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_SUMMARY, children: _chunkUEULXVW2cjs.COMPACT_CARD_ROW_FILLER }) })
11603
11404
  ] }),
11604
11405
  href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
11605
11406
  ] });
11606
11407
  if (anchorProps) {
11607
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
11408
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
11608
11409
  }
11609
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
11410
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
11610
11411
  }
11611
11412
  function GitHubActivityCardSkeleton({
11612
11413
  variant = "compact",
@@ -11614,7 +11415,7 @@ function GitHubActivityCardSkeleton({
11614
11415
  }) {
11615
11416
  if (variant === "row") {
11616
11417
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11617
- _chunkY6MJMPHVcjs.ActivityRowSkeleton,
11418
+ _chunkUEULXVW2cjs.ActivityRowSkeleton,
11618
11419
  {
11619
11420
  lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
11620
11421
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
@@ -11625,7 +11426,7 @@ function GitHubActivityCardSkeleton({
11625
11426
  }
11626
11427
  );
11627
11428
  }
11628
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
11429
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
11629
11430
  }
11630
11431
 
11631
11432
  // src/utils/url-fix.ts
@@ -11657,8 +11458,8 @@ function getVendorLogo(vendor) {
11657
11458
  if (vendor.logo) {
11658
11459
  return fixSupabaseStorageUrl(vendor.logo);
11659
11460
  }
11660
- const logoMedia = _optionalChain([vendor, 'access', _261 => _261.vendor_media, 'optionalAccess', _262 => _262.find, 'call', _263 => _263((m) => m.media_type === "logo")]);
11661
- if (_optionalChain([logoMedia, 'optionalAccess', _264 => _264.media_url])) {
11461
+ const logoMedia = _optionalChain([vendor, 'access', _240 => _240.vendor_media, 'optionalAccess', _241 => _241.find, 'call', _242 => _242((m) => m.media_type === "logo")]);
11462
+ if (_optionalChain([logoMedia, 'optionalAccess', _243 => _243.media_url])) {
11662
11463
  return fixSupabaseStorageUrl(logoMedia.media_url);
11663
11464
  }
11664
11465
  return null;
@@ -11681,7 +11482,7 @@ function VendorIcon({
11681
11482
  ...props
11682
11483
  }) {
11683
11484
  const logoUrl = getVendorLogo(vendor);
11684
- const logoSrc = _chunkGAR2IIU6cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
11485
+ const logoSrc = _chunkIM366HS6cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
11685
11486
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11686
11487
  _chunkBOS7OIC4cjs.SquareAvatar,
11687
11488
  {
@@ -11715,8 +11516,8 @@ function useChatCardItem(type, id) {
11715
11516
  const res = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, url);
11716
11517
  if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
11717
11518
  const data = await res.json();
11718
- const items = _chunkGAR2IIU6cjs.extractCardItems.call(void 0, type, data);
11719
- const match = items.find((it) => _chunkGAR2IIU6cjs.extractItemId.call(void 0, type, it) === id);
11519
+ const items = _chunkIM366HS6cjs.extractCardItems.call(void 0, type, data);
11520
+ const match = items.find((it) => _chunkIM366HS6cjs.extractItemId.call(void 0, type, it) === id);
11720
11521
  return _nullishCoalesce(match, () => ( null));
11721
11522
  },
11722
11523
  enabled: !!url && id.length > 0,
@@ -11906,7 +11707,7 @@ function pickFetchedCardHref({
11906
11707
  itemHref,
11907
11708
  allowComposed
11908
11709
  }) {
11909
- if (_optionalChain([composed, 'optionalAccess', _265 => _265.hostOverride])) {
11710
+ if (_optionalChain([composed, 'optionalAccess', _244 => _244.hostOverride])) {
11910
11711
  return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
11911
11712
  }
11912
11713
  if (itemHref) return { source: "item", href: itemHref };
@@ -11922,7 +11723,7 @@ function resolveFetchedCardHref({
11922
11723
  composeContentUrl
11923
11724
  }) {
11924
11725
  if (!composeContentUrl || !contentRefType || !id) return null;
11925
- const canonicalType = _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, contentRefType);
11726
+ const canonicalType = _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, contentRefType);
11926
11727
  return composeContentUrl({
11927
11728
  // The card registry keys some entries by the legacy rail vocabulary
11928
11729
  // (`blog_post_existing`) because that is what `buildListUrl` expects.
@@ -11968,20 +11769,20 @@ function resolveSourceRowCTA(row, ctx = {}) {
11968
11769
  if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
11969
11770
  const safePath = sanitizePath(row.path);
11970
11771
  if (safePath) {
11971
- const docTarget = row.documentType ? _optionalChain([ctx, 'access', _266 => _266.docPlatformTargets, 'optionalAccess', _267 => _267[row.documentType]]) : void 0;
11772
+ const docTarget = row.documentType ? _optionalChain([ctx, 'access', _245 => _245.docPlatformTargets, 'optionalAccess', _246 => _246[row.documentType]]) : void 0;
11972
11773
  if (docTarget) {
11973
11774
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
11974
- const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
11975
- href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11775
+ const base = `${_chunkDVHSYPDBcjs.getPlatformUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
11776
+ href = _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11976
11777
  targetPlatform = docTarget.platform;
11977
11778
  } else if (ctx.chipBasePlatform) {
11978
- const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
11979
- href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11779
+ const base = `${_chunkDVHSYPDBcjs.getPlatformUrl.call(void 0, ctx.chipBasePlatform)}/knowledge-base/`;
11780
+ href = _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11980
11781
  targetPlatform = ctx.chipBasePlatform;
11981
11782
  } else if (ctx.baseRoute) {
11982
11783
  const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
11983
11784
  const absolute = new URL(safePath, synthetic).toString();
11984
- href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
11785
+ href = _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
11985
11786
  targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
11986
11787
  }
11987
11788
  }
@@ -11990,15 +11791,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
11990
11791
  // Canonical vocabulary only — a rail-vocab alias would miss the host's
11991
11792
  // `hostedTypes` / `overrides` and fall through to the seam's default
11992
11793
  // `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
11993
- type: _chunkGAR2IIU6cjs.canonicalContentRefType.call(void 0, row.documentType),
11794
+ type: _chunkIM366HS6cjs.canonicalContentRefType.call(void 0, row.documentType),
11994
11795
  identifier: idValue,
11995
11796
  externalUrl: row.externalUrl,
11996
11797
  targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
11997
11798
  });
11998
- href = composed.href ? _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
11799
+ href = composed.href ? _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
11999
11800
  targetPlatform = composed.targetPlatform;
12000
11801
  } else if (row.externalUrl) {
12001
- href = _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
11802
+ href = _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
12002
11803
  targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
12003
11804
  }
12004
11805
  const documentType = row.documentType;
@@ -12037,7 +11838,7 @@ function resolveCardDestination({
12037
11838
  composeContentUrl,
12038
11839
  resolveHref = (href) => href
12039
11840
  }) {
12040
- const refPath = typeof _optionalChain([chatRef, 'access', _268 => _268.metadata, 'optionalAccess', _269 => _269.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
11841
+ const refPath = typeof _optionalChain([chatRef, 'access', _247 => _247.metadata, 'optionalAccess', _248 => _248.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
12041
11842
  const path = _nullishCoalesce(refPath, () => ( (item ? readFetchedCardPath(item) : null)));
12042
11843
  const cta = resolveSourceRowCTA(
12043
11844
  {
@@ -12054,7 +11855,7 @@ function resolveCardDestination({
12054
11855
  const rowUrl = cta.href ? resolveHref(cta.href) : _nullishCoalesce(chatRef.url, () => ( null));
12055
11856
  const rowPlatform = _nullishCoalesce(_nullishCoalesce(cta.targetPlatform, () => ( chatRef.targetPlatform)), () => ( null));
12056
11857
  if (rowUrl) return { url: rowUrl, targetPlatform: rowPlatform, path, source: "row" };
12057
- if (_optionalChain([entry, 'optionalAccess', _270 => _270.contentRefType]) && item) {
11858
+ if (_optionalChain([entry, 'optionalAccess', _249 => _249.contentRefType]) && item) {
12058
11859
  const choice = pickFetchedCardHref({
12059
11860
  composed: resolveFetchedCardHref({
12060
11861
  contentRefType: entry.contentRefType,
@@ -12062,10 +11863,10 @@ function resolveCardDestination({
12062
11863
  item,
12063
11864
  composeContentUrl
12064
11865
  }),
12065
- itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _271 => _271.fallbackHref, 'optionalCall', _272 => _272(item)]), () => ( null)),
11866
+ itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _250 => _250.fallbackHref, 'optionalCall', _251 => _251(item)]), () => ( null)),
12066
11867
  allowComposed: !entry.noComposedHref
12067
11868
  });
12068
- const url = choice ? _nullishCoalesce(_chunkY6MJMPHVcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
11869
+ const url = choice ? _nullishCoalesce(_chunkUEULXVW2cjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
12069
11870
  if (choice && url) {
12070
11871
  return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
12071
11872
  }
@@ -12078,11 +11879,11 @@ function resolveCardDestination({
12078
11879
 
12079
11880
  function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
12080
11881
  const label = entityLabel || "Item";
12081
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
12082
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
12083
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TEXT_COL, children: [
12084
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkY6MJMPHVcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
12085
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkY6MJMPHVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
11882
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
11883
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
11884
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TEXT_COL, children: [
11885
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUEULXVW2cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
11886
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
12086
11887
  label,
12087
11888
  " deleted",
12088
11889
  recoveryNote ? ` \xB7 ${recoveryNote}` : ""
@@ -12137,7 +11938,7 @@ function GitHubChatCard({
12137
11938
  description,
12138
11939
  icon: githubKindIcon(kind),
12139
11940
  status,
12140
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11941
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12141
11942
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12142
11943
  menuAriaLabel: "Activity actions"
12143
11944
  }
@@ -12156,8 +11957,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
12156
11957
  if (href) {
12157
11958
  items.push({
12158
11959
  id: "open-details",
12159
- label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _273 => _273.label]), () => ( "Open Details")),
12160
- icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _274 => _274.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
11960
+ label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _252 => _252.label]), () => ( "Open Details")),
11961
+ icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _253 => _253.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
12161
11962
  // Main row → open the entity (same tab, soft Link nav).
12162
11963
  href,
12163
11964
  // Trailing 40px ↗ side-button → open in a new tab.
@@ -12205,7 +12006,7 @@ function decodeVideoMarkerId(id) {
12205
12006
  const url = atob(b64);
12206
12007
  if (!/^https:\/\//.test(url)) return null;
12207
12008
  return { videoUrl: url };
12208
- } catch (e10) {
12009
+ } catch (e8) {
12209
12010
  return null;
12210
12011
  }
12211
12012
  }
@@ -12234,15 +12035,15 @@ function fetchedItemDisplayRef(item, chatRef) {
12234
12035
  }
12235
12036
  function fetchedFaqDisplayRef(item, chatRef) {
12236
12037
  const it = item;
12237
- const answer = typeof _optionalChain([it, 'optionalAccess', _275 => _275.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
12038
+ const answer = typeof _optionalChain([it, 'optionalAccess', _254 => _254.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
12238
12039
  return {
12239
12040
  type: "faq",
12240
12041
  id: chatRef.id,
12241
12042
  sourceRepo: chatRef.sourceRepo,
12242
- title: typeof _optionalChain([it, 'optionalAccess', _276 => _276.question]) === "string" && it.question ? it.question : chatRef.id,
12043
+ title: typeof _optionalChain([it, 'optionalAccess', _255 => _255.question]) === "string" && it.question ? it.question : chatRef.id,
12243
12044
  url: _nullishCoalesce(chatRef.url, () => ( null)),
12244
12045
  ...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
12245
- metadata: typeof _optionalChain([it, 'optionalAccess', _277 => _277.section]) === "string" && it.section ? { section: it.section } : {}
12046
+ metadata: typeof _optionalChain([it, 'optionalAccess', _256 => _256.section]) === "string" && it.section ? { section: it.section } : {}
12246
12047
  };
12247
12048
  }
12248
12049
  function HubspotTicketChatCard({
@@ -12250,8 +12051,8 @@ function HubspotTicketChatCard({
12250
12051
  isNewTab,
12251
12052
  discuss
12252
12053
  }) {
12253
- const status = typeof _optionalChain([chatRef, 'access', _278 => _278.metadata, 'optionalAccess', _279 => _279.status]) === "string" ? chatRef.metadata.status : void 0;
12254
- const statusLabel = typeof _optionalChain([chatRef, 'access', _280 => _280.metadata, 'optionalAccess', _281 => _281.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
12054
+ const status = typeof _optionalChain([chatRef, 'access', _257 => _257.metadata, 'optionalAccess', _258 => _258.status]) === "string" ? chatRef.metadata.status : void 0;
12055
+ const statusLabel = typeof _optionalChain([chatRef, 'access', _259 => _259.metadata, 'optionalAccess', _260 => _260.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
12255
12056
  const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
12256
12057
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12257
12058
  MingoInfoCard,
@@ -12260,7 +12061,7 @@ function HubspotTicketChatCard({
12260
12061
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
12261
12062
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
12262
12063
  status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
12263
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12064
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12264
12065
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
12265
12066
  label: "Open Ticket Details",
12266
12067
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
@@ -12274,7 +12075,7 @@ function FaqChatCard({
12274
12075
  isNewTab,
12275
12076
  discuss
12276
12077
  }) {
12277
- const section = typeof _optionalChain([chatRef, 'access', _282 => _282.metadata, 'optionalAccess', _283 => _283.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
12078
+ const section = typeof _optionalChain([chatRef, 'access', _261 => _261.metadata, 'optionalAccess', _262 => _262.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
12278
12079
  const statusLabel = section && section.length > 0 ? section : "FAQ";
12279
12080
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12280
12081
  MingoInfoCard,
@@ -12283,7 +12084,7 @@ function FaqChatCard({
12283
12084
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
12284
12085
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
12285
12086
  status: { label: statusLabel, variant: "grey" },
12286
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12087
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12287
12088
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12288
12089
  menuAriaLabel: "FAQ actions"
12289
12090
  }
@@ -12294,7 +12095,7 @@ function SlackChatCard({
12294
12095
  isNewTab,
12295
12096
  discuss
12296
12097
  }) {
12297
- const channelName = typeof _optionalChain([chatRef, 'access', _284 => _284.metadata, 'optionalAccess', _285 => _285.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
12098
+ const channelName = typeof _optionalChain([chatRef, 'access', _263 => _263.metadata, 'optionalAccess', _264 => _264.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
12298
12099
  const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
12299
12100
  const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
12300
12101
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -12303,7 +12104,7 @@ function SlackChatCard({
12303
12104
  title,
12304
12105
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
12305
12106
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
12306
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12107
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12307
12108
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12308
12109
  menuAriaLabel: "Message actions"
12309
12110
  }
@@ -12321,7 +12122,7 @@ function GlyphChatCard({
12321
12122
  title: chatRef.title,
12322
12123
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
12323
12124
  icon,
12324
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12125
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12325
12126
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12326
12127
  menuAriaLabel: "Card actions"
12327
12128
  }
@@ -12337,22 +12138,22 @@ function TrustCenterChatCard({
12337
12138
  isNewTab,
12338
12139
  discuss
12339
12140
  }) {
12340
- const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
12141
+ const raw2 = _optionalChain([item, 'optionalAccess', _265 => _265.frameworks]);
12341
12142
  const frameworks = Array.isArray(raw2) ? raw2 : [];
12342
- const summary = _chunkGAR2IIU6cjs.trustFrameworksSummary.call(void 0, frameworks);
12143
+ const summary = _chunkIM366HS6cjs.trustFrameworksSummary.call(void 0, frameworks);
12343
12144
  const leadFramework = frameworks[0];
12344
12145
  const lead = leadFramework ? {
12345
- label: _chunkGAR2IIU6cjs.trustFrameworkBadge.call(void 0, leadFramework),
12346
- color: _chunkGAR2IIU6cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
12146
+ label: _chunkIM366HS6cjs.trustFrameworkBadge.call(void 0, leadFramework),
12147
+ color: _chunkIM366HS6cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
12347
12148
  } : void 0;
12348
12149
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12349
12150
  MingoInfoCard,
12350
12151
  {
12351
- title: _chunkGAR2IIU6cjs.TRUST_CENTER_TITLE,
12352
- description: summary || _chunkGAR2IIU6cjs.TRUST_CENTER_TAGLINE,
12152
+ title: _chunkIM366HS6cjs.TRUST_CENTER_TITLE,
12153
+ description: summary || _chunkIM366HS6cjs.TRUST_CENTER_TAGLINE,
12353
12154
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
12354
12155
  status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
12355
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12156
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12356
12157
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
12357
12158
  label: "View trust center",
12358
12159
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
@@ -12374,7 +12175,7 @@ function DataRoomDocChatCard({
12374
12175
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
12375
12176
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
12376
12177
  status: { label: badgeText, variant: "grey" },
12377
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12178
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12378
12179
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12379
12180
  menuAriaLabel: "Document actions"
12380
12181
  }
@@ -12386,14 +12187,14 @@ function GenericFinancialChatCard({
12386
12187
  isNewTab,
12387
12188
  discuss
12388
12189
  }) {
12389
- const subtitle = typeof _optionalChain([chatRef, 'access', _287 => _287.metadata, 'optionalAccess', _288 => _288.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
12190
+ const subtitle = typeof _optionalChain([chatRef, 'access', _266 => _266.metadata, 'optionalAccess', _267 => _267.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
12390
12191
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12391
12192
  MingoInfoCard,
12392
12193
  {
12393
12194
  title: chatRef.title,
12394
12195
  description: subtitle,
12395
12196
  icon,
12396
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12197
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12397
12198
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12398
12199
  menuAriaLabel: "Document actions"
12399
12200
  }
@@ -12460,12 +12261,12 @@ function ProductReleaseChatCard({
12460
12261
  discuss
12461
12262
  }) {
12462
12263
  const releaseProps = buildProps(item);
12463
- const status = _optionalChain([item, 'optionalAccess', _289 => _289.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
12264
+ const status = _optionalChain([item, 'optionalAccess', _268 => _268.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
12464
12265
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12465
12266
  EntityMingoCard,
12466
12267
  {
12467
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _290 => _290.title]), () => ( "")),
12468
- description: _optionalChain([item, 'optionalAccess', _291 => _291.summary]) || releaseProps.formattedDate || void 0,
12268
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _269 => _269.title]), () => ( "")),
12269
+ description: _optionalChain([item, 'optionalAccess', _270 => _270.summary]) || releaseProps.formattedDate || void 0,
12469
12270
  cover: releaseProps.coverImage || void 0,
12470
12271
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX5LU4XQNcjs.Rocket02Icon, { size: 24 }),
12471
12272
  status,
@@ -12482,17 +12283,17 @@ function CampaignChatCard({
12482
12283
  isNewTab,
12483
12284
  discuss
12484
12285
  }) {
12485
- const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
12286
+ const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _271 => _271.goals])) ? item.goals.length : 0;
12486
12287
  const meta = [
12487
- _optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunkGAR2IIU6cjs.formatDateShort.call(void 0, item.start_date) : null,
12288
+ _optionalChain([item, 'optionalAccess', _272 => _272.start_date]) ? _chunkIM366HS6cjs.formatDateShort.call(void 0, item.start_date) : null,
12488
12289
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
12489
12290
  "Marketing campaign"
12490
12291
  ].filter(Boolean).join(" \xB7 ");
12491
12292
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12492
12293
  EntityMingoCard,
12493
12294
  {
12494
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _294 => _294.name]), () => ( "")),
12495
- description: meta || _optionalChain([item, 'optionalAccess', _295 => _295.description]) || void 0,
12295
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _273 => _273.name]), () => ( "")),
12296
+ description: meta || _optionalChain([item, 'optionalAccess', _274 => _274.description]) || void 0,
12496
12297
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6OCFDC2Qcjs.Megaphone01Icon, { size: 24 }),
12497
12298
  chatRef,
12498
12299
  isNewTab,
@@ -12523,7 +12324,7 @@ function EntityMingoCard({
12523
12324
  imageAlt: typeof title === "string" ? title : void 0,
12524
12325
  icon: fallbackIcon,
12525
12326
  status,
12526
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12327
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab, chatRef.targetPlatform),
12527
12328
  menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
12528
12329
  menuAriaLabel
12529
12330
  }
@@ -12535,7 +12336,7 @@ function entityCover(image, ogPlaceholder) {
12535
12336
  function statusPill(status) {
12536
12337
  const s = typeof status === "string" ? status.trim() : "";
12537
12338
  if (!s) return void 0;
12538
- const scheme = _chunkGAR2IIU6cjs.getStatusColorScheme.call(void 0, s);
12339
+ const scheme = _chunkIM366HS6cjs.getStatusColorScheme.call(void 0, s);
12539
12340
  const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
12540
12341
  return { label: s, variant };
12541
12342
  }
@@ -12547,14 +12348,14 @@ function BlogChatCard({
12547
12348
  hasEmbeddedVideo,
12548
12349
  discuss
12549
12350
  }) {
12550
- const category = Array.isArray(_optionalChain([item, 'optionalAccess', _296 => _296.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _297 => _297.categories, 'access', _298 => _298.find, 'call', _299 => _299((c) => _optionalChain([c, 'optionalAccess', _300 => _300.name])), 'optionalAccess', _301 => _301.name]), () => ( void 0)) : void 0;
12351
+ const category = Array.isArray(_optionalChain([item, 'optionalAccess', _275 => _275.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _276 => _276.categories, 'access', _277 => _277.find, 'call', _278 => _278((c) => _optionalChain([c, 'optionalAccess', _279 => _279.name])), 'optionalAccess', _280 => _280.name]), () => ( void 0)) : void 0;
12551
12352
  const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
12552
12353
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12553
12354
  EntityMingoCard,
12554
12355
  {
12555
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _302 => _302.title]), () => ( "")),
12556
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _303 => _303.summary]), () => ( void 0)),
12557
- cover: entityCover(_optionalChain([item, 'optionalAccess', _304 => _304.featured_image]), ogPlaceholder),
12356
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _281 => _281.title]), () => ( "")),
12357
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _282 => _282.summary]), () => ( void 0)),
12358
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _283 => _283.featured_image]), ogPlaceholder),
12558
12359
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEAPORE6cjs.NewspaperIcon, { size: 24 }),
12559
12360
  status,
12560
12361
  chatRef,
@@ -12571,13 +12372,13 @@ function CaseStudyChatCard({
12571
12372
  ogPlaceholder,
12572
12373
  discuss
12573
12374
  }) {
12574
- const meta = [_optionalChain([item, 'optionalAccess', _305 => _305.msp, 'optionalAccess', _306 => _306.name]), _optionalChain([item, 'optionalAccess', _307 => _307.user, 'optionalAccess', _308 => _308.full_name])].filter(Boolean).join(" \xB7 ");
12375
+ const meta = [_optionalChain([item, 'optionalAccess', _284 => _284.msp, 'optionalAccess', _285 => _285.name]), _optionalChain([item, 'optionalAccess', _286 => _286.user, 'optionalAccess', _287 => _287.full_name])].filter(Boolean).join(" \xB7 ");
12575
12376
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12576
12377
  EntityMingoCard,
12577
12378
  {
12578
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _309 => _309.title]), () => ( "")),
12579
- description: _optionalChain([item, 'optionalAccess', _310 => _310.summary]) || meta || void 0,
12580
- cover: entityCover(_optionalChain([item, 'optionalAccess', _311 => _311.featured_image]), ogPlaceholder),
12379
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _288 => _288.title]), () => ( "")),
12380
+ description: _optionalChain([item, 'optionalAccess', _289 => _289.summary]) || meta || void 0,
12381
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _290 => _290.featured_image]), ogPlaceholder),
12581
12382
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44URXY24cjs.TrophyIcon, { size: 24 }),
12582
12383
  status: { label: "Case study", variant: "grey" },
12583
12384
  chatRef,
@@ -12594,13 +12395,13 @@ function CustomerInterviewChatCard({
12594
12395
  ogPlaceholder,
12595
12396
  discuss
12596
12397
  }) {
12597
- const meta = [_optionalChain([item, 'optionalAccess', _312 => _312.user, 'optionalAccess', _313 => _313.full_name]), _optionalChain([item, 'optionalAccess', _314 => _314.msp, 'optionalAccess', _315 => _315.name])].filter(Boolean).join(" \xB7 ");
12398
+ const meta = [_optionalChain([item, 'optionalAccess', _291 => _291.user, 'optionalAccess', _292 => _292.full_name]), _optionalChain([item, 'optionalAccess', _293 => _293.msp, 'optionalAccess', _294 => _294.name])].filter(Boolean).join(" \xB7 ");
12598
12399
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12599
12400
  EntityMingoCard,
12600
12401
  {
12601
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _316 => _316.title]), () => ( "")),
12602
- description: _optionalChain([item, 'optionalAccess', _317 => _317.video_summary]) || meta || void 0,
12603
- cover: entityCover(_optionalChain([item, 'optionalAccess', _318 => _318.featured_image]), ogPlaceholder),
12402
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _295 => _295.title]), () => ( "")),
12403
+ description: _optionalChain([item, 'optionalAccess', _296 => _296.video_summary]) || meta || void 0,
12404
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _297 => _297.featured_image]), ogPlaceholder),
12604
12405
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 }),
12605
12406
  status: { label: "Interview", variant: "grey" },
12606
12407
  chatRef,
@@ -12617,16 +12418,16 @@ function DesignDocChatCard({
12617
12418
  discuss
12618
12419
  }) {
12619
12420
  const displayRef = fetchedItemDisplayRef(item, chatRef);
12620
- const doc = _optionalChain([item, 'optionalAccess', _319 => _319.doc]);
12421
+ const doc = _optionalChain([item, 'optionalAccess', _298 => _298.doc]);
12621
12422
  const readiness = doc ? DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)] : null;
12622
12423
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12623
12424
  MingoInfoCard,
12624
12425
  {
12625
- title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _320 => _320.title]), () => ( displayRef.title)),
12426
+ title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _299 => _299.title]), () => ( displayRef.title)),
12626
12427
  description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
12627
12428
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
12628
12429
  status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
12629
- anchorProps: _chunkY6MJMPHVcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
12430
+ anchorProps: _chunkDVHSYPDBcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab, displayRef.targetPlatform),
12630
12431
  menuGroups: cardMenuGroups(displayRef.url, discuss),
12631
12432
  menuAriaLabel: "Design doc actions"
12632
12433
  }
@@ -12639,13 +12440,13 @@ function InvestorUpdateChatCard({
12639
12440
  ogPlaceholder,
12640
12441
  discuss
12641
12442
  }) {
12642
- const title = _optionalChain([item, 'optionalAccess', _321 => _321.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _322 => _322.update_number]), () => ( "?"))}`;
12443
+ const title = _optionalChain([item, 'optionalAccess', _300 => _300.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _301 => _301.update_number]), () => ( "?"))}`;
12643
12444
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12644
12445
  EntityMingoCard,
12645
12446
  {
12646
12447
  title,
12647
- description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunkGAR2IIU6cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
12648
- cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
12448
+ description: _optionalChain([item, 'optionalAccess', _302 => _302.strategic_update]) || _optionalChain([item, 'optionalAccess', _303 => _303.content]) || _chunkIM366HS6cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _304 => _304.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _305 => _305.period_end]), () => ( null))) || void 0,
12449
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _306 => _306.featured_image]), ogPlaceholder),
12649
12450
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
12650
12451
  status: { label: "Investor update", variant: "grey" },
12651
12452
  chatRef,
@@ -12662,12 +12463,12 @@ function OnboardingGuideChatCard({
12662
12463
  ogPlaceholder,
12663
12464
  discuss
12664
12465
  }) {
12665
- const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _328 => _328.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _329 => _329.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _330 => _330.og_image_url]), ogPlaceholder)));
12466
+ const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _307 => _307.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _308 => _308.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _309 => _309.og_image_url]), ogPlaceholder)));
12666
12467
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12667
12468
  EntityMingoCard,
12668
12469
  {
12669
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _331 => _331.title]), () => ( "")),
12670
- description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _332 => _332.summary]), () => ( _optionalChain([item, 'optionalAccess', _333 => _333.description]))), () => ( void 0)),
12470
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _310 => _310.title]), () => ( "")),
12471
+ description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _311 => _311.summary]), () => ( _optionalChain([item, 'optionalAccess', _312 => _312.description]))), () => ( void 0)),
12671
12472
  cover,
12672
12473
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 24 }),
12673
12474
  status: { label: "Guide", variant: "grey" },
@@ -12688,13 +12489,13 @@ function ProgramChatCard({
12688
12489
  discuss
12689
12490
  }) {
12690
12491
  const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZ6NU2C2cjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM4KPLFFAcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 });
12691
- const { line: meta } = _chunkGAR2IIU6cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkGAR2IIU6cjs.programMetaFormatters.call(void 0, _chunkGAR2IIU6cjs.PROGRAM_META_RENDERERS));
12492
+ const { line: meta } = _chunkIM366HS6cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkIM366HS6cjs.programMetaFormatters.call(void 0, _chunkIM366HS6cjs.PROGRAM_META_RENDERERS));
12692
12493
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12693
12494
  EntityMingoCard,
12694
12495
  {
12695
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _334 => _334.title]), () => ( "")),
12696
- description: meta || _optionalChain([item, 'optionalAccess', _335 => _335.description]) || void 0,
12697
- cover: entityCover(_optionalChain([item, 'optionalAccess', _336 => _336.cover_url]), ogPlaceholder),
12496
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _313 => _313.title]), () => ( "")),
12497
+ description: meta || _optionalChain([item, 'optionalAccess', _314 => _314.description]) || void 0,
12498
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _315 => _315.cover_url]), ogPlaceholder),
12698
12499
  fallbackIcon: icon,
12699
12500
  status: { label, variant: "grey" },
12700
12501
  chatRef,
@@ -12711,10 +12512,10 @@ function RoadmapChatCard({
12711
12512
  cardType,
12712
12513
  discuss
12713
12514
  }) {
12714
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
12715
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
12515
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _316 => _316.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
12516
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _317 => _317.customItemId]) != null;
12716
12517
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UIJR4PYcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6DN5HKRWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQDSQKK2cjs.MapIcon, { size: 24 });
12717
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
12518
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _318 => _318.customItemId]), className: "size-6" }) : logoUrl ? (
12718
12519
  // Contained (not full-bleed) so the integration logo keeps its aspect
12719
12520
  // ratio inside the bordered icon box — matches RoadmapCard.
12720
12521
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -12735,10 +12536,10 @@ function RoadmapChatCard({
12735
12536
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12736
12537
  EntityMingoCard,
12737
12538
  {
12738
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _340 => _340.title]), () => ( "")),
12739
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _341 => _341.description]), () => ( void 0)),
12539
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _319 => _319.title]), () => ( "")),
12540
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _320 => _320.description]), () => ( void 0)),
12740
12541
  fallbackIcon: icon,
12741
- status: statusPill(_optionalChain([item, 'optionalAccess', _342 => _342.status])),
12542
+ status: statusPill(_optionalChain([item, 'optionalAccess', _321 => _321.status])),
12742
12543
  chatRef,
12743
12544
  isNewTab,
12744
12545
  discuss,
@@ -12754,7 +12555,7 @@ function refHydratedEntry(docType, label, renderRef) {
12754
12555
  bareInline: true,
12755
12556
  contentRefType: docType,
12756
12557
  noComposedHref: true,
12757
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _343 => _343.url]), () => ( null)),
12558
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _322 => _322.url]), () => ( null)),
12758
12559
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
12759
12560
  render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
12760
12561
  };
@@ -12786,15 +12587,15 @@ function financialRegistryEntries() {
12786
12587
  );
12787
12588
  }
12788
12589
  function refText(ref, key) {
12789
- const value = _optionalChain([ref, 'optionalAccess', _344 => _344[key]]);
12590
+ const value = _optionalChain([ref, 'optionalAccess', _323 => _323[key]]);
12790
12591
  return typeof value === "string" && value.length > 0 ? value : null;
12791
12592
  }
12792
12593
  function VendorGlyph({ title, logoUrl }) {
12793
- if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
12594
+ if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
12794
12595
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
12795
12596
  }
12796
12597
  function SitePageGlyph({ iconName }) {
12797
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
12598
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
12798
12599
  }
12799
12600
  var GITHUB_CARD_CONFIGS = {
12800
12601
  github_commit: { label: "GitHub commit", kind: "commit" },
@@ -12832,7 +12633,7 @@ var REF_GLYPH_CARD_CONFIGS = {
12832
12633
  // rate. A glyph card; it opens the pricing page.
12833
12634
  openframe_price: { label: "OpenFrame price" },
12834
12635
  // A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
12835
- vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _345 => _345.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
12636
+ vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _324 => _324.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
12836
12637
  };
12837
12638
  function sourceGlyph(docType) {
12838
12639
  const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
@@ -12851,8 +12652,8 @@ function refGlyphRegistryEntries() {
12851
12652
  title: displayRef.title,
12852
12653
  description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
12853
12654
  cover: entityCover(
12854
- _optionalChain([displayRef, 'access', _346 => _346.metadata, 'optionalAccess', _347 => _347.videoPoster]),
12855
- _nullishCoalesce(_optionalChain([opts, 'access', _348 => _348.extras, 'optionalAccess', _349 => _349.buildOgPlaceholderUrl, 'optionalCall', _350 => _350(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
12655
+ _optionalChain([displayRef, 'access', _325 => _325.metadata, 'optionalAccess', _326 => _326.videoPoster]),
12656
+ _nullishCoalesce(_optionalChain([opts, 'access', _327 => _327.extras, 'optionalAccess', _328 => _328.buildOgPlaceholderUrl, 'optionalCall', _329 => _329(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
12856
12657
  ),
12857
12658
  fallbackIcon: glyph(displayRef),
12858
12659
  status: { label: cfg.label, variant: "grey" },
@@ -12867,9 +12668,9 @@ function refGlyphRegistryEntries() {
12867
12668
  }
12868
12669
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
12869
12670
  const it = item;
12870
- const title = typeof _optionalChain([it, 'optionalAccess', _351 => _351.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
12871
- const author = typeof _optionalChain([it, 'optionalAccess', _352 => _352.author, 'optionalAccess', _353 => _353.full_name]) === "string" ? it.author.full_name.trim() : "";
12872
- const summary = typeof _optionalChain([it, 'optionalAccess', _354 => _354.summary]) === "string" ? it.summary.trim() : "";
12671
+ const title = typeof _optionalChain([it, 'optionalAccess', _330 => _330.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
12672
+ const author = typeof _optionalChain([it, 'optionalAccess', _331 => _331.author, 'optionalAccess', _332 => _332.full_name]) === "string" ? it.author.full_name.trim() : "";
12673
+ const summary = typeof _optionalChain([it, 'optionalAccess', _333 => _333.summary]) === "string" ? it.summary.trim() : "";
12873
12674
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
12874
12675
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
12875
12676
  }
@@ -12922,7 +12723,7 @@ function programRegistryEntries() {
12922
12723
  contentRefType: cfg.contentRefType,
12923
12724
  bareInline: true,
12924
12725
  disclosure: cfg.disclosure,
12925
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.ProgramCard, { loading: true, size: "sm" }),
12726
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.ProgramCard, { loading: true, size: "sm" }),
12926
12727
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12927
12728
  ProgramChatCard,
12928
12729
  {
@@ -12932,7 +12733,7 @@ function programRegistryEntries() {
12932
12733
  discuss: opts.discuss,
12933
12734
  configKey: cfg.configKey,
12934
12735
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
12935
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _355 => _355.extras, 'optionalAccess', _356 => _356.buildOgPlaceholderUrl, 'optionalCall', _357 => _357(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _358 => _358.title]), () => ( "")))]), () => ( null))
12736
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _334 => _334.extras, 'optionalAccess', _335 => _335.buildOgPlaceholderUrl, 'optionalCall', _336 => _336(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _337 => _337.title]), () => ( "")))]), () => ( null))
12936
12737
  }
12937
12738
  )
12938
12739
  }));
@@ -12953,7 +12754,7 @@ var ROADMAP_CARD_CONFIGS = {
12953
12754
  // The card's destination IS the ClickUp deep link, derived from the
12954
12755
  // task id post-fetch (the refs frame used to carry it).
12955
12756
  noComposedHref: true,
12956
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _359 => _359.id]) != null ? clickupTaskUrl(String(item.id)) : null
12757
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _338 => _338.id]) != null ? clickupTaskUrl(String(item.id)) : null
12957
12758
  }
12958
12759
  };
12959
12760
  function roadmapRegistryEntries() {
@@ -12963,7 +12764,7 @@ function roadmapRegistryEntries() {
12963
12764
  bareInline: true,
12964
12765
  ...cfg.noComposedHref ? { noComposedHref: true } : {},
12965
12766
  ...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
12966
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.RoadmapCard, { loading: true, size: "sm" }),
12767
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.RoadmapCard, { loading: true, size: "sm" }),
12967
12768
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12968
12769
  RoadmapChatCard,
12969
12770
  {
@@ -12995,8 +12796,8 @@ var CHAT_CARD_REGISTRY = {
12995
12796
  DeletedDataCard,
12996
12797
  {
12997
12798
  title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
12998
- entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _360 => _360.metadata, 'optionalAccess', _361 => _361.entity_label]), () => ( null)),
12999
- recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _362 => _362.metadata, 'optionalAccess', _363 => _363.recovery_note]), () => ( null))
12799
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _339 => _339.metadata, 'optionalAccess', _340 => _340.entity_label]), () => ( null)),
12800
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _341 => _341.metadata, 'optionalAccess', _342 => _342.recovery_note]), () => ( null))
13000
12801
  }
13001
12802
  )
13002
12803
  },
@@ -13013,7 +12814,7 @@ var CHAT_CARD_REGISTRY = {
13013
12814
  bareInline: true,
13014
12815
  contentRefType: "faq",
13015
12816
  noComposedHref: true,
13016
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _364 => _364.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
12817
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _343 => _343.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
13017
12818
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
13018
12819
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
13019
12820
  },
@@ -13021,12 +12822,12 @@ var CHAT_CARD_REGISTRY = {
13021
12822
  // projection route; `extractCardItems` turns its object payload into the
13022
12823
  // single matched row. Destination is the public page unless the host
13023
12824
  // re-homes the type (`composeContentUrl` override).
13024
- [_chunkGAR2IIU6cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
12825
+ [_chunkIM366HS6cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
13025
12826
  label: "Trust center",
13026
12827
  bareInline: true,
13027
- contentRefType: _chunkGAR2IIU6cjs.TRUST_CENTER_DOCUMENT_TYPE,
12828
+ contentRefType: _chunkIM366HS6cjs.TRUST_CENTER_DOCUMENT_TYPE,
13028
12829
  noComposedHref: true,
13029
- fallbackHref: () => _chunkGAR2IIU6cjs.TRUST_CENTER_PAGE_PATH,
12830
+ fallbackHref: () => _chunkIM366HS6cjs.TRUST_CENTER_PAGE_PATH,
13030
12831
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
13031
12832
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
13032
12833
  },
@@ -13052,7 +12853,7 @@ var CHAT_CARD_REGISTRY = {
13052
12853
  label: "Blog post",
13053
12854
  contentRefType: "blog_post_existing",
13054
12855
  bareInline: true,
13055
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.BlogCard, { loading: true, size: "sm" }),
12856
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.BlogCard, { loading: true, size: "sm" }),
13056
12857
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13057
12858
  BlogChatCard,
13058
12859
  {
@@ -13060,8 +12861,8 @@ var CHAT_CARD_REGISTRY = {
13060
12861
  chatRef,
13061
12862
  isNewTab: opts.isNewTab,
13062
12863
  discuss: opts.discuss,
13063
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _365 => _365.extras, 'optionalAccess', _366 => _366.buildOgPlaceholderUrl, 'optionalCall', _367 => _367(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _368 => _368.title]), () => ( "")))]), () => ( null)),
13064
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _369 => _369.metadata, 'optionalAccess', _370 => _370.hasEmbeddedVideo]) === true
12864
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _344 => _344.extras, 'optionalAccess', _345 => _345.buildOgPlaceholderUrl, 'optionalCall', _346 => _346(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _347 => _347.title]), () => ( "")))]), () => ( null)),
12865
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _348 => _348.metadata, 'optionalAccess', _349 => _349.hasEmbeddedVideo]) === true
13065
12866
  }
13066
12867
  )
13067
12868
  },
@@ -13070,7 +12871,7 @@ var CHAT_CARD_REGISTRY = {
13070
12871
  label: "Case study",
13071
12872
  contentRefType: "case_study",
13072
12873
  bareInline: true,
13073
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.CaseStudyCard, { loading: true, size: "sm" }),
12874
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.CaseStudyCard, { loading: true, size: "sm" }),
13074
12875
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13075
12876
  CaseStudyChatCard,
13076
12877
  {
@@ -13078,7 +12879,7 @@ var CHAT_CARD_REGISTRY = {
13078
12879
  chatRef,
13079
12880
  isNewTab: opts.isNewTab,
13080
12881
  discuss: opts.discuss,
13081
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _371 => _371.extras, 'optionalAccess', _372 => _372.buildOgPlaceholderUrl, 'optionalCall', _373 => _373(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _374 => _374.title]), () => ( "")))]), () => ( null))
12882
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _350 => _350.extras, 'optionalAccess', _351 => _351.buildOgPlaceholderUrl, 'optionalCall', _352 => _352(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _353 => _353.title]), () => ( "")))]), () => ( null))
13082
12883
  }
13083
12884
  )
13084
12885
  },
@@ -13087,7 +12888,7 @@ var CHAT_CARD_REGISTRY = {
13087
12888
  contentRefType: "design_doc",
13088
12889
  bareInline: true,
13089
12890
  noComposedHref: true,
13090
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _375 => _375.url]), () => ( null)),
12891
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _354 => _354.url]), () => ( null)),
13091
12892
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
13092
12893
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
13093
12894
  },
@@ -13096,7 +12897,7 @@ var CHAT_CARD_REGISTRY = {
13096
12897
  label: "Customer interview",
13097
12898
  contentRefType: "customer_interview",
13098
12899
  bareInline: true,
13099
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
12900
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
13100
12901
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13101
12902
  CustomerInterviewChatCard,
13102
12903
  {
@@ -13104,7 +12905,7 @@ var CHAT_CARD_REGISTRY = {
13104
12905
  chatRef,
13105
12906
  isNewTab: opts.isNewTab,
13106
12907
  discuss: opts.discuss,
13107
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _376 => _376.extras, 'optionalAccess', _377 => _377.buildOgPlaceholderUrl, 'optionalCall', _378 => _378(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _379 => _379.title]), () => ( "")))]), () => ( null))
12908
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _355 => _355.extras, 'optionalAccess', _356 => _356.buildOgPlaceholderUrl, 'optionalCall', _357 => _357(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _358 => _358.title]), () => ( "")))]), () => ( null))
13108
12909
  }
13109
12910
  )
13110
12911
  },
@@ -13113,9 +12914,9 @@ var CHAT_CARD_REGISTRY = {
13113
12914
  label: "Product release",
13114
12915
  contentRefType: "product_release",
13115
12916
  bareInline: true,
13116
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.ProductReleaseCard, { loading: true, size: "sm" }),
12917
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.ProductReleaseCard, { loading: true, size: "sm" }),
13117
12918
  render: (item, chatRef, opts) => {
13118
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunkGAR2IIU6cjs.defaultBuildProductReleaseCardProps));
12919
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _359 => _359.extras, 'optionalAccess', _360 => _360.buildProductReleaseCardProps]), () => ( _chunkIM366HS6cjs.defaultBuildProductReleaseCardProps));
13119
12920
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13120
12921
  ProductReleaseChatCard,
13121
12922
  {
@@ -13134,7 +12935,7 @@ var CHAT_CARD_REGISTRY = {
13134
12935
  label: "Investor update",
13135
12936
  contentRefType: "investor_update",
13136
12937
  bareInline: true,
13137
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
12938
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
13138
12939
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13139
12940
  InvestorUpdateChatCard,
13140
12941
  {
@@ -13142,7 +12943,7 @@ var CHAT_CARD_REGISTRY = {
13142
12943
  chatRef,
13143
12944
  isNewTab: opts.isNewTab,
13144
12945
  discuss: opts.discuss,
13145
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _382 => _382.extras, 'optionalAccess', _383 => _383.buildOgPlaceholderUrl, 'optionalCall', _384 => _384(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _385 => _385.title]), () => ( "")))]), () => ( null))
12946
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _361 => _361.extras, 'optionalAccess', _362 => _362.buildOgPlaceholderUrl, 'optionalCall', _363 => _363(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _364 => _364.title]), () => ( "")))]), () => ( null))
13146
12947
  }
13147
12948
  )
13148
12949
  },
@@ -13153,7 +12954,7 @@ var CHAT_CARD_REGISTRY = {
13153
12954
  bareInline: true,
13154
12955
  // "Display" affordance (verbatim guide body) instead of "Ask".
13155
12956
  displayAction: true,
13156
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAR2IIU6cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
12957
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIM366HS6cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
13157
12958
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13158
12959
  OnboardingGuideChatCard,
13159
12960
  {
@@ -13161,7 +12962,7 @@ var CHAT_CARD_REGISTRY = {
13161
12962
  chatRef,
13162
12963
  isNewTab: opts.isNewTab,
13163
12964
  discuss: opts.discuss,
13164
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _386 => _386.extras, 'optionalAccess', _387 => _387.buildOgPlaceholderUrl, 'optionalCall', _388 => _388(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _389 => _389.title]), () => ( "")))]), () => ( null))
12965
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _365 => _365.extras, 'optionalAccess', _366 => _366.buildOgPlaceholderUrl, 'optionalCall', _367 => _367(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _368 => _368.title]), () => ( "")))]), () => ( null))
13165
12966
  }
13166
12967
  )
13167
12968
  },
@@ -13172,35 +12973,35 @@ var CHAT_CARD_REGISTRY = {
13172
12973
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
13173
12974
  // No public viewer — synthesize the hub-internal admin URL post-fetch
13174
12975
  // so the wrapper + isNewTab computation see the actual destination.
13175
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _390 => _390.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
12976
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _369 => _369.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
13176
12977
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
13177
12978
  },
13178
12979
  ...roadmapRegistryEntries()
13179
12980
  };
13180
12981
  function chatCardLabel(docType) {
13181
- return _optionalChain([CHAT_CARD_REGISTRY, 'access', _391 => _391[docType], 'optionalAccess', _392 => _392.label]);
12982
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _370 => _370[docType], 'optionalAccess', _371 => _371.label]);
13182
12983
  }
13183
12984
  function ChatCardNavWrap({
13184
12985
  href,
13185
12986
  path,
13186
12987
  targetPlatform,
13187
12988
  isNewTab,
12989
+ hostRoute,
13188
12990
  children
13189
12991
  }) {
13190
12992
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
13191
- const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
13192
12993
  const panel = useChatPanel();
13193
12994
  const onClickCapture = (e) => {
13194
12995
  if (!href) return;
13195
12996
  const targetEl = e.target;
13196
12997
  const host = e.currentTarget;
13197
- if (!_optionalChain([host, 'optionalAccess', _393 => _393.contains, 'call', _394 => _394(targetEl)])) return;
13198
- if (_optionalChain([targetEl, 'optionalAccess', _395 => _395.closest, 'optionalCall', _396 => _396("button")])) return;
13199
- if (!_optionalChain([targetEl, 'optionalAccess', _397 => _397.closest, 'optionalCall', _398 => _398("a")])) return;
13200
- const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
12998
+ if (!_optionalChain([host, 'optionalAccess', _372 => _372.contains, 'call', _373 => _373(targetEl)])) return;
12999
+ if (_optionalChain([targetEl, 'optionalAccess', _374 => _374.closest, 'optionalCall', _375 => _375("button")])) return;
13000
+ if (!_optionalChain([targetEl, 'optionalAccess', _376 => _376.closest, 'optionalCall', _377 => _377("a")])) return;
13001
+ const handled = _chunkA34UNP5Vcjs.executeNavigation.call(void 0, { event: e, runtime, href, path, targetPlatform, hostRoute });
13201
13002
  if (!handled) return;
13202
13003
  e.stopPropagation();
13203
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _399 => _399.closeChat])) panel.closeChat();
13004
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _378 => _378.closeChat])) panel.closeChat();
13204
13005
  };
13205
13006
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
13206
13007
  }
@@ -13232,7 +13033,7 @@ function ChatCardLoader({
13232
13033
  const entry = CHAT_CARD_REGISTRY[chatRef.type];
13233
13034
  const fetchEntry = entry && entry.contentRefType ? entry : null;
13234
13035
  const { item, isLoading, isError, isFetched } = useChatCardItem(
13235
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _400 => _400.contentRefType]), () => ( "")),
13036
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _379 => _379.contentRefType]), () => ( "")),
13236
13037
  fetchEntry ? chatRef.id : ""
13237
13038
  );
13238
13039
  if (!entry) return null;
@@ -13242,7 +13043,7 @@ function ChatCardLoader({
13242
13043
  entry: fetchEntry,
13243
13044
  ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
13244
13045
  composeContentUrl: runtime.composeContentUrl,
13245
- resolveHref: (href) => _chunkGAR2IIU6cjs.resolveHrefForRuntime.call(void 0, href, runtime)
13046
+ resolveHref: (href) => _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, href).href
13246
13047
  });
13247
13048
  const hrefResolvedChatRef = {
13248
13049
  ...chatRef,
@@ -13253,7 +13054,8 @@ function ChatCardLoader({
13253
13054
  };
13254
13055
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
13255
13056
  const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
13256
- const isNewTab = _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
13057
+ const hostRoute = (destination.source === "composed" || destination.source === "hostOverride") && !!finalChatRef.url && _chunkDVHSYPDBcjs.isRelativeHref.call(void 0, finalChatRef.url);
13058
+ const isNewTab = finalChatRef.url ? _chunkDVHSYPDBcjs.navLinkTarget.call(void 0, runtime, finalChatRef.url, finalChatRef.targetPlatform, { hostRoute }).isNewTab : false;
13257
13059
  const useDisplay = !!entry.displayAction && !!onDisplay;
13258
13060
  const discussFn = useDisplay ? onDisplay : onDiscuss;
13259
13061
  const discuss = discussFn ? {
@@ -13268,7 +13070,7 @@ function ChatCardLoader({
13268
13070
  isNewTab,
13269
13071
  discuss
13270
13072
  };
13271
- const path = typeof _optionalChain([finalChatRef, 'access', _401 => _401.metadata, 'optionalAccess', _402 => _402.path]) === "string" ? finalChatRef.metadata.path : null;
13073
+ const path = typeof _optionalChain([finalChatRef, 'access', _380 => _380.metadata, 'optionalAccess', _381 => _381.path]) === "string" ? finalChatRef.metadata.path : null;
13272
13074
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13273
13075
  ChatCardNavWrap,
13274
13076
  {
@@ -13276,6 +13078,7 @@ function ChatCardLoader({
13276
13078
  path,
13277
13079
  targetPlatform: _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)),
13278
13080
  isNewTab,
13081
+ hostRoute,
13279
13082
  children
13280
13083
  }
13281
13084
  );
@@ -13299,7 +13102,7 @@ function ChatCardLoader({
13299
13102
  }
13300
13103
  if (isLoading) {
13301
13104
  return finish(
13302
- _nullishCoalesce(_optionalChain([fetchEntry, 'access', _403 => _403.skeleton, 'optionalCall', _404 => _404()]), () => ( null)),
13105
+ _nullishCoalesce(_optionalChain([fetchEntry, 'access', _382 => _382.skeleton, 'optionalCall', _383 => _383()]), () => ( null)),
13303
13106
  entry.disclosure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatCardDisclosureButton, { kind: entry.disclosure, loading: true }) : void 0,
13304
13107
  true
13305
13108
  );
@@ -13313,7 +13116,7 @@ function ChatCardLoader({
13313
13116
  }
13314
13117
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Not found" });
13315
13118
  }
13316
- const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _405 => _405(item, finalChatRef), 'optionalAccess', _406 => _406.kind])));
13119
+ const kind = _nullishCoalesce(entry.disclosure, () => ( _optionalChain([chatCardDisclosureOf, 'call', _384 => _384(item, finalChatRef), 'optionalAccess', _385 => _385.kind])));
13317
13120
  if (kind) {
13318
13121
  const content = CHAT_CARD_DISCLOSURES[kind].fromItem(item, finalChatRef);
13319
13122
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13594,7 +13397,7 @@ function useChunkCatchup({
13594
13397
  if (catchupRun.current === run) {
13595
13398
  if (currentDialogId !== dialogIdRef.current) {
13596
13399
  catchupRun.current = null;
13597
- if (_optionalChain([pendingCatchupRef, 'access', _407 => _407.current, 'optionalAccess', _408 => _408.dialogId]) === currentDialogId) {
13400
+ if (_optionalChain([pendingCatchupRef, 'access', _386 => _386.current, 'optionalAccess', _387 => _387.dialogId]) === currentDialogId) {
13598
13401
  pendingCatchupRef.current = null;
13599
13402
  }
13600
13403
  } else {
@@ -13605,7 +13408,7 @@ function useChunkCatchup({
13605
13408
  if (pending.dialogId === currentDialogId) {
13606
13409
  rearmForQueuedCatchup();
13607
13410
  try {
13608
- await _optionalChain([catchUpChunksRef, 'access', _409 => _409.current, 'optionalCall', _410 => _410(pending.fromSequenceId)]);
13411
+ await _optionalChain([catchUpChunksRef, 'access', _388 => _388.current, 'optionalCall', _389 => _389(pending.fromSequenceId)]);
13609
13412
  } catch (rerunError) {
13610
13413
  console.error("Queued catch-up re-run failed:", rerunError);
13611
13414
  }
@@ -13756,20 +13559,20 @@ function useNatsDialogSubscription({
13756
13559
  const tearDownSubscriptions = () => {
13757
13560
  subscriptionRefs.current.forEach((sub) => {
13758
13561
  try {
13759
- _optionalChain([sub, 'optionalAccess', _411 => _411.unsubscribe, 'call', _412 => _412()]);
13760
- } catch (e11) {
13562
+ _optionalChain([sub, 'optionalAccess', _390 => _390.unsubscribe, 'call', _391 => _391()]);
13563
+ } catch (e9) {
13761
13564
  }
13762
13565
  });
13763
13566
  subscriptionRefs.current.clear();
13764
13567
  lastSubscribedDialogIdRef.current = null;
13765
- _optionalChain([abortControllerRef, 'access', _413 => _413.current, 'optionalAccess', _414 => _414.abort, 'call', _415 => _415()]);
13568
+ _optionalChain([abortControllerRef, 'access', _392 => _392.current, 'optionalAccess', _393 => _393.abort, 'call', _394 => _394()]);
13766
13569
  abortControllerRef.current = null;
13767
13570
  };
13768
13571
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
13769
13572
  const lifecycle = _chunkQDB2JO55cjs.startConnectionLifecycle.call(void 0, {
13770
13573
  conn: sharedConn,
13771
13574
  wsUrl,
13772
- onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _416 => _416.current, 'optionalCall', _417 => _417(ctx)]),
13575
+ onBeforeReconnect: (ctx) => _optionalChain([onBeforeReconnectRef, 'access', _395 => _395.current, 'optionalCall', _396 => _396(ctx)]),
13773
13576
  backoff: reconnectionBackoffRef.current,
13774
13577
  getFreshUrl: () => getNatsWsUrlRef.current(),
13775
13578
  shouldRetryOn: isDisconnectStatus,
@@ -13780,7 +13583,7 @@ function useNatsDialogSubscription({
13780
13583
  setReconnectionCount((c) => c + 1);
13781
13584
  }
13782
13585
  hadConnectionBeforeRef.current = true;
13783
- _optionalChain([onConnectRef, 'access', _418 => _418.current, 'optionalCall', _419 => _419()]);
13586
+ _optionalChain([onConnectRef, 'access', _397 => _397.current, 'optionalCall', _398 => _398()]);
13784
13587
  }
13785
13588
  if (status === "error") {
13786
13589
  console.warn("[NATS] protocol error:", evt.data);
@@ -13790,7 +13593,7 @@ function useNatsDialogSubscription({
13790
13593
  setIsConnected(false);
13791
13594
  setIsSubscribed(false);
13792
13595
  tearDownSubscriptions();
13793
- _optionalChain([onDisconnectRef, 'access', _420 => _420.current, 'optionalCall', _421 => _421()]);
13596
+ _optionalChain([onDisconnectRef, 'access', _399 => _399.current, 'optionalCall', _400 => _400()]);
13794
13597
  }
13795
13598
  }
13796
13599
  });
@@ -13821,13 +13624,13 @@ function useNatsDialogSubscription({
13821
13624
  setIsSubscribed(false);
13822
13625
  subscriptionRefs.current.forEach((sub) => {
13823
13626
  try {
13824
- _optionalChain([sub, 'optionalAccess', _422 => _422.unsubscribe, 'call', _423 => _423()]);
13825
- } catch (e12) {
13627
+ _optionalChain([sub, 'optionalAccess', _401 => _401.unsubscribe, 'call', _402 => _402()]);
13628
+ } catch (e10) {
13826
13629
  }
13827
13630
  });
13828
13631
  subscriptionRefs.current.clear();
13829
13632
  lastSubscribedDialogIdRef.current = null;
13830
- _optionalChain([abortControllerRef, 'access', _424 => _424.current, 'optionalAccess', _425 => _425.abort, 'call', _426 => _426()]);
13633
+ _optionalChain([abortControllerRef, 'access', _403 => _403.current, 'optionalAccess', _404 => _404.abort, 'call', _405 => _405()]);
13831
13634
  abortControllerRef.current = null;
13832
13635
  }
13833
13636
  return void 0;
@@ -13839,12 +13642,12 @@ function useNatsDialogSubscription({
13839
13642
  if (subscriptionRefs.current.size > 0) {
13840
13643
  subscriptionRefs.current.forEach((sub) => {
13841
13644
  try {
13842
- _optionalChain([sub, 'optionalAccess', _427 => _427.unsubscribe, 'call', _428 => _428()]);
13843
- } catch (e13) {
13645
+ _optionalChain([sub, 'optionalAccess', _406 => _406.unsubscribe, 'call', _407 => _407()]);
13646
+ } catch (e11) {
13844
13647
  }
13845
13648
  });
13846
13649
  subscriptionRefs.current.clear();
13847
- _optionalChain([abortControllerRef, 'access', _429 => _429.current, 'optionalAccess', _430 => _430.abort, 'call', _431 => _431()]);
13650
+ _optionalChain([abortControllerRef, 'access', _408 => _408.current, 'optionalAccess', _409 => _409.abort, 'call', _410 => _410()]);
13848
13651
  }
13849
13652
  abortControllerRef.current = new AbortController();
13850
13653
  const abort = abortControllerRef.current;
@@ -13863,7 +13666,7 @@ function useNatsDialogSubscription({
13863
13666
  const dataStr = decoder.decode(msg.data);
13864
13667
  const parsed = JSON.parse(dataStr);
13865
13668
  onEventRef.current(parsed, messageType);
13866
- } catch (e14) {
13669
+ } catch (e12) {
13867
13670
  }
13868
13671
  };
13869
13672
  topicsRef.current.forEach((topic) => {
@@ -13874,7 +13677,7 @@ function useNatsDialogSubscription({
13874
13677
  });
13875
13678
  lastSubscribedDialogIdRef.current = dialogId;
13876
13679
  setIsSubscribed(true);
13877
- _optionalChain([onSubscribedRef, 'access', _432 => _432.current, 'optionalCall', _433 => _433()]);
13680
+ _optionalChain([onSubscribedRef, 'access', _411 => _411.current, 'optionalCall', _412 => _412()]);
13878
13681
  };
13879
13682
  if (isConnectedRef.current) {
13880
13683
  createSubscriptions();
@@ -13885,8 +13688,8 @@ function useNatsDialogSubscription({
13885
13688
  abort.abort();
13886
13689
  subscriptions.forEach((sub) => {
13887
13690
  try {
13888
- _optionalChain([sub, 'optionalAccess', _434 => _434.unsubscribe, 'call', _435 => _435()]);
13889
- } catch (e15) {
13691
+ _optionalChain([sub, 'optionalAccess', _413 => _413.unsubscribe, 'call', _414 => _414()]);
13692
+ } catch (e13) {
13890
13693
  }
13891
13694
  });
13892
13695
  subscriptions.clear();
@@ -13913,7 +13716,7 @@ function useNatsDialogSubscription({
13913
13716
  const dataStr = decoder.decode(msg.data);
13914
13717
  const parsed = JSON.parse(dataStr);
13915
13718
  onEventRef.current(parsed, messageType);
13916
- } catch (e16) {
13719
+ } catch (e14) {
13917
13720
  }
13918
13721
  };
13919
13722
  topicsRef.current.forEach((topic) => {
@@ -13924,7 +13727,7 @@ function useNatsDialogSubscription({
13924
13727
  });
13925
13728
  lastSubscribedDialogIdRef.current = currentDialogId;
13926
13729
  setIsSubscribed(true);
13927
- _optionalChain([onSubscribedRef, 'access', _436 => _436.current, 'optionalCall', _437 => _437()]);
13730
+ _optionalChain([onSubscribedRef, 'access', _415 => _415.current, 'optionalCall', _416 => _416()]);
13928
13731
  } else if (subscriptionRefs.current.size > 0) {
13929
13732
  setIsSubscribed(true);
13930
13733
  }
@@ -13932,10 +13735,10 @@ function useNatsDialogSubscription({
13932
13735
  return { isConnected, isSubscribed, reconnectionCount };
13933
13736
  }
13934
13737
  function buildNatsWsUrl(apiBaseUrl, options) {
13935
- const path = _optionalChain([options, 'optionalAccess', _438 => _438.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
13738
+ const path = _optionalChain([options, 'optionalAccess', _417 => _417.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
13936
13739
  const u = new URL(path, apiBaseUrl);
13937
13740
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
13938
- if (_optionalChain([options, 'optionalAccess', _439 => _439.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _440 => _440.token])) {
13741
+ if (_optionalChain([options, 'optionalAccess', _418 => _418.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _419 => _419.token])) {
13939
13742
  u.searchParams.set("authorization", options.token);
13940
13743
  }
13941
13744
  return u.toString();
@@ -13953,7 +13756,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
13953
13756
  const data = await res.json();
13954
13757
  return _nullishCoalesce(data.commands, () => ( []));
13955
13758
  } catch (err) {
13956
- if (_optionalChain([err, 'optionalAccess', _441 => _441.name]) === "AbortError") throw err;
13759
+ if (_optionalChain([err, 'optionalAccess', _420 => _420.name]) === "AbortError") throw err;
13957
13760
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
13958
13761
  return [];
13959
13762
  }
@@ -13961,8 +13764,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
13961
13764
  var NO_COMMANDS = [];
13962
13765
  function useSlashCommands(prefix, commandsUrl) {
13963
13766
  const [answered, setAnswered] = _react.useState.call(void 0, null);
13964
- const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _442 => _442.prefix]) === prefix ? answered.commands : NO_COMMANDS;
13965
- const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _443 => _443.prefix]) !== prefix;
13767
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _421 => _421.prefix]) === prefix ? answered.commands : NO_COMMANDS;
13768
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _422 => _422.prefix]) !== prefix;
13966
13769
  _react.useEffect.call(void 0, () => {
13967
13770
  if (prefix == null) return void 0;
13968
13771
  let cancelled = false;
@@ -13972,7 +13775,7 @@ function useSlashCommands(prefix, commandsUrl) {
13972
13775
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
13973
13776
  if (!cancelled) setAnswered({ prefix, commands: next });
13974
13777
  } catch (err) {
13975
- if (!cancelled && _optionalChain([err, 'optionalAccess', _444 => _444.name]) !== "AbortError") {
13778
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _423 => _423.name]) !== "AbortError") {
13976
13779
  console.warn("[use-slash-commands] fetch failed:", err);
13977
13780
  setAnswered({ prefix, commands: NO_COMMANDS });
13978
13781
  }
@@ -13995,7 +13798,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
13995
13798
  const query = _reactquery.useQuery.call(void 0, {
13996
13799
  queryKey: ["chat-slash-commands", commandsUrl],
13997
13800
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
13998
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _445 => _445.enabled]), () => ( true)),
13801
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.enabled]), () => ( true)),
13999
13802
  staleTime: Infinity,
14000
13803
  gcTime: Infinity,
14001
13804
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -14034,21 +13837,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
14034
13837
  }
14035
13838
  const data = await res.json();
14036
13839
  return {
14037
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _446 => _446.name]), () => ( null)),
14038
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _447 => _447.icon]), () => ( null)),
14039
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _448 => _448.greeting]), () => ( null)),
14040
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _449 => _449.enabledRagTableIds]), () => ( [])),
14041
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _450 => _450.quickActions]), () => ( [])),
14042
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _451 => _451.suggestedQueries]), () => ( []))
13840
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _425 => _425.name]), () => ( null)),
13841
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _426 => _426.icon]), () => ( null)),
13842
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _427 => _427.greeting]), () => ( null)),
13843
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _428 => _428.enabledRagTableIds]), () => ( [])),
13844
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _429 => _429.quickActions]), () => ( [])),
13845
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _430 => _430.suggestedQueries]), () => ( []))
14043
13846
  };
14044
13847
  } catch (err) {
14045
- if (_optionalChain([err, 'optionalAccess', _452 => _452.name]) === "AbortError") throw err;
13848
+ if (_optionalChain([err, 'optionalAccess', _431 => _431.name]) === "AbortError") throw err;
14046
13849
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
14047
13850
  return EMPTY_STATE_FALLBACK;
14048
13851
  }
14049
13852
  }
14050
13853
  function useEmptyStateConfig(emptyStateUrl, options) {
14051
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _453 => _453.enabled]), () => ( true))) && !!emptyStateUrl;
13854
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.enabled]), () => ( true))) && !!emptyStateUrl;
14052
13855
  const query = _reactquery.useQuery.call(void 0, {
14053
13856
  queryKey: ["chat-empty-state", emptyStateUrl],
14054
13857
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -14077,7 +13880,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
14077
13880
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
14078
13881
  function uploadWithProgress(url, file, token, onProgress, signal) {
14079
13882
  return new Promise((resolve, reject) => {
14080
- if (_optionalChain([signal, 'optionalAccess', _454 => _454.aborted])) {
13883
+ if (_optionalChain([signal, 'optionalAccess', _433 => _433.aborted])) {
14081
13884
  reject(new Error("Upload cancelled"));
14082
13885
  return;
14083
13886
  }
@@ -14119,7 +13922,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
14119
13922
  const handleSignalAbort = () => {
14120
13923
  xhr.abort();
14121
13924
  };
14122
- _optionalChain([signal, 'optionalAccess', _455 => _455.addEventListener, 'call', _456 => _456("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
13925
+ _optionalChain([signal, 'optionalAccess', _434 => _434.addEventListener, 'call', _435 => _435("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
14123
13926
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
14124
13927
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
14125
13928
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -14163,10 +13966,10 @@ function useChatAttachments() {
14163
13966
  try {
14164
13967
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
14165
13968
  } catch (err) {
14166
- if (_optionalChain([ctrl, 'optionalAccess', _457 => _457.signal, 'access', _458 => _458.aborted])) return;
13969
+ if (_optionalChain([ctrl, 'optionalAccess', _436 => _436.signal, 'access', _437 => _437.aborted])) return;
14167
13970
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
14168
13971
  }
14169
- if (_optionalChain([ctrl, 'optionalAccess', _459 => _459.signal, 'access', _460 => _460.aborted])) return;
13972
+ if (_optionalChain([ctrl, 'optionalAccess', _438 => _438.signal, 'access', _439 => _439.aborted])) return;
14170
13973
  if (!sniffed) {
14171
13974
  throw new Error("Unrecognized file format");
14172
13975
  }
@@ -14180,7 +13983,7 @@ function useChatAttachments() {
14180
13983
  const urlResp = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
14181
13984
  method: "POST",
14182
13985
  headers: { "Content-Type": "application/json" },
14183
- signal: _optionalChain([ctrl, 'optionalAccess', _461 => _461.signal]),
13986
+ signal: _optionalChain([ctrl, 'optionalAccess', _440 => _440.signal]),
14184
13987
  body: JSON.stringify({
14185
13988
  fileName: att.file.name,
14186
13989
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -14209,9 +14012,9 @@ function useChatAttachments() {
14209
14012
  (pct) => {
14210
14013
  updateOne(att.id, { progress: pct });
14211
14014
  },
14212
- _optionalChain([ctrl, 'optionalAccess', _462 => _462.signal])
14015
+ _optionalChain([ctrl, 'optionalAccess', _441 => _441.signal])
14213
14016
  );
14214
- if (_optionalChain([ctrl, 'optionalAccess', _463 => _463.signal, 'access', _464 => _464.aborted])) return;
14017
+ if (_optionalChain([ctrl, 'optionalAccess', _442 => _442.signal, 'access', _443 => _443.aborted])) return;
14215
14018
  updateOne(att.id, {
14216
14019
  status: "ready",
14217
14020
  progress: 100,
@@ -14219,7 +14022,7 @@ function useChatAttachments() {
14219
14022
  viewToken: mintData.viewToken
14220
14023
  });
14221
14024
  } catch (err) {
14222
- if (_optionalChain([ctrl, 'optionalAccess', _465 => _465.signal, 'access', _466 => _466.aborted])) return;
14025
+ if (_optionalChain([ctrl, 'optionalAccess', _444 => _444.signal, 'access', _445 => _445.aborted])) return;
14223
14026
  const message = err instanceof Error ? err.message : String(err);
14224
14027
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
14225
14028
  } finally {
@@ -14341,7 +14144,7 @@ function useChatAttachmentImageGallery() {
14341
14144
  return () => root.removeEventListener("click", onClick);
14342
14145
  }, [viewUrlPrefix]);
14343
14146
  const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14344
- _chunkGAR2IIU6cjs.ImageGalleryModal,
14147
+ _chunkIM366HS6cjs.ImageGalleryModal,
14345
14148
  {
14346
14149
  images: state.images,
14347
14150
  isOpen: state.isOpen,
@@ -14368,11 +14171,11 @@ var ANON_DEFAULTS = {
14368
14171
  function useResolveChatIdentity(enabled) {
14369
14172
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
14370
14173
  const url = runtime.endpoints.identityUrl;
14371
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _467 => _467.email]), () => ( null));
14174
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _446 => _446.email]), () => ( null));
14372
14175
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
14373
14176
  const [resolved, setResolved] = _react.useState.call(void 0, null);
14374
- const data = _optionalChain([resolved, 'optionalAccess', _468 => _468.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
14375
- const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _469 => _469.key]) !== requestKey;
14177
+ const data = _optionalChain([resolved, 'optionalAccess', _447 => _447.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
14178
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _448 => _448.key]) !== requestKey;
14376
14179
  _react.useEffect.call(void 0, () => {
14377
14180
  if (requestKey === null) return void 0;
14378
14181
  let cancelled = false;
@@ -14494,9 +14297,9 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
14494
14297
  role: "user",
14495
14298
  content: content.question,
14496
14299
  timestamp: new Date(at),
14497
- name: _optionalChain([user, 'optionalAccess', _470 => _470.name]),
14498
- avatar: _optionalChain([user, 'optionalAccess', _471 => _471.avatar]),
14499
- authorType: _optionalChain([user, 'optionalAccess', _472 => _472.authorType])
14300
+ name: _optionalChain([user, 'optionalAccess', _449 => _449.name]),
14301
+ avatar: _optionalChain([user, 'optionalAccess', _450 => _450.avatar]),
14302
+ authorType: _optionalChain([user, 'optionalAccess', _451 => _451.authorType])
14500
14303
  },
14501
14304
  {
14502
14305
  id: `${id}-answer`,
@@ -14507,10 +14310,10 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
14507
14310
  ],
14508
14311
  // A millisecond after the question, so the pair keeps its order.
14509
14312
  timestamp: new Date(at + 1),
14510
- name: _optionalChain([assistant, 'optionalAccess', _473 => _473.name]),
14511
- avatar: _optionalChain([assistant, 'optionalAccess', _474 => _474.avatar]),
14512
- authorType: _optionalChain([assistant, 'optionalAccess', _475 => _475.authorType]),
14513
- assistantType: _optionalChain([assistant, 'optionalAccess', _476 => _476.assistantType])
14313
+ name: _optionalChain([assistant, 'optionalAccess', _452 => _452.name]),
14314
+ avatar: _optionalChain([assistant, 'optionalAccess', _453 => _453.avatar]),
14315
+ authorType: _optionalChain([assistant, 'optionalAccess', _454 => _454.authorType]),
14316
+ assistantType: _optionalChain([assistant, 'optionalAccess', _455 => _455.assistantType])
14514
14317
  }
14515
14318
  ];
14516
14319
  }
@@ -14526,8 +14329,8 @@ function mergeByTime(thread, local) {
14526
14329
  const out = [];
14527
14330
  let next = 0;
14528
14331
  for (const message of thread) {
14529
- const at = _optionalChain([message, 'access', _477 => _477.timestamp, 'optionalAccess', _478 => _478.getTime, 'call', _479 => _479()]);
14530
- while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _480 => _480[next], 'access', _481 => _481.timestamp, 'optionalAccess', _482 => _482.getTime, 'call', _483 => _483()]), () => ( 0))) < at) {
14332
+ const at = _optionalChain([message, 'access', _456 => _456.timestamp, 'optionalAccess', _457 => _457.getTime, 'call', _458 => _458()]);
14333
+ while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _459 => _459[next], 'access', _460 => _460.timestamp, 'optionalAccess', _461 => _461.getTime, 'call', _462 => _462()]), () => ( 0))) < at) {
14531
14334
  out.push(local[next]);
14532
14335
  next += 1;
14533
14336
  }
@@ -14632,9 +14435,9 @@ function appendToTrailingAssistant(prev, segments) {
14632
14435
  for (const seg of segments) {
14633
14436
  const tail = merged[merged.length - 1];
14634
14437
  const key = upsertKey(seg);
14635
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _484 => _484.type]) === "text") {
14438
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _463 => _463.type]) === "text") {
14636
14439
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
14637
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _485 => _485.type]) === "thinking") {
14440
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _464 => _464.type]) === "thinking") {
14638
14441
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
14639
14442
  } else if (key) {
14640
14443
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -14675,7 +14478,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
14675
14478
  }
14676
14479
  if (s.type !== "approval_batch") return s;
14677
14480
  const isAnchor = s.data.approvalRequestId === requestId;
14678
- const hasRow = _optionalChain([s, 'access', _486 => _486.data, 'access', _487 => _487.toolCalls, 'optionalAccess', _488 => _488.some, 'call', _489 => _489((c) => c.toolExecutionRequestId === requestId)]);
14481
+ const hasRow = _optionalChain([s, 'access', _465 => _465.data, 'access', _466 => _466.toolCalls, 'optionalAccess', _467 => _467.some, 'call', _468 => _468((c) => c.toolExecutionRequestId === requestId)]);
14679
14482
  if (!isAnchor && !hasRow) return s;
14680
14483
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
14681
14484
  const nextExecutions = hasRow ? {
@@ -14697,8 +14500,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
14697
14500
  };
14698
14501
  }
14699
14502
  function nextBatchExecution(prevExec, toolData) {
14700
- if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _490 => _490.status]) === "done") return null;
14701
- return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _491 => _491.result]), success: _optionalChain([prevExec, 'optionalAccess', _492 => _492.success]) };
14503
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _469 => _469.status]) === "done") return null;
14504
+ return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _470 => _470.result]), success: _optionalChain([prevExec, 'optionalAccess', _471 => _471.success]) };
14702
14505
  }
14703
14506
  function withBatchExecution(seg, execId, state) {
14704
14507
  return {
@@ -14715,11 +14518,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
14715
14518
  }
14716
14519
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
14717
14520
  return mapSegments(prev, (s) => {
14718
- if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _493 => _493.data, 'access', _494 => _494.toolCalls, 'optionalAccess', _495 => _495.some, 'call', _496 => _496((c) => c.toolExecutionRequestId === rowRequestId)])) {
14521
+ if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _472 => _472.data, 'access', _473 => _473.toolCalls, 'optionalAccess', _474 => _474.some, 'call', _475 => _475((c) => c.toolExecutionRequestId === rowRequestId)])) {
14719
14522
  return s;
14720
14523
  }
14721
- const existing = _optionalChain([s, 'access', _497 => _497.data, 'access', _498 => _498.executions, 'optionalAccess', _499 => _499[rowRequestId]]);
14722
- if (_optionalChain([existing, 'optionalAccess', _500 => _500.status]) === "done") return s;
14524
+ const existing = _optionalChain([s, 'access', _476 => _476.data, 'access', _477 => _477.executions, 'optionalAccess', _478 => _478[rowRequestId]]);
14525
+ if (_optionalChain([existing, 'optionalAccess', _479 => _479.status]) === "done") return s;
14723
14526
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
14724
14527
  });
14725
14528
  }
@@ -14755,7 +14558,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
14755
14558
  for (let j = message.segments.length - 1; j >= 0; j--) {
14756
14559
  const seg = message.segments[j];
14757
14560
  if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
14758
- const prevExec = _optionalChain([seg, 'access', _501 => _501.data, 'access', _502 => _502.executions, 'optionalAccess', _503 => _503[execId]]);
14561
+ const prevExec = _optionalChain([seg, 'access', _480 => _480.data, 'access', _481 => _481.executions, 'optionalAccess', _482 => _482[execId]]);
14759
14562
  const nextExec = nextBatchExecution(prevExec, toolData);
14760
14563
  if (nextExec === null) return prev;
14761
14564
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -14928,9 +14731,9 @@ var MessageSegmentAccumulator = class {
14928
14731
  type: "tool_execution",
14929
14732
  data: {
14930
14733
  ...toolData,
14931
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _504 => _504.data, 'access', _505 => _505.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _506 => _506.toolTitle]))),
14932
- toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _507 => _507.data, 'access', _508 => _508.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _509 => _509.toolExplanation]))),
14933
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _510 => _510.parameters])
14734
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _483 => _483.data, 'access', _484 => _484.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _485 => _485.toolTitle]))),
14735
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _486 => _486.data, 'access', _487 => _487.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _488 => _488.toolExplanation]))),
14736
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _489 => _489.parameters])
14934
14737
  }
14935
14738
  };
14936
14739
  if (existingIndex !== -1) {
@@ -14954,7 +14757,7 @@ var MessageSegmentAccumulator = class {
14954
14757
  if (seg.type !== "approval_batch") return seg;
14955
14758
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
14956
14759
  if (!hasCall) return seg;
14957
- const prev = _optionalChain([seg, 'access', _511 => _511.data, 'access', _512 => _512.executions, 'optionalAccess', _513 => _513[execId]]);
14760
+ const prev = _optionalChain([seg, 'access', _490 => _490.data, 'access', _491 => _491.executions, 'optionalAccess', _492 => _492[execId]]);
14958
14761
  const next = nextBatchExecution(prev, toolData);
14959
14762
  matched = true;
14960
14763
  if (next === null) return seg;
@@ -15088,8 +14891,8 @@ var MessageSegmentAccumulator = class {
15088
14891
  requestId,
15089
14892
  {
15090
14893
  ...pendingApproval,
15091
- command: _optionalChain([pendingApproval, 'optionalAccess', _514 => _514.command]) || "",
15092
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _515 => _515.approvalType]) || approvalType
14894
+ command: _optionalChain([pendingApproval, 'optionalAccess', _493 => _493.command]) || "",
14895
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _494 => _494.approvalType]) || approvalType
15093
14896
  },
15094
14897
  status
15095
14898
  );
@@ -15114,9 +14917,9 @@ var MessageSegmentAccumulator = class {
15114
14917
  type: "escalation_offer",
15115
14918
  // The resolved chunk carries no text/origin — a redelivered offer must
15116
14919
  // not blank the card the PENDING chunk already painted.
15117
- data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _516 => _516.data, 'access', _517 => _517.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _518 => _518.data, 'access', _519 => _519.origin]))) },
14920
+ data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _495 => _495.data, 'access', _496 => _496.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _497 => _497.data, 'access', _498 => _498.origin]))) },
15118
14921
  status,
15119
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _520 => _520.resolvedByName]))),
14922
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _499 => _499.resolvedByName]))),
15120
14923
  onApprove: this.callbacks.onEscalationApprove,
15121
14924
  onReject: this.callbacks.onEscalationReject
15122
14925
  };
@@ -15363,7 +15166,7 @@ function errorDetailsMessage(details) {
15363
15166
  let parsed;
15364
15167
  try {
15365
15168
  parsed = JSON.parse(details);
15366
- } catch (e17) {
15169
+ } catch (e15) {
15367
15170
  return details;
15368
15171
  }
15369
15172
  if (typeof parsed !== "object" || parsed === null) return void 0;
@@ -15503,10 +15306,10 @@ function nullableText(value) {
15503
15306
  }
15504
15307
  function httpsUrl(value) {
15505
15308
  const candidate = text(value);
15506
- if (!candidate || _chunkY6MJMPHVcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
15309
+ if (!candidate || _chunkUEULXVW2cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
15507
15310
  try {
15508
15311
  return new URL(candidate).protocol === "https:" ? candidate : void 0;
15509
- } catch (e18) {
15312
+ } catch (e16) {
15510
15313
  return void 0;
15511
15314
  }
15512
15315
  }
@@ -15520,7 +15323,7 @@ function youtubeVideoId(value) {
15520
15323
  const hostname = parsed.hostname.toLowerCase();
15521
15324
  const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
15522
15325
  if (!isYoutubeHost) return void 0;
15523
- const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _521 => _521.exec, 'call', _522 => _522(parsed.pathname), 'optionalAccess', _523 => _523[1]]);
15326
+ const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _500 => _500.exec, 'call', _501 => _501(parsed.pathname), 'optionalAccess', _502 => _502[1]]);
15524
15327
  const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
15525
15328
  return id && YOUTUBE_ID.test(id) ? id : void 0;
15526
15329
  }
@@ -15639,11 +15442,11 @@ function cards(value, decodedSources) {
15639
15442
  {
15640
15443
  type,
15641
15444
  id,
15642
- title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _524 => _524.name]), () => ( id)),
15643
- url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _525 => _525.externalUrl]), () => ( null)),
15644
- ..._optionalChain([source, 'optionalAccess', _526 => _526.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
15645
- ..._optionalChain([source, 'optionalAccess', _527 => _527.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
15646
- ..._optionalChain([source, 'optionalAccess', _528 => _528.path]) ? { metadata: { path: source.path } } : {}
15445
+ title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _503 => _503.name]), () => ( id)),
15446
+ url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _504 => _504.externalUrl]), () => ( null)),
15447
+ ..._optionalChain([source, 'optionalAccess', _505 => _505.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
15448
+ ..._optionalChain([source, 'optionalAccess', _506 => _506.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
15449
+ ..._optionalChain([source, 'optionalAccess', _507 => _507.path]) ? { metadata: { path: source.path } } : {}
15647
15450
  }
15648
15451
  ];
15649
15452
  });
@@ -15679,11 +15482,11 @@ function attachmentsEvent(record) {
15679
15482
  }
15680
15483
  function mergeSourceMetadata(previous, event) {
15681
15484
  const byIndex = /* @__PURE__ */ new Map();
15682
- for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _529 => _529.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
15485
+ for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _508 => _508.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
15683
15486
  if (!byIndex.has(source.index)) byIndex.set(source.index, source);
15684
15487
  }
15685
15488
  const byIdentity = /* @__PURE__ */ new Map();
15686
- for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _530 => _530.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
15489
+ for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _509 => _509.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
15687
15490
  const identity = `${ref.type}:${ref.id}`;
15688
15491
  if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
15689
15492
  }
@@ -15793,7 +15596,7 @@ function createChatStreamReducer(options = {}) {
15793
15596
  let stateCache = null;
15794
15597
  function invalidate() {
15795
15598
  stateCache = null;
15796
- _optionalChain([onChange, 'optionalCall', _531 => _531()]);
15599
+ _optionalChain([onChange, 'optionalCall', _510 => _510()]);
15797
15600
  }
15798
15601
  function getState() {
15799
15602
  if (!stateCache) {
@@ -15811,7 +15614,7 @@ function createChatStreamReducer(options = {}) {
15811
15614
  return stateCache;
15812
15615
  }
15813
15616
  function emit(name, ...args) {
15814
- _optionalChain([onEffect, 'optionalCall', _532 => _532({ name, args })]);
15617
+ _optionalChain([onEffect, 'optionalCall', _511 => _511({ name, args })]);
15815
15618
  }
15816
15619
  function setMessagesInternal(next) {
15817
15620
  if (next !== messages) {
@@ -15854,12 +15657,12 @@ function createChatStreamReducer(options = {}) {
15854
15657
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
15855
15658
  }
15856
15659
  function applySegmentsToState(segments, meta) {
15857
- const seq = _optionalChain([meta, 'optionalAccess', _533 => _533.streamSeq]);
15858
- if (_optionalChain([meta, 'optionalAccess', _534 => _534.append]) && meta.isCompacting) {
15660
+ const seq = _optionalChain([meta, 'optionalAccess', _512 => _512.streamSeq]);
15661
+ if (_optionalChain([meta, 'optionalAccess', _513 => _513.append]) && meta.isCompacting) {
15859
15662
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
15860
15663
  return;
15861
15664
  }
15862
- if (_optionalChain([meta, 'optionalAccess', _535 => _535.append])) {
15665
+ if (_optionalChain([meta, 'optionalAccess', _514 => _514.append])) {
15863
15666
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
15864
15667
  return;
15865
15668
  }
@@ -15871,7 +15674,7 @@ function createChatStreamReducer(options = {}) {
15871
15674
  adoptTrailingAssistant = false;
15872
15675
  const last = messages[messages.length - 1];
15873
15676
  if (!last || last.role !== "assistant" || adoptTail) return;
15874
- const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _536 => _536.segments, 'optionalAccess', _537 => _537.length]), () => ( 0))) > 0 || last.content !== "";
15677
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _515 => _515.segments, 'optionalAccess', _516 => _516.length]), () => ( 0))) > 0 || last.content !== "";
15875
15678
  if (!hasContent) return;
15876
15679
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
15877
15680
  }
@@ -16090,13 +15893,13 @@ function createChatStreamReducer(options = {}) {
16090
15893
  const summary = required ? _chunkOBQ5WUNGcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
16091
15894
  pendingEscalated.set(requestId, {
16092
15895
  command: summary,
16093
- explanation: _optionalChain([required, 'optionalAccess', _538 => _538.toolExplanation]),
15896
+ explanation: _optionalChain([required, 'optionalAccess', _517 => _517.toolExplanation]),
16094
15897
  approvalType,
16095
15898
  toolCalls
16096
15899
  });
16097
15900
  emit("onEscalatedApproval", requestId, {
16098
15901
  command: summary,
16099
- explanation: _optionalChain([required, 'optionalAccess', _539 => _539.toolExplanation]),
15902
+ explanation: _optionalChain([required, 'optionalAccess', _518 => _518.toolExplanation]),
16100
15903
  approvalType
16101
15904
  });
16102
15905
  break;
@@ -16484,7 +16287,7 @@ function createChatStreamReducer(options = {}) {
16484
16287
  const resolveBatch = (status, confirm) => async () => {
16485
16288
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
16486
16289
  for (const id of ids) {
16487
- const ok = await _optionalChain([confirm, 'optionalCall', _540 => _540(id)]);
16290
+ const ok = await _optionalChain([confirm, 'optionalCall', _519 => _519(id)]);
16488
16291
  if (ok === false) {
16489
16292
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
16490
16293
  }
@@ -16620,8 +16423,8 @@ function createChatStreamReducer(options = {}) {
16620
16423
  }
16621
16424
  }
16622
16425
  }
16623
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _541 => _541.resumed]), () => ( messages.length > 0)));
16624
- if (_optionalChain([extras, 'optionalAccess', _542 => _542.agentBusy])) agentBusyState();
16426
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _520 => _520.resumed]), () => ( messages.length > 0)));
16427
+ if (_optionalChain([extras, 'optionalAccess', _521 => _521.agentBusy])) agentBusyState();
16625
16428
  invalidate();
16626
16429
  }
16627
16430
  return {
@@ -16708,7 +16511,7 @@ function createChatStreamReducer(options = {}) {
16708
16511
  },
16709
16512
  endSseTurn() {
16710
16513
  const last = messages[messages.length - 1];
16711
- if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _543 => _543.segments, 'optionalAccess', _544 => _544.length]), () => ( 0))) === 0 && last.content === "") {
16514
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _522 => _522.segments, 'optionalAccess', _523 => _523.length]), () => ( 0))) === 0 && last.content === "") {
16712
16515
  messages = messages.slice(0, -1);
16713
16516
  }
16714
16517
  sseCurrentText = "";
@@ -16862,10 +16665,10 @@ function createChatDialogStore(options = {}) {
16862
16665
  if (onEvict) {
16863
16666
  const sep = key.indexOf(KEY_SEP);
16864
16667
  onEvict(key.slice(0, sep), key.slice(sep + 1), {
16865
- messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _545 => _545.state, 'access', _546 => _546.messages]), () => ( EMPTY_STATE.messages)),
16866
- approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _547 => _547.state, 'access', _548 => _548.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
16867
- lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _549 => _549.getLastAppliedSeq, 'call', _550 => _550()]), () => ( Number.NEGATIVE_INFINITY)),
16868
- pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _551 => _551.getPendingEchoes, 'call', _552 => _552()]), () => ( EMPTY_PENDING_ECHOES))
16668
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _524 => _524.state, 'access', _525 => _525.messages]), () => ( EMPTY_STATE.messages)),
16669
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _526 => _526.state, 'access', _527 => _527.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
16670
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _528 => _528.getLastAppliedSeq, 'call', _529 => _529()]), () => ( Number.NEGATIVE_INFINITY)),
16671
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _530 => _530.getPendingEchoes, 'call', _531 => _531()]), () => ( EMPTY_PENDING_ECHOES))
16869
16672
  });
16870
16673
  }
16871
16674
  }
@@ -16875,12 +16678,12 @@ function createChatDialogStore(options = {}) {
16875
16678
  const key = keyOf(dialogId, side);
16876
16679
  let reducer = reducers.get(key);
16877
16680
  if (!reducer) {
16878
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _553 => _553(dialogId, side)]), () => ( {}));
16681
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _532 => _532(dialogId, side)]), () => ( {}));
16879
16682
  const userOnChange = base.onChange;
16880
16683
  reducer = createChatStreamReducer({
16881
16684
  ...base,
16882
16685
  onChange: () => {
16883
- _optionalChain([userOnChange, 'optionalCall', _554 => _554()]);
16686
+ _optionalChain([userOnChange, 'optionalCall', _533 => _533()]);
16884
16687
  notify();
16885
16688
  }
16886
16689
  });
@@ -16925,7 +16728,7 @@ function createChatDialogStore(options = {}) {
16925
16728
  };
16926
16729
  }
16927
16730
  function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
16928
- return _nullishCoalesce(_optionalChain([reducers, 'access', _555 => _555.get, 'call', _556 => _556(keyOf(dialogId, side)), 'optionalAccess', _557 => _557.state]), () => ( EMPTY_STATE));
16731
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _534 => _534.get, 'call', _535 => _535(keyOf(dialogId, side)), 'optionalAccess', _536 => _536.state]), () => ( EMPTY_STATE));
16929
16732
  }
16930
16733
  function getServerSnapshot2() {
16931
16734
  return EMPTY_STATE;
@@ -17014,7 +16817,7 @@ function createDeltaBatcher({
17014
16817
  pending = [];
17015
16818
  const key = pendingKey;
17016
16819
  for (const delta of batch) applyOne(delta, key);
17017
- _optionalChain([onFlushed, 'optionalCall', _558 => _558(batch.length)]);
16820
+ _optionalChain([onFlushed, 'optionalCall', _537 => _537(batch.length)]);
17018
16821
  }
17019
16822
  function schedule() {
17020
16823
  if (raf !== null || timer !== null) return;
@@ -17038,7 +16841,7 @@ function createDeltaBatcher({
17038
16841
  }
17039
16842
  if (!isDeltaEvent(event)) return false;
17040
16843
  const tail = pending[pending.length - 1];
17041
- const seqAdvances = _optionalChain([tail, 'optionalAccess', _559 => _559.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
16844
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _538 => _538.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
17042
16845
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
17043
16846
  pending[pending.length - 1] = {
17044
16847
  ...tail,
@@ -17070,7 +16873,7 @@ function useChatStreamReducer({
17070
16873
  side = DEFAULT_DIALOG_SIDE,
17071
16874
  createReducerOptions
17072
16875
  }) {
17073
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _560 => _560()]), () => ( {})));
16876
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _539 => _539()]), () => ( {})));
17074
16877
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
17075
16878
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
17076
16879
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -17115,8 +16918,8 @@ function buildConfirmToolBody(request) {
17115
16918
  async function readServerErrorMessage(response) {
17116
16919
  try {
17117
16920
  const body = await response.json();
17118
- if (typeof _optionalChain([body, 'optionalAccess', _561 => _561.error]) === "string" && body.error.length > 0) return body.error;
17119
- } catch (e19) {
16921
+ if (typeof _optionalChain([body, 'optionalAccess', _540 => _540.error]) === "string" && body.error.length > 0) return body.error;
16922
+ } catch (e17) {
17120
16923
  }
17121
16924
  return null;
17122
16925
  }
@@ -17278,7 +17081,7 @@ function useManagedDialogList({
17278
17081
  try {
17279
17082
  await deleteDialogCallback(id);
17280
17083
  removeLocal(id);
17281
- _optionalChain([onDialogRemovedRef, 'access', _562 => _562.current, 'optionalCall', _563 => _563(id, "deleted")]);
17084
+ _optionalChain([onDialogRemovedRef, 'access', _541 => _541.current, 'optionalCall', _542 => _542(id, "deleted")]);
17282
17085
  } catch (err) {
17283
17086
  console.error(`${logTag} deleteDialog failed:`, err);
17284
17087
  throw err;
@@ -17289,7 +17092,7 @@ function useManagedDialogList({
17289
17092
  const renameDialog = _react.useCallback.call(void 0,
17290
17093
  async (id, title) => {
17291
17094
  if (!renameDialogCallback) return;
17292
- const previous = _optionalChain([dialogsRef, 'access', _564 => _564.current, 'access', _565 => _565.find, 'call', _566 => _566((d) => d.id === id), 'optionalAccess', _567 => _567.title]);
17095
+ const previous = _optionalChain([dialogsRef, 'access', _543 => _543.current, 'access', _544 => _544.find, 'call', _545 => _545((d) => d.id === id), 'optionalAccess', _546 => _546.title]);
17293
17096
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
17294
17097
  try {
17295
17098
  await renameDialogCallback(id, title);
@@ -17308,7 +17111,7 @@ function useManagedDialogList({
17308
17111
  try {
17309
17112
  await archiveDialogCallback(id);
17310
17113
  removeLocal(id);
17311
- _optionalChain([onDialogRemovedRef, 'access', _568 => _568.current, 'optionalCall', _569 => _569(id, "archived")]);
17114
+ _optionalChain([onDialogRemovedRef, 'access', _547 => _547.current, 'optionalCall', _548 => _548(id, "archived")]);
17312
17115
  } catch (err) {
17313
17116
  console.error(`${logTag} archiveDialog failed:`, err);
17314
17117
  throw err;
@@ -17430,7 +17233,7 @@ function createSseFrameDecoder() {
17430
17233
  let meta;
17431
17234
  try {
17432
17235
  meta = JSON.parse(metaStr);
17433
- } catch (e20) {
17236
+ } catch (e18) {
17434
17237
  inText = true;
17435
17238
  out.push({ type: "turn-start", implicit: true });
17436
17239
  if (buffer.length > 0) {
@@ -17484,7 +17287,7 @@ function createSseFrameDecoder() {
17484
17287
  debug: meta.debug
17485
17288
  });
17486
17289
  }
17487
- } catch (e21) {
17290
+ } catch (e19) {
17488
17291
  }
17489
17292
  }
17490
17293
  return out;
@@ -17497,7 +17300,7 @@ var STORAGE_KEY = "conversation";
17497
17300
  var namespaceFor = (source) => {
17498
17301
  const base = `mingo-chat-${source}`;
17499
17302
  const auth = _chunkGI3MMBP3cjs.getEmbedProxyAuth.call(void 0, );
17500
- return _optionalChain([auth, 'optionalAccess', _570 => _570.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
17303
+ return _optionalChain([auth, 'optionalAccess', _549 => _549.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
17501
17304
  };
17502
17305
  function createChatConversationStorage(source) {
17503
17306
  return _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, {
@@ -17525,7 +17328,7 @@ function pruneStaleChatConversationStorage(source) {
17525
17328
  for (const k of toRemove) {
17526
17329
  window.localStorage.removeItem(k);
17527
17330
  }
17528
- } catch (e22) {
17331
+ } catch (e20) {
17529
17332
  }
17530
17333
  }
17531
17334
 
@@ -17570,7 +17373,7 @@ function useChatHistoryHydration({
17570
17373
  if (cancelled) return;
17571
17374
  if (rows.length === 0) {
17572
17375
  const found = isRecord(body) ? body.found : void 0;
17573
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _571 => _571(conversationId)]);
17376
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _550 => _550(conversationId)]);
17574
17377
  return;
17575
17378
  }
17576
17379
  const hydrated = [];
@@ -17599,7 +17402,7 @@ function useChatHistoryHydration({
17599
17402
  sendCountRef.current = userTurns;
17600
17403
  hydrateMessages(hydrated, Array.from(sourcesSeed.entries()));
17601
17404
  bumpMetaTick();
17602
- } catch (e23) {
17405
+ } catch (e21) {
17603
17406
  if (isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
17604
17407
  } finally {
17605
17408
  completed = true;
@@ -17647,7 +17450,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17647
17450
  const { active = true } = runtimeOptions;
17648
17451
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
17649
17452
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
17650
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _572 => _572.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
17453
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _551 => _551.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
17651
17454
  const sendMessageRef = _react.useRef.call(void 0,
17652
17455
  () => Promise.resolve(true)
17653
17456
  );
@@ -17683,7 +17486,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17683
17486
  if (!restoredConversationRef.current) {
17684
17487
  restoredConversationRef.current = true;
17685
17488
  pruneStaleChatConversationStorage(source);
17686
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _573 => _573.load, 'call', _574 => _574(), 'optionalAccess', _575 => _575.conversationId]), () => ( null));
17489
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _552 => _552.load, 'call', _553 => _553(), 'optionalAccess', _554 => _554.conversationId]), () => ( null));
17687
17490
  }
17688
17491
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
17689
17492
  const commitConversationId = _react.useCallback.call(void 0,
@@ -17774,7 +17577,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17774
17577
  const abortControllerRef = _react.useRef.call(void 0, null);
17775
17578
  const switchConversation = _react.useCallback.call(void 0,
17776
17579
  (id) => {
17777
- _optionalChain([abortControllerRef, 'access', _576 => _576.current, 'optionalAccess', _577 => _577.abort, 'call', _578 => _578()]);
17580
+ _optionalChain([abortControllerRef, 'access', _555 => _555.current, 'optionalAccess', _556 => _556.abort, 'call', _557 => _557()]);
17778
17581
  flushDeltas();
17779
17582
  mutate((r) => r.reset());
17780
17583
  hydrationSendCountRef.current = 0;
@@ -17811,8 +17614,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17811
17614
  } = useManagedDialogList({
17812
17615
  autoLoad: active,
17813
17616
  fetchDialogs: fetchActiveDialogs,
17814
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _579 => _579.renameDialog]),
17815
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _580 => _580.archiveDialog]),
17617
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _558 => _558.renameDialog]),
17618
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _559 => _559.archiveDialog]),
17816
17619
  pageSize: CHAT_HISTORY_PAGE_SIZE,
17817
17620
  search: conversationsApi ? dialogSearch : void 0,
17818
17621
  logTag: "[useSseChatAdapter]",
@@ -17876,7 +17679,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17876
17679
  const serverMessage = await readServerErrorMessage(response);
17877
17680
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
17878
17681
  }
17879
- const reader = _optionalChain([response, 'access', _581 => _581.body, 'optionalAccess', _582 => _582.getReader, 'call', _583 => _583()]);
17682
+ const reader = _optionalChain([response, 'access', _560 => _560.body, 'optionalAccess', _561 => _561.getReader, 'call', _562 => _562()]);
17880
17683
  if (!reader) throw new Error("No response body");
17881
17684
  const frameDecoder = createSseFrameDecoder();
17882
17685
  let finished = false;
@@ -17905,7 +17708,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17905
17708
  }
17906
17709
  return true;
17907
17710
  } catch (err) {
17908
- if (_optionalChain([err, 'optionalAccess', _584 => _584.name]) === "AbortError" || ctrl.signal.aborted) {
17711
+ if (_optionalChain([err, 'optionalAccess', _563 => _563.name]) === "AbortError" || ctrl.signal.aborted) {
17909
17712
  return true;
17910
17713
  }
17911
17714
  flushDeltas();
@@ -17941,7 +17744,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17941
17744
  );
17942
17745
  sendMessageRef.current = sendMessage;
17943
17746
  const stopMessage = _react.useCallback.call(void 0, () => {
17944
- _optionalChain([abortControllerRef, 'access', _585 => _585.current, 'optionalAccess', _586 => _586.abort, 'call', _587 => _587()]);
17747
+ _optionalChain([abortControllerRef, 'access', _564 => _564.current, 'optionalAccess', _565 => _565.abort, 'call', _566 => _566()]);
17945
17748
  flushDeltas();
17946
17749
  mutate((r) => r.setPhase("idle"));
17947
17750
  }, [mutate, flushDeltas]);
@@ -17977,7 +17780,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17977
17780
  let sendIdx = -1;
17978
17781
  return state.messages.map((m) => {
17979
17782
  const segments = m.segments;
17980
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _588 => _588.filter, 'call', _589 => _589((s) => s.type === "text"), 'access', _590 => _590.map, 'call', _591 => _591((s) => s.text), 'access', _592 => _592.join, 'call', _593 => _593("")]), () => ( ""));
17783
+ const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _567 => _567.filter, 'call', _568 => _568((s) => s.type === "text"), 'access', _569 => _569.map, 'call', _570 => _570((s) => s.text), 'access', _571 => _571.join, 'call', _572 => _572("")]), () => ( ""));
17981
17784
  let sources2;
17982
17785
  let scrollAnchor;
17983
17786
  if (m.role === "user" && !m.hidden) {
@@ -17986,7 +17789,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17986
17789
  if (m.role === "assistant") {
17987
17790
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
17988
17791
  sources2 = sourcesMap.get(lookupIdx);
17989
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _594 => _594.get, 'call', _595 => _595(lookupIdx), 'optionalAccess', _596 => _596.scrollAnchor]), () => ( void 0));
17792
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _573 => _573.get, 'call', _574 => _574(lookupIdx), 'optionalAccess', _575 => _575.scrollAnchor]), () => ( void 0));
17990
17793
  }
17991
17794
  return {
17992
17795
  id: m.id,
@@ -18013,7 +17816,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
18013
17816
  );
18014
17817
  return;
18015
17818
  }
18016
- const refSlug = typeof _optionalChain([reference, 'access', _597 => _597.metadata, 'optionalAccess', _598 => _598.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
17819
+ const refSlug = typeof _optionalChain([reference, 'access', _576 => _576.metadata, 'optionalAccess', _577 => _577.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
18017
17820
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
18018
17821
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
18019
17822
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -18061,18 +17864,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
18061
17864
  /** True while the mount-time rebuild from the server transcript runs. */
18062
17865
  isHydratingHistory,
18063
17866
  /** Provider key for the lib's `<ModelDisplay>` icon. */
18064
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _599 => _599.provider]), () => ( null)),
18065
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _600 => _600.modelLabel]), () => ( null)),
18066
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _601 => _601.contextWindowMaxTokens]), () => ( null)),
17867
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _578 => _578.provider]), () => ( null)),
17868
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _579 => _579.modelLabel]), () => ( null)),
17869
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _580 => _580.contextWindowMaxTokens]), () => ( null)),
18067
17870
  /** Input tokens (known after server's message_start frame; null until). */
18068
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _602 => _602.inputTokens]), () => ( null)),
17871
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _581 => _581.inputTokens]), () => ( null)),
18069
17872
  /** Output tokens (known only after server's trailing usage frame). */
18070
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _603 => _603.outputTokens]), () => ( null)),
17873
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _582 => _582.outputTokens]), () => ( null)),
18071
17874
  /** Cache hit % (read / total-input × 100). null during streaming. */
18072
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _604 => _604.cacheHitRatePct]), () => ( null)),
17875
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _583 => _583.cacheHitRatePct]), () => ( null)),
18073
17876
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
18074
17877
  * token counts). null until the trailing usage frame lands. */
18075
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _605 => _605.breakdown]), () => ( null)),
17878
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _584 => _584.breakdown]), () => ( null)),
18076
17879
  // ─── Dialog management ───────────────────────────────────────────────
18077
17880
  // With `chatConversationsUrl` the server transcript store IS the dialog
18078
17881
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -18146,7 +17949,7 @@ function extractIncompleteMessageState(lastMessage) {
18146
17949
  }
18147
17950
  break;
18148
17951
  case "approval_batch": {
18149
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _606 => _606.data, 'access', _607 => _607.executions, 'optionalAccess', _608 => _608[c.toolExecutionRequestId], 'optionalAccess', _609 => _609.status]) === "done");
17952
+ const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _585 => _585.data, 'access', _586 => _586.executions, 'optionalAccess', _587 => _587[c.toolExecutionRequestId], 'optionalAccess', _588 => _588.status]) === "done");
18150
17953
  if (segment.status !== "rejected" && !allDone) {
18151
17954
  hasIncompleteState = true;
18152
17955
  }
@@ -18210,11 +18013,11 @@ function extractIncompleteMessageState(lastMessage) {
18210
18013
  function extractIncompleteTailState(messages) {
18211
18014
  if (!messages || messages.length === 0) return void 0;
18212
18015
  let start = messages.length;
18213
- while (start > 0 && _optionalChain([messages, 'access', _610 => _610[start - 1], 'optionalAccess', _611 => _611.role]) === "assistant") start -= 1;
18016
+ while (start > 0 && _optionalChain([messages, 'access', _589 => _589[start - 1], 'optionalAccess', _590 => _590.role]) === "assistant") start -= 1;
18214
18017
  if (start === messages.length) return void 0;
18215
18018
  const segments = [];
18216
18019
  for (let i = start; i < messages.length; i += 1) {
18217
- const content = _optionalChain([messages, 'access', _612 => _612[i], 'optionalAccess', _613 => _613.content]);
18020
+ const content = _optionalChain([messages, 'access', _591 => _591[i], 'optionalAccess', _592 => _592.content]);
18218
18021
  if (Array.isArray(content)) segments.push(...content);
18219
18022
  }
18220
18023
  if (segments.length === 0) return void 0;
@@ -18445,7 +18248,7 @@ function decodeNatsChunk(chunk) {
18445
18248
  userId: typeof data.userId === "string" ? data.userId : void 0,
18446
18249
  // Wire shape carries no label; fall back to the id (parity with
18447
18250
  // the history path in `process-historical-messages.ts`).
18448
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _614 => _614.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _615 => _615.id]) === "string").map((it) => ({
18251
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _593 => _593.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _594 => _594.id]) === "string").map((it) => ({
18449
18252
  type: it.type,
18450
18253
  id: it.id,
18451
18254
  label: it.id
@@ -18497,15 +18300,15 @@ function decodeNatsChunk(chunk) {
18497
18300
 
18498
18301
  // src/components/chat/utils/process-historical-messages.ts
18499
18302
  function getOwnerDisplayName(owner) {
18500
- if (_optionalChain([owner, 'optionalAccess', _616 => _616.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN && owner.user) {
18303
+ if (_optionalChain([owner, 'optionalAccess', _595 => _595.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN && owner.user) {
18501
18304
  const { firstName, lastName } = owner.user;
18502
18305
  const name = [firstName, lastName].filter(Boolean).join(" ");
18503
18306
  if (name) return name;
18504
18307
  }
18505
- return _optionalChain([owner, 'optionalAccess', _617 => _617.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
18308
+ return _optionalChain([owner, 'optionalAccess', _596 => _596.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
18506
18309
  }
18507
18310
  function getOwnerAvatar(owner) {
18508
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _618 => _618.user, 'optionalAccess', _619 => _619.image, 'optionalAccess', _620 => _620.imageUrl]), () => ( void 0));
18311
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _597 => _597.user, 'optionalAccess', _598 => _598.image, 'optionalAccess', _599 => _599.imageUrl]), () => ( void 0));
18509
18312
  }
18510
18313
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
18511
18314
  messageDataArray.forEach((data) => {
@@ -18697,7 +18500,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18697
18500
  event.offerId,
18698
18501
  event.text,
18699
18502
  event.origin,
18700
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _621 => _621[event.offerId]]), () => ( "pending"))
18503
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _600 => _600[event.offerId]]), () => ( "pending"))
18701
18504
  );
18702
18505
  break;
18703
18506
  case "ticket-escalated":
@@ -18731,7 +18534,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18731
18534
  );
18732
18535
  break;
18733
18536
  case "escalation-offer-resolved":
18734
- _optionalChain([offerResolutions, 'optionalAccess', _622 => _622.set, 'call', _623 => _623(event.offerId, {
18537
+ _optionalChain([offerResolutions, 'optionalAccess', _601 => _601.set, 'call', _602 => _602(event.offerId, {
18735
18538
  status: event.status,
18736
18539
  resolvedByName: event.resolvedByName
18737
18540
  })]);
@@ -18795,7 +18598,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18795
18598
  }
18796
18599
  }
18797
18600
  } else {
18798
- _optionalChain([escalatedApprovals, 'optionalAccess', _624 => _624.set, 'call', _625 => _625(event.requestId, {
18601
+ _optionalChain([escalatedApprovals, 'optionalAccess', _603 => _603.set, 'call', _604 => _604(event.requestId, {
18799
18602
  command: event.command || "",
18800
18603
  explanation: event.explanation,
18801
18604
  approvalType,
@@ -18810,8 +18613,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18810
18613
  const existingStatus = approvalStatuses[requestId];
18811
18614
  const status = existingStatus || event.status;
18812
18615
  const resolvedByName = event.resolvedByName;
18813
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _626 => _626.get, 'call', _627 => _627(requestId)]);
18814
- if (_optionalChain([escalatedData, 'optionalAccess', _628 => _628.toolCalls]) && escalatedData.toolCalls.length > 0) {
18616
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _605 => _605.get, 'call', _606 => _606(requestId)]);
18617
+ if (_optionalChain([escalatedData, 'optionalAccess', _607 => _607.toolCalls]) && escalatedData.toolCalls.length > 0) {
18815
18618
  if (batchApprovalsEnabled) {
18816
18619
  accumulator.addApprovalBatch(
18817
18620
  requestId,
@@ -18833,7 +18636,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18833
18636
  );
18834
18637
  }
18835
18638
  }
18836
- _optionalChain([escalatedApprovals, 'optionalAccess', _629 => _629.delete, 'call', _630 => _630(requestId)]);
18639
+ _optionalChain([escalatedApprovals, 'optionalAccess', _608 => _608.delete, 'call', _609 => _609(requestId)]);
18837
18640
  break;
18838
18641
  }
18839
18642
  if (escalatedData) {
@@ -18842,7 +18645,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18842
18645
  explanation: escalatedData.explanation,
18843
18646
  approvalType: escalatedData.approvalType
18844
18647
  });
18845
- _optionalChain([escalatedApprovals, 'optionalAccess', _631 => _631.delete, 'call', _632 => _632(requestId)]);
18648
+ _optionalChain([escalatedApprovals, 'optionalAccess', _610 => _610.delete, 'call', _611 => _611(requestId)]);
18846
18649
  }
18847
18650
  const before = accumulator.getSegments();
18848
18651
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -18934,14 +18737,14 @@ function processHistoricalMessages(messages, options = {}) {
18934
18737
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
18935
18738
  return;
18936
18739
  }
18937
- const isUserMessage = _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN;
18740
+ const isUserMessage = _optionalChain([msg, 'access', _612 => _612.owner, 'optionalAccess', _613 => _613.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _614 => _614.owner, 'optionalAccess', _615 => _615.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN;
18938
18741
  if (isUserMessage) {
18939
18742
  flushAssistantMessage();
18940
- const userAuthorType = _optionalChain([msg, 'access', _637 => _637.owner, 'optionalAccess', _638 => _638.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
18743
+ const userAuthorType = _optionalChain([msg, 'access', _616 => _616.owner, 'optionalAccess', _617 => _617.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
18941
18744
  messageDataArray.forEach((data) => {
18942
18745
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
18943
18746
  const rawContext = data.contextItems;
18944
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _639 => _639.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _640 => _640.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
18747
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _618 => _618.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _619 => _619.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
18945
18748
  processedMessages.push({
18946
18749
  id: msg.id,
18947
18750
  role: "user",
@@ -18988,7 +18791,7 @@ function processHistoricalMessages(messages, options = {}) {
18988
18791
  });
18989
18792
  const nextMsg = messages[index + 1];
18990
18793
  const isLastMessage = index === messages.length - 1;
18991
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _643 => _643.owner, 'optionalAccess', _644 => _644.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN);
18794
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _620 => _620.owner, 'optionalAccess', _621 => _621.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _622 => _622.owner, 'optionalAccess', _623 => _623.type]) === _chunkZRDVFADQcjs.OWNER_TYPE.ADMIN);
18992
18795
  if (isLastMessage || nextIsFromUser) {
18993
18796
  flushAssistantMessage();
18994
18797
  }
@@ -19372,7 +19175,7 @@ function useNatsChatAdapter(config, options = {}) {
19372
19175
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
19373
19176
  const sendMessage = _react.useCallback.call(void 0,
19374
19177
  async (text2, sendOptions) => {
19375
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _645 => _645.hidden]), () => ( false));
19178
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _624 => _624.hidden]), () => ( false));
19376
19179
  mutate((r) => r.pushOptimisticSend(text2, hidden));
19377
19180
  await publishUserMessage(text2, { hidden, dialogId });
19378
19181
  },
@@ -19465,11 +19268,11 @@ function useNatsChatAdapter(config, options = {}) {
19465
19268
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
19466
19269
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
19467
19270
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
19468
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _646 => _646.provider]), () => ( modelProvider)), () => ( null)),
19469
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _647 => _647.modelLabel]), () => ( modelLabel)), () => ( null)),
19470
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _648 => _648.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _649 => _649.contextWindowMaxTokens]))), () => ( null)),
19471
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _650 => _650.inputTokensSize]), () => ( null)),
19472
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _651 => _651.outputTokensSize]), () => ( null)),
19271
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _625 => _625.provider]), () => ( modelProvider)), () => ( null)),
19272
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _626 => _626.modelLabel]), () => ( modelLabel)), () => ( null)),
19273
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _627 => _627.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _628 => _628.contextWindowMaxTokens]))), () => ( null)),
19274
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _629 => _629.inputTokensSize]), () => ( null)),
19275
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _630 => _630.outputTokensSize]), () => ( null)),
19473
19276
  currentCacheHitRatePct: null,
19474
19277
  currentUsageBreakdown: null,
19475
19278
  // Dialog management
@@ -19591,7 +19394,7 @@ function useUnifiedChat(options) {
19591
19394
  []
19592
19395
  );
19593
19396
  const displayRefForward = _react.useCallback.call(void 0,
19594
- (ref) => _optionalChain([activeStateRef, 'access', _652 => _652.current, 'access', _653 => _653.displayRef, 'optionalCall', _654 => _654(ref)]),
19397
+ (ref) => _optionalChain([activeStateRef, 'access', _631 => _631.current, 'access', _632 => _632.displayRef, 'optionalCall', _633 => _633(ref)]),
19595
19398
  []
19596
19399
  );
19597
19400
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -19601,7 +19404,7 @@ function useUnifiedChat(options) {
19601
19404
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
19602
19405
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
19603
19406
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
19604
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _655 => _655.current, 'access', _656 => _656.setDialogScope, 'optionalCall', _657 => _657(scope)]), []);
19407
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _634 => _634.current, 'access', _635 => _635.setDialogScope, 'optionalCall', _636 => _636(scope)]), []);
19605
19408
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
19606
19409
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
19607
19410
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -19976,15 +19779,4 @@ var MINGO_V2_SPLIT_WIDTH = MINGO_V2_RAIL_WIDTH + CHAT_BLOCK_MIN_WIDTH;
19976
19779
 
19977
19780
 
19978
19781
 
19979
-
19980
-
19981
-
19982
-
19983
-
19984
-
19985
-
19986
-
19987
-
19988
-
19989
-
19990
- exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.InlineChip = InlineChip; exports.InlineAppLinkChip = InlineAppLinkChip; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.byKey = byKey; exports.getPlatformProductionUrl = getPlatformProductionUrl; exports.getPlatformUrl = getPlatformUrl; exports.getDeploymentUrl = getDeploymentUrl; exports.isLocalUrl = isLocalUrl; exports.getRequestOrigin = getRequestOrigin; exports.resolveRedirectTarget = resolveRedirectTarget; exports.getAllPlatformBaseDomains = getAllPlatformBaseDomains; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.chatProgressLabel = chatProgressLabel; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;
19782
+ exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.TextHold = TextHold; exports.LayoutHold = LayoutHold; exports.AUTHORED_LINK_REL_TOKENS = AUTHORED_LINK_REL_TOKENS; exports.authoredRelTokens = authoredRelTokens; exports.isNofollowRel = isNofollowRel; exports.renderedLinkRel = renderedLinkRel; exports.findMarkdownLinkAt = findMarkdownLinkAt; exports.formatMarkdownLink = formatMarkdownLink; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.MARKDOWN_H1_CLASS = MARKDOWN_H1_CLASS; exports.MARKDOWN_H2_CLASS = MARKDOWN_H2_CLASS; exports.MARKDOWN_PARAGRAPH_CLASS = MARKDOWN_PARAGRAPH_CLASS; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MARKDOWN_SKELETON_LINES = MARKDOWN_SKELETON_LINES; exports.MARKDOWN_RENDERER_CLASS = MARKDOWN_RENDERER_CLASS; exports.MarkdownEngine = MarkdownEngine; exports.MarkdownEngineSkeleton = MarkdownEngineSkeleton; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ASK_AI_OPEN_EVENT = ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = ASK_AI_OPEN_WITH_REF_EVENT; exports.ASK_AI_OPEN_EVENTS = ASK_AI_OPEN_EVENTS; exports.holdAskAiOpens = holdAskAiOpens; exports.askAiOpenIsHeld = askAiOpenIsHeld; exports.chatListensForAskAiOpens = chatListensForAskAiOpens; exports.ASK_AI_TRIGGER_ATTRIBUTE = ASK_AI_TRIGGER_ATTRIBUTE; exports.onAskAiIntent = onAskAiIntent; exports.ChatAppearanceContext = ChatAppearanceContext; exports.useChatAppearance = useChatAppearance; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.SystemEventMessage = SystemEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ChatPanelContext = ChatPanelContext; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.SuggestionsDisplay = SuggestionsDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.LoadingFallback = LoadingFallback; exports.LoadingSuspense = LoadingSuspense; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_BAR_CLASS = CONTEXT_BACK_BAR_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.InlineChip = InlineChip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.CHAT_MESSAGE_LIST_SKELETON_MESSAGES = CHAT_MESSAGE_LIST_SKELETON_MESSAGES; exports.ChatMessageList = ChatMessageList; exports.DESIGN_DOC_READINESS = DESIGN_DOC_READINESS; exports.DESIGN_DOC_READINESS_DISPLAY = DESIGN_DOC_READINESS_DISPLAY; exports.designDocReadiness = designDocReadiness; exports.formatCompletionLabel = formatCompletionLabel; exports.formatCompletionLabelWithBlockers = formatCompletionLabelWithBlockers; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.DOC_TABLE_TYPES = DOC_TABLE_TYPES; exports.groupsByTable = groupsByTable; exports.recordCountLabel = recordCountLabel; exports.buildGroupedSource = buildGroupedSource; exports.groupSourcesByTable = groupSourcesByTable; exports.formatCitationIndices = formatCitationIndices; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.clickupTaskUrl = clickupTaskUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.chatDialogMenuItems = chatDialogMenuItems; exports.ChatListEmptyState = ChatListEmptyState; exports.CHAT_HISTORY_PAGE_SIZE = CHAT_HISTORY_PAGE_SIZE; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.MingoArchiveList = MingoArchiveList; exports.MingoChatHeader = MingoChatHeader; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.MingoChatRail = MingoChatRail; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.useNavLinkViaRuntime = useNavLinkViaRuntime; exports.useNavigateViaRuntime = useNavigateViaRuntime; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX; exports.VIDEO_BITES_CARD_HEIGHT_MOBILE_PX = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX; exports.STRIP_LINE_MAX_PX = STRIP_LINE_MAX_PX; exports.VIDEO_BITES_SKELETON_COUNT = VIDEO_BITES_SKELETON_COUNT; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.CHAT_CARD_DISCLOSURE = CHAT_CARD_DISCLOSURE; exports.CHAT_CARD_DISCLOSURES = CHAT_CARD_DISCLOSURES; exports.chatCardDisclosureOf = chatCardDisclosureOf; exports.ChatCardDisclosureButton = ChatCardDisclosureButton; exports.useChatCardDisclosure = useChatCardDisclosure; exports.ChatCardDisclosureRow = ChatCardDisclosureRow; exports.designDocPeople = designDocPeople; exports.designDocMetaLine = designDocMetaLine; exports.DesignDocCard = DesignDocCard; exports.GitHubActivityCard = GitHubActivityCard; exports.getVendorLogo = getVendorLogo; exports.VendorIcon = VendorIcon; exports.useChatCardItem = useChatCardItem; exports.MingoInfoCardActionProvider = MingoInfoCardActionProvider; exports.readFetchedCardTitle = readFetchedCardTitle; exports.readFetchedCardPath = readFetchedCardPath; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.sourceRowCtxFromRuntime = sourceRowCtxFromRuntime; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.resolveCardDestination = resolveCardDestination; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useWhatToAsk = useWhatToAsk; exports.awaitsDecision = awaitsDecision; exports.mergeByTime = mergeByTime; exports.chatProgressLabel = chatProgressLabel; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.buildDiscussPrompt = buildDiscussPrompt; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.chatChipClass = chatChipClass; exports.MINGO_V2_RAIL_WIDTH = MINGO_V2_RAIL_WIDTH; exports.CHAT_BLOCK_MIN_WIDTH = CHAT_BLOCK_MIN_WIDTH; exports.MINGO_V2_SPLIT_WIDTH = MINGO_V2_SPLIT_WIDTH;