@flamingo-stack/openframe-frontend-core 0.0.598-2039.5713.1 → 0.0.598

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 (225) hide show
  1. package/dist/chat-protocol/index.cjs +1 -8
  2. package/dist/chat-protocol/index.cjs.map +1 -1
  3. package/dist/chat-protocol/index.d.ts +0 -1
  4. package/dist/chat-protocol/index.d.ts.map +1 -1
  5. package/dist/chat-protocol/index.js +2 -7
  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/{chunk-TSCIVH7T.js → chunk-2JNCZDJR.js} +2 -2
  9. package/dist/{chunk-6NSGAH5H.cjs → chunk-2SYX2Z7R.cjs} +34 -34
  10. package/dist/{chunk-6NSGAH5H.cjs.map → chunk-2SYX2Z7R.cjs.map} +1 -1
  11. package/dist/{chunk-6ZHH37RS.cjs → chunk-3WSS7C2V.cjs} +15 -15
  12. package/dist/{chunk-6ZHH37RS.cjs.map → chunk-3WSS7C2V.cjs.map} +1 -1
  13. package/dist/{chunk-5L4ERWSW.js → chunk-75YW6ET4.js} +4 -4
  14. package/dist/{chunk-VKCETV3C.js → chunk-BK6CCQG6.js} +12 -12
  15. package/dist/{chunk-HM25MFZX.cjs → chunk-BPVHDDNY.cjs} +8 -8
  16. package/dist/{chunk-HM25MFZX.cjs.map → chunk-BPVHDDNY.cjs.map} +1 -1
  17. package/dist/{chunk-VIBREYUK.cjs → chunk-BZEWPW5A.cjs} +3 -3
  18. package/dist/{chunk-VIBREYUK.cjs.map → chunk-BZEWPW5A.cjs.map} +1 -1
  19. package/dist/{chunk-KYWU6F3O.cjs → chunk-DAPOBLAK.cjs} +39 -39
  20. package/dist/{chunk-KYWU6F3O.cjs.map → chunk-DAPOBLAK.cjs.map} +1 -1
  21. package/dist/{chunk-DHCA5BZP.cjs → chunk-DI3SVVY5.cjs} +85 -85
  22. package/dist/{chunk-DHCA5BZP.cjs.map → chunk-DI3SVVY5.cjs.map} +1 -1
  23. package/dist/{chunk-BLUL2TE3.js → chunk-EVMHJB6X.js} +4 -4
  24. package/dist/{chunk-S6WBBSII.js → chunk-EZM5DNII.js} +3 -3
  25. package/dist/{chunk-BVQEU5JB.js → chunk-GGQZBSFN.js} +2 -2
  26. package/dist/{chunk-KTX5B2FW.js → chunk-GHYFVT52.js} +439 -414
  27. package/dist/chunk-GHYFVT52.js.map +1 -0
  28. package/dist/{chunk-CCWI3622.cjs → chunk-H64ZHSYR.cjs} +4 -4
  29. package/dist/{chunk-CCWI3622.cjs.map → chunk-H64ZHSYR.cjs.map} +1 -1
  30. package/dist/{chunk-4T42D6YG.js → chunk-HLPAVYK7.js} +4 -4
  31. package/dist/{chunk-HFHBA3VV.cjs → chunk-HWAYIK4U.cjs} +22 -22
  32. package/dist/{chunk-HFHBA3VV.cjs.map → chunk-HWAYIK4U.cjs.map} +1 -1
  33. package/dist/{chunk-CF4QJPTN.cjs → chunk-JVZVVZOZ.cjs} +9 -9
  34. package/dist/{chunk-CF4QJPTN.cjs.map → chunk-JVZVVZOZ.cjs.map} +1 -1
  35. package/dist/{chunk-XV7RFACE.js → chunk-KHOZ52NR.js} +6 -6
  36. package/dist/{chunk-IW746HJ7.js → chunk-LRQCKSZC.js} +2 -2
  37. package/dist/{chunk-JJUV7Z4L.cjs → chunk-M4YQUHOR.cjs} +15 -15
  38. package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-M4YQUHOR.cjs.map} +1 -1
  39. package/dist/{chunk-FKBM6U43.js → chunk-MYBXCWEI.js} +2 -2
  40. package/dist/{chunk-QTPHBCPI.js → chunk-NIAMPMKV.js} +4 -4
  41. package/dist/{chunk-UXOOVP77.cjs → chunk-O4VZOA2Q.cjs} +3 -3
  42. package/dist/{chunk-UXOOVP77.cjs.map → chunk-O4VZOA2Q.cjs.map} +1 -1
  43. package/dist/{chunk-ABNBTPI2.cjs → chunk-P24VPJTT.cjs} +15 -15
  44. package/dist/{chunk-ABNBTPI2.cjs.map → chunk-P24VPJTT.cjs.map} +1 -1
  45. package/dist/{chunk-4XPPQDEM.js → chunk-PTK3CINU.js} +5 -5
  46. package/dist/{chunk-7FUIRGMU.js → chunk-PX4IPM7Q.js} +3 -3
  47. package/dist/{chunk-NLT5R43J.cjs → chunk-QD64Q4I2.cjs} +9 -9
  48. package/dist/{chunk-NLT5R43J.cjs.map → chunk-QD64Q4I2.cjs.map} +1 -1
  49. package/dist/{chunk-TEVP4KNG.cjs → chunk-QIKBISZM.cjs} +522 -497
  50. package/dist/chunk-QIKBISZM.cjs.map +1 -0
  51. package/dist/{chunk-FGNUI4CC.js → chunk-R4UV366K.js} +6 -6
  52. package/dist/{chunk-UPKZU6QU.cjs → chunk-RDTOMWDN.cjs} +1 -1
  53. package/dist/chunk-RDTOMWDN.cjs.map +1 -0
  54. package/dist/{chunk-YB6FI2G3.js → chunk-RYXIRVDC.js} +1 -1
  55. package/dist/chunk-RYXIRVDC.js.map +1 -0
  56. package/dist/{chunk-QPAPUIF3.cjs → chunk-SAEJGTCI.cjs} +35 -35
  57. package/dist/{chunk-QPAPUIF3.cjs.map → chunk-SAEJGTCI.cjs.map} +1 -1
  58. package/dist/{chunk-66HTVTZZ.js → chunk-SE3PVN64.js} +2 -2
  59. package/dist/{chunk-3IXDZI3R.cjs → chunk-STYNZ4QM.cjs} +3 -3
  60. package/dist/{chunk-3IXDZI3R.cjs.map → chunk-STYNZ4QM.cjs.map} +1 -1
  61. package/dist/{chunk-CQRYXSHL.js → chunk-TZPVRWPU.js} +5 -5
  62. package/dist/{chunk-RU3IKVY2.js → chunk-UAAXUFK6.js} +3 -3
  63. package/dist/{chunk-F5NEZLTG.cjs → chunk-UE7OFLLS.cjs} +14 -14
  64. package/dist/{chunk-F5NEZLTG.cjs.map → chunk-UE7OFLLS.cjs.map} +1 -1
  65. package/dist/{chunk-VUR24QYH.cjs → chunk-UG7JNQZY.cjs} +37 -37
  66. package/dist/{chunk-VUR24QYH.cjs.map → chunk-UG7JNQZY.cjs.map} +1 -1
  67. package/dist/{chunk-UQSOFWXP.cjs → chunk-V2QK5W3O.cjs} +3 -3
  68. package/dist/{chunk-UQSOFWXP.cjs.map → chunk-V2QK5W3O.cjs.map} +1 -1
  69. package/dist/{chunk-ZABAXD4U.js → chunk-VIRTMRS4.js} +7 -7
  70. package/dist/{chunk-D565OOXC.cjs → chunk-VLJTJAHJ.cjs} +25 -25
  71. package/dist/{chunk-D565OOXC.cjs.map → chunk-VLJTJAHJ.cjs.map} +1 -1
  72. package/dist/{chunk-K5QV7ZAY.js → chunk-VNSRNVPD.js} +437 -756
  73. package/dist/chunk-VNSRNVPD.js.map +1 -0
  74. package/dist/{chunk-UQEOAPAI.cjs → chunk-WCBRZCU4.cjs} +9 -9
  75. package/dist/{chunk-UQEOAPAI.cjs.map → chunk-WCBRZCU4.cjs.map} +1 -1
  76. package/dist/{chunk-3XFDRL32.js → chunk-WDWCQD75.js} +9 -9
  77. package/dist/{chunk-QT35C6CW.js → chunk-WPN545FW.js} +12 -12
  78. package/dist/{chunk-F2KBCLUG.js → chunk-WZJOILPU.js} +2 -2
  79. package/dist/{chunk-KAADFO74.js → chunk-XNPAVMPB.js} +5 -5
  80. package/dist/{chunk-5PPYXXUO.cjs → chunk-YBPFIXV4.cjs} +522 -841
  81. package/dist/chunk-YBPFIXV4.cjs.map +1 -0
  82. package/dist/{chunk-EHAYNUOL.cjs → chunk-YH6IQTPI.cjs} +3 -3
  83. package/dist/{chunk-EHAYNUOL.cjs.map → chunk-YH6IQTPI.cjs.map} +1 -1
  84. package/dist/{chunk-AVAENPVE.cjs → chunk-YWBAIFI2.cjs} +105 -105
  85. package/dist/{chunk-AVAENPVE.cjs.map → chunk-YWBAIFI2.cjs.map} +1 -1
  86. package/dist/components/case-studies/index.cjs +14 -14
  87. package/dist/components/case-studies/index.js +8 -8
  88. package/dist/components/chat/embeddable-chat.d.ts +19 -10
  89. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  90. package/dist/components/chat/hooks/index.d.ts +0 -1
  91. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  92. package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts +2 -2
  93. package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts.map +1 -1
  94. package/dist/components/chat/hooks/use-chat-history-hydration.d.ts +3 -13
  95. package/dist/components/chat/hooks/use-chat-history-hydration.d.ts.map +1 -1
  96. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +16 -2
  97. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
  98. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  99. package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
  100. package/dist/components/chat/index.cjs +5 -9
  101. package/dist/components/chat/index.cjs.map +1 -1
  102. package/dist/components/chat/index.js +4 -8
  103. package/dist/components/chat/types/unified-chat-state.types.d.ts +6 -67
  104. package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
  105. package/dist/components/chat/utils/index.d.ts +0 -1
  106. package/dist/components/chat/utils/index.d.ts.map +1 -1
  107. package/dist/components/contact/index.cjs +9 -9
  108. package/dist/components/contact/index.js +8 -8
  109. package/dist/components/docs/index.cjs +12 -12
  110. package/dist/components/docs/index.js +11 -11
  111. package/dist/components/embeds/index.cjs +9 -9
  112. package/dist/components/embeds/index.js +8 -8
  113. package/dist/components/faq/index.cjs +10 -10
  114. package/dist/components/faq/index.js +9 -9
  115. package/dist/components/features/index.cjs +8 -8
  116. package/dist/components/features/index.js +7 -7
  117. package/dist/components/help-center-pages/index.cjs +31 -31
  118. package/dist/components/help-center-pages/index.js +22 -22
  119. package/dist/components/index.cjs +66 -70
  120. package/dist/components/index.cjs.map +1 -1
  121. package/dist/components/index.js +22 -26
  122. package/dist/components/index.js.map +1 -1
  123. package/dist/components/meeting-scheduler/index.cjs +49 -49
  124. package/dist/components/meeting-scheduler/index.js +9 -9
  125. package/dist/components/navigation/index.cjs +11 -11
  126. package/dist/components/navigation/index.js +10 -10
  127. package/dist/components/onboarding-guides/index.cjs +12 -12
  128. package/dist/components/onboarding-guides/index.js +11 -11
  129. package/dist/components/related-content/index.cjs +7 -7
  130. package/dist/components/related-content/index.js +6 -6
  131. package/dist/components/tickets/index.cjs +13 -13
  132. package/dist/components/tickets/index.js +12 -12
  133. package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
  134. package/dist/components/ui/data-table/data-table-skeleton.d.ts +31 -0
  135. package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
  136. package/dist/components/ui/index.cjs +8 -12
  137. package/dist/components/ui/index.cjs.map +1 -1
  138. package/dist/components/ui/index.js +7 -11
  139. package/dist/components/ui/table/table-empty-state.d.ts +1 -1
  140. package/dist/components/ui/table/table-empty-state.d.ts.map +1 -1
  141. package/dist/components/ui/table/table-skeleton.d.ts +1 -14
  142. package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
  143. package/dist/components/ui/table/table.d.ts +1 -1
  144. package/dist/components/ui/table/table.d.ts.map +1 -1
  145. package/dist/components/ui/table/types.d.ts +33 -6
  146. package/dist/components/ui/table/types.d.ts.map +1 -1
  147. package/dist/contexts/chat-runtime-context.d.ts +0 -12
  148. package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
  149. package/dist/contexts/index.cjs +2 -2
  150. package/dist/contexts/index.js +1 -1
  151. package/dist/hooks/index.cjs +5 -5
  152. package/dist/hooks/index.js +4 -4
  153. package/dist/index.cjs +12 -16
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.js +11 -15
  156. package/dist/index.js.map +1 -1
  157. package/package.json +1 -1
  158. package/src/chat-protocol/index.ts +0 -1
  159. package/src/chat-protocol/nats-decoder.ts +5 -1
  160. package/src/components/chat/.embeddable-chat.md +2 -4
  161. package/src/components/chat/embeddable-chat.tsx +84 -131
  162. package/src/components/chat/hooks/.use-chat-dialog-manager.md +1 -3
  163. package/src/components/chat/hooks/.use-nats-chat-adapter.md +1 -3
  164. package/src/components/chat/hooks/.use-sse-chat-adapter.md +1 -8
  165. package/src/components/chat/hooks/.use-unified-chat.md +2 -2
  166. package/src/components/chat/hooks/index.ts +0 -2
  167. package/src/components/chat/hooks/use-chat-dialog-manager.ts +65 -38
  168. package/src/components/chat/hooks/use-chat-history-hydration.ts +24 -67
  169. package/src/components/chat/hooks/use-nats-chat-adapter.ts +150 -65
  170. package/src/components/chat/hooks/use-sse-chat-adapter.ts +59 -233
  171. package/src/components/chat/hooks/use-unified-chat.ts +0 -5
  172. package/src/components/chat/types/.unified-chat-state.types.md +1 -13
  173. package/src/components/chat/types/unified-chat-state.types.ts +6 -74
  174. package/src/components/chat/utils/index.ts +0 -7
  175. package/src/components/ui/data-table/data-table-body.tsx +8 -49
  176. package/src/components/ui/data-table/data-table-skeleton.tsx +100 -0
  177. package/src/components/ui/table/table-empty-state.tsx +5 -1
  178. package/src/components/ui/table/table-skeleton.tsx +14 -40
  179. package/src/components/ui/table/table.tsx +34 -15
  180. package/src/components/ui/table/types.ts +33 -6
  181. package/src/contexts/.chat-runtime-context.md +1 -3
  182. package/src/contexts/chat-runtime-context.tsx +0 -12
  183. package/dist/chat-protocol/wire-narrow.d.ts +0 -17
  184. package/dist/chat-protocol/wire-narrow.d.ts.map +0 -1
  185. package/dist/chunk-5PPYXXUO.cjs.map +0 -1
  186. package/dist/chunk-K5QV7ZAY.js.map +0 -1
  187. package/dist/chunk-KTX5B2FW.js.map +0 -1
  188. package/dist/chunk-TEVP4KNG.cjs.map +0 -1
  189. package/dist/chunk-UPKZU6QU.cjs.map +0 -1
  190. package/dist/chunk-YB6FI2G3.js.map +0 -1
  191. package/dist/components/chat/hooks/use-managed-dialog-list.d.ts +0 -68
  192. package/dist/components/chat/hooks/use-managed-dialog-list.d.ts.map +0 -1
  193. package/dist/components/chat/utils/chat-conversations-api.d.ts +0 -29
  194. package/dist/components/chat/utils/chat-conversations-api.d.ts.map +0 -1
  195. package/src/chat-protocol/wire-narrow.ts +0 -22
  196. package/src/components/chat/hooks/.use-managed-dialog-list.md +0 -31
  197. package/src/components/chat/hooks/__tests__/managed-dialog-list.test.ts +0 -280
  198. package/src/components/chat/hooks/__tests__/nats-adapter-managed-dialogs.test.ts +0 -172
  199. package/src/components/chat/hooks/__tests__/sse-managed-dialogs.test.ts +0 -310
  200. package/src/components/chat/hooks/use-managed-dialog-list.ts +0 -371
  201. package/src/components/chat/utils/.chat-conversations-api.md +0 -16
  202. package/src/components/chat/utils/__tests__/chat-conversations-api-golden.test.ts +0 -105
  203. package/src/components/chat/utils/chat-conversations-api.ts +0 -83
  204. /package/dist/{chunk-TSCIVH7T.js.map → chunk-2JNCZDJR.js.map} +0 -0
  205. /package/dist/{chunk-5L4ERWSW.js.map → chunk-75YW6ET4.js.map} +0 -0
  206. /package/dist/{chunk-VKCETV3C.js.map → chunk-BK6CCQG6.js.map} +0 -0
  207. /package/dist/{chunk-BLUL2TE3.js.map → chunk-EVMHJB6X.js.map} +0 -0
  208. /package/dist/{chunk-S6WBBSII.js.map → chunk-EZM5DNII.js.map} +0 -0
  209. /package/dist/{chunk-BVQEU5JB.js.map → chunk-GGQZBSFN.js.map} +0 -0
  210. /package/dist/{chunk-4T42D6YG.js.map → chunk-HLPAVYK7.js.map} +0 -0
  211. /package/dist/{chunk-XV7RFACE.js.map → chunk-KHOZ52NR.js.map} +0 -0
  212. /package/dist/{chunk-IW746HJ7.js.map → chunk-LRQCKSZC.js.map} +0 -0
  213. /package/dist/{chunk-FKBM6U43.js.map → chunk-MYBXCWEI.js.map} +0 -0
  214. /package/dist/{chunk-QTPHBCPI.js.map → chunk-NIAMPMKV.js.map} +0 -0
  215. /package/dist/{chunk-4XPPQDEM.js.map → chunk-PTK3CINU.js.map} +0 -0
  216. /package/dist/{chunk-7FUIRGMU.js.map → chunk-PX4IPM7Q.js.map} +0 -0
  217. /package/dist/{chunk-FGNUI4CC.js.map → chunk-R4UV366K.js.map} +0 -0
  218. /package/dist/{chunk-66HTVTZZ.js.map → chunk-SE3PVN64.js.map} +0 -0
  219. /package/dist/{chunk-CQRYXSHL.js.map → chunk-TZPVRWPU.js.map} +0 -0
  220. /package/dist/{chunk-RU3IKVY2.js.map → chunk-UAAXUFK6.js.map} +0 -0
  221. /package/dist/{chunk-ZABAXD4U.js.map → chunk-VIRTMRS4.js.map} +0 -0
  222. /package/dist/{chunk-3XFDRL32.js.map → chunk-WDWCQD75.js.map} +0 -0
  223. /package/dist/{chunk-QT35C6CW.js.map → chunk-WPN545FW.js.map} +0 -0
  224. /package/dist/{chunk-F2KBCLUG.js.map → chunk-WZJOILPU.js.map} +0 -0
  225. /package/dist/{chunk-KAADFO74.js.map → chunk-XNPAVMPB.js.map} +0 -0
