@flamingo-stack/openframe-frontend-core 0.0.598 → 0.0.599-2039.5716.1

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 (204) hide show
  1. package/dist/chat-protocol/index.cjs +8 -1
  2. package/dist/chat-protocol/index.cjs.map +1 -1
  3. package/dist/chat-protocol/index.d.ts +1 -0
  4. package/dist/chat-protocol/index.d.ts.map +1 -1
  5. package/dist/chat-protocol/index.js +7 -2
  6. package/dist/chat-protocol/index.js.map +1 -1
  7. package/dist/chat-protocol/nats-decoder.d.ts.map +1 -1
  8. package/dist/chat-protocol/wire-narrow.d.ts +17 -0
  9. package/dist/chat-protocol/wire-narrow.d.ts.map +1 -0
  10. package/dist/{chunk-VLJTJAHJ.cjs → chunk-2B4HSYAX.cjs} +25 -25
  11. package/dist/{chunk-VLJTJAHJ.cjs.map → chunk-2B4HSYAX.cjs.map} +1 -1
  12. package/dist/{chunk-UE7OFLLS.cjs → chunk-2GCBN73M.cjs} +14 -14
  13. package/dist/{chunk-UE7OFLLS.cjs.map → chunk-2GCBN73M.cjs.map} +1 -1
  14. package/dist/{chunk-STYNZ4QM.cjs → chunk-3IXDZI3R.cjs} +3 -3
  15. package/dist/{chunk-STYNZ4QM.cjs.map → chunk-3IXDZI3R.cjs.map} +1 -1
  16. package/dist/{chunk-DAPOBLAK.cjs → chunk-3RWSKUIN.cjs} +39 -39
  17. package/dist/{chunk-DAPOBLAK.cjs.map → chunk-3RWSKUIN.cjs.map} +1 -1
  18. package/dist/{chunk-VNSRNVPD.js → chunk-4HJYXP5O.js} +722 -406
  19. package/dist/chunk-4HJYXP5O.js.map +1 -0
  20. package/dist/{chunk-HWAYIK4U.cjs → chunk-4MOY5TQR.cjs} +22 -22
  21. package/dist/{chunk-HWAYIK4U.cjs.map → chunk-4MOY5TQR.cjs.map} +1 -1
  22. package/dist/{chunk-VIRTMRS4.js → chunk-4PBUEYAE.js} +7 -7
  23. package/dist/{chunk-TZPVRWPU.js → chunk-4TG5BWPE.js} +5 -5
  24. package/dist/{chunk-PTK3CINU.js → chunk-6JF65LRQ.js} +5 -5
  25. package/dist/{chunk-YWBAIFI2.cjs → chunk-6XISE63Q.cjs} +105 -105
  26. package/dist/{chunk-YWBAIFI2.cjs.map → chunk-6XISE63Q.cjs.map} +1 -1
  27. package/dist/{chunk-QD64Q4I2.cjs → chunk-A4HMGZ4L.cjs} +9 -9
  28. package/dist/{chunk-QD64Q4I2.cjs.map → chunk-A4HMGZ4L.cjs.map} +1 -1
  29. package/dist/{chunk-BK6CCQG6.js → chunk-AUCJ6I3R.js} +12 -12
  30. package/dist/{chunk-3WSS7C2V.cjs → chunk-BBBZ5QUB.cjs} +15 -15
  31. package/dist/{chunk-3WSS7C2V.cjs.map → chunk-BBBZ5QUB.cjs.map} +1 -1
  32. package/dist/{chunk-EVMHJB6X.js → chunk-BLUL2TE3.js} +4 -4
  33. package/dist/{chunk-GGQZBSFN.js → chunk-BVQEU5JB.js} +2 -2
  34. package/dist/{chunk-V2QK5W3O.cjs → chunk-BW644MGF.cjs} +3 -3
  35. package/dist/{chunk-V2QK5W3O.cjs.map → chunk-BW644MGF.cjs.map} +1 -1
  36. package/dist/{chunk-H64ZHSYR.cjs → chunk-CCWI3622.cjs} +4 -4
  37. package/dist/{chunk-H64ZHSYR.cjs.map → chunk-CCWI3622.cjs.map} +1 -1
  38. package/dist/{chunk-DI3SVVY5.cjs → chunk-COERKO4N.cjs} +85 -85
  39. package/dist/{chunk-DI3SVVY5.cjs.map → chunk-COERKO4N.cjs.map} +1 -1
  40. package/dist/{chunk-SE3PVN64.js → chunk-DZ44C6KB.js} +2 -2
  41. package/dist/{chunk-2SYX2Z7R.cjs → chunk-E27TMQRE.cjs} +34 -34
  42. package/dist/{chunk-2SYX2Z7R.cjs.map → chunk-E27TMQRE.cjs.map} +1 -1
  43. package/dist/{chunk-YH6IQTPI.cjs → chunk-EHAYNUOL.cjs} +3 -3
  44. package/dist/{chunk-YH6IQTPI.cjs.map → chunk-EHAYNUOL.cjs.map} +1 -1
  45. package/dist/{chunk-WZJOILPU.js → chunk-F2KBCLUG.js} +2 -2
  46. package/dist/{chunk-MYBXCWEI.js → chunk-FKBM6U43.js} +2 -2
  47. package/dist/{chunk-75YW6ET4.js → chunk-FNK4RZ25.js} +4 -4
  48. package/dist/{chunk-UG7JNQZY.cjs → chunk-GB5FPCUN.cjs} +37 -37
  49. package/dist/{chunk-UG7JNQZY.cjs.map → chunk-GB5FPCUN.cjs.map} +1 -1
  50. package/dist/{chunk-P24VPJTT.cjs → chunk-HJUXXWTM.cjs} +15 -15
  51. package/dist/{chunk-P24VPJTT.cjs.map → chunk-HJUXXWTM.cjs.map} +1 -1
  52. package/dist/{chunk-WPN545FW.js → chunk-ILJTXIEI.js} +12 -12
  53. package/dist/{chunk-YBPFIXV4.cjs → chunk-ITZDJYWI.cjs} +796 -480
  54. package/dist/chunk-ITZDJYWI.cjs.map +1 -0
  55. package/dist/{chunk-LRQCKSZC.js → chunk-IW746HJ7.js} +2 -2
  56. package/dist/{chunk-PX4IPM7Q.js → chunk-J62LLUDC.js} +3 -3
  57. package/dist/{chunk-M4YQUHOR.cjs → chunk-JJUV7Z4L.cjs} +15 -15
  58. package/dist/{chunk-M4YQUHOR.cjs.map → chunk-JJUV7Z4L.cjs.map} +1 -1
  59. package/dist/{chunk-GHYFVT52.js → chunk-JZF6EUMO.js} +5 -5
  60. package/dist/{chunk-JVZVVZOZ.cjs → chunk-KYGTR6EG.cjs} +9 -9
  61. package/dist/{chunk-JVZVVZOZ.cjs.map → chunk-KYGTR6EG.cjs.map} +1 -1
  62. package/dist/{chunk-QIKBISZM.cjs → chunk-L66UPFCQ.cjs} +242 -242
  63. package/dist/{chunk-QIKBISZM.cjs.map → chunk-L66UPFCQ.cjs.map} +1 -1
  64. package/dist/{chunk-NIAMPMKV.js → chunk-LJ4UG2SW.js} +4 -4
  65. package/dist/{chunk-WDWCQD75.js → chunk-MWQSHXYK.js} +9 -9
  66. package/dist/{chunk-BPVHDDNY.cjs → chunk-NLFST5II.cjs} +8 -8
  67. package/dist/{chunk-BPVHDDNY.cjs.map → chunk-NLFST5II.cjs.map} +1 -1
  68. package/dist/{chunk-SAEJGTCI.cjs → chunk-QPAPUIF3.cjs} +35 -35
  69. package/dist/{chunk-SAEJGTCI.cjs.map → chunk-QPAPUIF3.cjs.map} +1 -1
  70. package/dist/{chunk-HLPAVYK7.js → chunk-RSTEDWAT.js} +4 -4
  71. package/dist/{chunk-UAAXUFK6.js → chunk-RU3IKVY2.js} +3 -3
  72. package/dist/{chunk-EZM5DNII.js → chunk-S6WBBSII.js} +3 -3
  73. package/dist/{chunk-2JNCZDJR.js → chunk-TSCIVH7T.js} +2 -2
  74. package/dist/{chunk-RDTOMWDN.cjs → chunk-UPKZU6QU.cjs} +1 -1
  75. package/dist/chunk-UPKZU6QU.cjs.map +1 -0
  76. package/dist/{chunk-WCBRZCU4.cjs → chunk-UQEOAPAI.cjs} +9 -9
  77. package/dist/{chunk-WCBRZCU4.cjs.map → chunk-UQEOAPAI.cjs.map} +1 -1
  78. package/dist/{chunk-O4VZOA2Q.cjs → chunk-UXOOVP77.cjs} +3 -3
  79. package/dist/{chunk-O4VZOA2Q.cjs.map → chunk-UXOOVP77.cjs.map} +1 -1
  80. package/dist/{chunk-R4UV366K.js → chunk-UYLZAW6Y.js} +6 -6
  81. package/dist/{chunk-BZEWPW5A.cjs → chunk-VIBREYUK.cjs} +3 -3
  82. package/dist/{chunk-BZEWPW5A.cjs.map → chunk-VIBREYUK.cjs.map} +1 -1
  83. package/dist/{chunk-KHOZ52NR.js → chunk-XSMBLU44.js} +6 -6
  84. package/dist/{chunk-RYXIRVDC.js → chunk-YB6FI2G3.js} +1 -1
  85. package/dist/chunk-YB6FI2G3.js.map +1 -0
  86. package/dist/{chunk-XNPAVMPB.js → chunk-YG7DCXRD.js} +5 -5
  87. package/dist/components/case-studies/index.cjs +14 -14
  88. package/dist/components/case-studies/index.js +8 -8
  89. package/dist/components/chat/embeddable-chat.d.ts +10 -19
  90. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  91. package/dist/components/chat/hooks/index.d.ts +1 -0
  92. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  93. package/dist/components/chat/hooks/use-chat-history-hydration.d.ts +13 -3
  94. package/dist/components/chat/hooks/use-chat-history-hydration.d.ts.map +1 -1
  95. package/dist/components/chat/hooks/use-managed-dialog-list.d.ts +53 -0
  96. package/dist/components/chat/hooks/use-managed-dialog-list.d.ts.map +1 -0
  97. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +2 -16
  98. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
  99. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  100. package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
  101. package/dist/components/chat/index.cjs +9 -5
  102. package/dist/components/chat/index.cjs.map +1 -1
  103. package/dist/components/chat/index.js +8 -4
  104. package/dist/components/chat/types/unified-chat-state.types.d.ts +72 -6
  105. package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
  106. package/dist/components/chat/utils/chat-conversations-api.d.ts +29 -0
  107. package/dist/components/chat/utils/chat-conversations-api.d.ts.map +1 -0
  108. package/dist/components/chat/utils/index.d.ts +1 -0
  109. package/dist/components/chat/utils/index.d.ts.map +1 -1
  110. package/dist/components/contact/index.cjs +9 -9
  111. package/dist/components/contact/index.js +8 -8
  112. package/dist/components/docs/index.cjs +12 -12
  113. package/dist/components/docs/index.js +11 -11
  114. package/dist/components/embeds/index.cjs +9 -9
  115. package/dist/components/embeds/index.js +8 -8
  116. package/dist/components/faq/index.cjs +10 -10
  117. package/dist/components/faq/index.js +9 -9
  118. package/dist/components/features/index.cjs +8 -8
  119. package/dist/components/features/index.js +7 -7
  120. package/dist/components/help-center-pages/index.cjs +31 -31
  121. package/dist/components/help-center-pages/index.js +22 -22
  122. package/dist/components/index.cjs +70 -66
  123. package/dist/components/index.cjs.map +1 -1
  124. package/dist/components/index.js +26 -22
  125. package/dist/components/index.js.map +1 -1
  126. package/dist/components/meeting-scheduler/index.cjs +49 -49
  127. package/dist/components/meeting-scheduler/index.js +9 -9
  128. package/dist/components/navigation/index.cjs +11 -11
  129. package/dist/components/navigation/index.js +10 -10
  130. package/dist/components/onboarding-guides/index.cjs +12 -12
  131. package/dist/components/onboarding-guides/index.js +11 -11
  132. package/dist/components/related-content/index.cjs +7 -7
  133. package/dist/components/related-content/index.js +6 -6
  134. package/dist/components/tickets/index.cjs +13 -13
  135. package/dist/components/tickets/index.js +12 -12
  136. package/dist/components/ui/index.cjs +12 -8
  137. package/dist/components/ui/index.cjs.map +1 -1
  138. package/dist/components/ui/index.js +11 -7
  139. package/dist/contexts/chat-runtime-context.d.ts +12 -0
  140. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  141. package/dist/contexts/index.cjs +2 -2
  142. package/dist/contexts/index.js +1 -1
  143. package/dist/hooks/index.cjs +5 -5
  144. package/dist/hooks/index.js +4 -4
  145. package/dist/index.cjs +16 -12
  146. package/dist/index.cjs.map +1 -1
  147. package/dist/index.js +15 -11
  148. package/dist/index.js.map +1 -1
  149. package/package.json +1 -1
  150. package/src/chat-protocol/index.ts +1 -0
  151. package/src/chat-protocol/nats-decoder.ts +1 -5
  152. package/src/chat-protocol/wire-narrow.ts +22 -0
  153. package/src/components/chat/.embeddable-chat.md +4 -2
  154. package/src/components/chat/embeddable-chat.tsx +136 -84
  155. package/src/components/chat/hooks/.index.md +1 -1
  156. package/src/components/chat/hooks/.use-managed-dialog-list.md +31 -0
  157. package/src/components/chat/hooks/.use-nats-chat-adapter.md +3 -1
  158. package/src/components/chat/hooks/.use-sse-chat-adapter.md +8 -1
  159. package/src/components/chat/hooks/.use-unified-chat.md +2 -2
  160. package/src/components/chat/hooks/__tests__/managed-dialog-list.test.ts +280 -0
  161. package/src/components/chat/hooks/__tests__/nats-adapter-managed-dialogs.test.ts +173 -0
  162. package/src/components/chat/hooks/__tests__/sse-managed-dialogs.test.ts +310 -0
  163. package/src/components/chat/hooks/index.ts +2 -0
  164. package/src/components/chat/hooks/use-chat-history-hydration.ts +67 -24
  165. package/src/components/chat/hooks/use-managed-dialog-list.ts +339 -0
  166. package/src/components/chat/hooks/use-nats-chat-adapter.ts +65 -150
  167. package/src/components/chat/hooks/use-sse-chat-adapter.ts +233 -59
  168. package/src/components/chat/hooks/use-unified-chat.ts +5 -0
  169. package/src/components/chat/types/.unified-chat-state.types.md +13 -1
  170. package/src/components/chat/types/unified-chat-state.types.ts +79 -6
  171. package/src/components/chat/utils/.chat-conversations-api.md +16 -0
  172. package/src/components/chat/utils/.index.md +1 -1
  173. package/src/components/chat/utils/__tests__/chat-conversations-api-golden.test.ts +105 -0
  174. package/src/components/chat/utils/chat-conversations-api.ts +83 -0
  175. package/src/components/chat/utils/index.ts +7 -0
  176. package/src/contexts/.chat-runtime-context.md +3 -1
  177. package/src/contexts/chat-runtime-context.tsx +12 -0
  178. package/dist/chunk-RDTOMWDN.cjs.map +0 -1
  179. package/dist/chunk-RYXIRVDC.js.map +0 -1
  180. package/dist/chunk-VNSRNVPD.js.map +0 -1
  181. package/dist/chunk-YBPFIXV4.cjs.map +0 -1
  182. /package/dist/{chunk-VIRTMRS4.js.map → chunk-4PBUEYAE.js.map} +0 -0
  183. /package/dist/{chunk-TZPVRWPU.js.map → chunk-4TG5BWPE.js.map} +0 -0
  184. /package/dist/{chunk-PTK3CINU.js.map → chunk-6JF65LRQ.js.map} +0 -0
  185. /package/dist/{chunk-BK6CCQG6.js.map → chunk-AUCJ6I3R.js.map} +0 -0
  186. /package/dist/{chunk-EVMHJB6X.js.map → chunk-BLUL2TE3.js.map} +0 -0
  187. /package/dist/{chunk-GGQZBSFN.js.map → chunk-BVQEU5JB.js.map} +0 -0
  188. /package/dist/{chunk-SE3PVN64.js.map → chunk-DZ44C6KB.js.map} +0 -0
  189. /package/dist/{chunk-WZJOILPU.js.map → chunk-F2KBCLUG.js.map} +0 -0
  190. /package/dist/{chunk-MYBXCWEI.js.map → chunk-FKBM6U43.js.map} +0 -0
  191. /package/dist/{chunk-75YW6ET4.js.map → chunk-FNK4RZ25.js.map} +0 -0
  192. /package/dist/{chunk-WPN545FW.js.map → chunk-ILJTXIEI.js.map} +0 -0
  193. /package/dist/{chunk-LRQCKSZC.js.map → chunk-IW746HJ7.js.map} +0 -0
  194. /package/dist/{chunk-PX4IPM7Q.js.map → chunk-J62LLUDC.js.map} +0 -0
  195. /package/dist/{chunk-GHYFVT52.js.map → chunk-JZF6EUMO.js.map} +0 -0
  196. /package/dist/{chunk-NIAMPMKV.js.map → chunk-LJ4UG2SW.js.map} +0 -0
  197. /package/dist/{chunk-WDWCQD75.js.map → chunk-MWQSHXYK.js.map} +0 -0
  198. /package/dist/{chunk-HLPAVYK7.js.map → chunk-RSTEDWAT.js.map} +0 -0
  199. /package/dist/{chunk-UAAXUFK6.js.map → chunk-RU3IKVY2.js.map} +0 -0
  200. /package/dist/{chunk-EZM5DNII.js.map → chunk-S6WBBSII.js.map} +0 -0
  201. /package/dist/{chunk-2JNCZDJR.js.map → chunk-TSCIVH7T.js.map} +0 -0
  202. /package/dist/{chunk-R4UV366K.js.map → chunk-UYLZAW6Y.js.map} +0 -0
  203. /package/dist/{chunk-KHOZ52NR.js.map → chunk-XSMBLU44.js.map} +0 -0
  204. /package/dist/{chunk-XNPAVMPB.js.map → chunk-YG7DCXRD.js.map} +0 -0
@@ -170,7 +170,7 @@ var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunkWCBRZCU4cjs = require('./chunk-WCBRZCU4.cjs');
173
+ var _chunkUQEOAPAIcjs = require('./chunk-UQEOAPAI.cjs');
174
174
 
175
175
 
176
176
  var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
@@ -183,14 +183,14 @@ var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
183
183
 
184
184
 
185
185
 
186
- var _chunkYH6IQTPIcjs = require('./chunk-YH6IQTPI.cjs');
186
+ var _chunkEHAYNUOLcjs = require('./chunk-EHAYNUOL.cjs');
187
187
 
188
188
 
189
189
  var _chunk63QUMV72cjs = require('./chunk-63QUMV72.cjs');
190
190
 
191
191
 
192
192
 
193
- var _chunkRDTOMWDNcjs = require('./chunk-RDTOMWDN.cjs');
193
+ var _chunkUPKZU6QUcjs = require('./chunk-UPKZU6QU.cjs');
194
194
 
195
195
 
196
196
 
@@ -1583,7 +1583,7 @@ var MermaidDiagram = ({ chart }) => {
1583
1583
  // src/components/ui/markdown/base-components.tsx
1584
1584
 
1585
1585
  var MarkdownContentImage = ({ src, alt }) => {
1586
- const resolvedSrc = _chunkYH6IQTPIcjs.useAuthedImageSrc.call(void 0, src);
1586
+ const resolvedSrc = _chunkEHAYNUOLcjs.useAuthedImageSrc.call(void 0, src);
1587
1587
  if (!resolvedSrc) return null;
1588
1588
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1589
1589
  _chunkWLSFBRT5cjs.next_image_default,
@@ -4086,13 +4086,13 @@ function getSemanticColor(semanticName, platform) {
4086
4086
  }
4087
4087
  function getPlatformConfig(platform) {
4088
4088
  const currentPlatform = platform || getCurrentPlatform();
4089
- const isDarkTheme = _chunkYH6IQTPIcjs.PLATFORM_THEME === "dark";
4089
+ const isDarkTheme = _chunkEHAYNUOLcjs.PLATFORM_THEME === "dark";
4090
4090
  return {
4091
4091
  platform: currentPlatform,
4092
- accentColor: _chunkYH6IQTPIcjs.getPlatformAccentColor.call(void 0, currentPlatform),
4092
+ accentColor: _chunkEHAYNUOLcjs.getPlatformAccentColor.call(void 0, currentPlatform),
4093
4093
  isDarkTheme,
4094
4094
  isLightTheme: !isDarkTheme,
4095
- brandName: _chunkYH6IQTPIcjs.getPlatformDisplayName.call(void 0, currentPlatform)
4095
+ brandName: _chunkEHAYNUOLcjs.getPlatformDisplayName.call(void 0, currentPlatform)
4096
4096
  };
4097
4097
  }
4098
4098
  function usePlatformColors(platform) {
@@ -4758,7 +4758,7 @@ function MspOrganizationCard({
4758
4758
  className
4759
4759
  ),
4760
4760
  children: [
4761
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4762
4762
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
4763
4763
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
4764
4764
  website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
@@ -4891,7 +4891,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
4891
4891
  ] })
4892
4892
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
4893
4893
  userIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4894
- _chunkWCBRZCU4cjs.SquareAvatar,
4894
+ _chunkUQEOAPAIcjs.SquareAvatar,
4895
4895
  {
4896
4896
  src: userAvatar,
4897
4897
  alt: userName,
@@ -7254,7 +7254,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
7254
7254
  // Host-supplied brand icon (e.g. Mingo): render it directly,
7255
7255
  // no filled pill — the icon carries its own brand accent.
7256
7256
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: assistantIcon })
7257
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.SquareAvatar, { ...avatarProps })),
7257
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.SquareAvatar, { ...avatarProps })),
7258
7258
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7259
7259
  "span",
7260
7260
  {
@@ -8039,8 +8039,8 @@ ChatMessageList.displayName = "ChatMessageList";
8039
8039
 
8040
8040
  // src/components/chat/hooks/use-proxied-image-url.ts
8041
8041
  function useProxiedImageUrl(url) {
8042
- const r = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
8043
- return _nullishCoalesce(_chunkWCBRZCU4cjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8042
+ const r = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
8043
+ return _nullishCoalesce(_chunkUQEOAPAIcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8044
8044
  proxyPrefix: r.endpoints.imageProxyUrlPrefix,
8045
8045
  skipDomains: r.endpoints.imageProxySkipDomains,
8046
8046
  directHttps: true
@@ -8066,7 +8066,7 @@ function ChatMessageRow({ displayName, avatarUrl, timeLabel, body, footer }) {
8066
8066
  height: 40,
8067
8067
  onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
8068
8068
  }
8069
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary text-h6 md:h-10 md:w-10", children: _chunkWCBRZCU4cjs.personInitials.call(void 0, displayName) || "?" }),
8069
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary text-h6 md:h-10 md:w-10", children: _chunkUQEOAPAIcjs.personInitials.call(void 0, displayName) || "?" }),
8070
8070
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 max-w-full flex-1", children: [
8071
8071
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex min-w-0 max-w-full items-center gap-2", children: [
8072
8072
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-body text-[14px] font-bold leading-[1.33] tracking-[-0.02em] text-ods-text-primary md:text-[15px]", children: displayName }),
@@ -9346,7 +9346,7 @@ function MingoChatHistoryRow({
9346
9346
  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")
9347
9347
  ),
9348
9348
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9349
- _chunkWCBRZCU4cjs.SquareAvatar,
9349
+ _chunkUQEOAPAIcjs.SquareAvatar,
9350
9350
  {
9351
9351
  variant: "round",
9352
9352
  sizePx: 24,
@@ -10487,7 +10487,7 @@ function ChatPanelHeader({
10487
10487
  avatar && (avatar.name || avatar.avatarUrl) ? (
10488
10488
  // Owner avatar at the title cell's right edge (Figma 113:63273).
10489
10489
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10490
- _chunkWCBRZCU4cjs.SquareAvatar,
10490
+ _chunkUQEOAPAIcjs.SquareAvatar,
10491
10491
  {
10492
10492
  variant: "round",
10493
10493
  sizePx: 32,
@@ -10701,8 +10701,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size: size2 = "default
10701
10701
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
10702
10702
  (!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
10703
10703
  status === "sniffing" && "Checking\u2026",
10704
- status === "uploading" && `${progress}% \xB7 ${_chunkWCBRZCU4cjs.formatFileSize.call(void 0, file.size)}`,
10705
- status === "ready" && _chunkWCBRZCU4cjs.formatFileSize.call(void 0, file.size),
10704
+ status === "uploading" && `${progress}% \xB7 ${_chunkUQEOAPAIcjs.formatFileSize.call(void 0, file.size)}`,
10705
+ status === "ready" && _chunkUQEOAPAIcjs.formatFileSize.call(void 0, file.size),
10706
10706
  status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
10707
10707
  ] })
10708
10708
  ] }),
@@ -11499,10 +11499,10 @@ function resolveExternalNavigation(args) {
11499
11499
 
11500
11500
  // src/components/chat/utils/execute-navigation.ts
11501
11501
  function isForeignOriginHref(href) {
11502
- return /^https?:\/\//i.test(href) && !_chunkWCBRZCU4cjs.isSameOriginAbsoluteHref.call(void 0, href);
11502
+ return /^https?:\/\//i.test(href) && !_chunkUQEOAPAIcjs.isSameOriginAbsoluteHref.call(void 0, href);
11503
11503
  }
11504
11504
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11505
- const isNewTab = runtime ? _chunkWCBRZCU4cjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11505
+ const isNewTab = runtime ? _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11506
11506
  if (isNewTab) {
11507
11507
  if (_optionalChain([runtime, 'optionalAccess', _203 => _203.navigation, 'access', _204 => _204.openExternal])) runtime.navigation.openExternal(href);
11508
11508
  else window.open(href, "_blank", NEW_TAB_FEATURES);
@@ -11557,11 +11557,11 @@ function NavLinkAnchorViaRuntime({
11557
11557
  className,
11558
11558
  children
11559
11559
  }) {
11560
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
11560
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
11561
11561
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
11562
11562
  const panel = useChatPanel();
11563
11563
  const resolvedHref = resolveHrefForRuntime(href, runtime);
11564
- const isNewTab = _chunkWCBRZCU4cjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11564
+ const isNewTab = _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11565
11565
  const onClick = (e) => {
11566
11566
  const handled = executeNavigation({
11567
11567
  event: e,
@@ -11573,7 +11573,7 @@ function NavLinkAnchorViaRuntime({
11573
11573
  });
11574
11574
  if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _208 => _208.closeChat])) panel.closeChat();
11575
11575
  };
11576
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkWCBRZCU4cjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11576
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkUQEOAPAIcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11577
11577
  }
11578
11578
 
11579
11579
  // src/components/chat/source-action-button.tsx
@@ -11751,7 +11751,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
11751
11751
  // src/components/features/use-captions.ts
11752
11752
 
11753
11753
  function useCaptions() {
11754
- const endpoints = _nullishCoalesce(_optionalChain([_chunkRDTOMWDNcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _211 => _211.endpoints]), () => ( null));
11754
+ const endpoints = _nullishCoalesce(_optionalChain([_chunkUPKZU6QUcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _211 => _211.endpoints]), () => ( null));
11755
11755
  return _react.useMemo.call(void 0,
11756
11756
  () => ({
11757
11757
  forEntity: (entityType, entity) => getEntityCaptionUrls(endpoints, entityType, entity),
@@ -11831,7 +11831,7 @@ function saveDataEnabled() {
11831
11831
  return _optionalChain([conn, 'optionalAccess', _218 => _218.saveData]) === true;
11832
11832
  }
11833
11833
  function useVideoOriginPreconnect({ supabaseStorageOrigin } = {}) {
11834
- const runtime = _chunkRDTOMWDNcjs.useChatRuntime.call(void 0, );
11834
+ const runtime = _chunkUPKZU6QUcjs.useChatRuntime.call(void 0, );
11835
11835
  const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess', _219 => _219.endpoints, 'access', _220 => _220.supabaseStorageOrigin])));
11836
11836
  try {
11837
11837
  _reactdom2.default.preconnect(MUX_STREAM_ORIGIN, { crossOrigin: "anonymous" });
@@ -11850,7 +11850,7 @@ function useVideoWarmup({
11850
11850
  supabaseStorageOrigin,
11851
11851
  nearMargin = "1000px"
11852
11852
  } = {}) {
11853
- const runtime = _chunkRDTOMWDNcjs.useChatRuntime.call(void 0, );
11853
+ const runtime = _chunkUPKZU6QUcjs.useChatRuntime.call(void 0, );
11854
11854
  const resolvedOrigin = _nullishCoalesce(supabaseStorageOrigin, () => ( _optionalChain([runtime, 'optionalAccess', _221 => _221.endpoints, 'access', _222 => _222.supabaseStorageOrigin])));
11855
11855
  useVideoOriginPreconnect({ supabaseStorageOrigin: resolvedOrigin });
11856
11856
  const { ref, isNear } = _chunkYXWGSDK4cjs.useNearViewport.call(void 0, nearMargin);
@@ -12201,7 +12201,7 @@ function FilePlayer({
12201
12201
  className
12202
12202
  }) {
12203
12203
  const effectivePreload = _nullishCoalesce(preload, () => ( (saveDataEnabled() ? "none" : "metadata")));
12204
- const resolvedCaptionsUrl = _chunkYH6IQTPIcjs.useAuthedAssetSrc.call(void 0, captionsUrl, "text/vtt, */*");
12204
+ const resolvedCaptionsUrl = _chunkEHAYNUOLcjs.useAuthedAssetSrc.call(void 0, captionsUrl, "text/vtt, */*");
12205
12205
  const [hoverMutedFallback, setHoverMutedFallback] = _react.useState.call(void 0, () => Boolean(startMuted));
12206
12206
  const hoverPlayerRef = _react.useRef.call(void 0, null);
12207
12207
  const [mutedFallbackBlocked, setMutedFallbackBlocked] = _react.useState.call(void 0, false);
@@ -12815,9 +12815,9 @@ function UserDisplay({
12815
12815
  }) {
12816
12816
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
12817
12817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12818
- _chunkWCBRZCU4cjs.SquareAvatar,
12818
+ _chunkUQEOAPAIcjs.SquareAvatar,
12819
12819
  {
12820
- src: avatarUrl ? _chunkWCBRZCU4cjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12820
+ src: avatarUrl ? _chunkUQEOAPAIcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12821
12821
  fallback: name,
12822
12822
  alt: name,
12823
12823
  sizePx: size2,
@@ -13317,7 +13317,7 @@ function VideoHoverPreviewSurface({
13317
13317
  return () => io.disconnect();
13318
13318
  }, [gateControlled]);
13319
13319
  const showMedia = continuation || (gateControlled ? playerMounted : isNear);
13320
- const { src: posterSrc, onError: onPosterError } = _chunkWCBRZCU4cjs.useCoverImageFallback.call(void 0, posterUrl);
13320
+ const { src: posterSrc, onError: onPosterError } = _chunkUQEOAPAIcjs.useCoverImageFallback.call(void 0, posterUrl);
13321
13321
  const facadeSkipped = preload === "none" && !posterSrc;
13322
13322
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootElRef, className: _chunk23V5BSHDcjs.cn.call(void 0, "absolute inset-0", className), inert: isClone || void 0, children: showMedia ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13323
13323
  posterSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13435,7 +13435,7 @@ function groupByAspectRatio(items, getAspectRatio) {
13435
13435
 
13436
13436
  function VideoBitesStrip({
13437
13437
  bites,
13438
- title = _chunkWCBRZCU4cjs.DEFAULT_VIDEO_BITES_TITLE,
13438
+ title = _chunkUQEOAPAIcjs.DEFAULT_VIDEO_BITES_TITLE,
13439
13439
  showTitle = true,
13440
13440
  filterPublished = true,
13441
13441
  profile = null,
@@ -13448,7 +13448,7 @@ function VideoBitesStrip({
13448
13448
  cardHeightMobile = 300,
13449
13449
  showChevrons = true,
13450
13450
  onBiteNavigate,
13451
- sortComparator = _chunkWCBRZCU4cjs.sortBitesByCreatedAtDesc,
13451
+ sortComparator = _chunkUQEOAPAIcjs.sortBitesByCreatedAtDesc,
13452
13452
  className
13453
13453
  }) {
13454
13454
  const items = _react.useMemo.call(void 0, () => {
@@ -13673,7 +13673,7 @@ function EntityVideoSection({
13673
13673
  title = "Video",
13674
13674
  videoSummary,
13675
13675
  videoBites,
13676
- bitesTitle = _chunkWCBRZCU4cjs.DEFAULT_VIDEO_BITES_TITLE,
13676
+ bitesTitle = _chunkUQEOAPAIcjs.DEFAULT_VIDEO_BITES_TITLE,
13677
13677
  filterPublishedBites = true,
13678
13678
  bitesProfile = null,
13679
13679
  bitesHref,
@@ -13912,7 +13912,7 @@ function ReviewStateBadge({ state, className = "" }) {
13912
13912
  function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
13913
13913
  const kind = _nullishCoalesce(item.kind, () => ( "commit"));
13914
13914
  const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
13915
- const dateText = _chunkWCBRZCU4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
13915
+ const dateText = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
13916
13916
  const idLabel = formatActivityId(item.id, kind);
13917
13917
  const { display: title, reviewState } = parseGithubTitle(item.title, kind);
13918
13918
  const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
@@ -13946,26 +13946,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
13946
13946
  metaParts.push(
13947
13947
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
13948
13948
  );
13949
- const href = _chunkWCBRZCU4cjs.safeHref.call(void 0, item.url);
13949
+ const href = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
13950
13950
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13951
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
13952
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
13953
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
13951
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
13952
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
13953
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
13954
13954
  reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
13955
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE, children: primaryText })
13955
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE, children: primaryText })
13956
13956
  ] }),
13957
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
13957
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
13958
13958
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
13959
13959
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
13960
13960
  ] }, i)) }) }),
13961
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUMMARY, children: _chunkWCBRZCU4cjs.COMPACT_CARD_ROW_FILLER }) })
13961
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SUMMARY, children: _chunkUQEOAPAIcjs.COMPACT_CARD_ROW_FILLER }) })
13962
13962
  ] }),
13963
13963
  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
13964
13964
  ] });
13965
13965
  if (anchorProps) {
13966
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
13966
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
13967
13967
  }
13968
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
13968
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
13969
13969
  }
13970
13970
  function GitHubActivityCardSkeleton({
13971
13971
  variant = "compact",
@@ -13982,12 +13982,12 @@ function GitHubActivityCardSkeleton({
13982
13982
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
13983
13983
  ] });
13984
13984
  }
13985
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
13986
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
13987
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
13988
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
13989
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
13990
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUMMARY, children: _chunkWCBRZCU4cjs.COMPACT_CARD_ROW_FILLER }) })
13985
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
13986
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
13987
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
13988
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
13989
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
13990
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SUMMARY, children: _chunkUQEOAPAIcjs.COMPACT_CARD_ROW_FILLER }) })
13991
13991
  ] }),
13992
13992
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
13993
13993
  ] });
@@ -14011,7 +14011,7 @@ function parseChannelFromUrl(url) {
14011
14011
  }
14012
14012
  function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
14013
14013
  const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
14014
- const dateText = _chunkWCBRZCU4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14014
+ const dateText = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14015
14015
  if (variant === "row") {
14016
14016
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14017
14017
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
@@ -14037,23 +14037,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
14037
14037
  metaParts.push(
14038
14038
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14039
14039
  );
14040
- const href = _chunkWCBRZCU4cjs.safeHref.call(void 0, item.url);
14040
+ const href = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
14041
14041
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14042
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14043
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14044
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE, children: item.title }) }),
14045
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkWCBRZCU4cjs.COMPACT_CARD_ROW_FILLER }) }),
14046
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14042
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14043
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14044
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE, children: item.title }) }),
14045
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunkUQEOAPAIcjs.COMPACT_CARD_ROW_FILLER }) }),
14046
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14047
14047
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14048
14048
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14049
- ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUMMARY, children: _chunkWCBRZCU4cjs.COMPACT_CARD_ROW_FILLER }) }) })
14049
+ ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SUMMARY, children: _chunkUQEOAPAIcjs.COMPACT_CARD_ROW_FILLER }) }) })
14050
14050
  ] }),
14051
14051
  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
14052
14052
  ] });
14053
14053
  if (anchorProps) {
14054
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14054
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14055
14055
  }
14056
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14056
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14057
14057
  }
14058
14058
  function SlackMessageCardSkeleton({
14059
14059
  variant = "compact",
@@ -14068,12 +14068,12 @@ function SlackMessageCardSkeleton({
14068
14068
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14069
14069
  ] });
14070
14070
  }
14071
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14072
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14073
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14074
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14075
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14076
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14071
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14072
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14073
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14075
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14076
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14077
14077
  ] }),
14078
14078
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
14079
14079
  ] });
@@ -14104,12 +14104,12 @@ function statusScheme(status) {
14104
14104
  function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
14105
14105
  const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
14106
14106
  const priorityText = formatToken(item.priority);
14107
- const dateText = _chunkWCBRZCU4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14107
+ const dateText = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14108
14108
  if (variant === "row") {
14109
14109
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14110
14110
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
14111
14111
  item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
14112
- statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14112
+ statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14113
14113
  dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
14114
14114
  ] });
14115
14115
  }
@@ -14123,13 +14123,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14123
14123
  metaParts.push(
14124
14124
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14125
14125
  );
14126
- const href = _chunkWCBRZCU4cjs.safeHref.call(void 0, item.url);
14126
+ const href = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
14127
14127
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14128
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14128
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14129
14129
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14130
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14130
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14131
14131
  priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14132
- _chunkWCBRZCU4cjs.StatusBadge,
14132
+ _chunkUQEOAPAIcjs.StatusBadge,
14133
14133
  {
14134
14134
  text: priorityText,
14135
14135
  variant: "button",
@@ -14138,7 +14138,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14138
14138
  }
14139
14139
  ) : null,
14140
14140
  statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14141
- _chunkWCBRZCU4cjs.StatusBadge,
14141
+ _chunkUQEOAPAIcjs.StatusBadge,
14142
14142
  {
14143
14143
  text: statusText,
14144
14144
  variant: "button",
@@ -14152,7 +14152,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14152
14152
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
14153
14153
  ] }) : null,
14154
14154
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
14155
- metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14155
+ metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14156
14156
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14157
14157
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14158
14158
  ] }, i)) }) }) : null
@@ -14160,9 +14160,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14160
14160
  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
14161
14161
  ] });
14162
14162
  if (anchorProps) {
14163
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14163
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14164
14164
  }
14165
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14165
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14166
14166
  }
14167
14167
  function HubspotTicketCardSkeleton({
14168
14168
  variant = "compact",
@@ -14176,8 +14176,8 @@ function HubspotTicketCardSkeleton({
14176
14176
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14177
14177
  ] });
14178
14178
  }
14179
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14180
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14179
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14180
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14181
14181
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14182
14182
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14183
14183
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
@@ -14190,7 +14190,7 @@ function HubspotTicketCardSkeleton({
14190
14190
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
14191
14191
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
14192
14192
  ] }),
14193
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14193
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14194
14194
  ] }),
14195
14195
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
14196
14196
  ] });
@@ -14201,10 +14201,10 @@ function HubspotTicketCardSkeleton({
14201
14201
 
14202
14202
  function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14203
14203
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14204
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14204
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14205
14205
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14206
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14207
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14207
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14208
14208
  ] }),
14209
14209
  item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
14210
14210
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
@@ -14215,13 +14215,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14215
14215
  _optionalChain([anchorProps, 'optionalAccess', _343 => _343.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
14216
14216
  ] });
14217
14217
  if (!anchorProps) {
14218
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14218
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14219
14219
  }