@@ -170,7 +170,7 @@ var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunkUQEOAPAIcjs = require('./chunk-UQEOAPAI.cjs');
173
+ var _chunkWCBRZCU4cjs = require('./chunk-WCBRZCU4.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 _chunkEHAYNUOLcjs = require('./chunk-EHAYNUOL.cjs');
186
+ var _chunkYH6IQTPIcjs = require('./chunk-YH6IQTPI.cjs');
187
187
 
188
188
 
189
189
  var _chunk63QUMV72cjs = require('./chunk-63QUMV72.cjs');
190
190
 
191
191
 
192
192
 
193
- var _chunkUPKZU6QUcjs = require('./chunk-UPKZU6QU.cjs');
193
+ var _chunkRDTOMWDNcjs = require('./chunk-RDTOMWDN.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 = _chunkEHAYNUOLcjs.useAuthedImageSrc.call(void 0, src);
1586
+ const resolvedSrc = _chunkYH6IQTPIcjs.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 = _chunkEHAYNUOLcjs.PLATFORM_THEME === "dark";
4089
+ const isDarkTheme = _chunkYH6IQTPIcjs.PLATFORM_THEME === "dark";
4090
4090
  return {
4091
4091
  platform: currentPlatform,
4092
- accentColor: _chunkEHAYNUOLcjs.getPlatformAccentColor.call(void 0, currentPlatform),
4092
+ accentColor: _chunkYH6IQTPIcjs.getPlatformAccentColor.call(void 0, currentPlatform),
4093
4093
  isDarkTheme,
4094
4094
  isLightTheme: !isDarkTheme,
4095
- brandName: _chunkEHAYNUOLcjs.getPlatformDisplayName.call(void 0, currentPlatform)
4095
+ brandName: _chunkYH6IQTPIcjs.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, _chunkUQEOAPAIcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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
- _chunkUQEOAPAIcjs.SquareAvatar,
4894
+ _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.SquareAvatar, { ...avatarProps })),
7257
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
8043
- return _nullishCoalesce(_chunkUQEOAPAIcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8042
+ const r = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
8043
+ return _nullishCoalesce(_chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.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: _chunkWCBRZCU4cjs.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
- _chunkUQEOAPAIcjs.SquareAvatar,
9349
+ _chunkWCBRZCU4cjs.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
- _chunkUQEOAPAIcjs.SquareAvatar,
10490
+ _chunkWCBRZCU4cjs.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 ${_chunkUQEOAPAIcjs.formatFileSize.call(void 0, file.size)}`,
10705
- status === "ready" && _chunkUQEOAPAIcjs.formatFileSize.call(void 0, file.size),
10704
+ status === "uploading" && `${progress}% \xB7 ${_chunkWCBRZCU4cjs.formatFileSize.call(void 0, file.size)}`,
10705
+ status === "ready" && _chunkWCBRZCU4cjs.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) && !_chunkUQEOAPAIcjs.isSameOriginAbsoluteHref.call(void 0, href);
11502
+ return /^https?:\/\//i.test(href) && !_chunkWCBRZCU4cjs.isSameOriginAbsoluteHref.call(void 0, href);
11503
11503
  }
11504
11504
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11505
- const isNewTab = runtime ? _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11505
+ const isNewTab = runtime ? _chunkWCBRZCU4cjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
11560
+ const runtime = _chunkRDTOMWDNcjs.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 = _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11564
+ const isNewTab = _chunkWCBRZCU4cjs.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, ..._chunkUQEOAPAIcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11576
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunkWCBRZCU4cjs.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([_chunkUPKZU6QUcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _211 => _211.endpoints]), () => ( null));
11754
+ const endpoints = _nullishCoalesce(_optionalChain([_chunkRDTOMWDNcjs.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 = _chunkUPKZU6QUcjs.useChatRuntime.call(void 0, );
11834
+ const runtime = _chunkRDTOMWDNcjs.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 = _chunkUPKZU6QUcjs.useChatRuntime.call(void 0, );
11853
+ const runtime = _chunkRDTOMWDNcjs.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 = _chunkEHAYNUOLcjs.useAuthedAssetSrc.call(void 0, captionsUrl, "text/vtt, */*");
12204
+ const resolvedCaptionsUrl = _chunkYH6IQTPIcjs.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
- _chunkUQEOAPAIcjs.SquareAvatar,
12818
+ _chunkWCBRZCU4cjs.SquareAvatar,
12819
12819
  {
12820
- src: avatarUrl ? _chunkUQEOAPAIcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12820
+ src: avatarUrl ? _chunkWCBRZCU4cjs.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 } = _chunkUQEOAPAIcjs.useCoverImageFallback.call(void 0, posterUrl);
13320
+ const { src: posterSrc, onError: onPosterError } = _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.DEFAULT_VIDEO_BITES_TITLE,
13438
+ title = _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.sortBitesByCreatedAtDesc,
13451
+ sortComparator = _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.DEFAULT_VIDEO_BITES_TITLE,
13676
+ bitesTitle = _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
13915
+ const dateText = _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
13949
+ const href = _chunkWCBRZCU4cjs.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: _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: [
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: [
13954
13954
  reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
13955
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TITLE, children: primaryText })
13955
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_TITLE, children: primaryText })
13956
13956
  ] }),
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: [
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: [
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: _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 }) })
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 }) })
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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
13966
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.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: `${_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 });
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 });
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: `${_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 }) })
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 }) })
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 = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14014
+ const dateText = _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
14040
+ const href = _chunkWCBRZCU4cjs.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: _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: [
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: [
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: _chunkUQEOAPAIcjs.COMPACT_CARD_SUMMARY, children: _chunkUQEOAPAIcjs.COMPACT_CARD_ROW_FILLER }) }) })
14049
+ ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkWCBRZCU4cjs.COMPACT_CARD_SUMMARY, children: _chunkWCBRZCU4cjs.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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14054
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.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: `${_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 });
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 });
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: `${_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" }) })
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" }) })
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 = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14107
+ const dateText = _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14112
+ statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
14126
+ const href = _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14128
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14130
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14131
14131
  priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14132
- _chunkUQEOAPAIcjs.StatusBadge,
14132
+ _chunkWCBRZCU4cjs.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
- _chunkUQEOAPAIcjs.StatusBadge,
14141
+ _chunkWCBRZCU4cjs.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: _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: [
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: [
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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14163
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.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: `${_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 });
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 });
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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14180
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
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: [
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: _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" }) })
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" }) })
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: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14204
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.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: `${_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" })
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" })
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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14218
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14220
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14221
14221
  }
14222
14222
  function DataRoomDocCardSkeleton({ className }) {
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: [
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: [
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: _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,
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,
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: _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 }) })
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 }) })
14254
14254
  ] })
14255
14255
  ] });
14256
14256
  if (anchorProps) {
14257
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14257
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14258
14258
  }
14259
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14259
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.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: `${_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" }) })
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" }) })
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 = _chunkUQEOAPAIcjs.safeHref.call(void 0, item.url);
14277
- const dateText = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14276
+ const href = _chunkWCBRZCU4cjs.safeHref.call(void 0, item.url);
14277
+ const dateText = _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.COMPACT_CARD_TEXT_COL, children: [
14279
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkWCBRZCU4cjs.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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14281
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14282
14282
  item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14283
- _chunkUQEOAPAIcjs.StatusBadge,
14283
+ _chunkWCBRZCU4cjs.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: _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
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
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: `${_chunkUQEOAPAIcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14306
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunkWCBRZCU4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14307
14307
  }
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 });
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 });
14309
14309
  }
14310
14310
  function GenericEntityCardSkeleton({ className }) {
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: [
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: [
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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
14352
+ const runtime = _chunkRDTOMWDNcjs.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 _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
14358
+ const res = await _chunkYH6IQTPIcjs.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 = _chunkUQEOAPAIcjs.extractItems.call(void 0, data);
14362
- const match = items.find((it) => _chunkUQEOAPAIcjs.extractItemId.call(void 0, type, it) === id);
14361
+ const items = _chunkWCBRZCU4cjs.extractItems.call(void 0, data);
14362
+ const match = items.find((it) => _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.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: _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.canonicalContentRefType.call(void 0, contentRefType);
14553
+ const canonicalType = _chunkWCBRZCU4cjs.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(_chunkUQEOAPAIcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14757
+ href = _nullishCoalesce(_chunkWCBRZCU4cjs.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(_chunkUQEOAPAIcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14761
+ href = _nullishCoalesce(_chunkWCBRZCU4cjs.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(_chunkUQEOAPAIcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14766
+ href = _nullishCoalesce(_chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.canonicalContentRefType.call(void 0, row.documentType),
14775
+ type: _chunkWCBRZCU4cjs.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(_chunkUQEOAPAIcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14780
+ href = composed.href ? _nullishCoalesce(_chunkWCBRZCU4cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14781
14781
  targetPlatform = composed.targetPlatform;
14782
14782
  } else if (row.externalUrl) {
14783
- href = _nullishCoalesce(_chunkUQEOAPAIcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14783
+ href = _nullishCoalesce(_chunkWCBRZCU4cjs.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: `${_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: [
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: [
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 = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
14868
+ const dateText = _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
14877
+ anchorProps: _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15024
+ anchorProps: _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15047
+ anchorProps: _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15067
+ anchorProps: _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15085
+ anchorProps: _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15104
+ anchorProps: _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15123
+ anchorProps: _chunkWCBRZCU4cjs.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]) ? _chunkUQEOAPAIcjs.formatDateShort.call(void 0, item.start_date) : null,
15209
+ _optionalChain([item, 'optionalAccess', _378 => _378.start_date]) ? _chunkWCBRZCU4cjs.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: _chunkUQEOAPAIcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15248
+ anchorProps: _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.getStatusColorScheme.call(void 0, s);
15260
+ const scheme = _chunkWCBRZCU4cjs.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]) || _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,
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,
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 = _chunkUQEOAPAIcjs.formatDurationCompact.call(void 0, item.duration_seconds);
15394
+ typeMeta = _chunkWCBRZCU4cjs.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 = _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);
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);
15400
15400
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
15401
15401
  }