14220
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14220
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14221
14221
  }
14222
14222
  function DataRoomDocCardSkeleton({ className }) {
14223
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14224
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14223
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14224
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14225
14225
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14226
14226
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14227
14227
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14242,29 +14242,29 @@ function DataRoomDocCardSkeleton({ className }) {
14242
14242
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
14243
14243
  const goalsCount = _optionalChain([campaign, 'access', _344 => _344.goals, 'optionalAccess', _345 => _345.length]) || 0;
14244
14244
  const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14245
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14246
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14247
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14248
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUBTITLE, children: [
14249
- campaign.start_date ? _chunkWCBRZCU4cjs.formatDateShort.call(void 0, campaign.start_date) : null,
14245
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14246
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14247
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14248
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SUBTITLE, children: [
14249
+ campaign.start_date ? _chunkUQEOAPAIcjs.formatDateShort.call(void 0, campaign.start_date) : null,
14250
14250
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
14251
14251
  "Marketing campaign"
14252
14252
  ].filter(Boolean).join(" \xB7 ") }) }),
14253
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkWCBRZCU4cjs.COMPACT_CARD_ROW_FILLER }) })
14253
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunkUQEOAPAIcjs.COMPACT_CARD_ROW_FILLER }) })
14254
14254
  ] })
14255
14255
  ] });
14256
14256
  if (anchorProps) {
14257
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14257
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14258
14258
  }
14259
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14259
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14260
14260
  }
14261
14261
  function CampaignCardAdminSkeleton({ className }) {
14262
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14263
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14264
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14265
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14266
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14267
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
14262
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14263
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14264
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14265
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14266
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14267
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
14268
14268
  ] })
14269
14269
  ] });
14270
14270
  }
@@ -14273,14 +14273,14 @@ function CampaignCardAdminSkeleton({ className }) {
14273
14273
 
14274
14274
 
14275
14275
  function GenericEntityCard({ item, className, anchorProps }) {
14276
- const href = _chunkWCBRZCU4cjs.safeHref.call(void 0, item.url);
14277
- const dateText = _chunkWCBRZCU4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14276
+ const href = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
14277
+ const dateText = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14278
14278
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14279
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14279
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14280
14280
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14281
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14281
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14282
14282
  item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14283
- _chunkWCBRZCU4cjs.StatusBadge,
14283
+ _chunkUQEOAPAIcjs.StatusBadge,
14284
14284
  {
14285
14285
  text: item.badge.text,
14286
14286
  variant: "button",
@@ -14298,18 +14298,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
14298
14298
  ] }),
14299
14299
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
14300
14300
  ] }, i)) }) : null,
14301
- dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14301
+ dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14302
14302
  ] }),
14303
14303
  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
14304
14304
  ] });
14305
14305
  if (anchorProps) {
14306
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14306
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14307
14307
  }
14308
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14308
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14309
14309
  }
14310
14310
  function GenericEntityCardSkeleton({ className }) {
14311
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14312
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14311
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14312
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14313
14313
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14314
14314
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14315
14315
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14349,17 +14349,17 @@ function parseFaqHash(hash) {
14349
14349
  // src/components/chat/hooks/use-chat-card-item.ts
14350
14350
 
14351
14351
  function useChatCardItem(type, id) {
14352
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
14352
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
14353
14353
  const url = runtime.endpoints.buildListUrl(type, [id]);
14354
14354
  const query = _reactquery.useQuery.call(void 0, {
14355
14355
  queryKey: ["chat-card-item", type, id],
14356
14356
  queryFn: async () => {
14357
14357
  if (!url) return null;
14358
- const res = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, url);
14358
+ const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
14359
14359
  if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
14360
14360
  const data = await res.json();
14361
- const items = _chunkWCBRZCU4cjs.extractItems.call(void 0, data);
14362
- const match = items.find((it) => _chunkWCBRZCU4cjs.extractItemId.call(void 0, type, it) === id);
14361
+ const items = _chunkUQEOAPAIcjs.extractItems.call(void 0, data);
14362
+ const match = items.find((it) => _chunkUQEOAPAIcjs.extractItemId.call(void 0, type, it) === id);
14363
14363
  return _nullishCoalesce(match, () => ( null));
14364
14364
  },
14365
14365
  enabled: !!url && id.length > 0,
@@ -14392,7 +14392,7 @@ function useChatCardItem(type, id) {
14392
14392
  function CardMedia({ imageSrc, imageAlt, icon }) {
14393
14393
  if (imageSrc) {
14394
14394
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
14395
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunkWCBRZCU4cjs.personInitials.call(void 0, imageAlt) || "?" }),
14395
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "absolute inset-0 flex items-center justify-center rounded-sm border border-ods-border bg-ods-bg text-ods-text-primary text-h6", children: _chunkUQEOAPAIcjs.personInitials.call(void 0, imageAlt) || "?" }),
14396
14396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14397
14397
  _chunkWLSFBRT5cjs.next_image_default,
14398
14398
  {
@@ -14550,7 +14550,7 @@ function resolveFetchedCardHref({
14550
14550
  composeContentUrl
14551
14551
  }) {
14552
14552
  if (!composeContentUrl || !contentRefType || !id) return null;
14553
- const canonicalType = _chunkWCBRZCU4cjs.canonicalContentRefType.call(void 0, contentRefType);
14553
+ const canonicalType = _chunkUQEOAPAIcjs.canonicalContentRefType.call(void 0, contentRefType);
14554
14554
  return composeContentUrl({
14555
14555
  // The card registry keys some entries by the legacy rail vocabulary
14556
14556
  // (`blog_post_existing`) because that is what `buildListUrl` expects.
@@ -14754,16 +14754,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
14754
14754
  if (docTarget) {
14755
14755
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
14756
14756
  const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
14757
- href = _nullishCoalesce(_chunkWCBRZCU4cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14757
+ href = _nullishCoalesce(_chunkUQEOAPAIcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14758
14758
  targetPlatform = docTarget.platform;
14759
14759
  } else if (ctx.chipBasePlatform) {
14760
14760
  const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, ctx.chipBasePlatform)}/knowledge-base/`;
14761
- href = _nullishCoalesce(_chunkWCBRZCU4cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14761
+ href = _nullishCoalesce(_chunkUQEOAPAIcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14762
14762
  targetPlatform = ctx.chipBasePlatform;
14763
14763
  } else if (ctx.baseRoute) {
14764
14764
  const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
14765
14765
  const absolute = new URL(safePath, synthetic).toString();
14766
- href = _nullishCoalesce(_chunkWCBRZCU4cjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14766
+ href = _nullishCoalesce(_chunkUQEOAPAIcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14767
14767
  targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
14768
14768
  }
14769
14769
  }
@@ -14772,15 +14772,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
14772
14772
  // Canonical vocabulary only — a rail-vocab alias would miss the host's
14773
14773
  // `hostedTypes` / `overrides` and fall through to the seam's default
14774
14774
  // `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
14775
- type: _chunkWCBRZCU4cjs.canonicalContentRefType.call(void 0, row.documentType),
14775
+ type: _chunkUQEOAPAIcjs.canonicalContentRefType.call(void 0, row.documentType),
14776
14776
  identifier: idValue,
14777
14777
  externalUrl: row.externalUrl,
14778
14778
  targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
14779
14779
  });
14780
- href = composed.href ? _nullishCoalesce(_chunkWCBRZCU4cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14780
+ href = composed.href ? _nullishCoalesce(_chunkUQEOAPAIcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14781
14781
  targetPlatform = composed.targetPlatform;
14782
14782
  } else if (row.externalUrl) {
14783
- href = _nullishCoalesce(_chunkWCBRZCU4cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14783
+ href = _nullishCoalesce(_chunkUQEOAPAIcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14784
14784
  targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
14785
14785
  }
14786
14786
  const documentType = row.documentType;
@@ -14815,11 +14815,11 @@ function resolveSourceIcon(input, ctx = {}) {
14815
14815
 
14816
14816
  function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
14817
14817
  const label = entityLabel || "Item";
14818
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14819
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14820
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TEXT_COL, children: [
14821
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14822
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14818
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14819
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14820
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14821
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14822
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14823
14823
  label,
14824
14824
  " deleted",
14825
14825
  recoveryNote ? ` \xB7 ${recoveryNote}` : ""
@@ -14865,7 +14865,7 @@ function GitHubChatCard({
14865
14865
  const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
14866
14866
  const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
14867
14867
  const idLabel = formatActivityId(chatRef.id, kind);
14868
- const dateText = _chunkWCBRZCU4cjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
14868
+ const dateText = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
14869
14869
  const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
14870
14870
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14871
14871
  MingoInfoCard,
@@ -14874,7 +14874,7 @@ function GitHubChatCard({
14874
14874
  description,
14875
14875
  icon: githubKindIcon(kind),
14876
14876
  status,
14877
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
14877
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
14878
14878
  menuGroups: cardMenuGroups(chatRef.url, discuss),
14879
14879
  menuAriaLabel: "Activity actions"
14880
14880
  }
@@ -15021,7 +15021,7 @@ function HubspotTicketChatCard({
15021
15021
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15022
15022
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 24 }),
15023
15023
  status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
15024
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15024
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15025
15025
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
15026
15026
  label: "Open Ticket Details",
15027
15027
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TagIcon, { size: 20 })
@@ -15044,7 +15044,7 @@ function FaqChatCard({
15044
15044
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15045
15045
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.QuestionCircleIcon, { size: 24 }),
15046
15046
  status: { label: statusLabel, variant: "grey" },
15047
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15047
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15048
15048
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15049
15049
  menuAriaLabel: "FAQ actions"
15050
15050
  }
@@ -15064,7 +15064,7 @@ function SlackChatCard({
15064
15064
  title,
15065
15065
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15066
15066
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.SlackLogoGreyIcon, { size: 24 }),
15067
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15067
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15068
15068
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15069
15069
  menuAriaLabel: "Message actions"
15070
15070
  }
@@ -15082,7 +15082,7 @@ function GlyphChatCard({
15082
15082
  title: chatRef.title,
15083
15083
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15084
15084
  icon,
15085
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15085
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15086
15086
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15087
15087
  menuAriaLabel: "Card actions"
15088
15088
  }
@@ -15101,7 +15101,7 @@ function DataRoomDocChatCard({
15101
15101
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15102
15102
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.FileContentIcon, { size: 24 }),
15103
15103
  status: { label: badgeText, variant: "grey" },
15104
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15104
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15105
15105
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15106
15106
  menuAriaLabel: "Document actions"
15107
15107
  }
@@ -15120,7 +15120,7 @@ function GenericFinancialChatCard({
15120
15120
  title: chatRef.title,
15121
15121
  description: subtitle,
15122
15122
  icon,
15123
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15123
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15124
15124
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15125
15125
  menuAriaLabel: "Document actions"
15126
15126
  }
@@ -15206,7 +15206,7 @@ function CampaignChatCard({
15206
15206
  }) {
15207
15207
  const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _377 => _377.goals])) ? item.goals.length : 0;
15208
15208
  const meta = [
15209
- _optionalChain([item, 'optionalAccess', _378 => _378.start_date]) ? _chunkWCBRZCU4cjs.formatDateShort.call(void 0, item.start_date) : null,
15209
+ _optionalChain([item, 'optionalAccess', _378 => _378.start_date]) ? _chunkUQEOAPAIcjs.formatDateShort.call(void 0, item.start_date) : null,
15210
15210
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
15211
15211
  "Marketing campaign"
15212
15212
  ].filter(Boolean).join(" \xB7 ");
@@ -15245,7 +15245,7 @@ function EntityMingoCard({
15245
15245
  imageAlt: typeof title === "string" ? title : void 0,
15246
15246
  icon: fallbackIcon,
15247
15247
  status,
15248
- anchorProps: _chunkWCBRZCU4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15248
+ anchorProps: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15249
15249
  menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
15250
15250
  menuAriaLabel
15251
15251
  }
@@ -15257,7 +15257,7 @@ function entityCover(image, ogPlaceholder) {
15257
15257
  function statusPill(status) {
15258
15258
  const s = typeof status === "string" ? status.trim() : "";
15259
15259
  if (!s) return void 0;
15260
- const scheme = _chunkWCBRZCU4cjs.getStatusColorScheme.call(void 0, s);
15260
+ const scheme = _chunkUQEOAPAIcjs.getStatusColorScheme.call(void 0, s);
15261
15261
  const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
15262
15262
  return { label: s, variant };
15263
15263
  }
@@ -15344,7 +15344,7 @@ function InvestorUpdateChatCard({
15344
15344
  EntityMingoCard,
15345
15345
  {
15346
15346
  title,
15347
- description: _optionalChain([item, 'optionalAccess', _406 => _406.strategic_update]) || _optionalChain([item, 'optionalAccess', _407 => _407.content]) || _chunkWCBRZCU4cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _408 => _408.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_end]), () => ( null))) || void 0,
15347
+ description: _optionalChain([item, 'optionalAccess', _406 => _406.strategic_update]) || _optionalChain([item, 'optionalAccess', _407 => _407.content]) || _chunkUQEOAPAIcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _408 => _408.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_end]), () => ( null))) || void 0,
15348
15348
  cover: entityCover(_optionalChain([item, 'optionalAccess', _410 => _410.featured_image]), ogPlaceholder),
15349
15349
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.PresentationLineIcon, { size: 24 }),
15350
15350
  status: { label: "Investor update", variant: "grey" },
@@ -15391,15 +15391,15 @@ function ProgramChatCard({
15391
15391
  const isScheduled = _optionalChain([item, 'optionalAccess', _417 => _417.status]) === "scheduled";
15392
15392
  let typeMeta;
15393
15393
  if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _418 => _418.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
15394
- typeMeta = _chunkWCBRZCU4cjs.formatDurationCompact.call(void 0, item.duration_seconds);
15394
+ typeMeta = _chunkUQEOAPAIcjs.formatDurationCompact.call(void 0, item.duration_seconds);
15395
15395
  } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _419 => _419.location_name]) === "string" && item.location_name.trim().length > 0) {
15396
15396
  typeMeta = item.location_name;
15397
15397
  } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _420 => _420.start_at])) {
15398
- const time = _chunkWCBRZCU4cjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
15399
- const dur = _chunkWCBRZCU4cjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
15398
+ const time = _chunkUQEOAPAIcjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
15399
+ const dur = _chunkUQEOAPAIcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
15400
15400
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
15401
15401
  }
15402
- const itemDate = _chunkWCBRZCU4cjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _421 => _421.date]), () => ( null)), { fallback: "", timezone: "local" });
15402
+ const itemDate = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _421 => _421.date]), () => ( null)), { fallback: "", timezone: "local" });
15403
15403
  const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
15404
15404
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15405
15405
  EntityMingoCard,
@@ -15426,7 +15426,7 @@ function RoadmapChatCard({
15426
15426
  const logoUrl = typeof _optionalChain([item, 'optionalAccess', _425 => _425.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15427
15427
  const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _426 => _426.customItemId]) != null;
15428
15428
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.MapIcon, { size: 24 });
15429
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]), className: "size-6" }) : logoUrl ? (
15429
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]), className: "size-6" }) : logoUrl ? (
15430
15430
  // Contained (not full-bleed) so the integration logo keeps its aspect
15431
15431
  // ratio inside the bordered icon box — matches RoadmapCard.
15432
15432
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
@@ -15550,7 +15550,7 @@ function programRegistryEntries() {
15550
15550
  label: cfg.label,
15551
15551
  contentRefType: cfg.contentRefType,
15552
15552
  bareInline: true,
15553
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.ProgramCardSkeleton, { size: "sm" }),
15553
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.ProgramCardSkeleton, { size: "sm" }),
15554
15554
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15555
15555
  ProgramChatCard,
15556
15556
  {
@@ -15591,7 +15591,7 @@ function roadmapRegistryEntries() {
15591
15591
  bareInline: true,
15592
15592
  ...cfg.noComposedHref ? { noComposedHref: true } : {},
15593
15593
  ...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
15594
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.RoadmapCardSkeleton, { size: "sm" }),
15594
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.RoadmapCardSkeleton, { size: "sm" }),
15595
15595
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15596
15596
  RoadmapChatCard,
15597
15597
  {
@@ -15667,7 +15667,7 @@ var CHAT_CARD_REGISTRY = {
15667
15667
  label: "Blog post",
15668
15668
  contentRefType: "blog_post_existing",
15669
15669
  bareInline: true,
15670
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.BlogCardSkeleton, { size: "sm" }),
15670
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.BlogCardSkeleton, { size: "sm" }),
15671
15671
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15672
15672
  BlogChatCard,
15673
15673
  {
@@ -15684,7 +15684,7 @@ var CHAT_CARD_REGISTRY = {
15684
15684
  label: "Case study",
15685
15685
  contentRefType: "case_study",
15686
15686
  bareInline: true,
15687
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.CaseStudyCardSkeleton, { size: "sm" }),
15687
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.CaseStudyCardSkeleton, { size: "sm" }),
15688
15688
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15689
15689
  CaseStudyChatCard,
15690
15690
  {
@@ -15700,7 +15700,7 @@ var CHAT_CARD_REGISTRY = {
15700
15700
  label: "Customer interview",
15701
15701
  contentRefType: "customer_interview",
15702
15702
  bareInline: true,
15703
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15703
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15704
15704
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15705
15705
  CustomerInterviewChatCard,
15706
15706
  {
@@ -15716,9 +15716,9 @@ var CHAT_CARD_REGISTRY = {
15716
15716
  label: "Product release",
15717
15717
  contentRefType: "product_release",
15718
15718
  bareInline: true,
15719
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.ProductReleaseCardSkeleton, { size: "sm" }),
15719
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15720
15720
  render: (item, chatRef, opts) => {
15721
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _460 => _460.extras, 'optionalAccess', _461 => _461.buildProductReleaseCardProps]), () => ( _chunkWCBRZCU4cjs.defaultBuildProductReleaseCardProps));
15721
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _460 => _460.extras, 'optionalAccess', _461 => _461.buildProductReleaseCardProps]), () => ( _chunkUQEOAPAIcjs.defaultBuildProductReleaseCardProps));
15722
15722
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15723
15723
  ProductReleaseChatCard,