15402
- const itemDate = _chunkUQEOAPAIcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _421 => _421.date]), () => ( null)), { fallback: "", timezone: "local" });
15402
+ const itemDate = _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]), className: "size-6" }) : logoUrl ? (
15429
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.ProgramCardSkeleton, { size: "sm" }),
15553
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.RoadmapCardSkeleton, { size: "sm" }),
15594
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.BlogCardSkeleton, { size: "sm" }),
15670
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.CaseStudyCardSkeleton, { size: "sm" }),
15687
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15703
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15719
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.ProductReleaseCardSkeleton, { size: "sm" }),
15720
15720
  render: (item, chatRef, opts) => {
15721
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _460 => _460.extras, 'optionalAccess', _461 => _461.buildProductReleaseCardProps]), () => ( _chunkUQEOAPAIcjs.defaultBuildProductReleaseCardProps));
15721
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _460 => _460.extras, 'optionalAccess', _461 => _461.buildProductReleaseCardProps]), () => ( _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15739
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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, _chunkUQEOAPAIcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15757
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWCBRZCU4cjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
15788
+ const runtime = _chunkRDTOMWDNcjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
15813
+ const runtime = _chunkRDTOMWDNcjs.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: _chunkUQEOAPAIcjs.safeHref.call(void 0, hrefChoice.href),
15854
+ url: _chunkWCBRZCU4cjs.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 = _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
15860
+ const isNewTab = _chunkWCBRZCU4cjs.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 _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
16958
+ const res = await _chunkYH6IQTPIcjs.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 _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url.toString(), { signal, headers: {} });
17035
+ const res = await _chunkYH6IQTPIcjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17145
+ const runtime = _chunkRDTOMWDNcjs.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 _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17187
+ const urlResp = await _chunkYH6IQTPIcjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17317
+ const runtime = _chunkRDTOMWDNcjs.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
- _chunkUQEOAPAIcjs.ImageGalleryModal,
17351
+ _chunkWCBRZCU4cjs.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 = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17376
+ const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
17377
17377
  const url = runtime.endpoints.identityUrl;
17378
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _561 => _561.email]), () => ( null));
17378
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkYH6IQTPIcjs.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
- _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url, { signal: ctrl.signal }).then(async (resp) => {
17387
+ _chunkYH6IQTPIcjs.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 = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
20221
+ const auth = _chunkYH6IQTPIcjs.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 _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
20225
+ return _chunkYH6IQTPIcjs.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,62 +20251,6 @@ 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
-
20310
20254
  // src/components/chat/utils/slash-dispatch-utils.ts
20311
20255
  var WIRE_TABLE_ID_REGEX = /^[a-z][a-z0-9-]*$/;
20312
20256
  var WIRE_ID_REGEX = /^[A-Za-z0-9._:/-]+$/;
@@ -20389,48 +20333,41 @@ function buildAutoContinuationDirective(toolName, opts = {}) {
20389
20333
  }
20390
20334
 
20391
20335
  // src/components/chat/hooks/use-chat-history-hydration.ts
20336
+ function isRecord(value) {
20337
+ return typeof value === "object" && value !== null;
20338
+ }
20392
20339
  function useChatHistoryHydration({
20393
20340
  active,
20394
20341
  source,
20395
20342
  historyUrl,
20396
- conversationId,
20343
+ conversationIdRef,
20397
20344
  sendCountRef,
20398
20345
  hydrateMessages,
20399
- bumpMetaTick,
20400
- onOrphanedConversation
20346
+ bumpMetaTick
20401
20347
  }) {
20402
20348
  const [isHydratingHistory, setIsHydratingHistory] = _react.useState.call(void 0, false);
20403
20349
  const hydratedKeyRef = _react.useRef.call(void 0, null);
20404
- const runIdRef = _react.useRef.call(void 0, 0);
20405
20350
  _react.useEffect.call(void 0, () => {
20406
- if (!active || !conversationId) return () => setIsHydratingHistory(false);
20351
+ if (!active) return void 0;
20352
+ const conversationId = conversationIdRef.current;
20353
+ if (!conversationId) return void 0;
20407
20354
  const key = `${source}:${conversationId}`;
20408
- if (hydratedKeyRef.current === key) return () => setIsHydratingHistory(false);
20355
+ if (hydratedKeyRef.current === key) return void 0;
20409
20356
  hydratedKeyRef.current = key;
20410
20357
  let cancelled = false;
20411
- let completed = false;
20412
- const runId = ++runIdRef.current;
20413
- const isCurrentRun = () => runIdRef.current === runId;
20414
20358
  setIsHydratingHistory(true);
20415
20359
  void (async () => {
20416
20360
  try {
20417
- const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, `${historyUrl}?conversationId=${encodeURIComponent(conversationId)}`, {
20361
+ const res = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, `${historyUrl}?conversationId=${encodeURIComponent(conversationId)}`, {
20418
20362
  method: "GET"
20419
20363
  });
20420
- if (!res.ok) {
20421
- if (isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
20422
- return;
20423
- }
20364
+ if (!res.ok) return;
20424
20365
  const payload = await res.json().catch(() => null);
20425
- const body = unwrapEnvelope(payload);
20366
+ const envelope = isRecord(payload) ? payload.data : void 0;
20367
+ const body = _nullishCoalesce(envelope, () => ( payload));
20426
20368
  const rawRows = isRecord(body) ? body.messages : void 0;
20427
20369
  const rows = Array.isArray(rawRows) ? rawRows.filter(isRecord) : [];
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
- }
20370
+ if (cancelled || rows.length === 0) return;
20434
20371
  const hydrated = [];
20435
20372
  const sourcesSeed = /* @__PURE__ */ new Map();
20436
20373
  let userTurns = 0;
@@ -20458,236 +20395,32 @@ function useChatHistoryHydration({
20458
20395
  hydrateMessages(hydrated, Array.from(sourcesSeed.entries()));
20459
20396
  bumpMetaTick();
20460
20397
  } catch (e63) {
20461
- if (isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
20462
20398
  } finally {
20463
- completed = true;
20464
- if (isCurrentRun()) setIsHydratingHistory(false);
20399
+ if (!cancelled) setIsHydratingHistory(false);
20465
20400
  }
20466
20401
  })();
20467
20402
  return () => {
20468
20403
  cancelled = true;
20469
- if (!completed && isCurrentRun() && hydratedKeyRef.current === key) hydratedKeyRef.current = null;
20470
- if (isCurrentRun()) setIsHydratingHistory(false);
20471
20404
  };
20472
- }, [active, source, historyUrl, conversationId, hydrateMessages, bumpMetaTick, onOrphanedConversation, sendCountRef]);
20405
+ }, [active, source, historyUrl, hydrateMessages, bumpMetaTick, conversationIdRef, sendCountRef]);
20473
20406
  return { isHydratingHistory, hydratedKeyRef };
20474
20407
  }
20475
20408
 
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
- skeletonDelayMs = 0,
20486
- search,
20487
- onDialogRemoved,
20488
- logTag
20489
- }) {
20490
- const [dialogs, setDialogs] = _react.useState.call(void 0, []);
20491
- const [dialogsNextCursor, setDialogsNextCursor] = _react.useState.call(void 0, null);
20492
- const [isDialogsLoading, setIsDialogsLoading] = _react.useState.call(void 0, false);
20493
- const [settledSearch, setSettledSearch] = _react.useState.call(void 0,
20494
- autoLoad && fetchDialogs ? void 0 : null
20495
- );
20496
- const [autoLoadWas, setAutoLoadWas] = _react.useState.call(void 0, autoLoad);
20497
- if (autoLoad !== autoLoadWas) {
20498
- setAutoLoadWas(autoLoad);
20499
- if (autoLoad && fetchDialogs) setSettledSearch(void 0);
20500
- }
20501
- const [isDialogsPending, setIsDialogsPending] = _react.useState.call(void 0, false);
20502
- const pendingRef = _react.useRef.call(void 0, false);
20503
- const [dialogsError, setDialogsError] = _react.useState.call(void 0, false);
20504
- const dialogsRef = _react.useRef.call(void 0, dialogs);
20505
- _react.useEffect.call(void 0, () => {
20506
- dialogsRef.current = dialogs;
20507
- });
20508
- const onDialogRemovedRef = _react.useRef.call(void 0, onDialogRemoved);
20509
- _react.useEffect.call(void 0, () => {
20510
- onDialogRemovedRef.current = onDialogRemoved;
20511
- });
20512
- const initialDialogsLoadedRef = _react.useRef.call(void 0, false);
20513
- const requestIdRef = _react.useRef.call(void 0, 0);
20514
- const loadDialogsPage = _react.useCallback.call(void 0,
20515
- async (cursor) => {
20516
- if (!fetchDialogs) return;
20517
- const requestId = ++requestIdRef.current;
20518
- const isCurrent = () => requestIdRef.current === requestId;
20519
- pendingRef.current = true;
20520
- setIsDialogsPending(true);
20521
- let skeletonTimer;
20522
- if (cursor === void 0 && skeletonDelayMs > 0) {
20523
- skeletonTimer = setTimeout(() => {
20524
- if (isCurrent()) setIsDialogsLoading(true);
20525
- }, skeletonDelayMs);
20526
- } else {
20527
- setIsDialogsLoading(true);
20528
- }
20529
- if (cursor === void 0) setDialogsError(false);
20530
- try {
20531
- const result = await fetchDialogs({
20532
- cursor,
20533
- limit: pageSize,
20534
- // Only hosts that run a search ever see the key.
20535
- ...search !== void 0 ? { search } : {}
20536
- });
20537
- if (!isCurrent()) return;
20538
- setDialogsNextCursor(result.nextCursor);
20539
- if (cursor === void 0) {
20540
- setDialogs(result.dialogs);
20541
- } else {
20542
- setDialogs((prev) => {
20543
- const seen = new Set(prev.map((d) => d.id));
20544
- return [...prev, ...result.dialogs.filter((d) => !seen.has(d.id))];
20545
- });
20546
- }
20547
- } catch (err) {
20548
- if (!isCurrent()) return;
20549
- console.error(`${logTag} fetchDialogs failed:`, err);
20550
- if (cursor === void 0) {
20551
- setDialogsError(true);
20552
- initialDialogsLoadedRef.current = false;
20553
- }
20554
- } finally {
20555
- if (skeletonTimer) clearTimeout(skeletonTimer);
20556
- if (isCurrent()) {
20557
- pendingRef.current = false;
20558
- if (cursor === void 0) setSettledSearch(_nullishCoalesce(search, () => ( null)));
20559
- setIsDialogsLoading(false);
20560
- setIsDialogsPending(false);
20561
- }
20562
- }
20563
- },
20564
- [fetchDialogs, pageSize, skeletonDelayMs, search, logTag]
20565
- );
20566
- const reloadDialogs = _react.useCallback.call(void 0, () => {
20567
- void loadDialogsPage();
20568
- }, [loadDialogsPage]);
20569
- const loadedSearchRef = _react.useRef.call(void 0, void 0);
20570
- _react.useEffect.call(void 0, () => {
20571
- if (!fetchDialogs) return;
20572
- if (!autoLoad) return;
20573
- if (initialDialogsLoadedRef.current && loadedSearchRef.current === search) return;
20574
- initialDialogsLoadedRef.current = true;
20575
- loadedSearchRef.current = search;
20576
- void loadDialogsPage();
20577
- }, [autoLoad, fetchDialogs, search, loadDialogsPage]);
20578
- const removeLocal = _react.useCallback.call(void 0, (id) => {
20579
- setDialogs((prev) => prev.filter((d) => d.id !== id));
20580
- }, []);
20581
- const deleteDialog = _react.useCallback.call(void 0,
20582
- async (id) => {
20583
- if (!deleteDialogCallback) return;
20584
- try {
20585
- await deleteDialogCallback(id);
20586
- removeLocal(id);
20587
- _optionalChain([onDialogRemovedRef, 'access', _641 => _641.current, 'optionalCall', _642 => _642(id, "deleted")]);
20588
- } catch (err) {
20589
- console.error(`${logTag} deleteDialog failed:`, err);
20590
- throw err;
20591
- }
20592
- },
20593
- [deleteDialogCallback, removeLocal, logTag]
20594
- );
20595
- const renameDialog = _react.useCallback.call(void 0,
20596
- async (id, title) => {
20597
- if (!renameDialogCallback) return;
20598
- const previous = _optionalChain([dialogsRef, 'access', _643 => _643.current, 'access', _644 => _644.find, 'call', _645 => _645((d) => d.id === id), 'optionalAccess', _646 => _646.title]);
20599
- setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
20600
- try {
20601
- await renameDialogCallback(id, title);
20602
- } catch (err) {
20603
- console.error(`${logTag} renameDialog failed:`, err);
20604
- if (previous !== void 0) {
20605
- setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title: previous } : d));
20606
- }
20607
- throw err;
20608
- }
20609
- },
20610
- [renameDialogCallback, logTag]
20611
- );
20612
- const archiveDialog = _react.useCallback.call(void 0,
20613
- async (id) => {
20614
- if (!archiveDialogCallback) return;
20615
- try {
20616
- await archiveDialogCallback(id);
20617
- removeLocal(id);
20618
- _optionalChain([onDialogRemovedRef, 'access', _647 => _647.current, 'optionalCall', _648 => _648(id, "archived")]);
20619
- } catch (err) {
20620
- console.error(`${logTag} archiveDialog failed:`, err);
20621
- throw err;
20622
- }
20623
- },
20624
- [archiveDialogCallback, removeLocal, logTag]
20625
- );
20626
- const loadMoreDialogs = _react.useCallback.call(void 0, async () => {
20627
- if (!dialogsNextCursor) return;
20628
- if (pendingRef.current) return;
20629
- await loadDialogsPage(dialogsNextCursor);
20630
- }, [dialogsNextCursor, loadDialogsPage]);
20631
- const upsertDialogTop = _react.useCallback.call(void 0, (item) => {
20632
- setDialogs((prev) => [item, ...prev.filter((d) => d.id !== item.id)]);
20633
- }, []);
20634
- const removeDialog = removeLocal;
20635
- const bumpDialogToTop = _react.useCallback.call(void 0, (id) => {
20636
- setDialogs((prev) => {
20637
- const row = prev.find((d) => d.id === id);
20638
- if (!row) return prev;
20639
- return [{ ...row, timestamp: /* @__PURE__ */ new Date() }, ...prev.filter((d) => d.id !== id)];
20640
- });
20641
- }, []);
20642
- const hasMoreDialogs = dialogsNextCursor != null;
20643
- const awaitingFirstPage = !!fetchDialogs && settledSearch !== (_nullishCoalesce(search, () => ( null)));
20644
- const dialogsLoading = isDialogsLoading || awaitingFirstPage;
20645
- return _react.useMemo.call(void 0,
20646
- () => ({
20647
- dialogs,
20648
- dialogsNextCursor,
20649
- isDialogsLoading: dialogsLoading,
20650
- isDialogsPending,
20651
- dialogsError,
20652
- hasMoreDialogs,
20653
- loadDialogsPage,
20654
- reloadDialogs,
20655
- loadMoreDialogs,
20656
- renameDialog,
20657
- archiveDialog,
20658
- deleteDialog,
20659
- upsertDialogTop,
20660
- removeDialog,
20661
- bumpDialogToTop
20662
- }),
20663
- [
20664
- dialogs,
20665
- dialogsNextCursor,
20666
- dialogsLoading,
20667
- isDialogsPending,
20668
- dialogsError,
20669
- hasMoreDialogs,
20670
- loadDialogsPage,
20671
- reloadDialogs,
20672
- loadMoreDialogs,
20673
- renameDialog,
20674
- archiveDialog,
20675
- deleteDialog,
20676
- upsertDialogTop,
20677
- removeDialog,
20678
- bumpDialogToTop
20679
- ]
20680
- );
20681
- }
20682
-
20683
20409
  // src/components/chat/hooks/use-sse-chat-adapter.ts
20410
+ var SSE_EMPTY_DIALOGS = [];
20684
20411
  var noopSelectDialog = (_id) => {
20685
20412
  };
20686
20413
  var noopStartNewDialog = () => Promise.resolve(null);
20687
20414
  var noopDeleteDialog = async (_id) => {
20688
20415
  };
20416
+ var noopRenameDialog = async (_id, _title) => {
20417
+ };
20418
+ var noopArchiveDialog = async (_id) => {
20419
+ };
20689
20420
  var noopAsync = async () => {
20690
20421
  };
20422
+ var noopReloadDialogs = () => {
20423
+ };
20691
20424
  var noopApproveRequest = async (_id) => {
20692
20425
  };
20693
20426
  var noopRejectRequest = async (_id, _reason) => {
@@ -20710,9 +20443,9 @@ function historyMessageToReducerMessage(m) {
20710
20443
  }
20711
20444
  function useSseChatAdapter(options, runtimeOptions = {}) {
20712
20445
  const { active = true } = runtimeOptions;
20713
- const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
20446
+ const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
20714
20447
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
20715
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _649 => _649.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
20448
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _640 => _640.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
20716
20449
  const sendMessageRef = _react.useRef.call(void 0,
20717
20450
  () => Promise.resolve(true)
20718
20451
  );
@@ -20742,24 +20475,15 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20742
20475
  dialogId: source,
20743
20476
  createReducerOptions
20744
20477
  });
20478
+ const abortControllerRef = _react.useRef.call(void 0, null);
20745
20479
  const conversationStorage = _react.useMemo.call(void 0, () => createChatConversationStorage(source), [source]);
20746
20480
  const conversationIdRef = _react.useRef.call(void 0, null);
20747
20481
  const restoredConversationRef = _react.useRef.call(void 0, false);
20748
20482
  if (!restoredConversationRef.current) {
20749
20483
  restoredConversationRef.current = true;
20750
20484
  pruneStaleChatConversationStorage(source);
20751
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _650 => _650.load, 'call', _651 => _651(), 'optionalAccess', _652 => _652.conversationId]), () => ( null));
20485
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _641 => _641.load, 'call', _642 => _642(), 'optionalAccess', _643 => _643.conversationId]), () => ( null));
20752
20486
  }
20753
- const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
20754
- const commitConversationId = _react.useCallback.call(void 0,
20755
- (id) => {
20756
- conversationIdRef.current = id;
20757
- setConversationId(id);
20758
- if (id) conversationStorage.save({ conversationId: id });
20759
- else conversationStorage.clear();
20760
- },
20761
- [conversationStorage]
20762
- );
20763
20487
  const commandsUrl = runtime.endpoints.commandsUrl;
20764
20488
  const { commands: slashCommands } = useSlashCommandRegistry(commandsUrl, {
20765
20489
  enabled: active
@@ -20807,132 +20531,54 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20807
20531
  },
20808
20532
  [mutate]
20809
20533
  );
20810
- const messagesLenRef = _react.useRef.call(void 0, 0);
20811
- messagesLenRef.current = state.messages.length;
20812
- const onOrphanedConversation = _react.useCallback.call(void 0,
20813
- (id) => {
20814
- if (conversationIdRef.current === id && messagesLenRef.current === 0) commitConversationId(null);
20815
- },
20816
- [commitConversationId]
20817
- );
20818
20534
  const { isHydratingHistory, hydratedKeyRef } = useChatHistoryHydration({
20819
20535
  active,
20820
20536
  source,
20821
20537
  historyUrl,
20822
- conversationId,
20538
+ conversationIdRef,
20823
20539
  sendCountRef: hydrationSendCountRef,
20824
20540
  hydrateMessages,
20825
20541
  // Meta invalidation is a reducer concern here: `seedSseMaps` (inside
20826
20542
  // `hydrateMessages` above) already invalidates the snapshot.
20827
- bumpMetaTick: noopBumpMetaTick,
20828
- // Drop a stored id the server no longer recognizes (deleted, or claimed by
20829
- // an account while this browser is signed out) — keeping it would stream
20830
- // answers the server refuses to persist. Guarded on "no live turn yet" so
20831
- // a just-minted id is never dropped.
20832
- //
20833
- // IDENTITY-STABLE by construction: this is a dependency of the hydration
20834
- // effect, so a callback that changed with the message count would CANCEL
20835
- // an in-flight hydration the moment the user typed — silently discarding
20836
- // the thread they just opened. The live count is read through a ref.
20837
- onOrphanedConversation
20543
+ bumpMetaTick: noopBumpMetaTick
20838
20544
  });
20839
- const abortControllerRef = _react.useRef.call(void 0, null);
20840
- const switchConversation = _react.useCallback.call(void 0,
20841
- (id) => {
20842
- _optionalChain([abortControllerRef, 'access', _653 => _653.current, 'optionalAccess', _654 => _654.abort, 'call', _655 => _655()]);
20843
- flushDeltas();
20844
- mutate((r) => r.reset());
20845
- hydrationSendCountRef.current = 0;
20846
- hydratedKeyRef.current = null;
20847
- commitConversationId(id);
20848
- },
20849
- [flushDeltas, mutate, hydratedKeyRef, commitConversationId]
20850
- );
20851
- const conversationsUrl = runtime.endpoints.chatConversationsUrl;
20852
- const conversationsApi = _react.useMemo.call(void 0,
20853
- () => conversationsUrl ? createChatConversationsApi(conversationsUrl) : null,
20854
- [conversationsUrl]
20855
- );
20856
- const [dialogSearch, setDialogSearch] = _react.useState.call(void 0, "");
20857
- const fetchActiveDialogs = _react.useMemo.call(void 0,
20858
- () => conversationsApi ? (params) => conversationsApi.fetchDialogs({ ...params, status: "active" }) : void 0,
20859
- [conversationsApi]
20860
- );
20861
- const fetchArchivedDialogs = _react.useMemo.call(void 0,
20862
- () => conversationsApi ? (params) => conversationsApi.fetchDialogs({ ...params, status: "archived" }) : void 0,
20863
- [conversationsApi]
20864
- );
20865
- const {
20866
- dialogs,
20867
- isDialogsLoading,
20868
- dialogsError,
20869
- hasMoreDialogs,
20870
- reloadDialogs,
20871
- loadMoreDialogs,
20872
- renameDialog,
20873
- archiveDialog,
20874
- upsertDialogTop,
20875
- bumpDialogToTop
20876
- } = useManagedDialogList({
20877
- autoLoad: active,
20878
- fetchDialogs: fetchActiveDialogs,
20879
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _656 => _656.renameDialog]),
20880
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _657 => _657.archiveDialog]),
20881
- pageSize: 20,
20882
- search: conversationsApi ? dialogSearch : void 0,
20883
- logTag: "[useSseChatAdapter]",
20884
- // Archiving the OPEN conversation drops back to the draft state (the
20885
- // manager also clears the thread; both paths are idempotent).
20886
- onDialogRemoved: (id) => {
20887
- if (conversationIdRef.current === id) switchConversation(null);
20888
- }
20889
- });
20890
- const unarchiveDialog = _react.useMemo.call(void 0,
20891
- () => conversationsApi ? async (id) => {
20892
- await conversationsApi.unarchiveDialog(id);
20893
- reloadDialogs();
20894
- } : void 0,
20895
- [conversationsApi, reloadDialogs]
20896
- );
20897
20545
  const endpointsRef = _react.useRef.call(void 0, runtime.endpoints);
20898
20546
  endpointsRef.current = runtime.endpoints;
20899
20547
  const captureConversationId = _react.useCallback.call(void 0,
20900
20548
  (event) => {
20901
- if (event.type !== "metadata") return false;
20549
+ if (event.type !== "metadata") return;
20902
20550
  const id = event.conversationId;
20903
- if (typeof id !== "string" || !id) return false;
20904
- if (conversationIdRef.current === id) return false;
20905
- hydratedKeyRef.current = `${source}:${id}`;
20906
- commitConversationId(id);
20907
- return true;
20551
+ if (typeof id !== "string" || !id) return;
20552
+ if (conversationIdRef.current === id) return;
20553
+ conversationIdRef.current = id;
20554
+ conversationStorage.save({ conversationId: id });
20908
20555
  },
20909
- [commitConversationId, hydratedKeyRef, source]
20556
+ [conversationStorage]
20910
20557
  );
20911
20558
  const sendMessage = _react.useCallback.call(void 0,
20912
20559
  // Resolves `true` on a clean turn, `false` when the request failed
20913
20560
  // (surfaced to batch approve-all loops via the card callbacks).
20914
20561
  async (text, sendOptions) => {
20915
20562
  const { hidden, attachments, commandOverride, approvalAction } = _nullishCoalesce(sendOptions, () => ( {}));
20916
- const echoedConversationId = conversationIdRef.current;
20563
+ const conversationId = conversationIdRef.current;
20917
20564
  const targetPath = approvalAction ? endpointsRef.current.approvalToolUrl : endpointsRef.current.chatStreamUrl;
20918
20565
  const requestBody = approvalAction ? (
20919
20566
  // Shared with every other transport that resolves a hub proposal —
20920
20567
  // the body shape is the hub's, not this adapter's. `conversationId`
20921
20568
  // is always present here: an approval can only happen inside an
20922
20569
  // established conversation (the proposal turn captured the id).
20923
- buildConfirmToolBody({ ...approvalAction, conversationId: echoedConversationId })
20570
+ buildConfirmToolBody({ ...approvalAction, conversationId })
20924
20571
  ) : {
20925
20572
  messages: [{ role: "user", content: text }],
20926
20573
  ...commandOverride ? { commandOverride } : {},
20927
20574
  ...attachments && attachments.length > 0 ? { pendingAttachments: attachments } : {},
20928
- ...echoedConversationId ? { conversationId: echoedConversationId } : {}
20575
+ ...conversationId ? { conversationId } : {}
20929
20576
  };
20930
20577
  mutate((r) => r.beginSseSend({ text, hidden, userName: "You", assistantName: "Mingo AI" }));
20931
20578
  const ctrl = new AbortController();
20932
20579
  abortControllerRef.current = ctrl;
20933
- let mintedThisTurn = false;
20934
20580
  try {
20935
- const response = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, targetPath, {
20581
+ const response = await _chunkYH6IQTPIcjs.embedAuthedFetch.call(void 0, targetPath, {
20936
20582
  method: "POST",
20937
20583
  body: JSON.stringify(requestBody),
20938
20584
  signal: ctrl.signal
@@ -20941,7 +20587,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20941
20587
  const serverMessage = await readServerErrorMessage(response);
20942
20588
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
20943
20589
  }
20944
- const reader = _optionalChain([response, 'access', _658 => _658.body, 'optionalAccess', _659 => _659.getReader, 'call', _660 => _660()]);
20590
+ const reader = _optionalChain([response, 'access', _644 => _644.body, 'optionalAccess', _645 => _645.getReader, 'call', _646 => _646()]);
20945
20591
  if (!reader) throw new Error("No response body");
20946
20592
  const frameDecoder = createSseFrameDecoder();
20947
20593
  let finished = false;
@@ -20951,13 +20597,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20951
20597
  if (done) break;
20952
20598
  if (ctrl.signal.aborted) break;
20953
20599
  for (const event of frameDecoder.push(value)) {
20954
- if (captureConversationId(event)) {
20955
- mintedThisTurn = true;
20956
- const mintedId = conversationIdRef.current;
20957
- if (conversationsApi && !hidden && mintedId) {
20958
- upsertDialogTop({ id: mintedId, title: "New chat", timestamp: /* @__PURE__ */ new Date() });
20959
- }
20960
- }
20600
+ captureConversationId(event);
20961
20601
  applyEvent(event);
20962
20602
  }
20963
20603
  }
@@ -20970,7 +20610,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20970
20610
  }
20971
20611
  return true;
20972
20612
  } catch (err) {
20973
- if (_optionalChain([err, 'optionalAccess', _661 => _661.name]) === "AbortError" || ctrl.signal.aborted) {
20613
+ if (_optionalChain([err, 'optionalAccess', _647 => _647.name]) === "AbortError" || ctrl.signal.aborted) {
20974
20614
  return true;
20975
20615
  }
20976
20616
  flushDeltas();
@@ -20984,62 +20624,29 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
20984
20624
  }
20985
20625
  flushDeltas();
20986
20626
  mutate((r) => r.endSseTurn());
20987
- if (conversationsApi && !ctrl.signal.aborted) {
20988
- if (mintedThisTurn) {
20989
- reloadDialogs();
20990
- } else if (conversationIdRef.current) {
20991
- bumpDialogToTop(conversationIdRef.current);
20992
- }
20993
- }
20994
20627
  }
20995
20628
  },
20996
- [
20997
- mutate,
20998
- applyEvent,
20999
- flushDeltas,
21000
- captureConversationId,
21001
- conversationsApi,
21002
- upsertDialogTop,
21003
- reloadDialogs,
21004
- bumpDialogToTop
21005
- ]
20629
+ [mutate, applyEvent, flushDeltas, captureConversationId]
21006
20630
  );