15724
15724
  {
@@ -15736,7 +15736,7 @@ var CHAT_CARD_REGISTRY = {
15736
15736
  label: "Investor update",
15737
15737
  contentRefType: "investor_update",
15738
15738
  bareInline: true,
15739
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15739
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15740
15740
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15741
15741
  InvestorUpdateChatCard,
15742
15742
  {
@@ -15754,7 +15754,7 @@ var CHAT_CARD_REGISTRY = {
15754
15754
  bareInline: true,
15755
15755
  // "Display" affordance (verbatim guide body) instead of "Ask".
15756
15756
  displayAction: true,
15757
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15757
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUQEOAPAIcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15758
15758
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15759
15759
  OnboardingGuideChatCard,
15760
15760
  {
@@ -15785,7 +15785,7 @@ function ChatCardNavWrap({
15785
15785
  isNewTab,
15786
15786
  children
15787
15787
  }) {
15788
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
15788
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
15789
15789
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
15790
15790
  const panel = useChatPanel();
15791
15791
  const onClickCapture = (e) => {
@@ -15810,7 +15810,7 @@ function ChatCardLoader({
15810
15810
  chipBasePlatform,
15811
15811
  extras
15812
15812
  }) {
15813
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
15813
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
15814
15814
  const resolvedChatRef = _react2.default.useMemo(() => {
15815
15815
  const cta = resolveSourceRowCTA(
15816
15816
  {
@@ -15851,13 +15851,13 @@ function ChatCardLoader({
15851
15851
  }) : null;
15852
15852
  const hrefResolvedChatRef = hrefChoice ? {
15853
15853
  ...resolvedChatRef,
15854
- url: _chunkWCBRZCU4cjs.safeHref.call(void 0, hrefChoice.href),
15854
+ url: _chunkUQEOAPAIcjs.safeHref.call(void 0, hrefChoice.href),
15855
15855
  // The `item` branch carries no platform of its own — keep the ref's.
15856
15856
  targetPlatform: _nullishCoalesce(_nullishCoalesce(hrefChoice.targetPlatform, () => ( resolvedChatRef.targetPlatform)), () => ( null))
15857
15857
  } : resolvedChatRef;
15858
15858
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
15859
15859
  const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
15860
- const isNewTab = _chunkWCBRZCU4cjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
15860
+ const isNewTab = _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
15861
15861
  const useDisplay = !!entry.displayAction && !!onDisplay;
15862
15862
  const discussFn = useDisplay ? onDisplay : onDiscuss;
15863
15863
  const discuss = discussFn ? {
@@ -16955,7 +16955,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
16955
16955
  try {
16956
16956
  const url = new URL(commandsUrl, window.location.origin);
16957
16957
  if (prefix) url.searchParams.set("q", prefix);
16958
- const res = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
16958
+ const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
16959
16959
  if (!res.ok) return [];
16960
16960
  const data = await res.json();
16961
16961
  return _nullishCoalesce(data.commands, () => ( []));
@@ -17032,7 +17032,7 @@ var EMPTY_STATE_FALLBACK = {
17032
17032
  async function fetchEmptyStateConfig(signal, emptyStateUrl) {
17033
17033
  try {
17034
17034
  const url = new URL(emptyStateUrl, window.location.origin);
17035
- const res = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
17035
+ const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
17036
17036
  if (!res.ok) {
17037
17037
  if (res.status >= 500) {
17038
17038
  console.error(`[chat] empty-state config fetch failed (${res.status}): ${url.pathname}`);
@@ -17142,7 +17142,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
17142
17142
  });
17143
17143
  }
17144
17144
  function useChatAttachments() {
17145
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
17145
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17146
17146
  const uploadUrlEndpoint = runtime.endpoints.attachmentUploadUrl;
17147
17147
  const [attachments, setAttachments] = _react.useState.call(void 0, []);
17148
17148
  const controllersRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
@@ -17184,7 +17184,7 @@ function useChatAttachments() {
17184
17184
  );
17185
17185
  }
17186
17186
  updateOne(att.id, { status: "uploading", progress: 5 });
17187
- const urlResp = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17187
+ const urlResp = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17188
17188
  method: "POST",
17189
17189
  headers: { "Content-Type": "application/json" },
17190
17190
  signal: _optionalChain([ctrl, 'optionalAccess', _555 => _555.signal]),
@@ -17314,7 +17314,7 @@ function useChatAttachments() {
17314
17314
 
17315
17315
  var CLOSED = { isOpen: false, images: [], initialIndex: 0 };
17316
17316
  function useChatAttachmentImageGallery() {
17317
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
17317
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17318
17318
  const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
17319
17319
  const panelRef = _react.useRef.call(void 0, null);
17320
17320
  const [state, setState] = _react.useState.call(void 0, CLOSED);
@@ -17348,7 +17348,7 @@ function useChatAttachmentImageGallery() {
17348
17348
  return () => root.removeEventListener("click", onClick);
17349
17349
  }, [viewUrlPrefix]);
17350
17350
  const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17351
- _chunkWCBRZCU4cjs.ImageGalleryModal,
17351
+ _chunkUQEOAPAIcjs.ImageGalleryModal,
17352
17352
  {
17353
17353
  images: state.images,
17354
17354
  isOpen: state.isOpen,
@@ -17373,9 +17373,9 @@ var ANON_DEFAULTS = {
17373
17373
  user: null
17374
17374
  };
17375
17375
  function useResolveChatIdentity(enabled) {
17376
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
17376
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17377
17377
  const url = runtime.endpoints.identityUrl;
17378
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkYH6IQTPIcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _561 => _561.email]), () => ( null));
17378
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _561 => _561.email]), () => ( null));
17379
17379
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
17380
17380
  const [resolved, setResolved] = _react.useState.call(void 0, null);
17381
17381
  const data = _optionalChain([resolved, 'optionalAccess', _562 => _562.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
@@ -17384,7 +17384,7 @@ function useResolveChatIdentity(enabled) {
17384
17384
  if (requestKey === null) return void 0;
17385
17385
  let cancelled = false;
17386
17386
  const ctrl = new AbortController();
17387
- _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, url, { signal: ctrl.signal }).then(async (resp) => {
17387
+ _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url, { signal: ctrl.signal }).then(async (resp) => {
17388
17388
  if (!resp.ok) return ANON_DEFAULTS;
17389
17389
  return await resp.json();
17390
17390
  }).then((next) => {
@@ -20218,11 +20218,11 @@ function useChatStreamReducer({
20218
20218
  var STORAGE_KEY = "conversation";
20219
20219
  var namespaceFor = (source) => {
20220
20220
  const base = `mingo-chat-${source}`;
20221
- const auth = _chunkYH6IQTPIcjs.getEmbedProxyAuth.call(void 0, );
20221
+ const auth = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
20222
20222
  return _optionalChain([auth, 'optionalAccess', _635 => _635.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20223
20223
  };
20224
20224
  function createChatConversationStorage(source) {
20225
- return _chunkYH6IQTPIcjs.createLocalStorageAdapter.call(void 0, {
20225
+ return _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
20226
20226
  key: STORAGE_KEY,
20227
20227
  namespace: () => namespaceFor(source),
20228
20228
  validate: (parsed) => !!parsed && typeof parsed.conversationId === "string" && parsed.conversationId.length > 0,
@@ -20251,6 +20251,62 @@ function pruneStaleChatConversationStorage(source) {
20251
20251
  }
20252
20252
  }
20253
20253
 
20254
+ // src/chat-protocol/wire-narrow.ts
20255
+ function isRecord(value) {
20256
+ return typeof value === "object" && value !== null;
20257
+ }
20258
+ function unwrapEnvelope(payload) {
20259
+ return isRecord(payload) && "data" in payload ? payload.data : payload;
20260
+ }
20261
+
20262
+ // src/components/chat/utils/chat-conversations-api.ts
20263
+ function toDialogItem(row) {
20264
+ if (!isRecord(row)) return null;
20265
+ const id = typeof row.id === "string" ? row.id : "";
20266
+ if (!id) return null;
20267
+ const title = typeof row.title === "string" && row.title.length > 0 ? row.title : "Untitled chat";
20268
+ const ts = typeof row.timestamp === "string" ? new Date(row.timestamp) : void 0;
20269
+ return {
20270
+ id,
20271
+ title,
20272
+ ...ts && !Number.isNaN(ts.getTime()) ? { timestamp: ts } : {},
20273
+ ...typeof row.lastMessage === "string" ? { lastMessage: row.lastMessage } : {}
20274
+ };
20275
+ }
20276
+ async function failWith(response, fallback) {
20277
+ const message = await readServerErrorMessage(response);
20278
+ throw new Error(_nullishCoalesce(message, () => ( `${fallback}: ${response.status}`)));
20279
+ }
20280
+ function createChatConversationsApi(baseUrl) {
20281
+ const base = baseUrl.replace(/\/+$/, "");
20282
+ const patch = async (id, body, what) => {
20283
+ const response = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, `${base}/${encodeURIComponent(id)}`, {
20284
+ method: "PATCH",
20285
+ body: JSON.stringify(body)
20286
+ });
20287
+ if (!response.ok) await failWith(response, `${what} failed`);
20288
+ };
20289
+ return {
20290
+ async fetchDialogs({ status, cursor, limit, search }) {
20291
+ const qs = new URLSearchParams();
20292
+ qs.set("status", status);
20293
+ if (limit !== void 0) qs.set("limit", String(limit));
20294
+ if (cursor) qs.set("cursor", cursor);
20295
+ if (search) qs.set("search", search);
20296
+ const response = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, `${base}?${qs.toString()}`, { method: "GET" });
20297
+ if (!response.ok) await failWith(response, "Conversation list failed");
20298
+ const body = unwrapEnvelope(await response.json());
20299
+ const rawDialogs = isRecord(body) && Array.isArray(body.dialogs) ? body.dialogs : [];
20300
+ const dialogs = rawDialogs.map(toDialogItem).filter((d) => d !== null);
20301
+ const nextCursor = isRecord(body) && typeof body.nextCursor === "string" ? body.nextCursor : null;
20302
+ return { dialogs, nextCursor };
20303
+ },
20304
+ renameDialog: (id, title) => patch(id, { title }, "Rename"),
20305
+ archiveDialog: (id) => patch(id, { archived: true }, "Archive"),
20306
+ unarchiveDialog: (id) => patch(id, { archived: false }, "Restore")
20307
+ };
20308
+ }
20309
+
20254
20310
  // src/components/chat/utils/slash-dispatch-utils.ts
20255
20311
  var WIRE_TABLE_ID_REGEX = /^[a-z][a-z0-9-]*$/;
20256
20312
  var WIRE_ID_REGEX = /^[A-Za-z0-9._:/-]+$/;
@@ -20333,41 +20389,48 @@ function buildAutoContinuationDirective(toolName, opts = {}) {
20333
20389
  }
20334
20390
 
20335
20391
  // src/components/chat/hooks/use-chat-history-hydration.ts
20336
- function isRecord(value) {
20337
- return typeof value === "object" && value !== null;
20338
- }
20339
20392
  function useChatHistoryHydration({
20340
20393
  active,
20341
20394
  source,
20342
20395
  historyUrl,
20343
- conversationIdRef,
20396
+ conversationId,
20344
20397
  sendCountRef,
20345
20398
  hydrateMessages,
20346
- bumpMetaTick
20399
+ bumpMetaTick,
20400
+ onOrphanedConversation
20347
20401
  }) {
20348
20402
  const [isHydratingHistory, setIsHydratingHistory] = _react.useState.call(void 0, false);
20349
20403
  const hydratedKeyRef = _react.useRef.call(void 0, null);
20404
+ const runIdRef = _react.useRef.call(void 0, 0);
20350
20405
  _react.useEffect.call(void 0, () => {
20351
- if (!active) return void 0;
20352
- const conversationId = conversationIdRef.current;
20353
- if (!conversationId) return void 0;
20406
+ if (!active || !conversationId) return () => setIsHydratingHistory(false);
20354
20407
  const key = `${source}:${conversationId}`;
20355
- if (hydratedKeyRef.current === key) return void 0;
20408
+ if (hydratedKeyRef.current === key) return () => setIsHydratingHistory(false);
20356
20409
  hydratedKeyRef.current = key;
20357
20410
  let cancelled = false;
20411
+ let completed = false;
20412
+ const runId = ++runIdRef.current;
20413
+ const isCurrentRun = () => runIdRef.current === runId;
20358
20414
  setIsHydratingHistory(true);
20359
20415
  void (async () => {
20360
20416
  try {
20361
- const res = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, `${historyUrl}?conversationId=${encodeURIComponent(conversationId)}`, {
20417
+ const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, `${historyUrl}?conversationId=${encodeURIComponent(conversationId)}`, {
20362
20418
  method: "GET"
20363
20419
  });
20364
- if (!res.ok) return;
20420
+ if (!res.ok) {
20421
+ if (isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
20422
+ return;
20423
+ }
20365
20424
  const payload = await res.json().catch(() => null);
20366
- const envelope = isRecord(payload) ? payload.data : void 0;
20367
- const body = _nullishCoalesce(envelope, () => ( payload));
20425
+ const body = unwrapEnvelope(payload);
20368
20426
  const rawRows = isRecord(body) ? body.messages : void 0;
20369
20427
  const rows = Array.isArray(rawRows) ? rawRows.filter(isRecord) : [];
20370
- if (cancelled || rows.length === 0) return;
20428
+ if (cancelled) return;
20429
+ if (rows.length === 0) {
20430
+ const found = isRecord(body) ? body.found : void 0;
20431
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _640 => _640(conversationId)]);
20432
+ return;
20433
+ }
20371
20434
  const hydrated = [];
20372
20435
  const sourcesSeed = /* @__PURE__ */ new Map();
20373
20436
  let userTurns = 0;
@@ -20395,32 +20458,218 @@ function useChatHistoryHydration({
20395
20458
  hydrateMessages(hydrated, Array.from(sourcesSeed.entries()));
20396
20459
  bumpMetaTick();
20397
20460
  } catch (e63) {
20461
+ if (isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
20398
20462
  } finally {
20399
- if (!cancelled) setIsHydratingHistory(false);
20463
+ completed = true;
20464
+ if (isCurrentRun()) setIsHydratingHistory(false);
20400
20465
  }
20401
20466
  })();
20402
20467
  return () => {
20403
20468
  cancelled = true;
20469
+ if (!completed && isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
20470
+ if (isCurrentRun()) setIsHydratingHistory(false);
20404
20471
  };
20405
- }, [active, source, historyUrl, hydrateMessages, bumpMetaTick, conversationIdRef, sendCountRef]);
20472
+ }, [active, source, historyUrl, conversationId, hydrateMessages, bumpMetaTick, onOrphanedConversation, sendCountRef]);
20406
20473
  return { isHydratingHistory, hydratedKeyRef };
20407
20474
  }
20408
20475
 
20476
+ // src/components/chat/hooks/use-managed-dialog-list.ts
20477
+
20478
+ function useManagedDialogList({
20479
+ autoLoad,
20480
+ fetchDialogs,
20481
+ renameDialog: renameDialogCallback,
20482
+ archiveDialog: archiveDialogCallback,
20483
+ deleteDialog: deleteDialogCallback,
20484
+ pageSize,
20485
+ search,
20486
+ onDialogRemoved,
20487
+ logTag
20488
+ }) {
20489
+ const [dialogs, setDialogs] = _react.useState.call(void 0, []);
20490
+ const [dialogsNextCursor, setDialogsNextCursor] = _react.useState.call(void 0, null);
20491
+ const [isDialogsLoading, setIsDialogsLoading] = _react.useState.call(void 0, false);
20492
+ const [settledSearch, setSettledSearch] = _react.useState.call(void 0,
20493
+ autoLoad && fetchDialogs ? void 0 : null
20494
+ );
20495
+ const [autoLoadWas, setAutoLoadWas] = _react.useState.call(void 0, autoLoad);
20496
+ if (autoLoad !== autoLoadWas) {
20497
+ setAutoLoadWas(autoLoad);
20498
+ if (autoLoad && fetchDialogs) setSettledSearch(void 0);
20499
+ }
20500
+ const pendingRef = _react.useRef.call(void 0, false);
20501
+ const [dialogsError, setDialogsError] = _react.useState.call(void 0, false);
20502
+ const dialogsRef = _react.useRef.call(void 0, dialogs);
20503
+ _react.useEffect.call(void 0, () => {
20504
+ dialogsRef.current = dialogs;
20505
+ });
20506
+ const onDialogRemovedRef = _react.useRef.call(void 0, onDialogRemoved);
20507
+ _react.useEffect.call(void 0, () => {
20508
+ onDialogRemovedRef.current = onDialogRemoved;
20509
+ });
20510
+ const initialDialogsLoadedRef = _react.useRef.call(void 0, false);
20511
+ const requestIdRef = _react.useRef.call(void 0, 0);
20512
+ const loadDialogsPage = _react.useCallback.call(void 0,
20513
+ async (cursor) => {
20514
+ if (!fetchDialogs) return;
20515
+ const requestId = ++requestIdRef.current;
20516
+ const isCurrent = () => requestIdRef.current === requestId;
20517
+ pendingRef.current = true;
20518
+ setIsDialogsLoading(true);
20519
+ if (cursor === void 0) setDialogsError(false);
20520
+ try {
20521
+ const result = await fetchDialogs({
20522
+ cursor,
20523
+ limit: pageSize,
20524
+ // Only hosts that run a search ever see the key.
20525
+ ...search !== void 0 ? { search } : {}
20526
+ });
20527
+ if (!isCurrent()) return;
20528
+ setDialogsNextCursor(result.nextCursor);
20529
+ if (cursor === void 0) {
20530
+ setDialogs(result.dialogs);
20531
+ } else {
20532
+ setDialogs((prev) => {
20533
+ const seen = new Set(prev.map((d) => d.id));
20534
+ return [...prev, ...result.dialogs.filter((d) => !seen.has(d.id))];
20535
+ });
20536
+ }
20537
+ } catch (err) {
20538
+ if (!isCurrent()) return;
20539
+ console.error(`${logTag} fetchDialogs failed:`, err);
20540
+ if (cursor === void 0) {
20541
+ setDialogsError(true);
20542
+ initialDialogsLoadedRef.current = false;
20543
+ }
20544
+ } finally {
20545
+ if (isCurrent()) {
20546
+ pendingRef.current = false;
20547
+ if (cursor === void 0) setSettledSearch(_nullishCoalesce(search, () => ( null)));
20548
+ setIsDialogsLoading(false);
20549
+ }
20550
+ }
20551
+ },
20552
+ [fetchDialogs, pageSize, search, logTag]
20553
+ );
20554
+ const reloadDialogs = _react.useCallback.call(void 0, () => {
20555
+ void loadDialogsPage();
20556
+ }, [loadDialogsPage]);
20557
+ const loadedSearchRef = _react.useRef.call(void 0, void 0);
20558
+ _react.useEffect.call(void 0, () => {
20559
+ if (!fetchDialogs) return;
20560
+ if (!autoLoad) return;
20561
+ if (initialDialogsLoadedRef.current && loadedSearchRef.current === search) return;
20562
+ initialDialogsLoadedRef.current = true;
20563
+ loadedSearchRef.current = search;
20564
+ void loadDialogsPage();
20565
+ }, [autoLoad, fetchDialogs, search, loadDialogsPage]);
20566
+ const removeLocal = _react.useCallback.call(void 0, (id) => {
20567
+ setDialogs((prev) => prev.filter((d) => d.id !== id));
20568
+ }, []);
20569
+ const deleteDialog = _react.useCallback.call(void 0,
20570
+ async (id) => {
20571
+ if (!deleteDialogCallback) return;
20572
+ try {
20573
+ await deleteDialogCallback(id);
20574
+ removeLocal(id);
20575
+ _optionalChain([onDialogRemovedRef, 'access', _641 => _641.current, 'optionalCall', _642 => _642(id, "deleted")]);
20576
+ } catch (err) {
20577
+ console.error(`${logTag} deleteDialog failed:`, err);
20578
+ throw err;
20579
+ }
20580
+ },
20581
+ [deleteDialogCallback, removeLocal, logTag]
20582
+ );
20583
+ const renameDialog = _react.useCallback.call(void 0,
20584
+ async (id, title) => {
20585
+ if (!renameDialogCallback) return;
20586
+ const previous = _optionalChain([dialogsRef, 'access', _643 => _643.current, 'access', _644 => _644.find, 'call', _645 => _645((d) => d.id === id), 'optionalAccess', _646 => _646.title]);
20587
+ setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
20588
+ try {
20589
+ await renameDialogCallback(id, title);
20590
+ } catch (err) {
20591
+ console.error(`${logTag} renameDialog failed:`, err);
20592
+ if (previous !== void 0) {
20593
+ setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title: previous } : d));
20594
+ }
20595
+ }
20596
+ },
20597
+ [renameDialogCallback, logTag]
20598
+ );
20599
+ const archiveDialog = _react.useCallback.call(void 0,
20600
+ async (id) => {
20601
+ if (!archiveDialogCallback) return;
20602
+ try {
20603
+ await archiveDialogCallback(id);
20604
+ removeLocal(id);
20605
+ _optionalChain([onDialogRemovedRef, 'access', _647 => _647.current, 'optionalCall', _648 => _648(id, "archived")]);
20606
+ } catch (err) {
20607
+ console.error(`${logTag} archiveDialog failed:`, err);
20608
+ throw err;
20609
+ }
20610
+ },
20611
+ [archiveDialogCallback, removeLocal, logTag]
20612
+ );
20613
+ const loadMoreDialogs = _react.useCallback.call(void 0, async () => {
20614
+ if (!dialogsNextCursor) return;
20615
+ if (pendingRef.current) return;
20616
+ await loadDialogsPage(dialogsNextCursor);
20617
+ }, [dialogsNextCursor, loadDialogsPage]);
20618
+ const upsertDialogTop = _react.useCallback.call(void 0, (item) => {
20619
+ setDialogs((prev) => [item, ...prev.filter((d) => d.id !== item.id)]);
20620
+ }, []);
20621
+ const bumpDialogToTop = _react.useCallback.call(void 0, (id) => {
20622
+ setDialogs((prev) => {
20623
+ const row = prev.find((d) => d.id === id);
20624
+ if (!row) return prev;
20625
+ return [{ ...row, timestamp: /* @__PURE__ */ new Date() }, ...prev.filter((d) => d.id !== id)];
20626
+ });
20627
+ }, []);
20628
+ const hasMoreDialogs = dialogsNextCursor != null;
20629
+ const awaitingFirstPage = !!fetchDialogs && settledSearch !== (_nullishCoalesce(search, () => ( null)));
20630
+ const dialogsLoading = isDialogsLoading || awaitingFirstPage;
20631
+ return _react.useMemo.call(void 0,
20632
+ () => ({
20633
+ dialogs,
20634
+ dialogsNextCursor,
20635
+ isDialogsLoading: dialogsLoading,
20636
+ dialogsError,
20637
+ hasMoreDialogs,
20638
+ loadDialogsPage,
20639
+ reloadDialogs,
20640
+ loadMoreDialogs,
20641
+ renameDialog,
20642
+ archiveDialog,
20643
+ deleteDialog,
20644
+ upsertDialogTop,
20645
+ bumpDialogToTop
20646
+ }),
20647
+ [
20648
+ dialogs,
20649
+ dialogsNextCursor,
20650
+ dialogsLoading,
20651
+ dialogsError,
20652
+ hasMoreDialogs,
20653
+ loadDialogsPage,
20654
+ reloadDialogs,
20655
+ loadMoreDialogs,
20656
+ renameDialog,
20657
+ archiveDialog,
20658
+ deleteDialog,
20659
+ upsertDialogTop,
20660
+ bumpDialogToTop
20661
+ ]
20662
+ );
20663
+ }
20664
+
20409
20665
  // src/components/chat/hooks/use-sse-chat-adapter.ts
20410
- var SSE_EMPTY_DIALOGS = [];
20411
20666
  var noopSelectDialog = (_id) => {
20412
20667
  };
20413
20668
  var noopStartNewDialog = () => Promise.resolve(null);
20414
20669
  var noopDeleteDialog = async (_id) => {
20415
20670
  };
20416
- var noopRenameDialog = async (_id, _title) => {
20417
- };
20418
- var noopArchiveDialog = async (_id) => {
20419
- };
20420
20671
  var noopAsync = async () => {
20421
20672
  };
20422
- var noopReloadDialogs = () => {
20423
- };
20424
20673
  var noopApproveRequest = async (_id) => {
20425
20674
  };
20426
20675
  var noopRejectRequest = async (_id, _reason) => {
@@ -20443,9 +20692,9 @@ function historyMessageToReducerMessage(m) {
20443
20692
  }
20444
20693
  function useSseChatAdapter(options, runtimeOptions = {}) {
20445
20694
  const { active = true } = runtimeOptions;
20446
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
20695
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
20447
20696
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
20448
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _640 => _640.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
20697
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _649 => _649.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
20449
20698
  const sendMessageRef = _react.useRef.call(void 0,
20450
20699
  () => Promise.resolve(true)
20451
20700
  );
@@ -20475,15 +20724,24 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20475
20724
  dialogId: source,
20476
20725
  createReducerOptions
20477
20726
  });
20478
- const abortControllerRef = _react.useRef.call(void 0, null);
20479
20727
  const conversationStorage = _react.useMemo.call(void 0, () => createChatConversationStorage(source), [source]);
20480
20728
  const conversationIdRef = _react.useRef.call(void 0, null);
20481
20729
  const restoredConversationRef = _react.useRef.call(void 0, false);
20482
20730
  if (!restoredConversationRef.current) {
20483
20731
  restoredConversationRef.current = true;
20484
20732
  pruneStaleChatConversationStorage(source);
20485
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _641 => _641.load, 'call', _642 => _642(), 'optionalAccess', _643 => _643.conversationId]), () => ( null));
20733
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _650 => _650.load, 'call', _651 => _651(), 'optionalAccess', _652 => _652.conversationId]), () => ( null));
20486
20734
  }
20735
+ const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
20736
+ const commitConversationId = _react.useCallback.call(void 0,
20737
+ (id) => {
20738
+ conversationIdRef.current = id;
20739
+ setConversationId(id);
20740
+ if (id) conversationStorage.save({ conversationId: id });
20741
+ else conversationStorage.clear();
20742
+ },
20743
+ [conversationStorage]
20744
+ );
20487
20745
  const commandsUrl = runtime.endpoints.commandsUrl;
20488
20746
  const { commands: slashCommands } = useSlashCommandRegistry(commandsUrl, {
20489
20747
  enabled: active
@@ -20531,54 +20789,132 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20531
20789
  },
20532
20790
  [mutate]
20533
20791
  );
20792
+ const messagesLenRef = _react.useRef.call(void 0, 0);
20793
+ messagesLenRef.current = state.messages.length;
20794
+ const onOrphanedConversation = _react.useCallback.call(void 0,
20795
+ (id) => {
20796
+ if (conversationIdRef.current === id && messagesLenRef.current === 0) commitConversationId(null);
20797
+ },
20798
+ [commitConversationId]
20799
+ );
20534
20800
  const { isHydratingHistory, hydratedKeyRef } = useChatHistoryHydration({
20535
20801
  active,
20536
20802
  source,
20537
20803
  historyUrl,
20538
- conversationIdRef,
20804
+ conversationId,
20539
20805
  sendCountRef: hydrationSendCountRef,
20540
20806
  hydrateMessages,
20541
20807
  // Meta invalidation is a reducer concern here: `seedSseMaps` (inside
20542
20808
  // `hydrateMessages` above) already invalidates the snapshot.
20543
- bumpMetaTick: noopBumpMetaTick
20809
+ bumpMetaTick: noopBumpMetaTick,
20810
+ // Drop a stored id the server no longer recognizes (deleted, or claimed by
20811
+ // an account while this browser is signed out) — keeping it would stream
20812
+ // answers the server refuses to persist. Guarded on "no live turn yet" so
20813
+ // a just-minted id is never dropped.
20814
+ //
20815
+ // IDENTITY-STABLE by construction: this is a dependency of the hydration
20816
+ // effect, so a callback that changed with the message count would CANCEL
20817
+ // an in-flight hydration the moment the user typed — silently discarding
20818
+ // the thread they just opened. The live count is read through a ref.
20819
+ onOrphanedConversation
20544
20820
  });
20821
+ const abortControllerRef = _react.useRef.call(void 0, null);
20822
+ const switchConversation = _react.useCallback.call(void 0,
20823
+ (id) => {
20824
+ _optionalChain([abortControllerRef, 'access', _653 => _653.current, 'optionalAccess', _654 => _654.abort, 'call', _655 => _655()]);
20825
+ flushDeltas();
20826
+ mutate((r) => r.reset());
20827
+ hydrationSendCountRef.current = 0;
20828
+ hydratedKeyRef.current = null;
20829
+ commitConversationId(id);
20830
+ },
20831
+ [flushDeltas, mutate, hydratedKeyRef, commitConversationId]
20832
+ );
20833
+ const conversationsUrl = runtime.endpoints.chatConversationsUrl;
20834
+ const conversationsApi = _react.useMemo.call(void 0,
20835
+ () => conversationsUrl ? createChatConversationsApi(conversationsUrl) : null,
20836
+ [conversationsUrl]
20837
+ );
20838
+ const [dialogSearch, setDialogSearch] = _react.useState.call(void 0, "");
20839
+ const fetchActiveDialogs = _react.useMemo.call(void 0,
20840
+ () => conversationsApi ? (params) => conversationsApi.fetchDialogs({ ...params, status: "active" }) : void 0,
20841
+ [conversationsApi]
20842
+ );
20843
+ const fetchArchivedDialogs = _react.useMemo.call(void 0,
20844
+ () => conversationsApi ? (params) => conversationsApi.fetchDialogs({ ...params, status: "archived" }) : void 0,
20845
+ [conversationsApi]
20846
+ );
20847
+ const {
20848
+ dialogs,
20849
+ isDialogsLoading,
20850
+ dialogsError,
20851
+ hasMoreDialogs,
20852
+ reloadDialogs,
20853
+ loadMoreDialogs,
20854
+ renameDialog,
20855
+ archiveDialog,
20856
+ upsertDialogTop,
20857
+ bumpDialogToTop
20858
+ } = useManagedDialogList({
20859
+ autoLoad: active,
20860
+ fetchDialogs: fetchActiveDialogs,
20861
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _656 => _656.renameDialog]),
20862
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _657 => _657.archiveDialog]),
20863
+ pageSize: 20,
20864
+ search: conversationsApi ? dialogSearch : void 0,
20865
+ logTag: "[useSseChatAdapter]",
20866
+ // Archiving the OPEN conversation drops back to the draft state (the
20867
+ // manager also clears the thread; both paths are idempotent).
20868
+ onDialogRemoved: (id) => {
20869
+ if (conversationIdRef.current === id) switchConversation(null);
20870
+ }
20871
+ });
20872
+ const unarchiveDialog = _react.useMemo.call(void 0,
20873
+ () => conversationsApi ? async (id) => {
20874
+ await conversationsApi.unarchiveDialog(id);
20875
+ reloadDialogs();
20876
+ } : void 0,
20877
+ [conversationsApi, reloadDialogs]
20878
+ );
20545
20879
  const endpointsRef = _react.useRef.call(void 0, runtime.endpoints);
20546
20880
  endpointsRef.current = runtime.endpoints;
20547
20881
  const captureConversationId = _react.useCallback.call(void 0,
20548
20882
  (event) => {
20549
- if (event.type !== "metadata") return;
20883
+ if (event.type !== "metadata") return false;
20550
20884
  const id = event.conversationId;
20551
- if (typeof id !== "string" || !id) return;
20552
- if (conversationIdRef.current === id) return;
20553
- conversationIdRef.current = id;
20554
- conversationStorage.save({ conversationId: id });
20885
+ if (typeof id !== "string" || !id) return false;
20886
+ if (conversationIdRef.current === id) return false;
20887
+ hydratedKeyRef.current = `${source}:${id}`;
20888
+ commitConversationId(id);
20889
+ return true;
20555
20890
  },
20556
- [conversationStorage]
20891
+ [commitConversationId, hydratedKeyRef, source]
20557
20892
  );
20558
20893
  const sendMessage = _react.useCallback.call(void 0,
20559
20894
  // Resolves `true` on a clean turn, `false` when the request failed
20560
20895
  // (surfaced to batch approve-all loops via the card callbacks).
20561
20896
  async (text, sendOptions) => {
20562
20897
  const { hidden, attachments, commandOverride, approvalAction } = _nullishCoalesce(sendOptions, () => ( {}));
20563
- const conversationId = conversationIdRef.current;
20898
+ const echoedConversationId = conversationIdRef.current;
20564
20899
  const targetPath = approvalAction ? endpointsRef.current.approvalToolUrl : endpointsRef.current.chatStreamUrl;
20565
20900
  const requestBody = approvalAction ? (
20566
20901
  // Shared with every other transport that resolves a hub proposal —
20567
20902
  // the body shape is the hub's, not this adapter's. `conversationId`
20568
20903
  // is always present here: an approval can only happen inside an
20569
20904
  // established conversation (the proposal turn captured the id).
20570
- buildConfirmToolBody({ ...approvalAction, conversationId })
20905
+ buildConfirmToolBody({ ...approvalAction, conversationId: echoedConversationId })
20571
20906
  ) : {
20572
20907
  messages: [{ role: "user", content: text }],
20573
20908
  ...commandOverride ? { commandOverride } : {},
20574
20909
  ...attachments && attachments.length > 0 ? { pendingAttachments: attachments } : {},
20575
- ...conversationId ? { conversationId } : {}
20910
+ ...echoedConversationId ? { conversationId: echoedConversationId } : {}
20576
20911
  };
20577
20912
  mutate((r) => r.beginSseSend({ text, hidden, userName: "You", assistantName: "Mingo AI" }));
20578
20913
  const ctrl = new AbortController();
20579
20914
  abortControllerRef.current = ctrl;
20915
+ let mintedThisTurn = false;
20580
20916
  try {
20581
- const response = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, targetPath, {
20917
+ const response = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, targetPath, {
20582
20918
  method: "POST",
20583
20919
  body: JSON.stringify(requestBody),
20584
20920
  signal: ctrl.signal
@@ -20587,7 +20923,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20587
20923
  const serverMessage = await readServerErrorMessage(response);
20588
20924
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
20589
20925
  }
20590
- const reader = _optionalChain([response, 'access', _644 => _644.body, 'optionalAccess', _645 => _645.getReader, 'call', _646 => _646()]);
20926
+ const reader = _optionalChain([response, 'access', _658 => _658.body, 'optionalAccess', _659 => _659.getReader, 'call', _660 => _660()]);
20591
20927
  if (!reader) throw new Error("No response body");
20592
20928
  const frameDecoder = createSseFrameDecoder();
20593
20929
  let finished = false;
@@ -20597,7 +20933,13 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20597
20933
  if (done) break;
20598
20934
  if (ctrl.signal.aborted) break;
20599
20935
  for (const event of frameDecoder.push(value)) {
20600
- captureConversationId(event);
20936
+ if (captureConversationId(event)) {
20937
+ mintedThisTurn = true;
20938
+ const mintedId = conversationIdRef.current;
20939
+ if (conversationsApi && !hidden && mintedId) {
20940
+ upsertDialogTop({ id: mintedId, title: "New chat", timestamp: /* @__PURE__ */ new Date() });
20941
+ }
20942
+ }
20601
20943
  applyEvent(event);
20602
20944
  }
20603
20945
  }
@@ -20610,7 +20952,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20610
20952
  }
20611
20953
  return true;
20612
20954
  } catch (err) {
20613
- if (_optionalChain([err, 'optionalAccess', _647 => _647.name]) === "AbortError" || ctrl.signal.aborted) {
20955
+ if (_optionalChain([err, 'optionalAccess', _661 => _661.name]) === "AbortError" || ctrl.signal.aborted) {
20614
20956
  return true;
20615
20957
  }
20616
20958
  flushDeltas();
@@ -20624,29 +20966,62 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20624
20966
  }
20625
20967
  flushDeltas();
20626
20968
  mutate((r) => r.endSseTurn());
20969
+ if (conversationsApi && !ctrl.signal.aborted) {
20970
+ if (mintedThisTurn) {
20971
+ reloadDialogs();
20972
+ } else if (conversationIdRef.current) {
20973
+ bumpDialogToTop(conversationIdRef.current);
20974
+ }
20975
+ }
20627
20976
  }
20628
20977
  },
20629
- [mutate, applyEvent, flushDeltas, captureConversationId]
20978
+ [
20979
+ mutate,
20980
+ applyEvent,
20981
+ flushDeltas,
20982
+ captureConversationId,
20983
+ conversationsApi,
20984
+ upsertDialogTop,
20985
+ reloadDialogs,
20986
+ bumpDialogToTop
20987
+ ]
20630
20988
  );
20631
20989
  sendMessageRef.current = sendMessage;
20632
20990
  const stopMessage = _react.useCallback.call(void 0, () => {
20633
- _optionalChain([abortControllerRef, 'access', _648 => _648.current, 'optionalAccess', _649 => _649.abort, 'call', _650 => _650()]);
20991
+ _optionalChain([abortControllerRef, 'access', _662 => _662.current, 'optionalAccess', _663 => _663.abort, 'call', _664 => _664()]);
20634
20992
  flushDeltas();
20635
20993
  mutate((r) => r.setPhase("idle"));
20636
20994
  }, [mutate, flushDeltas]);
20637
20995
  const clearMessages = _react.useCallback.call(void 0, () => {
20638
20996
  mutate((r) => r.reset());
20639
- conversationIdRef.current = null;
20640
- conversationStorage.clear();
20997
+ commitConversationId(null);
20641
20998
  hydrationSendCountRef.current = 0;
20642
20999
  hydratedKeyRef.current = null;
20643
- }, [mutate, conversationStorage, hydratedKeyRef]);
21000
+ }, [mutate, commitConversationId, hydratedKeyRef]);
21001
+ const selectDialog = _react.useCallback.call(void 0,
21002
+ (id) => {
21003
+ if (id === conversationIdRef.current) return;
21004
+ switchConversation(id);
21005
+ },
21006
+ [switchConversation]
21007
+ );
21008
+ const dialogCapabilities = _react.useMemo.call(void 0,
21009
+ () => conversationsApi ? {
21010
+ canRename: true,
21011
+ canArchive: true,
21012
+ fetchArchivedDialogs,
21013
+ unarchiveDialog,
21014
+ searchQuery: dialogSearch,
21015
+ onSearchChange: setDialogSearch
21016
+ } : void 0,
21017
+ [conversationsApi, fetchArchivedDialogs, unarchiveDialog, dialogSearch]
21018
+ );
20644
21019
  const docMessages = _react.useMemo.call(void 0, () => {
20645
21020
  const { meta, sources: sourcesMap } = state.turnMeta;
20646
21021
  let sendIdx = -1;
20647
21022
  return state.messages.map((m) => {
20648
21023
  const segments = m.segments;
20649
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _651 => _651.filter, 'call', _652 => _652((s) => s.type === "text"), 'access', _653 => _653.map, 'call', _654 => _654((s) => s.text), 'access', _655 => _655.join, 'call', _656 => _656("")]), () => ( ""));
21024
+ const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _665 => _665.filter, 'call', _666 => _666((s) => s.type === "text"), 'access', _667 => _667.map, 'call', _668 => _668((s) => s.text), 'access', _669 => _669.join, 'call', _670 => _670("")]), () => ( ""));
20650
21025
  let sources;
20651
21026
  let scrollAnchor;
20652
21027
  if (m.role === "user" && !m.hidden) {
@@ -20655,7 +21030,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20655
21030
  if (m.role === "assistant") {
20656
21031
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
20657
21032
  sources = sourcesMap.get(lookupIdx);
20658
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _657 => _657.get, 'call', _658 => _658(lookupIdx), 'optionalAccess', _659 => _659.scrollAnchor]), () => ( void 0));
21033
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _671 => _671.get, 'call', _672 => _672(lookupIdx), 'optionalAccess', _673 => _673.scrollAnchor]), () => ( void 0));
20659
21034
  }