21007
20631
  sendMessageRef.current = sendMessage;
21008
20632
  const stopMessage = _react.useCallback.call(void 0, () => {
21009
- _optionalChain([abortControllerRef, 'access', _662 => _662.current, 'optionalAccess', _663 => _663.abort, 'call', _664 => _664()]);
20633
+ _optionalChain([abortControllerRef, 'access', _648 => _648.current, 'optionalAccess', _649 => _649.abort, 'call', _650 => _650()]);
21010
20634
  flushDeltas();
21011
20635
  mutate((r) => r.setPhase("idle"));
21012
20636
  }, [mutate, flushDeltas]);
21013
20637
  const clearMessages = _react.useCallback.call(void 0, () => {
21014
20638
  mutate((r) => r.reset());
21015
- commitConversationId(null);
20639
+ conversationIdRef.current = null;
20640
+ conversationStorage.clear();
21016
20641
  hydrationSendCountRef.current = 0;
21017
20642
  hydratedKeyRef.current = null;
21018
- }, [mutate, commitConversationId, hydratedKeyRef]);
21019
- const selectDialog = _react.useCallback.call(void 0,
21020
- (id) => {
21021
- if (id === conversationIdRef.current) return;
21022
- switchConversation(id);
21023
- },
21024
- [switchConversation]
21025
- );
21026
- const dialogCapabilities = _react.useMemo.call(void 0,
21027
- () => conversationsApi ? {
21028
- canRename: true,
21029
- canArchive: true,
21030
- fetchArchivedDialogs,
21031
- unarchiveDialog,
21032
- searchQuery: dialogSearch,
21033
- onSearchChange: setDialogSearch
21034
- } : void 0,
21035
- [conversationsApi, fetchArchivedDialogs, unarchiveDialog, dialogSearch]
21036
- );
20643
+ }, [mutate, conversationStorage, hydratedKeyRef]);
21037
20644
  const docMessages = _react.useMemo.call(void 0, () => {
21038
20645
  const { meta, sources: sourcesMap } = state.turnMeta;
21039
20646
  let sendIdx = -1;
21040
20647
  return state.messages.map((m) => {
21041
20648
  const segments = m.segments;
21042
- 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("")]), () => ( ""));
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("")]), () => ( ""));
21043
20650
  let sources;
21044
20651
  let scrollAnchor;
21045
20652
  if (m.role === "user" && !m.hidden) {
@@ -21048,7 +20655,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21048
20655
  if (m.role === "assistant") {
21049
20656
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
21050
20657
  sources = sourcesMap.get(lookupIdx);
21051
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _671 => _671.get, 'call', _672 => _672(lookupIdx), 'optionalAccess', _673 => _673.scrollAnchor]), () => ( void 0));
20658
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _657 => _657.get, 'call', _658 => _658(lookupIdx), 'optionalAccess', _659 => _659.scrollAnchor]), () => ( void 0));
21052
20659
  }
21053
20660
  return {
21054
20661
  id: m.id,
@@ -21075,7 +20682,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21075
20682
  );
21076
20683
  return;
21077
20684
  }
21078
- const refSlug = typeof _optionalChain([reference, 'access', _674 => _674.metadata, 'optionalAccess', _675 => _675.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
20685
+ const refSlug = typeof _optionalChain([reference, 'access', _660 => _660.metadata, 'optionalAccess', _661 => _661.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21079
20686
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
21080
20687
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
21081
20688
  const text = `/${cmdId} display "${escaped}"`;
@@ -21121,42 +20728,38 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21121
20728
  /** True while the mount-time rebuild from the server transcript runs. */
21122
20729
  isHydratingHistory,
21123
20730
  /** Provider key for the lib's `<ModelDisplay>` icon. */
21124
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _676 => _676.provider]), () => ( null)),
21125
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _677 => _677.modelLabel]), () => ( null)),
21126
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _678 => _678.contextWindowMaxTokens]), () => ( null)),
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)),
21127
20734
  /** Input tokens (known after server's message_start frame; null until). */
21128
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _679 => _679.inputTokens]), () => ( null)),
20735
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _665 => _665.inputTokens]), () => ( null)),
21129
20736
  /** Output tokens (known only after server's trailing usage frame). */
21130
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _680 => _680.outputTokens]), () => ( null)),
20737
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _666 => _666.outputTokens]), () => ( null)),
21131
20738
  /** Cache hit % (read / total-input × 100). null during streaming. */
21132
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _681 => _681.cacheHitRatePct]), () => ( null)),
20739
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _667 => _667.cacheHitRatePct]), () => ( null)),
21133
20740
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
21134
20741
  * token counts). null until the trailing usage frame lands. */
21135
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _682 => _682.breakdown]), () => ( null)),
21136
- // ─── Dialog management ───────────────────────────────────────────────
21137
- // With `chatConversationsUrl` the server transcript store IS the dialog
21138
- // list (shared `useManagedDialogList`); selecting a row re-hydrates through
21139
- // the history route. WITHOUT it the same hook is inert by construction —
21140
- // no `fetchDialogs`, so an empty list, false flags and memoized no-op
21141
- // mutations — which is why only the four genuinely mode-dependent fields
21142
- // are branched here.
21143
- dialogs,
21144
- isDialogsLoading,
21145
- dialogsError,
21146
- reloadDialogs,
21147
- hasMoreDialogs,
21148
- loadMoreDialogs,
21149
- renameDialog,
21150
- archiveDialog,
21151
- // New chat = `clearMessages` (the server mints on the next send); there is
21152
- // no create call. Delete is not offered — archive replaces it.
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,
21153
20752
  startNewDialog: noopStartNewDialog,
21154
20753
  deleteDialog: noopDeleteDialog,
21155
- activeDialogId: conversationsApi ? conversationId : null,
21156
- selectDialog: conversationsApi ? selectDialog : noopSelectDialog,
21157
- isMessagesLoading: conversationsApi ? isHydratingHistory : false,
21158
- dialogsManaged: !!conversationsApi,
21159
- dialogCapabilities,
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,
21160
20763
  hasMoreMessages: false,
21161
20764
  loadMoreMessages: noopAsync,
21162
20765
  approveRequest: noopApproveRequest,
@@ -21170,6 +20773,9 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21170
20773
 
21171
20774
 
21172
20775
  // src/chat-protocol/nats-decoder.ts
20776
+ function isRecord2(value) {
20777
+ return typeof value === "object" && value !== null;
20778
+ }
21173
20779
  function str(value) {
21174
20780
  return typeof value === "string" ? value : void 0;
21175
20781
  }
@@ -21182,7 +20788,7 @@ function numOr(value, fallback = 0) {
21182
20788
  }
21183
20789
  function normalizeToolCalls(raw) {
21184
20790
  if (!Array.isArray(raw)) return [];
21185
- return raw.filter(isRecord).map((item) => ({
20791
+ return raw.filter(isRecord2).map((item) => ({
21186
20792
  toolExecutionRequestId: String(_nullishCoalesce(item.toolExecutionRequestId, () => ( ""))),
21187
20793
  toolName: String(_nullishCoalesce(item.toolName, () => ( ""))),
21188
20794
  toolTitle: typeof item.toolTitle === "string" ? item.toolTitle : void 0,
@@ -21190,12 +20796,12 @@ function normalizeToolCalls(raw) {
21190
20796
  toolType: typeof item.toolType === "string" ? item.toolType : void 0,
21191
20797
  requiresApproval: item.requiresApproval === true,
21192
20798
  approvalType: typeof item.approvalType === "string" ? item.approvalType : null,
21193
- toolCallArguments: isRecord(item.toolCallArguments) ? item.toolCallArguments : null
20799
+ toolCallArguments: isRecord2(item.toolCallArguments) ? item.toolCallArguments : null
21194
20800
  }));
21195
20801
  }
21196
20802
  function normalizeAskOptions(raw) {
21197
20803
  if (!Array.isArray(raw)) return [];
21198
- return raw.filter(isRecord).map((item) => ({
20804
+ return raw.filter(isRecord2).map((item) => ({
21199
20805
  label: typeof item.label === "string" ? item.label.trim() : "",
21200
20806
  description: typeof item.description === "string" ? item.description : void 0
21201
20807
  })).filter((option) => option.label.length > 0);
@@ -21264,7 +20870,7 @@ function decodeNatsChunk(chunk) {
21264
20870
  // the EXECUTING segment held. Dropping it here therefore blanks the
21265
20871
  // card for the whole lifetime of the run.
21266
20872
  toolExplanation: typeof data.toolExplanation === "string" ? data.toolExplanation : void 0,
21267
- parameters: isRecord(data.parameters) ? data.parameters : void 0,
20873
+ parameters: isRecord2(data.parameters) ? data.parameters : void 0,
21268
20874
  toolExecutionRequestId: typeof data.toolExecutionRequestId === "string" ? data.toolExecutionRequestId : void 0
21269
20875
  },
21270
20876
  ...seq
@@ -21277,7 +20883,7 @@ function decodeNatsChunk(chunk) {
21277
20883
  integratedToolType: strOr(data.integratedToolType),
21278
20884
  toolFunction: strOr(data.toolFunction),
21279
20885
  toolTitle: typeof data.title === "string" ? data.title : void 0,
21280
- parameters: isRecord(data.parameters) ? data.parameters : void 0,
20886
+ parameters: isRecord2(data.parameters) ? data.parameters : void 0,
21281
20887
  result: str(data.result),
21282
20888
  success: typeof data.success === "boolean" ? data.success : void 0,
21283
20889
  toolExecutionRequestId: typeof data.toolExecutionRequestId === "string" ? data.toolExecutionRequestId : void 0
@@ -21378,7 +20984,7 @@ function decodeNatsChunk(chunk) {
21378
20984
  userId: typeof data.userId === "string" ? data.userId : void 0,
21379
20985
  // Wire shape carries no label; fall back to the id (parity with
21380
20986
  // the history path in `process-historical-messages.ts`).
21381
- 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) => ({
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) => ({
21382
20988
  type: it.type,
21383
20989
  id: it.id,
21384
20990
  label: it.id
@@ -21469,7 +21075,7 @@ function extractIncompleteMessageState(lastMessage) {
21469
21075
  }
21470
21076
  break;
21471
21077
  case "approval_batch": {
21472
- 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");
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");
21473
21079
  if (segment.status !== "rejected" && !allDone) {
21474
21080
  hasIncompleteState = true;
21475
21081
  }
@@ -21531,11 +21137,11 @@ function extractIncompleteMessageState(lastMessage) {
21531
21137
  function extractIncompleteTailState(messages) {
21532
21138
  if (!messages || messages.length === 0) return void 0;
21533
21139
  let start = messages.length;
21534
- while (start > 0 && _optionalChain([messages, 'access', _689 => _689[start - 1], 'optionalAccess', _690 => _690.role]) === "assistant") start -= 1;
21140
+ while (start > 0 && _optionalChain([messages, 'access', _675 => _675[start - 1], 'optionalAccess', _676 => _676.role]) === "assistant") start -= 1;
21535
21141
  if (start === messages.length) return void 0;
21536
21142
  const segments = [];
21537
21143
  for (let i = start; i < messages.length; i += 1) {
21538
- const content = _optionalChain([messages, 'access', _691 => _691[i], 'optionalAccess', _692 => _692.content]);
21144
+ const content = _optionalChain([messages, 'access', _677 => _677[i], 'optionalAccess', _678 => _678.content]);
21539
21145
  if (Array.isArray(content)) segments.push(...content);
21540
21146
  }
21541
21147
  if (segments.length === 0) return void 0;
@@ -21548,15 +21154,15 @@ function extractIncompleteTailState(messages) {
21548
21154
 
21549
21155
  // src/components/chat/utils/process-historical-messages.ts
21550
21156
  function getOwnerDisplayName(owner) {
21551
- if (_optionalChain([owner, 'optionalAccess', _693 => _693.type]) === OWNER_TYPE.ADMIN && owner.user) {
21157
+ if (_optionalChain([owner, 'optionalAccess', _679 => _679.type]) === OWNER_TYPE.ADMIN && owner.user) {
21552
21158
  const { firstName, lastName } = owner.user;
21553
21159
  const name = [firstName, lastName].filter(Boolean).join(" ");
21554
21160
  if (name) return name;
21555
21161
  }
21556
- return _optionalChain([owner, 'optionalAccess', _694 => _694.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21162
+ return _optionalChain([owner, 'optionalAccess', _680 => _680.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21557
21163
  }
21558
21164
  function getOwnerAvatar(owner) {
21559
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _695 => _695.user, 'optionalAccess', _696 => _696.image, 'optionalAccess', _697 => _697.imageUrl]), () => ( void 0));
21165
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _681 => _681.user, 'optionalAccess', _682 => _682.image, 'optionalAccess', _683 => _683.imageUrl]), () => ( void 0));
21560
21166
  }
21561
21167
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
21562
21168
  messageDataArray.forEach((data) => {
@@ -21740,7 +21346,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21740
21346
  event.offerId,
21741
21347
  event.text,
21742
21348
  event.origin,
21743
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _698 => _698[event.offerId]]), () => ( "pending"))
21349
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _684 => _684[event.offerId]]), () => ( "pending"))
21744
21350
  );
21745
21351
  break;
21746
21352
  case "ticket-escalated":
@@ -21774,7 +21380,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21774
21380
  );
21775
21381
  break;
21776
21382
  case "escalation-offer-resolved":
21777
- _optionalChain([offerResolutions, 'optionalAccess', _699 => _699.set, 'call', _700 => _700(event.offerId, {
21383
+ _optionalChain([offerResolutions, 'optionalAccess', _685 => _685.set, 'call', _686 => _686(event.offerId, {
21778
21384
  status: event.status,
21779
21385
  resolvedByName: event.resolvedByName
21780
21386
  })]);
@@ -21838,7 +21444,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21838
21444
  }
21839
21445
  }
21840
21446
  } else {
21841
- _optionalChain([escalatedApprovals, 'optionalAccess', _701 => _701.set, 'call', _702 => _702(event.requestId, {
21447
+ _optionalChain([escalatedApprovals, 'optionalAccess', _687 => _687.set, 'call', _688 => _688(event.requestId, {
21842
21448
  command: event.command || "",
21843
21449
  explanation: event.explanation,
21844
21450
  approvalType,
@@ -21853,8 +21459,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21853
21459
  const existingStatus = approvalStatuses[requestId];
21854
21460
  const status = existingStatus || event.status;
21855
21461
  const resolvedByName = event.resolvedByName;
21856
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _703 => _703.get, 'call', _704 => _704(requestId)]);
21857
- if (_optionalChain([escalatedData, 'optionalAccess', _705 => _705.toolCalls]) && escalatedData.toolCalls.length > 0) {
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) {
21858
21464
  if (batchApprovalsEnabled) {
21859
21465
  accumulator.addApprovalBatch(
21860
21466
  requestId,
@@ -21876,7 +21482,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21876
21482
  );
21877
21483
  }
21878
21484
  }
21879
- _optionalChain([escalatedApprovals, 'optionalAccess', _706 => _706.delete, 'call', _707 => _707(requestId)]);
21485
+ _optionalChain([escalatedApprovals, 'optionalAccess', _692 => _692.delete, 'call', _693 => _693(requestId)]);
21880
21486
  break;
21881
21487
  }
21882
21488
  if (escalatedData) {
@@ -21885,7 +21491,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
21885
21491
  explanation: escalatedData.explanation,
21886
21492
  approvalType: escalatedData.approvalType
21887
21493
  });
21888
- _optionalChain([escalatedApprovals, 'optionalAccess', _708 => _708.delete, 'call', _709 => _709(requestId)]);
21494
+ _optionalChain([escalatedApprovals, 'optionalAccess', _694 => _694.delete, 'call', _695 => _695(requestId)]);
21889
21495
  }
21890
21496
  const before = accumulator.getSegments();
21891
21497
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -21974,14 +21580,14 @@ function processHistoricalMessages(messages, options = {}) {
21974
21580
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
21975
21581
  return;
21976
21582
  }
21977
- 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;
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;
21978
21584
  if (isUserMessage) {
21979
21585
  flushAssistantMessage();
21980
- const userAuthorType = _optionalChain([msg, 'access', _714 => _714.owner, 'optionalAccess', _715 => _715.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
21586
+ const userAuthorType = _optionalChain([msg, 'access', _700 => _700.owner, 'optionalAccess', _701 => _701.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
21981
21587
  messageDataArray.forEach((data) => {
21982
21588
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
21983
21589
  const rawContext = data.contextItems;
21984
- 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;
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;
21985
21591
  processedMessages.push({
21986
21592
  id: msg.id,
21987
21593
  role: "user",
@@ -22024,7 +21630,7 @@ function processHistoricalMessages(messages, options = {}) {
22024
21630
  });
22025
21631
  const nextMsg = messages[index + 1];
22026
21632
  const isLastMessage = index === messages.length - 1;
22027
- 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);
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);
22028
21634
  if (isLastMessage || nextIsFromUser) {
22029
21635
  flushAssistantMessage();
22030
21636
  }
@@ -22142,8 +21748,6 @@ function useNatsChatAdapter(config, options = {}) {
22142
21748
  deleteDialog: deleteDialogCallback,
22143
21749
  renameDialog: renameDialogCallback,
22144
21750
  archiveDialog: archiveDialogCallback,
22145
- fetchArchivedDialogs,
22146
- unarchiveDialog,
22147
21751
  approveRequest: approveRequestCallback,
22148
21752
  rejectRequest: rejectRequestCallback,
22149
21753
  stopGeneration: stopGenerationCallback,
@@ -22229,33 +21833,11 @@ function useNatsChatAdapter(config, options = {}) {
22229
21833
  },
22230
21834
  [applyEvent]
22231
21835
  );
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);
22232
21840
  const [isCreatingDialog, setIsCreatingDialog] = _react.useState.call(void 0, false);
22233
- const {
22234
- dialogs,
22235
- isDialogsLoading,
22236
- dialogsError,
22237
- hasMoreDialogs,
22238
- reloadDialogs,
22239
- loadMoreDialogs,
22240
- renameDialog,
22241
- archiveDialog,
22242
- deleteDialog,
22243
- upsertDialogTop
22244
- } = useManagedDialogList({
22245
- autoLoad: active,
22246
- fetchDialogs,
22247
- renameDialog: renameDialogCallback,
22248
- archiveDialog: archiveDialogCallback,
22249
- deleteDialog: deleteDialogCallback,
22250
- pageSize: dialogsPageSize,
22251
- logTag: "[useNatsChatAdapter]",
22252
- onDialogRemoved: (id, reason) => {
22253
- if (reason === "deleted") dialogStore.remove(id);
22254
- if (isManagedMode && internalDialogId === id) {
22255
- setInternalDialogId(null);
22256
- }
22257
- }
22258
- });
22259
21841
  const [messagesNextCursor, setMessagesNextCursor] = _react.useState.call(void 0, null);
22260
21842
  const [isMessagesLoading, setIsMessagesLoading] = _react.useState.call(void 0, false);
22261
21843
  const [connectedForDialog, setConnectedForDialog] = _react.useState.call(void 0, null);
@@ -22405,9 +21987,48 @@ function useNatsChatAdapter(config, options = {}) {
22405
21987
  }
22406
21988
  });
22407
21989
  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]);
22408
22029
  const sendMessage = _react.useCallback.call(void 0,
22409
22030
  async (text, sendOptions) => {
22410
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _722 => _722.hidden]), () => ( false));
22031
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _708 => _708.hidden]), () => ( false));
22411
22032
  mutate((r) => r.pushOptimisticSend(text, hidden));
22412
22033
  await publishUserMessage(text, { hidden, dialogId });
22413
22034
  },
@@ -22439,11 +22060,14 @@ function useNatsChatAdapter(config, options = {}) {
22439
22060
  try {
22440
22061
  setIsCreatingDialog(true);
22441
22062
  const result = await createDialogCallback();
22442
- upsertDialogTop({
22443
- id: result.dialogId,
22444
- title: "New Chat",
22445
- timestamp: /* @__PURE__ */ new Date()
22446
- });
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
+ ]);
22447
22071
  if (isManagedMode) {
22448
22072
  setInternalDialogId(result.dialogId);
22449
22073
  }
@@ -22454,7 +22078,65 @@ function useNatsChatAdapter(config, options = {}) {
22454
22078
  } finally {
22455
22079
  setIsCreatingDialog(false);
22456
22080
  }
22457
- }, [createDialogCallback, isCreatingDialog, isManagedMode, upsertDialogTop]);
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]);
22458
22140
  const loadMoreMessages = _react.useCallback.call(void 0, async () => {
22459
22141
  if (!dialogId || !messagesNextCursor) return;
22460
22142
  await loadDialogHistory(dialogId, messagesNextCursor);
@@ -22476,16 +22158,8 @@ function useNatsChatAdapter(config, options = {}) {
22476
22158
  );
22477
22159
  const { messages, streamingPhase, dialogTokenUsage = null, liveModel = null } = state;
22478
22160
  const isLoading = streamingPhase !== "idle";
22161
+ const hasMoreDialogs = dialogsNextCursor != null;
22479
22162
  const hasMoreMessages = messagesNextCursor != null;
22480
- const dialogCapabilities = _react.useMemo.call(void 0,
22481
- () => isManagedMode ? {
22482
- canRename: !!renameDialogCallback,
22483
- canArchive: !!archiveDialogCallback,
22484
- fetchArchivedDialogs,
22485
- unarchiveDialog
22486
- } : void 0,
22487
- [isManagedMode, renameDialogCallback, archiveDialogCallback, fetchArchivedDialogs, unarchiveDialog]
22488
- );
22489
22163
  return _react.useMemo.call(void 0,
22490
22164
  () => ({
22491
22165
  messages,
@@ -22500,11 +22174,11 @@ function useNatsChatAdapter(config, options = {}) {
22500
22174
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
22501
22175
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
22502
22176
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
22503
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _723 => _723.provider]), () => ( modelProvider)), () => ( null)),
22504
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _724 => _724.modelLabel]), () => ( modelLabel)), () => ( null)),
22505
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _725 => _725.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _726 => _726.contextWindowMaxTokens]))), () => ( null)),
22506
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _727 => _727.inputTokensSize]), () => ( null)),
22507
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _728 => _728.outputTokensSize]), () => ( 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)),
22508
22182
  currentCacheHitRatePct: null,
22509
22183
  currentUsageBreakdown: null,
22510
22184
  // Dialog management
@@ -22523,8 +22197,6 @@ function useNatsChatAdapter(config, options = {}) {
22523
22197
  loadMoreDialogs,
22524
22198
  hasMoreMessages,
22525
22199
  loadMoreMessages,
22526
- dialogsManaged: isManagedMode,
22527
- dialogCapabilities,
22528
22200
  // Approval mutations
22529
22201
  approveRequest,
22530
22202
  rejectRequest,
@@ -22557,8 +22229,6 @@ function useNatsChatAdapter(config, options = {}) {
22557
22229
  loadMoreDialogs,
22558
22230
  hasMoreMessages,
22559
22231
  loadMoreMessages,
22560
- isManagedMode,
22561
- dialogCapabilities,
22562
22232
  approveRequest,
22563
22233
  rejectRequest,
22564
22234
  dialogTokenUsage,
@@ -22609,7 +22279,7 @@ function useUnifiedChat(options) {
22609
22279
  []
22610
22280
  );
22611
22281
  const displayRefForward = _react.useCallback.call(void 0,
22612
- (ref) => _optionalChain([activeStateRef, 'access', _729 => _729.current, 'access', _730 => _730.displayRef, 'optionalCall', _731 => _731(ref)]),
22282
+ (ref) => _optionalChain([activeStateRef, 'access', _715 => _715.current, 'access', _716 => _716.displayRef, 'optionalCall', _717 => _717(ref)]),
22613
22283
  []
22614
22284
  );
22615
22285
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -22619,7 +22289,7 @@ function useUnifiedChat(options) {
22619
22289
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
22620
22290
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
22621
22291
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
22622
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _732 => _732.current, 'access', _733 => _733.setDialogScope, 'optionalCall', _734 => _734(scope)]), []);
22292
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _718 => _718.current, 'access', _719 => _719.setDialogScope, 'optionalCall', _720 => _720(scope)]), []);
22623
22293
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
22624
22294
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
22625
22295
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -22664,11 +22334,6 @@ function useUnifiedChat(options) {
22664
22334
  setDialogScope,
22665
22335
  hasMoreMessages: activeState.hasMoreMessages,
22666
22336
  loadMoreMessages,
22667
- // Adapter-owned dialog list flag + capabilities (SSE with a
22668
- // conversations endpoint, NATS managed mode). Forwarded verbatim —
22669
- // `EmbeddableChat` gates the history UI on them.
22670
- dialogsManaged: activeState.dialogsManaged,
22671
- dialogCapabilities: activeState.dialogCapabilities,
22672
22337
  // Approvals
22673
22338
  approveRequest,
22674
22339
  rejectRequest,
@@ -22717,19 +22382,19 @@ function turnRequestKeys(content) {
22717
22382
  if (!Array.isArray(content)) return keys;
22718
22383
  for (const seg of content) {
22719
22384
  if (seg.type === "tool_execution") {
22720
- const id = _optionalChain([seg, 'access', _735 => _735.data, 'optionalAccess', _736 => _736.toolExecutionRequestId]);
22385
+ const id = _optionalChain([seg, 'access', _721 => _721.data, 'optionalAccess', _722 => _722.toolExecutionRequestId]);
22721
22386
  if (id) keys.add(id);
22722
22387
  } else if (seg.type === "approval_request") {
22723
- const id = _optionalChain([seg, 'access', _737 => _737.data, 'optionalAccess', _738 => _738.requestId]);
22388
+ const id = _optionalChain([seg, 'access', _723 => _723.data, 'optionalAccess', _724 => _724.requestId]);
22724
22389
  if (id) keys.add(id);
22725
22390
  } else if (seg.type === "escalation_offer") {
22726
- const id = _optionalChain([seg, 'access', _739 => _739.data, 'optionalAccess', _740 => _740.offerId]);
22391
+ const id = _optionalChain([seg, 'access', _725 => _725.data, 'optionalAccess', _726 => _726.offerId]);
22727
22392
  if (id) keys.add(id);
22728
22393
  } else if (seg.type === "approval_batch") {
22729
22394
  const data = seg.data;
22730
- if (_optionalChain([data, 'optionalAccess', _741 => _741.approvalRequestId])) keys.add(data.approvalRequestId);
22731
- for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _742 => _742.toolCalls]), () => ( []))) {
22732
- if (_optionalChain([call, 'optionalAccess', _743 => _743.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
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);
22733
22398
  }
22734
22399
  }
22735
22400
  }
@@ -22781,18 +22446,18 @@ function mergeHistoryWithRealtime(input) {
22781
22446
  }
22782
22447
  }
22783
22448
  const trailing = processedHistory[processedHistory.length - 1];
22784
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _744 => _744.role]) === "assistant" ? trailing : null;
22785
- 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;
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;
22786
22451
  let processedToUse = processedHistory;
22787
22452
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
22788
22453
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
22789
22454
  if (historyBatchId) {
22790
22455
  const batchTwins = existingMessages.filter(
22791
- (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)
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)
22792
22457
  );
22793
22458
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
22794
22459
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
22795
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _752 => _752.content])) ? historyTrailingAssistant.content.length : 0;
22460
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _738 => _738.content])) ? historyTrailingAssistant.content.length : 0;
22796
22461
  const realtimeSize = existingWithSameBatch.content.length;
22797
22462
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
22798
22463
  processedToUse = processedHistory.slice(0, -1);