20660
21035
  return {
20661
21036
  id: m.id,
@@ -20682,7 +21057,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20682
21057
  );
20683
21058
  return;
20684
21059
  }
20685
- const refSlug = typeof _optionalChain([reference, 'access', _660 => _660.metadata, 'optionalAccess', _661 => _661.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21060
+ const refSlug = typeof _optionalChain([reference, 'access', _674 => _674.metadata, 'optionalAccess', _675 => _675.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
20686
21061
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
20687
21062
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
20688
21063
  const text = `/${cmdId} display "${escaped}"`;
@@ -20728,38 +21103,42 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20728
21103
  /** True while the mount-time rebuild from the server transcript runs. */
20729
21104
  isHydratingHistory,
20730
21105
  /** Provider key for the lib's `<ModelDisplay>` icon. */
20731
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _662 => _662.provider]), () => ( null)),
20732
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _663 => _663.modelLabel]), () => ( null)),
20733
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _664 => _664.contextWindowMaxTokens]), () => ( null)),
21106
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _676 => _676.provider]), () => ( null)),
21107
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _677 => _677.modelLabel]), () => ( null)),
21108
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _678 => _678.contextWindowMaxTokens]), () => ( null)),
20734
21109
  /** Input tokens (known after server's message_start frame; null until). */
20735
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _665 => _665.inputTokens]), () => ( null)),
21110
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _679 => _679.inputTokens]), () => ( null)),
20736
21111
  /** Output tokens (known only after server's trailing usage frame). */
20737
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _666 => _666.outputTokens]), () => ( null)),
21112
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _680 => _680.outputTokens]), () => ( null)),
20738
21113
  /** Cache hit % (read / total-input × 100). null during streaming. */
20739
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _667 => _667.cacheHitRatePct]), () => ( null)),
21114
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _681 => _681.cacheHitRatePct]), () => ( null)),
20740
21115
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
20741
21116
  * token counts). null until the trailing usage frame lands. */
20742
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _668 => _668.breakdown]), () => ( null)),
20743
- // ─── Dialog management — stubs for v1 ────────────────────────────────
20744
- // Guide mode keeps ONE server-side conversation per stored id
20745
- // (`chat_conversations`, hydrated on mount). Surfacing multiple threads
20746
- // as a structured dialog list is a follow-up; for now the shape is
20747
- // satisfied with empty defaults so the unified contract type-checks and
20748
- // EmbeddableChat hides sidebar affordances when `dialogs.length === 0`.
20749
- dialogs: SSE_EMPTY_DIALOGS,
20750
- activeDialogId: null,
20751
- selectDialog: noopSelectDialog,
21117
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _682 => _682.breakdown]), () => ( null)),
21118
+ // ─── Dialog management ───────────────────────────────────────────────
21119
+ // With `chatConversationsUrl` the server transcript store IS the dialog
21120
+ // list (shared `useManagedDialogList`); selecting a row re-hydrates through
21121
+ // the history route. WITHOUT it the same hook is inert by construction —
21122
+ // no `fetchDialogs`, so an empty list, false flags and memoized no-op
21123
+ // mutations — which is why only the four genuinely mode-dependent fields
21124
+ // are branched here.
21125
+ dialogs,
21126
+ isDialogsLoading,
21127
+ dialogsError,
21128
+ reloadDialogs,
21129
+ hasMoreDialogs,
21130
+ loadMoreDialogs,
21131
+ renameDialog,
21132
+ archiveDialog,
21133
+ // New chat = `clearMessages` (the server mints on the next send); there is
21134
+ // no create call. Delete is not offered — archive replaces it.
20752
21135
  startNewDialog: noopStartNewDialog,
20753
21136
  deleteDialog: noopDeleteDialog,
20754
- renameDialog: noopRenameDialog,
20755
- archiveDialog: noopArchiveDialog,
20756
- isDialogsLoading: false,
20757
- // SSE/guide has no server-side dialog list — never errors, nothing to retry.
20758
- dialogsError: false,
20759
- reloadDialogs: noopReloadDialogs,
20760
- isMessagesLoading: false,
20761
- hasMoreDialogs: false,
20762
- loadMoreDialogs: noopAsync,
21137
+ activeDialogId: conversationsApi ? conversationId : null,
21138
+ selectDialog: conversationsApi ? selectDialog : noopSelectDialog,
21139
+ isMessagesLoading: conversationsApi ? isHydratingHistory : false,
21140
+ dialogsManaged: !!conversationsApi,
21141
+ dialogCapabilities,
20763
21142
  hasMoreMessages: false,
20764
21143
  loadMoreMessages: noopAsync,
20765
21144
  approveRequest: noopApproveRequest,
@@ -20773,9 +21152,6 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20773
21152
 
20774
21153
 
20775
21154
  // src/chat-protocol/nats-decoder.ts
20776
- function isRecord2(value) {
20777
- return typeof value === "object" && value !== null;
20778
- }
20779
21155
  function str(value) {
20780
21156
  return typeof value === "string" ? value : void 0;
20781
21157
  }
@@ -20788,7 +21164,7 @@ function numOr(value, fallback = 0) {
20788
21164
  }
20789
21165
  function normalizeToolCalls(raw) {
20790
21166
  if (!Array.isArray(raw)) return [];
20791
- return raw.filter(isRecord2).map((item) => ({
21167
+ return raw.filter(isRecord).map((item) => ({
20792
21168
  toolExecutionRequestId: String(_nullishCoalesce(item.toolExecutionRequestId, () => ( ""))),
20793
21169
  toolName: String(_nullishCoalesce(item.toolName, () => ( ""))),
20794
21170
  toolTitle: typeof item.toolTitle === "string" ? item.toolTitle : void 0,
@@ -20796,12 +21172,12 @@ function normalizeToolCalls(raw) {
20796
21172
  toolType: typeof item.toolType === "string" ? item.toolType : void 0,
20797
21173
  requiresApproval: item.requiresApproval === true,
20798
21174
  approvalType: typeof item.approvalType === "string" ? item.approvalType : null,
20799
- toolCallArguments: isRecord2(item.toolCallArguments) ? item.toolCallArguments : null
21175
+ toolCallArguments: isRecord(item.toolCallArguments) ? item.toolCallArguments : null
20800
21176
  }));
20801
21177
  }
20802
21178
  function normalizeAskOptions(raw) {
20803
21179
  if (!Array.isArray(raw)) return [];
20804
- return raw.filter(isRecord2).map((item) => ({
21180
+ return raw.filter(isRecord).map((item) => ({
20805
21181
  label: typeof item.label === "string" ? item.label.trim() : "",
20806
21182
  description: typeof item.description === "string" ? item.description : void 0
20807
21183
  })).filter((option) => option.label.length > 0);
@@ -20870,7 +21246,7 @@ function decodeNatsChunk(chunk) {
20870
21246
  // the EXECUTING segment held. Dropping it here therefore blanks the
20871
21247
  // card for the whole lifetime of the run.
20872
21248
  toolExplanation: typeof data.toolExplanation === "string" ? data.toolExplanation : void 0,
20873
- parameters: isRecord2(data.parameters) ? data.parameters : void 0,
21249
+ parameters: isRecord(data.parameters) ? data.parameters : void 0,
20874
21250
  toolExecutionRequestId: typeof data.toolExecutionRequestId === "string" ? data.toolExecutionRequestId : void 0
20875
21251
  },
20876
21252
  ...seq
@@ -20883,7 +21259,7 @@ function decodeNatsChunk(chunk) {
20883
21259
  integratedToolType: strOr(data.integratedToolType),
20884
21260
  toolFunction: strOr(data.toolFunction),
20885
21261
  toolTitle: typeof data.title === "string" ? data.title : void 0,
20886
- parameters: isRecord2(data.parameters) ? data.parameters : void 0,
21262
+ parameters: isRecord(data.parameters) ? data.parameters : void 0,
20887
21263
  result: str(data.result),
20888
21264
  success: typeof data.success === "boolean" ? data.success : void 0,
20889
21265
  toolExecutionRequestId: typeof data.toolExecutionRequestId === "string" ? data.toolExecutionRequestId : void 0
@@ -20984,7 +21360,7 @@ function decodeNatsChunk(chunk) {
20984
21360
  userId: typeof data.userId === "string" ? data.userId : void 0,
20985
21361
  // Wire shape carries no label; fall back to the id (parity with
20986
21362
  // the history path in `process-historical-messages.ts`).
20987
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _669 => _669.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _670 => _670.id]) === "string").map((it) => ({
21363
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _683 => _683.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _684 => _684.id]) === "string").map((it) => ({
20988
21364
  type: it.type,
20989
21365
  id: it.id,
20990
21366
  label: it.id
@@ -21075,7 +21451,7 @@ function extractIncompleteMessageState(lastMessage) {
21075
21451
  }
21076
21452
  break;
21077
21453
  case "approval_batch": {
21078
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _671 => _671.data, 'access', _672 => _672.executions, 'optionalAccess', _673 => _673[c.toolExecutionRequestId], 'optionalAccess', _674 => _674.status]) === "done");
21454
+ const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _685 => _685.data, 'access', _686 => _686.executions, 'optionalAccess', _687 => _687[c.toolExecutionRequestId], 'optionalAccess', _688 => _688.status]) === "done");
21079
21455
  if (segment.status !== "rejected" && !allDone) {
21080
21456
  hasIncompleteState = true;
21081
21457
  }
@@ -21137,11 +21513,11 @@ function extractIncompleteMessageState(lastMessage) {
21137
21513
  function extractIncompleteTailState(messages) {
21138
21514
  if (!messages || messages.length === 0) return void 0;
21139
21515
  let start = messages.length;
21140
- while (start > 0 && _optionalChain([messages, 'access', _675 => _675[start - 1], 'optionalAccess', _676 => _676.role]) === "assistant") start -= 1;
21516
+ while (start > 0 && _optionalChain([messages, 'access', _689 => _689[start - 1], 'optionalAccess', _690 => _690.role]) === "assistant") start -= 1;
21141
21517
  if (start === messages.length) return void 0;
21142
21518
  const segments = [];
21143
21519
  for (let i = start; i < messages.length; i += 1) {
21144
- const content = _optionalChain([messages, 'access', _677 => _677[i], 'optionalAccess', _678 => _678.content]);
21520
+ const content = _optionalChain([messages, 'access', _691 => _691[i], 'optionalAccess', _692 => _692.content]);
21145
21521
  if (Array.isArray(content)) segments.push(...content);
21146
21522
  }
21147
21523
  if (segments.length === 0) return void 0;
@@ -21154,15 +21530,15 @@ function extractIncompleteTailState(messages) {
21154
21530
 
21155
21531
  // src/components/chat/utils/process-historical-messages.ts
21156
21532
  function getOwnerDisplayName(owner) {
21157
- if (_optionalChain([owner, 'optionalAccess', _679 => _679.type]) === OWNER_TYPE.ADMIN && owner.user) {
21533
+ if (_optionalChain([owner, 'optionalAccess', _693 => _693.type]) === OWNER_TYPE.ADMIN && owner.user) {
21158
21534
  const { firstName, lastName } = owner.user;
21159
21535
  const name = [firstName, lastName].filter(Boolean).join(" ");
21160
21536
  if (name) return name;
21161
21537
  }
21162
- return _optionalChain([owner, 'optionalAccess', _680 => _680.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21538
+ return _optionalChain([owner, 'optionalAccess', _694 => _694.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21163
21539
  }
21164
21540
  function getOwnerAvatar(owner) {
21165
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _681 => _681.user, 'optionalAccess', _682 => _682.image, 'optionalAccess', _683 => _683.imageUrl]), () => ( void 0));
21541
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _695 => _695.user, 'optionalAccess', _696 => _696.image, 'optionalAccess', _697 => _697.imageUrl]), () => ( void 0));
21166
21542
  }
21167
21543
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
21168
21544
  messageDataArray.forEach((data) => {
@@ -21346,7 +21722,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21346
21722
  event.offerId,
21347
21723
  event.text,
21348
21724
  event.origin,
21349
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _684 => _684[event.offerId]]), () => ( "pending"))
21725
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _698 => _698[event.offerId]]), () => ( "pending"))
21350
21726
  );
21351
21727
  break;
21352
21728
  case "ticket-escalated":
@@ -21380,7 +21756,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21380
21756
  );
21381
21757
  break;
21382
21758
  case "escalation-offer-resolved":
21383
- _optionalChain([offerResolutions, 'optionalAccess', _685 => _685.set, 'call', _686 => _686(event.offerId, {
21759
+ _optionalChain([offerResolutions, 'optionalAccess', _699 => _699.set, 'call', _700 => _700(event.offerId, {
21384
21760
  status: event.status,
21385
21761
  resolvedByName: event.resolvedByName
21386
21762
  })]);
@@ -21444,7 +21820,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21444
21820
  }
21445
21821
  }
21446
21822
  } else {
21447
- _optionalChain([escalatedApprovals, 'optionalAccess', _687 => _687.set, 'call', _688 => _688(event.requestId, {
21823
+ _optionalChain([escalatedApprovals, 'optionalAccess', _701 => _701.set, 'call', _702 => _702(event.requestId, {
21448
21824
  command: event.command || "",
21449
21825
  explanation: event.explanation,
21450
21826
  approvalType,
@@ -21459,8 +21835,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21459
21835
  const existingStatus = approvalStatuses[requestId];
21460
21836
  const status = existingStatus || event.status;
21461
21837
  const resolvedByName = event.resolvedByName;
21462
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _689 => _689.get, 'call', _690 => _690(requestId)]);
21463
- if (_optionalChain([escalatedData, 'optionalAccess', _691 => _691.toolCalls]) && escalatedData.toolCalls.length > 0) {
21838
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _703 => _703.get, 'call', _704 => _704(requestId)]);
21839
+ if (_optionalChain([escalatedData, 'optionalAccess', _705 => _705.toolCalls]) && escalatedData.toolCalls.length > 0) {
21464
21840
  if (batchApprovalsEnabled) {
21465
21841
  accumulator.addApprovalBatch(
21466
21842
  requestId,
@@ -21482,7 +21858,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21482
21858
  );
21483
21859
  }
21484
21860
  }
21485
- _optionalChain([escalatedApprovals, 'optionalAccess', _692 => _692.delete, 'call', _693 => _693(requestId)]);
21861
+ _optionalChain([escalatedApprovals, 'optionalAccess', _706 => _706.delete, 'call', _707 => _707(requestId)]);
21486
21862
  break;
21487
21863
  }
21488
21864
  if (escalatedData) {
@@ -21491,7 +21867,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21491
21867
  explanation: escalatedData.explanation,
21492
21868
  approvalType: escalatedData.approvalType
21493
21869
  });
21494
- _optionalChain([escalatedApprovals, 'optionalAccess', _694 => _694.delete, 'call', _695 => _695(requestId)]);
21870
+ _optionalChain([escalatedApprovals, 'optionalAccess', _708 => _708.delete, 'call', _709 => _709(requestId)]);
21495
21871
  }
21496
21872
  const before = accumulator.getSegments();
21497
21873
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -21580,14 +21956,14 @@ function processHistoricalMessages(messages, options = {}) {
21580
21956
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
21581
21957
  return;
21582
21958
  }
21583
- const isUserMessage = _optionalChain([msg, 'access', _696 => _696.owner, 'optionalAccess', _697 => _697.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _698 => _698.owner, 'optionalAccess', _699 => _699.type]) === OWNER_TYPE.ADMIN;
21959
+ const isUserMessage = _optionalChain([msg, 'access', _710 => _710.owner, 'optionalAccess', _711 => _711.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _712 => _712.owner, 'optionalAccess', _713 => _713.type]) === OWNER_TYPE.ADMIN;
21584
21960
  if (isUserMessage) {
21585
21961
  flushAssistantMessage();
21586
- const userAuthorType = _optionalChain([msg, 'access', _700 => _700.owner, 'optionalAccess', _701 => _701.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
21962
+ const userAuthorType = _optionalChain([msg, 'access', _714 => _714.owner, 'optionalAccess', _715 => _715.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
21587
21963
  messageDataArray.forEach((data) => {
21588
21964
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
21589
21965
  const rawContext = data.contextItems;
21590
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _702 => _702.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _703 => _703.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
21966
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _716 => _716.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _717 => _717.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
21591
21967
  processedMessages.push({
21592
21968
  id: msg.id,
21593
21969
  role: "user",
@@ -21630,7 +22006,7 @@ function processHistoricalMessages(messages, options = {}) {
21630
22006
  });
21631
22007
  const nextMsg = messages[index + 1];
21632
22008
  const isLastMessage = index === messages.length - 1;
21633
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _704 => _704.owner, 'optionalAccess', _705 => _705.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _706 => _706.owner, 'optionalAccess', _707 => _707.type]) === OWNER_TYPE.ADMIN);
22009
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _718 => _718.owner, 'optionalAccess', _719 => _719.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _720 => _720.owner, 'optionalAccess', _721 => _721.type]) === OWNER_TYPE.ADMIN);
21634
22010
  if (isLastMessage || nextIsFromUser) {
21635
22011
  flushAssistantMessage();
21636
22012
  }
@@ -21748,6 +22124,8 @@ function useNatsChatAdapter(config, options = {}) {
21748
22124
  deleteDialog: deleteDialogCallback,
21749
22125
  renameDialog: renameDialogCallback,
21750
22126
  archiveDialog: archiveDialogCallback,
22127
+ fetchArchivedDialogs,
22128
+ unarchiveDialog,
21751
22129
  approveRequest: approveRequestCallback,
21752
22130
  rejectRequest: rejectRequestCallback,
21753
22131
  stopGeneration: stopGenerationCallback,
@@ -21833,11 +22211,33 @@ function useNatsChatAdapter(config, options = {}) {
21833
22211
  },
21834
22212
  [applyEvent]
21835
22213
  );
21836
- const [dialogs, setDialogs] = _react.useState.call(void 0, []);
21837
- const [dialogsNextCursor, setDialogsNextCursor] = _react.useState.call(void 0, null);
21838
- const [isDialogsLoading, setIsDialogsLoading] = _react.useState.call(void 0, false);
21839
- const [dialogsError, setDialogsError] = _react.useState.call(void 0, false);
21840
22214
  const [isCreatingDialog, setIsCreatingDialog] = _react.useState.call(void 0, false);
22215
+ const {
22216
+ dialogs,
22217
+ isDialogsLoading,
22218
+ dialogsError,
22219
+ hasMoreDialogs,
22220
+ reloadDialogs,
22221
+ loadMoreDialogs,
22222
+ renameDialog,
22223
+ archiveDialog,
22224
+ deleteDialog,
22225
+ upsertDialogTop
22226
+ } = useManagedDialogList({
22227
+ autoLoad: active,
22228
+ fetchDialogs,
22229
+ renameDialog: renameDialogCallback,
22230
+ archiveDialog: archiveDialogCallback,
22231
+ deleteDialog: deleteDialogCallback,
22232
+ pageSize: dialogsPageSize,
22233
+ logTag: "[useNatsChatAdapter]",
22234
+ onDialogRemoved: (id, reason) => {
22235
+ if (reason === "deleted") dialogStore.remove(id);
22236
+ if (isManagedMode && internalDialogId === id) {
22237
+ setInternalDialogId(null);
22238
+ }
22239
+ }
22240
+ });
21841
22241
  const [messagesNextCursor, setMessagesNextCursor] = _react.useState.call(void 0, null);
21842
22242
  const [isMessagesLoading, setIsMessagesLoading] = _react.useState.call(void 0, false);
21843
22243
  const [connectedForDialog, setConnectedForDialog] = _react.useState.call(void 0, null);
@@ -21987,48 +22387,9 @@ function useNatsChatAdapter(config, options = {}) {
21987
22387
  }
21988
22388
  });
21989
22389
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
21990
- const initialDialogsLoadedRef = _react.useRef.call(void 0, false);
21991
- const loadDialogsPage = _react.useCallback.call(void 0,
21992
- async (cursor) => {
21993
- if (!fetchDialogs) return;
21994
- setIsDialogsLoading(true);
21995
- if (cursor === void 0) setDialogsError(false);
21996
- try {
21997
- const result = await fetchDialogs({
21998
- cursor,
21999
- limit: dialogsPageSize
22000
- });
22001
- setDialogsNextCursor(result.nextCursor);
22002
- if (cursor === void 0) {
22003
- setDialogs(result.dialogs);
22004
- } else {
22005
- setDialogs((prev) => [...prev, ...result.dialogs]);
22006
- }
22007
- } catch (err) {
22008
- console.error("[useNatsChatAdapter] fetchDialogs failed:", err);
22009
- if (cursor === void 0) {
22010
- setDialogsError(true);
22011
- initialDialogsLoadedRef.current = false;
22012
- }
22013
- } finally {
22014
- setIsDialogsLoading(false);
22015
- }
22016
- },
22017
- [fetchDialogs, dialogsPageSize]
22018
- );
22019
- const reloadDialogs = _react.useCallback.call(void 0, () => {
22020
- void loadDialogsPage();
22021
- }, [loadDialogsPage]);
22022
- _react.useEffect.call(void 0, () => {
22023
- if (!fetchDialogs) return;
22024
- if (!active) return;
22025
- if (initialDialogsLoadedRef.current) return;
22026
- initialDialogsLoadedRef.current = true;
22027
- void loadDialogsPage();
22028
- }, [active, fetchDialogs, loadDialogsPage]);
22029
22390
  const sendMessage = _react.useCallback.call(void 0,
22030
22391
  async (text, sendOptions) => {
22031
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _708 => _708.hidden]), () => ( false));
22392
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _722 => _722.hidden]), () => ( false));
22032
22393
  mutate((r) => r.pushOptimisticSend(text, hidden));
22033
22394
  await publishUserMessage(text, { hidden, dialogId });
22034
22395
  },