@@ -22834,9 +22499,9 @@ function mergeHistoryWithRealtime(input) {
22834
22499
  if (pinnedSyntheticIds.has(m.id)) return true;
22835
22500
  if (droppedSyntheticIds.has(m.id)) return false;
22836
22501
  if (processedIds.has(m.id)) return false;
22837
- if (_optionalChain([rawHistoryIds, 'optionalAccess', _753 => _753.has, 'call', _754 => _754(m.id)])) return false;
22502
+ if (_optionalChain([rawHistoryIds, 'optionalAccess', _739 => _739.has, 'call', _740 => _740(m.id)])) return false;
22838
22503
  if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
22839
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _755 => _755.timestamp, 'optionalAccess', _756 => _756.getTime, 'call', _757 => _757()]), () => ( 0))) <= historyFetchedAt;
22504
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _741 => _741.timestamp, 'optionalAccess', _742 => _742.getTime, 'call', _743 => _743()]), () => ( 0))) <= historyFetchedAt;
22840
22505
  return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
22841
22506
  }
22842
22507
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -22860,7 +22525,7 @@ function mergeHistoryWithRealtime(input) {
22860
22525
  } else if (typeof m.streamSeq === "number") {
22861
22526
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
22862
22527
  } else {
22863
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _758 => _758.timestamp, 'optionalAccess', _759 => _759.getTime, 'call', _760 => _760()]), () => ( 0))) <= historyFetchedAt;
22528
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _744 => _744.timestamp, 'optionalAccess', _745 => _745.getTime, 'call', _746 => _746()]), () => ( 0))) <= historyFetchedAt;
22864
22529
  }
22865
22530
  if (covered) return false;
22866
22531
  }
@@ -22930,7 +22595,7 @@ function normalizeHistoricalMessageData(md) {
22930
22595
  function isHistoricalUserTurn(m) {
22931
22596
  return !!m.owner;
22932
22597
  }
22933
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _761 => _761.type]) === "TEXT" && typeof d.text === "string";
22598
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _747 => _747.type]) === "TEXT" && typeof d.text === "string";
22934
22599
  var THINK_MS = 550;
22935
22600
  var TOKEN_MS = 55;
22936
22601
  var USER_MS = 480;