@@ -22060,14 +22421,11 @@ function useNatsChatAdapter(config, options = {}) {
22060
22421
  try {
22061
22422
  setIsCreatingDialog(true);
22062
22423
  const result = await createDialogCallback();
22063
- setDialogs((prev) => [
22064
- {
22065
- id: result.dialogId,
22066
- title: "New Chat",
22067
- timestamp: /* @__PURE__ */ new Date()
22068
- },
22069
- ...prev.filter((d) => d.id !== result.dialogId)
22070
- ]);
22424
+ upsertDialogTop({
22425
+ id: result.dialogId,
22426
+ title: "New Chat",
22427
+ timestamp: /* @__PURE__ */ new Date()
22428
+ });
22071
22429
  if (isManagedMode) {
22072
22430
  setInternalDialogId(result.dialogId);
22073
22431
  }
@@ -22078,65 +22436,7 @@ function useNatsChatAdapter(config, options = {}) {
22078
22436
  } finally {
22079
22437
  setIsCreatingDialog(false);
22080
22438
  }
22081
- }, [createDialogCallback, isCreatingDialog, isManagedMode]);
22082
- const deleteDialog = _react.useCallback.call(void 0,
22083
- async (id) => {
22084
- if (!deleteDialogCallback) return;
22085
- try {
22086
- await deleteDialogCallback(id);
22087
- setDialogs((prev) => prev.filter((d) => d.id !== id));
22088
- dialogStore.remove(id);
22089
- if (isManagedMode && internalDialogId === id) {
22090
- setInternalDialogId(null);
22091
- }
22092
- } catch (err) {
22093
- console.error("[useNatsChatAdapter] deleteDialog failed:", err);
22094
- }
22095
- },
22096
- [deleteDialogCallback, dialogStore, internalDialogId, isManagedMode]
22097
- );
22098
- const renameDialog = _react.useCallback.call(void 0,
22099
- async (id, title) => {
22100
- if (!renameDialogCallback) return;
22101
- let previous;
22102
- setDialogs(
22103
- (prev) => prev.map((d) => {
22104
- if (d.id !== id) return d;
22105
- previous = d.title;
22106
- return { ...d, title };
22107
- })
22108
- );
22109
- try {
22110
- await renameDialogCallback(id, title);
22111
- } catch (err) {
22112
- console.error("[useNatsChatAdapter] renameDialog failed:", err);
22113
- const rollbackTitle = previous;
22114
- if (rollbackTitle !== void 0) {
22115
- setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title: rollbackTitle } : d));
22116
- }
22117
- }
22118
- },
22119
- [renameDialogCallback]
22120
- );
22121
- const archiveDialog = _react.useCallback.call(void 0,
22122
- async (id) => {
22123
- if (!archiveDialogCallback) return;
22124
- try {
22125
- await archiveDialogCallback(id);
22126
- setDialogs((prev) => prev.filter((d) => d.id !== id));
22127
- if (isManagedMode && internalDialogId === id) {
22128
- setInternalDialogId(null);
22129
- }
22130
- } catch (err) {
22131
- console.error("[useNatsChatAdapter] archiveDialog failed:", err);
22132
- }
22133
- },
22134
- [archiveDialogCallback, internalDialogId, isManagedMode]
22135
- );
22136
- const loadMoreDialogs = _react.useCallback.call(void 0, async () => {
22137
- if (!dialogsNextCursor) return;
22138
- await loadDialogsPage(dialogsNextCursor);
22139
- }, [dialogsNextCursor, loadDialogsPage]);
22439
+ }, [createDialogCallback, isCreatingDialog, isManagedMode, upsertDialogTop]);
22140
22440
  const loadMoreMessages = _react.useCallback.call(void 0, async () => {
22141
22441
  if (!dialogId || !messagesNextCursor) return;
22142
22442
  await loadDialogHistory(dialogId, messagesNextCursor);
@@ -22158,8 +22458,16 @@ function useNatsChatAdapter(config, options = {}) {
22158
22458
  );
22159
22459
  const { messages, streamingPhase, dialogTokenUsage = null, liveModel = null } = state;
22160
22460
  const isLoading = streamingPhase !== "idle";
22161
- const hasMoreDialogs = dialogsNextCursor != null;
22162
22461
  const hasMoreMessages = messagesNextCursor != null;
22462
+ const dialogCapabilities = _react.useMemo.call(void 0,
22463
+ () => isManagedMode ? {
22464
+ canRename: !!renameDialogCallback,
22465
+ canArchive: !!archiveDialogCallback,
22466
+ fetchArchivedDialogs,
22467
+ unarchiveDialog
22468
+ } : void 0,
22469
+ [isManagedMode, renameDialogCallback, archiveDialogCallback, fetchArchivedDialogs, unarchiveDialog]
22470
+ );
22163
22471
  return _react.useMemo.call(void 0,
22164
22472
  () => ({
22165
22473
  messages,
@@ -22174,11 +22482,11 @@ function useNatsChatAdapter(config, options = {}) {
22174
22482
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
22175
22483
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
22176
22484
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
22177
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _709 => _709.provider]), () => ( modelProvider)), () => ( null)),
22178
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _710 => _710.modelLabel]), () => ( modelLabel)), () => ( null)),
22179
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _711 => _711.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _712 => _712.contextWindowMaxTokens]))), () => ( null)),
22180
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _713 => _713.inputTokensSize]), () => ( null)),
22181
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _714 => _714.outputTokensSize]), () => ( null)),
22485
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _723 => _723.provider]), () => ( modelProvider)), () => ( null)),
22486
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _724 => _724.modelLabel]), () => ( modelLabel)), () => ( null)),
22487
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _725 => _725.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _726 => _726.contextWindowMaxTokens]))), () => ( null)),
22488
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _727 => _727.inputTokensSize]), () => ( null)),
22489
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _728 => _728.outputTokensSize]), () => ( null)),
22182
22490
  currentCacheHitRatePct: null,
22183
22491
  currentUsageBreakdown: null,
22184
22492
  // Dialog management
@@ -22197,6 +22505,8 @@ function useNatsChatAdapter(config, options = {}) {
22197
22505
  loadMoreDialogs,
22198
22506
  hasMoreMessages,
22199
22507
  loadMoreMessages,
22508
+ dialogsManaged: isManagedMode,
22509
+ dialogCapabilities,
22200
22510
  // Approval mutations
22201
22511
  approveRequest,
22202
22512
  rejectRequest,
@@ -22229,6 +22539,8 @@ function useNatsChatAdapter(config, options = {}) {
22229
22539
  loadMoreDialogs,
22230
22540
  hasMoreMessages,
22231
22541
  loadMoreMessages,
22542
+ isManagedMode,
22543
+ dialogCapabilities,
22232
22544
  approveRequest,
22233
22545
  rejectRequest,
22234
22546
  dialogTokenUsage,
@@ -22279,7 +22591,7 @@ function useUnifiedChat(options) {
22279
22591
  []
22280
22592
  );
22281
22593
  const displayRefForward = _react.useCallback.call(void 0,
22282
- (ref) => _optionalChain([activeStateRef, 'access', _715 => _715.current, 'access', _716 => _716.displayRef, 'optionalCall', _717 => _717(ref)]),
22594
+ (ref) => _optionalChain([activeStateRef, 'access', _729 => _729.current, 'access', _730 => _730.displayRef, 'optionalCall', _731 => _731(ref)]),
22283
22595
  []
22284
22596
  );
22285
22597
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -22289,7 +22601,7 @@ function useUnifiedChat(options) {
22289
22601
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
22290
22602
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
22291
22603
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
22292
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _718 => _718.current, 'access', _719 => _719.setDialogScope, 'optionalCall', _720 => _720(scope)]), []);
22604
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _732 => _732.current, 'access', _733 => _733.setDialogScope, 'optionalCall', _734 => _734(scope)]), []);
22293
22605
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
22294
22606
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
22295
22607
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -22334,6 +22646,11 @@ function useUnifiedChat(options) {
22334
22646
  setDialogScope,
22335
22647
  hasMoreMessages: activeState.hasMoreMessages,
22336
22648
  loadMoreMessages,
22649
+ // Adapter-owned dialog list flag + capabilities (SSE with a
22650
+ // conversations endpoint, NATS managed mode). Forwarded verbatim —
22651
+ // `EmbeddableChat` gates the history UI on them.
22652
+ dialogsManaged: activeState.dialogsManaged,
22653
+ dialogCapabilities: activeState.dialogCapabilities,
22337
22654
  // Approvals
22338
22655
  approveRequest,
22339
22656
  rejectRequest,
@@ -22382,19 +22699,19 @@ function turnRequestKeys(content) {
22382
22699
  if (!Array.isArray(content)) return keys;
22383
22700
  for (const seg of content) {
22384
22701
  if (seg.type === "tool_execution") {
22385
- const id = _optionalChain([seg, 'access', _721 => _721.data, 'optionalAccess', _722 => _722.toolExecutionRequestId]);
22702
+ const id = _optionalChain([seg, 'access', _735 => _735.data, 'optionalAccess', _736 => _736.toolExecutionRequestId]);
22386
22703
  if (id) keys.add(id);
22387
22704
  } else if (seg.type === "approval_request") {
22388
- const id = _optionalChain([seg, 'access', _723 => _723.data, 'optionalAccess', _724 => _724.requestId]);
22705
+ const id = _optionalChain([seg, 'access', _737 => _737.data, 'optionalAccess', _738 => _738.requestId]);
22389
22706
  if (id) keys.add(id);
22390
22707
  } else if (seg.type === "escalation_offer") {
22391
- const id = _optionalChain([seg, 'access', _725 => _725.data, 'optionalAccess', _726 => _726.offerId]);
22708
+ const id = _optionalChain([seg, 'access', _739 => _739.data, 'optionalAccess', _740 => _740.offerId]);
22392
22709
  if (id) keys.add(id);
22393
22710
  } else if (seg.type === "approval_batch") {
22394
22711
  const data = seg.data;
22395
- if (_optionalChain([data, 'optionalAccess', _727 => _727.approvalRequestId])) keys.add(data.approvalRequestId);
22396
- for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _728 => _728.toolCalls]), () => ( []))) {
22397
- if (_optionalChain([call, 'optionalAccess', _729 => _729.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
22712
+ if (_optionalChain([data, 'optionalAccess', _741 => _741.approvalRequestId])) keys.add(data.approvalRequestId);
22713
+ for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _742 => _742.toolCalls]), () => ( []))) {
22714
+ if (_optionalChain([call, 'optionalAccess', _743 => _743.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
22398
22715
  }
22399
22716
  }
22400
22717
  }
@@ -22446,18 +22763,18 @@ function mergeHistoryWithRealtime(input) {
22446
22763
  }
22447
22764
  }
22448
22765
  const trailing = processedHistory[processedHistory.length - 1];
22449
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _730 => _730.role]) === "assistant" ? trailing : null;
22450
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _731 => _731.content, 'access', _732 => _732.find, 'call', _733 => _733((s) => s.type === "approval_batch"), 'optionalAccess', _734 => _734.data, 'optionalAccess', _735 => _735.approvalRequestId]), () => ( null)) : null;
22766
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _744 => _744.role]) === "assistant" ? trailing : null;
22767
+ const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _745 => _745.content, 'access', _746 => _746.find, 'call', _747 => _747((s) => s.type === "approval_batch"), 'optionalAccess', _748 => _748.data, 'optionalAccess', _749 => _749.approvalRequestId]), () => ( null)) : null;
22451
22768
  let processedToUse = processedHistory;
22452
22769
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
22453
22770
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
22454
22771
  if (historyBatchId) {
22455
22772
  const batchTwins = existingMessages.filter(
22456
- (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _736 => _736.data, 'optionalAccess', _737 => _737.approvalRequestId]) === historyBatchId)
22773
+ (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _750 => _750.data, 'optionalAccess', _751 => _751.approvalRequestId]) === historyBatchId)
22457
22774
  );
22458
22775
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
22459
22776
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
22460
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _738 => _738.content])) ? historyTrailingAssistant.content.length : 0;
22777
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _752 => _752.content])) ? historyTrailingAssistant.content.length : 0;
22461
22778
  const realtimeSize = existingWithSameBatch.content.length;
22462
22779
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
22463
22780
  processedToUse = processedHistory.slice(0, -1);
@@ -22499,9 +22816,9 @@ function mergeHistoryWithRealtime(input) {
22499
22816
  if (pinnedSyntheticIds.has(m.id)) return true;
22500
22817
  if (droppedSyntheticIds.has(m.id)) return false;
22501
22818
  if (processedIds.has(m.id)) return false;
22502
- if (_optionalChain([rawHistoryIds, 'optionalAccess', _739 => _739.has, 'call', _740 => _740(m.id)])) return false;
22819
+ if (_optionalChain([rawHistoryIds, 'optionalAccess', _753 => _753.has, 'call', _754 => _754(m.id)])) return false;
22503
22820
  if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
22504
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _741 => _741.timestamp, 'optionalAccess', _742 => _742.getTime, 'call', _743 => _743()]), () => ( 0))) <= historyFetchedAt;
22821
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _755 => _755.timestamp, 'optionalAccess', _756 => _756.getTime, 'call', _757 => _757()]), () => ( 0))) <= historyFetchedAt;
22505
22822
  return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
22506
22823
  }
22507
22824
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -22525,7 +22842,7 @@ function mergeHistoryWithRealtime(input) {
22525
22842
  } else if (typeof m.streamSeq === "number") {
22526
22843
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
22527
22844
  } else {
22528
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _744 => _744.timestamp, 'optionalAccess', _745 => _745.getTime, 'call', _746 => _746()]), () => ( 0))) <= historyFetchedAt;
22845
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _758 => _758.timestamp, 'optionalAccess', _759 => _759.getTime, 'call', _760 => _760()]), () => ( 0))) <= historyFetchedAt;
22529
22846
  }
22530
22847
  if (covered) return false;
22531
22848
  }
@@ -22595,7 +22912,7 @@ function normalizeHistoricalMessageData(md) {
22595
22912
  function isHistoricalUserTurn(m) {
22596
22913
  return !!m.owner;
22597
22914
  }
22598
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _747 => _747.type]) === "TEXT" && typeof d.text === "string";
22915
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _761 => _761.type]) === "TEXT" && typeof d.text === "string";
22599
22916
  var THINK_MS = 550;
22600
22917
  var TOKEN_MS = 55;
22601
22918
  var USER_MS = 480;
@@ -23215,7 +23532,7 @@ function useChatDialogManager({
23215
23532
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
23216
23533
  if (restoreTarget) {
23217
23534
  try {
23218
- await _optionalChain([unarchiveDialog, 'optionalCall', _748 => _748(restoreTarget.id)]);
23535
+ await _optionalChain([unarchiveDialog, 'optionalCall', _762 => _762(restoreTarget.id)]);
23219
23536
  } catch (err) {
23220
23537
  console.error("[useChatDialogManager] unarchive failed:", err);
23221
23538
  return;
@@ -23282,12 +23599,18 @@ function useChatDialogManager({
23282
23599
 
23283
23600
  // src/components/chat/embeddable-chat.tsx
23284
23601
 
23602
+ var HISTORY_RAIL_WIDTH = 320;
23603
+ var CHAT_BLOCK_MIN_WIDTH = 400;
23604
+ var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + CHAT_BLOCK_MIN_WIDTH;
23285
23605
  var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
23286
- var DRAWER_WIDTH_KEY = "mingo-chat-width-v3";
23606
+ var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
23287
23607
  var DRAWER_DEFAULT_WIDTH_PX = 750;
23288
- function drawerDefaultWidth() {
23608
+ var SPLIT_DEFAULT_WIDTH_ALLOWANCE = 16;
23609
+ function drawerDefaultWidth(withHistoryRail) {
23289
23610
  if (typeof window === "undefined") return DRAWER_DEFAULT_WIDTH_PX;
23290
- return Math.round(window.innerWidth * DRAWER_DEFAULT_WIDTH_RATIO);
23611
+ const ratioWidth = Math.round(window.innerWidth * DRAWER_DEFAULT_WIDTH_RATIO);
23612
+ if (!withHistoryRail) return ratioWidth;
23613
+ return Math.max(ratioWidth, SPLIT_MIN_WIDTH + SPLIT_DEFAULT_WIDTH_ALLOWANCE);
23291
23614
  }
23292
23615
  var formatRelativePath = (p) => p.replace(/^\/+/, "").replace(/\/+$/, "");
23293
23616
  var mentionTokenOf = (key, markerByType) => {
@@ -23297,9 +23620,6 @@ var mentionTokenOf = (key, markerByType) => {
23297
23620
  return `${_nullishCoalesce(markerByType.get(type), () => ( type.toLowerCase()))}:${id}`;
23298
23621
  };
23299
23622
  var FALLBACK_TOP_RETRIEVED = 3;
23300
- var HISTORY_RAIL_WIDTH = 320;
23301
- var CHAT_BLOCK_MIN_WIDTH = 400;
23302
- var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + CHAT_BLOCK_MIN_WIDTH;
23303
23623
  var RAIL_COLLAPSED_STORAGE_KEY = "mingo-chat-history-collapsed";
23304
23624
  var NO_CONTEXT_ITEMS = [];
23305
23625
  var RAIL_ANIM_MS = 320;
@@ -23381,7 +23701,7 @@ function SourceChip({
23381
23701
  onClose,
23382
23702
  onDiscuss
23383
23703
  }) {
23384
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
23704
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
23385
23705
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
23386
23706
  const cta = resolveSourceRowCTA(
23387
23707
  {
@@ -23398,7 +23718,7 @@ function SourceChip({
23398
23718
  const Icon = cta.icon;
23399
23719
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
23400
23720
  const chipClass = chatChipClass({ tone: "secondary" });
23401
- const decideTab = (href, targetPlatform) => _chunkWCBRZCU4cjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
23721
+ const decideTab = (href, targetPlatform) => _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
23402
23722
  if (src.items && src.items.length > 0) {
23403
23723
  const dropdownItems = src.items.map((item) => {
23404
23724
  const itemCta = resolveSourceRowCTA(
@@ -23487,7 +23807,7 @@ function SourceChip({
23487
23807
  "a",
23488
23808
  {
23489
23809
  href: resolvedHref,
23490
- ..._chunkWCBRZCU4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
23810
+ ..._chunkUQEOAPAIcjs.newTabAnchorAttrs.call(void 0, isNewTab),
23491
23811
  onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
23492
23812
  className: chipClass,
23493
23813
  children: chipBody(src.name)
@@ -23503,7 +23823,7 @@ function SourceChip({
23503
23823
  "a",
23504
23824
  {
23505
23825
  href: resolvedHref,
23506
- ..._chunkWCBRZCU4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
23826
+ ..._chunkUQEOAPAIcjs.newTabAnchorAttrs.call(void 0, isNewTab),
23507
23827
  onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
23508
23828
  className: chipClass,
23509
23829
  title: displayName,
@@ -23626,7 +23946,7 @@ function EmbeddableChatInner({
23626
23946
  handleRef
23627
23947
  }) {
23628
23948
  const shellLess = shell === "none";
23629
- const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
23949
+ const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
23630
23950
  const source = _nullishCoalesce(runtime.source, () => ( ""));
23631
23951
  const commandsUrl = runtime.endpoints.commandsUrl;
23632
23952
  const { attachmentsEnabled, user: identityUser } = useChatIdentity();
@@ -23695,34 +24015,12 @@ function EmbeddableChatInner({
23695
24015
  }),
23696
24016
  [commandsUrl]
23697
24017
  );
23698
- const headerUserName = _optionalChain([identityUser, 'optionalAccess', _749 => _749.name, 'optionalAccess', _750 => _750.trim, 'call', _751 => _751()]) || [_optionalChain([identityUser, 'optionalAccess', _752 => _752.firstName]), _optionalChain([identityUser, 'optionalAccess', _753 => _753.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _754 => _754.trim, 'call', _755 => _755()]) || void 0;
24018
+ const headerUserName = _optionalChain([identityUser, 'optionalAccess', _763 => _763.name, 'optionalAccess', _764 => _764.trim, 'call', _765 => _765()]) || [_optionalChain([identityUser, 'optionalAccess', _766 => _766.firstName]), _optionalChain([identityUser, 'optionalAccess', _767 => _767.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _768 => _768.trim, 'call', _769 => _769()]) || void 0;
23699
24019
  const effectiveModes = _react.useMemo.call(void 0, () => {
23700
24020
  if (modes) return modes;
23701
24021
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
23702
24022
  return { guide: guideOptions };
23703
24023
  }, [modes, tableIdForDocumentType]);
23704
- const mingoCaps = _react.useMemo.call(void 0, () => {
23705
- if (mingoState) {
23706
- return {
23707
- canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _756 => _756.canRename]), () => ( false)),
23708
- canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _757 => _757.canArchive]), () => ( false)),
23709
- fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _758 => _758.fetchArchivedDialogs]),
23710
- unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _759 => _759.unarchiveDialog]),
23711
- searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _760 => _760.searchQuery]),
23712
- onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _761 => _761.onSearchChange]),
23713
- onCopyLink: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _762 => _762.onCopyLink])
23714
- };
23715
- }
23716
- return {
23717
- canRename: !!_optionalChain([effectiveModes, 'access', _763 => _763.mingo, 'optionalAccess', _764 => _764.renameDialog]),
23718
- canArchive: !!_optionalChain([effectiveModes, 'access', _765 => _765.mingo, 'optionalAccess', _766 => _766.archiveDialog]),
23719
- fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _767 => _767.mingo, 'optionalAccess', _768 => _768.fetchArchivedDialogs]),
23720
- unarchiveDialog: _optionalChain([effectiveModes, 'access', _769 => _769.mingo, 'optionalAccess', _770 => _770.unarchiveDialog]),
23721
- searchQuery: void 0,
23722
- onSearchChange: void 0,
23723
- onCopyLink: void 0
23724
- };
23725
- }, [mingoState, mingoDialogCapabilities, effectiveModes]);
23726
24024
  const hasMingoMode = !!effectiveModes.mingo || !!mingoState;
23727
24025
  const initialActiveMode = _nullishCoalesce(_nullishCoalesce(controlledActiveMode, () => ( defaultActiveMode)), () => ( (effectiveModes.guide ? "guide" : "mingo")));
23728
24026
  const [uncontrolledActiveMode, setUncontrolledActiveMode] = _react.useState.call(void 0, initialActiveMode);
@@ -23732,7 +24030,7 @@ function EmbeddableChatInner({
23732
24030
  if (controlledActiveMode === void 0) {
23733
24031
  setUncontrolledActiveMode(next);
23734
24032
  }
23735
- _optionalChain([onActiveModeChange, 'optionalCall', _771 => _771(next)]);
24033
+ _optionalChain([onActiveModeChange, 'optionalCall', _770 => _770(next)]);
23736
24034
  },
23737
24035
  [controlledActiveMode, onActiveModeChange]
23738
24036
  );
@@ -23759,7 +24057,7 @@ function EmbeddableChatInner({
23759
24057
  );
23760
24058
  const effectiveAssistantName = emptyStateConfig.name;
23761
24059
  const effectiveAssistantIcon = emptyStateConfig.icon;
23762
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _772 => _772.title]) === "string" ? guideWelcome.title : null)));
24060
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _771 => _771.title]) === "string" ? guideWelcome.title : null)));
23763
24061
  const {
23764
24062
  messages: rawMessages,
23765
24063
  isLoading: chatLoading,
@@ -23790,8 +24088,24 @@ function EmbeddableChatInner({
23790
24088
  dialogScope,
23791
24089
  setDialogScope,
23792
24090
  hasMoreMessages,
23793
- loadMoreMessages
24091
+ loadMoreMessages,
24092
+ dialogsManaged,
24093
+ dialogCapabilities
23794
24094
  } = useUnifiedChat({ modes: effectiveModes, activeMode, mingoStateOverride: mingoState });
24095
+ const historyListMode = activeMode === "mingo" || dialogsManaged === true;
24096
+ const mingoCaps = _react.useMemo.call(void 0, () => {
24097
+ const caps = _nullishCoalesce(dialogCapabilities, () => ( (mingoState ? mingoDialogCapabilities : {
24098
+ canRename: !!_optionalChain([effectiveModes, 'access', _772 => _772.mingo, 'optionalAccess', _773 => _773.renameDialog]),
24099
+ canArchive: !!_optionalChain([effectiveModes, 'access', _774 => _774.mingo, 'optionalAccess', _775 => _775.archiveDialog]),
24100
+ fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _776 => _776.mingo, 'optionalAccess', _777 => _777.fetchArchivedDialogs]),
24101
+ unarchiveDialog: _optionalChain([effectiveModes, 'access', _778 => _778.mingo, 'optionalAccess', _779 => _779.unarchiveDialog])
24102
+ })));
24103
+ return {
24104
+ ...caps,
24105
+ canRename: _nullishCoalesce(_optionalChain([caps, 'optionalAccess', _780 => _780.canRename]), () => ( false)),
24106
+ canArchive: _nullishCoalesce(_optionalChain([caps, 'optionalAccess', _781 => _781.canArchive]), () => ( false))
24107
+ };
24108
+ }, [dialogCapabilities, mingoState, mingoDialogCapabilities, effectiveModes]);
23795
24109
  const guidePromptSentRef = _react.useRef.call(void 0, false);
23796
24110
  _react.useEffect.call(void 0, () => {
23797
24111
  if (!guidePendingPrompt) {
@@ -23803,7 +24117,7 @@ function EmbeddableChatInner({
23803
24117
  void sendMessage(guidePendingPrompt).catch((err) => {
23804
24118
  console.error("[EmbeddableChat] guide launcher prompt failed:", err);
23805
24119
  });
23806
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _773 => _773()]);
24120
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _782 => _782()]);
23807
24121
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
23808
24122
  const {
23809
24123
  attachments: stagedAttachments,
@@ -23814,7 +24128,7 @@ function EmbeddableChatInner({
23814
24128
  clear: clearAttachments
23815
24129
  } = useChatAttachments();
23816
24130
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
23817
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _774 => _774.maxItems]), () => ( 10));
24131
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _783 => _783.maxItems]), () => ( 10));
23818
24132
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
23819
24133
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
23820
24134
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -23835,10 +24149,10 @@ function EmbeddableChatInner({
23835
24149
  }, [activeDialogId, activeMode]);
23836
24150
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
23837
24151
  const m = /* @__PURE__ */ new Map();
23838
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _775 => _775.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24152
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _784 => _784.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
23839
24153
  return m;
23840
- }, [_optionalChain([contextPicker, 'optionalAccess', _776 => _776.entityTypes])]);
23841
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _777 => _777.entityTypes]);
24154
+ }, [_optionalChain([contextPicker, 'optionalAccess', _785 => _785.entityTypes])]);
24155
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _786 => _786.entityTypes]);
23842
24156
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
23843
24157
  const byType = /* @__PURE__ */ new Map();
23844
24158
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -23850,7 +24164,7 @@ function EmbeddableChatInner({
23850
24164
  if (mentionActiveRef.current) {
23851
24165
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
23852
24166
  if (contextItems.length >= contextMaxItems) return;
23853
- _optionalChain([chatInputRef, 'access', _778 => _778.current, 'optionalAccess', _779 => _779.commitMention, 'call', _780 => _780(mentionTokenOf(key, mentionMarkerByType), {
24167
+ _optionalChain([chatInputRef, 'access', _787 => _787.current, 'optionalAccess', _788 => _788.commitMention, 'call', _789 => _789(mentionTokenOf(key, mentionMarkerByType), {
23854
24168
  label: item.label,
23855
24169
  icon: resolveContextIcon(item)
23856
24170
  })]);
@@ -23873,9 +24187,9 @@ function EmbeddableChatInner({
23873
24187
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
23874
24188
  if (mentionKeysRef.current.has(key)) {
23875
24189
  mentionKeysRef.current.delete(key);
23876
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _781 => _781.current, 'optionalAccess', _782 => _782.getValue, 'call', _783 => _783()]), () => ( ""));
24190
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _790 => _790.current, 'optionalAccess', _791 => _791.getValue, 'call', _792 => _792()]), () => ( ""));
23877
24191
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
23878
- _optionalChain([chatInputRef, 'access', _784 => _784.current, 'optionalAccess', _785 => _785.setValue, 'call', _786 => _786(next)]);
24192
+ _optionalChain([chatInputRef, 'access', _793 => _793.current, 'optionalAccess', _794 => _794.setValue, 'call', _795 => _795(next)]);
23879
24193
  }
23880
24194
  },
23881
24195
  [mentionMarkerByType]
@@ -23897,7 +24211,7 @@ function EmbeddableChatInner({
23897
24211
  }, []);
23898
24212
  const closeContextPicker = _react.useCallback.call(void 0, () => {
23899
24213
  if (mentionActiveRef.current) {
23900
- _optionalChain([chatInputRef, 'access', _787 => _787.current, 'optionalAccess', _788 => _788.removeMentionTrigger, 'call', _789 => _789()]);
24214
+ _optionalChain([chatInputRef, 'access', _796 => _796.current, 'optionalAccess', _797 => _797.removeMentionTrigger, 'call', _798 => _798()]);
23901
24215
  }
23902
24216
  setContextPickerOpen(false);
23903
24217
  setMentionQuery(null);
@@ -23931,8 +24245,8 @@ function EmbeddableChatInner({
23931
24245
  [effectiveAssistantIcon]
23932
24246
  );
23933
24247
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
23934
- const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _790 => _790.firstName]), _optionalChain([identityUser, 'optionalAccess', _791 => _791.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _792 => _792.name, 'optionalAccess', _793 => _793.trim, 'call', _794 => _794()]) || void 0 : void 0;
23935
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _795 => _795.avatarUrl, 'optionalAccess', _796 => _796.trim, 'call', _797 => _797()]) || void 0 : void 0;
24248
+ const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _799 => _799.firstName]), _optionalChain([identityUser, 'optionalAccess', _800 => _800.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _801 => _801.name, 'optionalAccess', _802 => _802.trim, 'call', _803 => _803()]) || void 0 : void 0;
24249
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _804 => _804.avatarUrl, 'optionalAccess', _805 => _805.trim, 'call', _806 => _806()]) || void 0 : void 0;
23936
24250
  const messages = _react.useMemo.call(void 0, () => {
23937
24251
  const cache = timestampCache;
23938
24252
  const seenIds = /* @__PURE__ */ new Set();
@@ -24091,7 +24405,7 @@ function EmbeddableChatInner({
24091
24405
  const hasMessages = messages.length > 0;
24092
24406
  const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
24093
24407
  const dialogsLoadError = dialogsError && dialogs.length === 0;
24094
- const hasConversation = hasMessages || isOpeningDialog || isViewingArchived || previewMode && isMessagesLoading;
24408
+ const hasConversation = hasMessages || isOpeningDialog || isViewingArchived || (previewMode || activeMode === "guide" && dialogsManaged === true) && isMessagesLoading;
24095
24409
  const messagesInitialLoading = isMessagesLoading && !hasMessages;
24096
24410
  const contentViewKey = hasConversation ? "conversation" : activeMode;
24097
24411
  const isGuideEmpty = !hasConversation && activeMode === "guide";
@@ -24121,9 +24435,9 @@ function EmbeddableChatInner({
24121
24435
  const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
24122
24436
  const lastSources = _react.useMemo.call(void 0, () => {
24123
24437
  if (chatLoading) return void 0;
24124
- const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _798 => _798.sources]);
24438
+ const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _807 => _807.sources]);
24125
24439
  if (!sources || sources.length === 0) return void 0;
24126
- const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _799 => _799.content]) || "";
24440
+ const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _808 => _808.content]) || "";
24127
24441
  const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map((m) => parseInt(m[1], 10));
24128
24442
  const seenOrder = /* @__PURE__ */ new Map();
24129
24443
  citationOrder.forEach((idx) => {
@@ -24136,21 +24450,18 @@ function EmbeddableChatInner({
24136
24450
  const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
24137
24451
  const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
24138
24452
  const [panelWidth, setPanelWidth] = _react.useState.call(void 0, 0);
24139
- const panelMeasureRef = _react.useRef.call(void 0, null);
24140
24453
  _react.useEffect.call(void 0, () => {
24141
- const el = panelMeasureRef.current;
24142
- if (!el || typeof ResizeObserver === "undefined") return void 0;
24454
+ if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
24143
24455
  const ro = new ResizeObserver((entries) => {
24144
- const w = _optionalChain([entries, 'access', _800 => _800[0], 'optionalAccess', _801 => _801.contentRect, 'optionalAccess', _802 => _802.width]);
24456
+ const w = _optionalChain([entries, 'access', _809 => _809[0], 'optionalAccess', _810 => _810.contentRect, 'optionalAccess', _811 => _811.width]);
24145
24457
  if (typeof w === "number") setPanelWidth(w);
24146
24458
  });
24147
- ro.observe(el);
24148
- setPanelWidth(el.clientWidth);
24459
+ ro.observe(panelBoundary);
24149
24460
  return () => ro.disconnect();
24150
- }, []);
24461
+ }, [panelBoundary]);
24151
24462
  const setPanelNode = _react.useCallback.call(void 0, (node) => {
24152
- panelMeasureRef.current = node;
24153
24463
  setPanelBoundary(node);
24464
+ if (node) setPanelWidth(node.clientWidth);
24154
24465
  }, []);
24155
24466
  const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
24156
24467
  const railStorageHydrated = useIsHydrated();
@@ -24173,7 +24484,7 @@ function EmbeddableChatInner({
24173
24484
  });
24174
24485
  }, []);
24175
24486
  const [railSearchOpen, setRailSearchOpen] = _react.useState.call(void 0, false);
24176
- const splitEligible = activeMode === "mingo";
24487
+ const splitEligible = historyListMode;
24177
24488
  const canSplit = panelWidth >= SPLIT_MIN_WIDTH;
24178
24489
  const wideMingo = splitEligible && canSplit && !previewMode;
24179
24490
  const splitActive = wideMingo && !railCollapsed;
@@ -24181,20 +24492,21 @@ function EmbeddableChatInner({
24181
24492
  const showWideHeader = wideMingo || railPresence.mounted;
24182
24493
  const [composeOpen, setComposeOpen] = _react.useState.call(void 0, false);
24183
24494
  if (hasConversation && composeOpen) setComposeOpen(false);
24184
- const isMingoMode = activeMode === "mingo";
24185
- const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen;
24495
+ const isMingoMode = historyListMode;
24496
+ const guideListIsEmpty = activeMode === "guide" && dialogsManaged === true && dialogs.length === 0 && !dialogsInitialLoading && !mingoCaps.searchQuery;
24497
+ const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !guideListIsEmpty;
24186
24498
  const headerShowBack = hasConversation || guideCanReturnToMingo;
24187
- const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _803 => _803.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats";
24499
+ const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _812 => _812.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats";
24188
24500
  const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
24189
24501
  const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
24190
24502
  const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
24191
24503
  const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
24192
24504
  const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
24193
- const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _804 => _804.onCopyLink, 'optionalCall', _805 => _805(activeDialog)]) : void 0;
24505
+ const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _813 => _813.onCopyLink, 'optionalCall', _814 => _814(activeDialog)]) : void 0;
24194
24506
  const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
24195
- const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _806 => _806.owner]) : void 0;
24196
- const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _807 => _807.name, 'optionalAccess', _808 => _808.trim, 'call', _809 => _809()]) || headerUserName;
24197
- const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _810 => _810.avatarUrl, 'optionalAccess', _811 => _811.trim, 'call', _812 => _812()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _813 => _813.avatarUrl, 'optionalAccess', _814 => _814.trim, 'call', _815 => _815()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _816 => _816.trim, 'call', _817 => _817()]) || void 0;
24507
+ const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _815 => _815.owner]) : void 0;
24508
+ const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _816 => _816.name, 'optionalAccess', _817 => _817.trim, 'call', _818 => _818()]) || headerUserName;
24509
+ const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _819 => _819.avatarUrl, 'optionalAccess', _820 => _820.trim, 'call', _821 => _821()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _822 => _822.avatarUrl, 'optionalAccess', _823 => _823.trim, 'call', _824 => _824()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _825 => _825.trim, 'call', _826 => _826()]) || void 0;
24198
24510
  const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
24199
24511
  const handleNewChat = _react.useCallback.call(void 0, () => {
24200
24512
  resetToNewChat();
@@ -24214,10 +24526,12 @@ function EmbeddableChatInner({
24214
24526
  headerOnRename && { id: "rename", label: "Rename chat", onClick: headerOnRename },
24215
24527
  headerOnArchive && { id: "archive", label: "Archive chat", onClick: headerOnArchive }
24216
24528
  ].filter(Boolean);
24217
- const narrowMingoEmpty = isMingoMode && !hasConversation && !archiveOpen;
24529
+ const narrowMingoEmpty = isMingoMode && !hasConversation && !archiveOpen && !guideListIsEmpty;
24218
24530
  const narrowHeaderProps = narrowMingoEmpty ? composeOpen ? {
24219
24531
  showBack: true,
24220
- title: "New Chat",
24532
+ // Guide's compose view is its own welcome (assistant name), not a
24533
+ // Mingo "New Chat".
24534
+ title: isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat",
24221
24535
  subtitle: headerUserName,
24222
24536
  avatar: headerAvatar,
24223
24537
  backAriaLabel: "Back to chats",
@@ -24334,13 +24648,13 @@ function EmbeddableChatInner({
24334
24648
  ),
24335
24649
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-m)] px-[var(--spacing-system-mf)] py-[var(--spacing-system-sf)]", children: [
24336
24650
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
24337
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate leading-tight text-ods-text-primary text-h3", children: headerShowBack ? headerTitle : "New Chat" }),
24651
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate leading-tight text-ods-text-primary text-h3", children: headerShowBack || isGuideEmpty ? headerTitle : "New Chat" }),
24338
24652
  headerPersonName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate leading-tight text-ods-text-secondary text-h6", children: headerPersonName })
24339
24653
  ] }),
24340
24654
  headerAvatar ? (
24341
24655
  // Owner avatar at the title cell's right edge (Figma 113:63273).
24342
24656
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24343
- _chunkWCBRZCU4cjs.SquareAvatar,
24657
+ _chunkUQEOAPAIcjs.SquareAvatar,
24344
24658
  {
24345
24659
  variant: "round",
24346
24660
  sizePx: 32,
@@ -24524,9 +24838,9 @@ function EmbeddableChatInner({
24524
24838
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
24525
24839
  subtitleLoading: emptyStateLoading,
24526
24840
  ...guideWelcome,
24527
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _818 => _818.title]))),
24528
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _819 => _819.icon]))),
24529
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _820 => _820.quickActions]), () => ( guideSuggestedActions)),
24841
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _827 => _827.title]))),
24842
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _828 => _828.icon]))),
24843
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _829 => _829.quickActions]), () => ( guideSuggestedActions)),
24530
24844
  onQuickAction: (action) => {
24531
24845
  setQuickActionPreview(null);
24532
24846
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -24600,8 +24914,8 @@ function EmbeddableChatInner({
24600
24914
  selectedContextItems: contextItems,
24601
24915
  onToggleContextItem: toggleContextItem,
24602
24916
  onRemoveContextItem: removeContextItem,
24603
- contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _821 => _821.items]),
24604
- onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _822 => _822.onRemove]),
24917
+ contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _830 => _830.items]),
24918
+ onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _831 => _831.onRemove]),
24605
24919
  contextPickerOpen,
24606
24920
  onOpenContextPicker: openContextPicker,
24607
24921
  onCloseContextPicker: closeContextPicker,
@@ -24656,7 +24970,7 @@ function EmbeddableChatInner({
24656
24970
  resizable: true,
24657
24971
  minSize: 480,
24658
24972
  maxSize: 1600,
24659
- defaultSize: drawerDefaultWidth(),
24973
+ defaultSize: drawerDefaultWidth(historyListMode),
24660
24974
  storageKey: DRAWER_WIDTH_KEY,
24661
24975
  resizeAriaLabel: "Resize chat panel",
24662
24976
  overlayClassName: "mingo-chat-overlay",
@@ -25062,5 +25376,7 @@ function EmbeddableChatInner({
25062
25376
 
25063
25377
 
25064
25378
 
25065
- exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; 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.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; 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.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; 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.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; 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.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; 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.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.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; 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.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; 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.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; 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.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useChunkCatchup = useChunkCatchup; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; 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.useSSE = useSSE; exports.useChat = useChat; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; 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.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; 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.useUnifiedChat = useUnifiedChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.flattenAssistantContent = flattenAssistantContent; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.EmbeddableChat = EmbeddableChat;
25066
- //# sourceMappingURL=chunk-YBPFIXV4.cjs.map
25379
+
25380
+
25381
+ exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; 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.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; 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.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; 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.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; 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.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; 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.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.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; 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.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; 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.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; 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.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useChunkCatchup = useChunkCatchup; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; 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.useSSE = useSSE; exports.useChat = useChat; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; 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.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; 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.useUnifiedChat = useUnifiedChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.flattenAssistantContent = flattenAssistantContent; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.EmbeddableChat = EmbeddableChat;
25382
+ //# sourceMappingURL=chunk-ITZDJYWI.cjs.map