@@ -23461,14 +23126,8 @@ function useChatDialogManager({
23461
23126
  const [renameTarget, setRenameTarget] = _react.useState.call(void 0, null);
23462
23127
  const [archiveTarget, setArchiveTarget] = _react.useState.call(void 0, null);
23463
23128
  const handleConfirmRename = _react.useCallback.call(void 0,
23464
- async (name) => {
23465
- if (!renameTarget) return;
23466
- try {
23467
- await renameDialog(renameTarget.id, name);
23468
- } catch (err) {
23469
- console.error("[useChatDialogManager] rename failed:", err);
23470
- return;
23471
- }
23129
+ (name) => {
23130
+ if (renameTarget) void renameDialog(renameTarget.id, name);
23472
23131
  setRenameTarget(null);
23473
23132
  },
23474
23133
  [renameTarget, renameDialog]
@@ -23490,24 +23149,44 @@ function useChatDialogManager({
23490
23149
  setArchiveTarget(null);
23491
23150
  }, [archiveTarget, archiveDialog, activeDialogId, clearMessages]);
23492
23151
  const [archiveOpen, setArchiveOpen] = _react.useState.call(void 0, false);
23493
- const {
23494
- dialogs: archivedDialogs,
23495
- dialogsNextCursor: archivedCursor,
23496
- isDialogsLoading: archivedLoading,
23497
- isDialogsPending: archivedPending,
23498
- loadDialogsPage: loadArchivedPage,
23499
- removeDialog: removeArchivedDialog
23500
- } = useManagedDialogList({
23501
- // Loads on OPEN, not on mount — `openArchive` drives page 1 and
23502
- // re-validates it on every re-open (stale-while-revalidate).
23503
- autoLoad: false,
23504
- fetchDialogs: fetchArchivedDialogs,
23505
- pageSize: 20,
23506
- // Delay the full-view skeleton so a cached/fast page-1 fetch never flashes
23507
- // it; `archivedPending` still suppresses the empty state meanwhile.
23508
- skeletonDelayMs: 120,
23509
- logTag: "[useChatDialogManager]"
23510
- });
23152
+ const [archivedDialogs, setArchivedDialogs] = _react.useState.call(void 0, []);
23153
+ const [archivedCursor, setArchivedCursor] = _react.useState.call(void 0, null);
23154
+ const [archivedLoading, setArchivedLoading] = _react.useState.call(void 0, false);
23155
+ const [archivedPending, setArchivedPending] = _react.useState.call(void 0, false);
23156
+ const archivedRequestIdRef = _react.useRef.call(void 0, 0);
23157
+ const loadArchivedPage = _react.useCallback.call(void 0,
23158
+ async (cursor) => {
23159
+ if (!fetchArchivedDialogs) return;
23160
+ const requestId = ++archivedRequestIdRef.current;
23161
+ const isCurrent = () => archivedRequestIdRef.current === requestId;
23162
+ const isInitial = !cursor;
23163
+ setArchivedPending(true);
23164
+ let skeletonTimer;
23165
+ if (isInitial) {
23166
+ skeletonTimer = setTimeout(() => {
23167
+ if (isCurrent()) setArchivedLoading(true);
23168
+ }, 120);
23169
+ } else {
23170
+ setArchivedLoading(true);
23171
+ }
23172
+ try {
23173
+ const result = await fetchArchivedDialogs({ cursor, limit: 20 });
23174
+ if (!isCurrent()) return;
23175
+ setArchivedCursor(result.nextCursor);
23176
+ setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
23177
+ } catch (err) {
23178
+ if (!isCurrent()) return;
23179
+ console.error("[useChatDialogManager] fetchArchivedDialogs failed:", err);
23180
+ } finally {
23181
+ if (skeletonTimer) clearTimeout(skeletonTimer);
23182
+ if (isCurrent()) {
23183
+ setArchivedLoading(false);
23184
+ setArchivedPending(false);
23185
+ }
23186
+ }
23187
+ },
23188
+ [fetchArchivedDialogs]
23189
+ );
23511
23190
  const openArchive = _react.useCallback.call(void 0, () => {
23512
23191
  setArchiveOpen(true);
23513
23192
  void loadArchivedPage();
@@ -23536,16 +23215,16 @@ function useChatDialogManager({
23536
23215
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
23537
23216
  if (restoreTarget) {
23538
23217
  try {
23539
- await _optionalChain([unarchiveDialog, 'optionalCall', _762 => _762(restoreTarget.id)]);
23218
+ await _optionalChain([unarchiveDialog, 'optionalCall', _748 => _748(restoreTarget.id)]);
23540
23219
  } catch (err) {
23541
23220
  console.error("[useChatDialogManager] unarchive failed:", err);
23542
23221
  return;
23543
23222
  }
23544
- removeArchivedDialog(restoreTarget.id);
23223
+ setArchivedDialogs((prev) => prev.filter((d) => d.id !== restoreTarget.id));
23545
23224
  setViewingArchivedId((cur) => cur === restoreTarget.id ? null : cur);
23546
23225
  }
23547
23226
  setRestoreTarget(null);
23548
- }, [restoreTarget, unarchiveDialog, removeArchivedDialog]);
23227
+ }, [restoreTarget, unarchiveDialog]);
23549
23228
  const isViewingArchived = viewingArchivedId != null && viewingArchivedId === activeDialogId;
23550
23229
  const handleBack = _react.useCallback.call(void 0, () => {
23551
23230
  const wasArchived = isViewingArchived;
@@ -23603,18 +23282,12 @@ function useChatDialogManager({
23603
23282
 
23604
23283
  // src/components/chat/embeddable-chat.tsx
23605
23284
 
23606
- var HISTORY_RAIL_WIDTH = 320;
23607
- var CHAT_BLOCK_MIN_WIDTH = 400;
23608
- var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + CHAT_BLOCK_MIN_WIDTH;
23609
23285
  var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
23610
- var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
23286
+ var DRAWER_WIDTH_KEY = "mingo-chat-width-v3";
23611
23287
  var DRAWER_DEFAULT_WIDTH_PX = 750;
23612
- var SPLIT_DEFAULT_WIDTH_ALLOWANCE = 16;
23613
- function drawerDefaultWidth(withHistoryRail) {
23288
+ function drawerDefaultWidth() {
23614
23289
  if (typeof window === "undefined") return DRAWER_DEFAULT_WIDTH_PX;
23615
- const ratioWidth = Math.round(window.innerWidth * DRAWER_DEFAULT_WIDTH_RATIO);
23616
- if (!withHistoryRail) return ratioWidth;
23617
- return Math.max(ratioWidth, SPLIT_MIN_WIDTH + SPLIT_DEFAULT_WIDTH_ALLOWANCE);
23290
+ return Math.round(window.innerWidth * DRAWER_DEFAULT_WIDTH_RATIO);
23618
23291
  }
23619
23292
  var formatRelativePath = (p) => p.replace(/^\/+/, "").replace(/\/+$/, "");
23620
23293
  var mentionTokenOf = (key, markerByType) => {
@@ -23624,6 +23297,9 @@ var mentionTokenOf = (key, markerByType) => {
23624
23297
  return `${_nullishCoalesce(markerByType.get(type), () => ( type.toLowerCase()))}:${id}`;
23625
23298
  };
23626
23299
  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;
23627
23303
  var RAIL_COLLAPSED_STORAGE_KEY = "mingo-chat-history-collapsed";
23628
23304
  var NO_CONTEXT_ITEMS = [];
23629
23305
  var RAIL_ANIM_MS = 320;
@@ -23705,7 +23381,7 @@ function SourceChip({
23705
23381
  onClose,
23706
23382
  onDiscuss
23707
23383
  }) {
23708
- const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
23384
+ const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
23709
23385
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
23710
23386
  const cta = resolveSourceRowCTA(
23711
23387
  {
@@ -23722,7 +23398,7 @@ function SourceChip({
23722
23398
  const Icon = cta.icon;
23723
23399
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
23724
23400
  const chipClass = chatChipClass({ tone: "secondary" });
23725
- const decideTab = (href, targetPlatform) => _chunkUQEOAPAIcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
23401
+ const decideTab = (href, targetPlatform) => _chunkWCBRZCU4cjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
23726
23402
  if (src.items && src.items.length > 0) {
23727
23403
  const dropdownItems = src.items.map((item) => {
23728
23404
  const itemCta = resolveSourceRowCTA(
@@ -23811,7 +23487,7 @@ function SourceChip({
23811
23487
  "a",
23812
23488
  {
23813
23489
  href: resolvedHref,
23814
- ..._chunkUQEOAPAIcjs.newTabAnchorAttrs.call(void 0, isNewTab),
23490
+ ..._chunkWCBRZCU4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
23815
23491
  onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
23816
23492
  className: chipClass,
23817
23493
  children: chipBody(src.name)
@@ -23827,7 +23503,7 @@ function SourceChip({
23827
23503
  "a",
23828
23504
  {
23829
23505
  href: resolvedHref,
23830
- ..._chunkUQEOAPAIcjs.newTabAnchorAttrs.call(void 0, isNewTab),
23506
+ ..._chunkWCBRZCU4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
23831
23507
  onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
23832
23508
  className: chipClass,
23833
23509
  title: displayName,
@@ -23950,7 +23626,7 @@ function EmbeddableChatInner({
23950
23626
  handleRef
23951
23627
  }) {
23952
23628
  const shellLess = shell === "none";
23953
- const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
23629
+ const runtime = _chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, );
23954
23630
  const source = _nullishCoalesce(runtime.source, () => ( ""));
23955
23631
  const commandsUrl = runtime.endpoints.commandsUrl;
23956
23632
  const { attachmentsEnabled, user: identityUser } = useChatIdentity();
@@ -24019,12 +23695,34 @@ function EmbeddableChatInner({
24019
23695
  }),
24020
23696
  [commandsUrl]
24021
23697
  );
24022
- 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;
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;
24023
23699
  const effectiveModes = _react.useMemo.call(void 0, () => {
24024
23700
  if (modes) return modes;
24025
23701
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
24026
23702
  return { guide: guideOptions };
24027
23703
  }, [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]);
24028
23726
  const hasMingoMode = !!effectiveModes.mingo || !!mingoState;
24029
23727
  const initialActiveMode = _nullishCoalesce(_nullishCoalesce(controlledActiveMode, () => ( defaultActiveMode)), () => ( (effectiveModes.guide ? "guide" : "mingo")));
24030
23728
  const [uncontrolledActiveMode, setUncontrolledActiveMode] = _react.useState.call(void 0, initialActiveMode);
@@ -24034,7 +23732,7 @@ function EmbeddableChatInner({
24034
23732
  if (controlledActiveMode === void 0) {
24035
23733
  setUncontrolledActiveMode(next);
24036
23734
  }
24037
- _optionalChain([onActiveModeChange, 'optionalCall', _770 => _770(next)]);
23735
+ _optionalChain([onActiveModeChange, 'optionalCall', _771 => _771(next)]);
24038
23736
  },
24039
23737
  [controlledActiveMode, onActiveModeChange]
24040
23738
  );
@@ -24061,7 +23759,7 @@ function EmbeddableChatInner({
24061
23759
  );
24062
23760
  const effectiveAssistantName = emptyStateConfig.name;
24063
23761
  const effectiveAssistantIcon = emptyStateConfig.icon;
24064
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _771 => _771.title]) === "string" ? guideWelcome.title : null)));
23762
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _772 => _772.title]) === "string" ? guideWelcome.title : null)));
24065
23763
  const {
24066
23764
  messages: rawMessages,
24067
23765
  isLoading: chatLoading,
@@ -24092,24 +23790,8 @@ function EmbeddableChatInner({
24092
23790
  dialogScope,
24093
23791
  setDialogScope,
24094
23792
  hasMoreMessages,
24095
- loadMoreMessages,
24096
- dialogsManaged,
24097
- dialogCapabilities
23793
+ loadMoreMessages
24098
23794
  } = useUnifiedChat({ modes: effectiveModes, activeMode, mingoStateOverride: mingoState });
24099
- const historyListMode = activeMode === "mingo" || dialogsManaged === true;
24100
- const mingoCaps = _react.useMemo.call(void 0, () => {
24101
- const caps = _nullishCoalesce(dialogCapabilities, () => ( (mingoState ? mingoDialogCapabilities : {
24102
- canRename: !!_optionalChain([effectiveModes, 'access', _772 => _772.mingo, 'optionalAccess', _773 => _773.renameDialog]),
24103
- canArchive: !!_optionalChain([effectiveModes, 'access', _774 => _774.mingo, 'optionalAccess', _775 => _775.archiveDialog]),
24104
- fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _776 => _776.mingo, 'optionalAccess', _777 => _777.fetchArchivedDialogs]),
24105
- unarchiveDialog: _optionalChain([effectiveModes, 'access', _778 => _778.mingo, 'optionalAccess', _779 => _779.unarchiveDialog])
24106
- })));
24107
- return {
24108
- ...caps,
24109
- canRename: _nullishCoalesce(_optionalChain([caps, 'optionalAccess', _780 => _780.canRename]), () => ( false)),
24110
- canArchive: _nullishCoalesce(_optionalChain([caps, 'optionalAccess', _781 => _781.canArchive]), () => ( false))
24111
- };
24112
- }, [dialogCapabilities, mingoState, mingoDialogCapabilities, effectiveModes]);
24113
23795
  const guidePromptSentRef = _react.useRef.call(void 0, false);
24114
23796
  _react.useEffect.call(void 0, () => {
24115
23797
  if (!guidePendingPrompt) {
@@ -24121,7 +23803,7 @@ function EmbeddableChatInner({
24121
23803
  void sendMessage(guidePendingPrompt).catch((err) => {
24122
23804
  console.error("[EmbeddableChat] guide launcher prompt failed:", err);
24123
23805
  });
24124
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _782 => _782()]);
23806
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _773 => _773()]);
24125
23807
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
24126
23808
  const {
24127
23809
  attachments: stagedAttachments,
@@ -24132,7 +23814,7 @@ function EmbeddableChatInner({
24132
23814
  clear: clearAttachments
24133
23815
  } = useChatAttachments();
24134
23816
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
24135
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _783 => _783.maxItems]), () => ( 10));
23817
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _774 => _774.maxItems]), () => ( 10));
24136
23818
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
24137
23819
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
24138
23820
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -24153,10 +23835,10 @@ function EmbeddableChatInner({
24153
23835
  }, [activeDialogId, activeMode]);
24154
23836
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
24155
23837
  const m = /* @__PURE__ */ new Map();
24156
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _784 => _784.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
23838
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _775 => _775.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24157
23839
  return m;
24158
- }, [_optionalChain([contextPicker, 'optionalAccess', _785 => _785.entityTypes])]);
24159
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _786 => _786.entityTypes]);
23840
+ }, [_optionalChain([contextPicker, 'optionalAccess', _776 => _776.entityTypes])]);
23841
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _777 => _777.entityTypes]);
24160
23842
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
24161
23843
  const byType = /* @__PURE__ */ new Map();
24162
23844
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -24168,7 +23850,7 @@ function EmbeddableChatInner({
24168
23850
  if (mentionActiveRef.current) {
24169
23851
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
24170
23852
  if (contextItems.length >= contextMaxItems) return;
24171
- _optionalChain([chatInputRef, 'access', _787 => _787.current, 'optionalAccess', _788 => _788.commitMention, 'call', _789 => _789(mentionTokenOf(key, mentionMarkerByType), {
23853
+ _optionalChain([chatInputRef, 'access', _778 => _778.current, 'optionalAccess', _779 => _779.commitMention, 'call', _780 => _780(mentionTokenOf(key, mentionMarkerByType), {
24172
23854
  label: item.label,
24173
23855
  icon: resolveContextIcon(item)
24174
23856
  })]);
@@ -24191,9 +23873,9 @@ function EmbeddableChatInner({
24191
23873
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
24192
23874
  if (mentionKeysRef.current.has(key)) {
24193
23875
  mentionKeysRef.current.delete(key);
24194
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _790 => _790.current, 'optionalAccess', _791 => _791.getValue, 'call', _792 => _792()]), () => ( ""));
23876
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _781 => _781.current, 'optionalAccess', _782 => _782.getValue, 'call', _783 => _783()]), () => ( ""));
24195
23877
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
24196
- _optionalChain([chatInputRef, 'access', _793 => _793.current, 'optionalAccess', _794 => _794.setValue, 'call', _795 => _795(next)]);
23878
+ _optionalChain([chatInputRef, 'access', _784 => _784.current, 'optionalAccess', _785 => _785.setValue, 'call', _786 => _786(next)]);
24197
23879
  }
24198
23880
  },
24199
23881
  [mentionMarkerByType]
@@ -24215,7 +23897,7 @@ function EmbeddableChatInner({
24215
23897
  }, []);
24216
23898
  const closeContextPicker = _react.useCallback.call(void 0, () => {
24217
23899
  if (mentionActiveRef.current) {
24218
- _optionalChain([chatInputRef, 'access', _796 => _796.current, 'optionalAccess', _797 => _797.removeMentionTrigger, 'call', _798 => _798()]);
23900
+ _optionalChain([chatInputRef, 'access', _787 => _787.current, 'optionalAccess', _788 => _788.removeMentionTrigger, 'call', _789 => _789()]);
24219
23901
  }
24220
23902
  setContextPickerOpen(false);
24221
23903
  setMentionQuery(null);
@@ -24249,8 +23931,8 @@ function EmbeddableChatInner({
24249
23931
  [effectiveAssistantIcon]
24250
23932
  );
24251
23933
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
24252
- 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;
24253
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _804 => _804.avatarUrl, 'optionalAccess', _805 => _805.trim, 'call', _806 => _806()]) || void 0 : void 0;
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;
24254
23936
  const messages = _react.useMemo.call(void 0, () => {
24255
23937
  const cache = timestampCache;
24256
23938
  const seenIds = /* @__PURE__ */ new Set();
@@ -24409,7 +24091,7 @@ function EmbeddableChatInner({
24409
24091
  const hasMessages = messages.length > 0;
24410
24092
  const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
24411
24093
  const dialogsLoadError = dialogsError && dialogs.length === 0;
24412
- const hasConversation = hasMessages || isOpeningDialog || isViewingArchived || (previewMode || activeMode === "guide" && dialogsManaged === true) && isMessagesLoading;
24094
+ const hasConversation = hasMessages || isOpeningDialog || isViewingArchived || previewMode && isMessagesLoading;
24413
24095
  const messagesInitialLoading = isMessagesLoading && !hasMessages;
24414
24096
  const contentViewKey = hasConversation ? "conversation" : activeMode;
24415
24097
  const isGuideEmpty = !hasConversation && activeMode === "guide";
@@ -24439,9 +24121,9 @@ function EmbeddableChatInner({
24439
24121
  const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
24440
24122
  const lastSources = _react.useMemo.call(void 0, () => {
24441
24123
  if (chatLoading) return void 0;
24442
- const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _807 => _807.sources]);
24124
+ const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _798 => _798.sources]);
24443
24125
  if (!sources || sources.length === 0) return void 0;
24444
- const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _808 => _808.content]) || "";
24126
+ const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _799 => _799.content]) || "";
24445
24127
  const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map((m) => parseInt(m[1], 10));
24446
24128
  const seenOrder = /* @__PURE__ */ new Map();
24447
24129
  citationOrder.forEach((idx) => {
@@ -24454,16 +24136,20 @@ function EmbeddableChatInner({
24454
24136
  const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
24455
24137
  const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
24456
24138
  const [panelWidth, setPanelWidth] = _react.useState.call(void 0, 0);
24139
+ const panelMeasureRef = _react.useRef.call(void 0, null);
24457
24140
  _react.useEffect.call(void 0, () => {
24458
- if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
24141
+ const el = panelMeasureRef.current;
24142
+ if (!el || typeof ResizeObserver === "undefined") return void 0;
24459
24143
  const ro = new ResizeObserver((entries) => {
24460
- const w = _optionalChain([entries, 'access', _809 => _809[0], 'optionalAccess', _810 => _810.contentRect, 'optionalAccess', _811 => _811.width]);
24144
+ const w = _optionalChain([entries, 'access', _800 => _800[0], 'optionalAccess', _801 => _801.contentRect, 'optionalAccess', _802 => _802.width]);
24461
24145
  if (typeof w === "number") setPanelWidth(w);
24462
24146
  });
24463
- ro.observe(panelBoundary);
24147
+ ro.observe(el);
24148
+ setPanelWidth(el.clientWidth);
24464
24149
  return () => ro.disconnect();
24465
- }, [panelBoundary]);
24150
+ }, []);
24466
24151
  const setPanelNode = _react.useCallback.call(void 0, (node) => {
24152
+ panelMeasureRef.current = node;
24467
24153
  setPanelBoundary(node);
24468
24154
  }, []);
24469
24155
  const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
@@ -24487,7 +24173,7 @@ function EmbeddableChatInner({
24487
24173
  });
24488
24174
  }, []);
24489
24175
  const [railSearchOpen, setRailSearchOpen] = _react.useState.call(void 0, false);
24490
- const splitEligible = historyListMode;
24176
+ const splitEligible = activeMode === "mingo";
24491
24177
  const canSplit = panelWidth >= SPLIT_MIN_WIDTH;
24492
24178
  const wideMingo = splitEligible && canSplit && !previewMode;
24493
24179
  const splitActive = wideMingo && !railCollapsed;
@@ -24495,21 +24181,20 @@ function EmbeddableChatInner({
24495
24181
  const showWideHeader = wideMingo || railPresence.mounted;
24496
24182
  const [composeOpen, setComposeOpen] = _react.useState.call(void 0, false);
24497
24183
  if (hasConversation && composeOpen) setComposeOpen(false);
24498
- const isMingoMode = historyListMode;
24499
- const guideListIsEmpty = activeMode === "guide" && dialogsManaged === true && dialogs.length === 0 && !dialogsInitialLoading && !mingoCaps.searchQuery;
24500
- const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !guideListIsEmpty;
24184
+ const isMingoMode = activeMode === "mingo";
24185
+ const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen;
24501
24186
  const headerShowBack = hasConversation || guideCanReturnToMingo;
24502
- const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _812 => _812.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats";
24187
+ const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _803 => _803.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats";
24503
24188
  const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
24504
24189
  const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
24505
24190
  const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
24506
24191
  const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
24507
24192
  const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
24508
- const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _813 => _813.onCopyLink, 'optionalCall', _814 => _814(activeDialog)]) : void 0;
24193
+ const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _804 => _804.onCopyLink, 'optionalCall', _805 => _805(activeDialog)]) : void 0;
24509
24194
  const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
24510
- const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _815 => _815.owner]) : void 0;
24511
- const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _816 => _816.name, 'optionalAccess', _817 => _817.trim, 'call', _818 => _818()]) || headerUserName;
24512
- 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;
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;
24513
24198
  const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
24514
24199
  const handleNewChat = _react.useCallback.call(void 0, () => {
24515
24200
  resetToNewChat();
@@ -24529,12 +24214,10 @@ function EmbeddableChatInner({
24529
24214
  headerOnRename && { id: "rename", label: "Rename chat", onClick: headerOnRename },
24530
24215
  headerOnArchive && { id: "archive", label: "Archive chat", onClick: headerOnArchive }
24531
24216
  ].filter(Boolean);
24532
- const narrowMingoEmpty = isMingoMode && !hasConversation && !archiveOpen && !guideListIsEmpty;
24217
+ const narrowMingoEmpty = isMingoMode && !hasConversation && !archiveOpen;
24533
24218
  const narrowHeaderProps = narrowMingoEmpty ? composeOpen ? {
24534
24219
  showBack: true,
24535
- // Guide's compose view is its own welcome (assistant name), not a
24536
- // Mingo "New Chat".
24537
- title: isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat",
24220
+ title: "New Chat",
24538
24221
  subtitle: headerUserName,
24539
24222
  avatar: headerAvatar,
24540
24223
  backAriaLabel: "Back to chats",
@@ -24651,13 +24334,13 @@ function EmbeddableChatInner({
24651
24334
  ),
24652
24335
  /* @__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: [
24653
24336
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
24654
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate leading-tight text-ods-text-primary text-h3", children: headerShowBack || isGuideEmpty ? headerTitle : "New Chat" }),
24337
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate leading-tight text-ods-text-primary text-h3", children: headerShowBack ? headerTitle : "New Chat" }),
24655
24338
  headerPersonName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate leading-tight text-ods-text-secondary text-h6", children: headerPersonName })
24656
24339
  ] }),
24657
24340
  headerAvatar ? (
24658
24341
  // Owner avatar at the title cell's right edge (Figma 113:63273).
24659
24342
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
24660
- _chunkUQEOAPAIcjs.SquareAvatar,
24343
+ _chunkWCBRZCU4cjs.SquareAvatar,
24661
24344
  {
24662
24345
  variant: "round",
24663
24346
  sizePx: 32,
@@ -24841,9 +24524,9 @@ function EmbeddableChatInner({
24841
24524
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
24842
24525
  subtitleLoading: emptyStateLoading,
24843
24526
  ...guideWelcome,
24844
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _827 => _827.title]))),
24845
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _828 => _828.icon]))),
24846
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _829 => _829.quickActions]), () => ( guideSuggestedActions)),
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)),
24847
24530
  onQuickAction: (action) => {
24848
24531
  setQuickActionPreview(null);
24849
24532
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -24917,8 +24600,8 @@ function EmbeddableChatInner({
24917
24600
  selectedContextItems: contextItems,
24918
24601
  onToggleContextItem: toggleContextItem,
24919
24602
  onRemoveContextItem: removeContextItem,
24920
- contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _830 => _830.items]),
24921
- onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _831 => _831.onRemove]),
24603
+ contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _821 => _821.items]),
24604
+ onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _822 => _822.onRemove]),
24922
24605
  contextPickerOpen,
24923
24606
  onOpenContextPicker: openContextPicker,
24924
24607
  onCloseContextPicker: closeContextPicker,
@@ -24973,7 +24656,7 @@ function EmbeddableChatInner({
24973
24656
  resizable: true,
24974
24657
  minSize: 480,
24975
24658
  maxSize: 1600,
24976
- defaultSize: drawerDefaultWidth(historyListMode),
24659
+ defaultSize: drawerDefaultWidth(),
24977
24660
  storageKey: DRAWER_WIDTH_KEY,
24978
24661
  resizeAriaLabel: "Resize chat panel",
24979
24662
  overlayClassName: "mingo-chat-overlay",
@@ -25379,7 +25062,5 @@ function EmbeddableChatInner({
25379
25062
 
25380
25063
 
25381
25064
 
25382
-
25383
-
25384
- 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;
25385
- //# sourceMappingURL=chunk-5PPYXXUO.cjs.map
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