@flamingo-stack/openframe-frontend-core 0.0.802 → 0.0.804

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 (247) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-K6HYMHL6.cjs → case-study-card-MEWJNF4N.cjs} +5 -5
  3. package/dist/{chunk-DSIIRR3G.cjs → chunk-2NVIGBJC.cjs} +80 -80
  4. package/dist/{chunk-HRMLGU6A.cjs → chunk-3EPG56RK.cjs} +8 -8
  5. package/dist/{chunk-UYGXJ5SQ.cjs → chunk-3WNCFZGN.cjs} +2 -2
  6. package/dist/{chunk-2JCY5KQL.cjs → chunk-4W77VLQV.cjs} +4 -4
  7. package/dist/{chunk-M7E7ILE5.cjs → chunk-55TGW6BF.cjs} +6 -6
  8. package/dist/{chunk-E56LN23H.cjs → chunk-66ZQ7LDR.cjs} +73 -48
  9. package/dist/{chunk-VMQAJIQC.cjs → chunk-6JRQ57DU.cjs} +884 -895
  10. package/dist/{chunk-A7NRENMU.cjs → chunk-6UGNFMZB.cjs} +36 -36
  11. package/dist/{chunk-Y5XHMEBB.cjs → chunk-76NE67PK.cjs} +5 -5
  12. package/dist/{chunk-NCQJIYDN.cjs → chunk-AC5EBHAX.cjs} +28 -28
  13. package/dist/{chunk-OG4XH6C5.cjs → chunk-AZJYMTBS.cjs} +33 -33
  14. package/dist/{chunk-D3IQHAGL.cjs → chunk-BVSZTKI3.cjs} +34 -21
  15. package/dist/{chunk-7E4BC3AF.cjs → chunk-F2VN3UUB.cjs} +485 -513
  16. package/dist/{chunk-DTBIIFZG.cjs → chunk-FLW2VL5W.cjs} +21 -21
  17. package/dist/{chunk-FS4TVAE7.cjs → chunk-FQ4LYYBI.cjs} +52 -52
  18. package/dist/{chunk-VVLL37EM.cjs → chunk-GAHXURKJ.cjs} +6 -6
  19. package/dist/{chunk-7MV23NNT.cjs → chunk-JLKGLPDC.cjs} +109 -21
  20. package/dist/{chunk-3NGJ7NPT.cjs → chunk-KVJKKVB3.cjs} +7 -7
  21. package/dist/{chunk-52NI57KM.cjs → chunk-LZIQXGAW.cjs} +91 -88
  22. package/dist/{chunk-DYDS2P5G.cjs → chunk-MEDSJCEX.cjs} +4 -4
  23. package/dist/{chunk-FFRFKWTZ.cjs → chunk-MHH7CHNI.cjs} +17 -14
  24. package/dist/{chunk-CRVXQYUZ.cjs → chunk-NBLQFJ4I.cjs} +100 -99
  25. package/dist/{chunk-YD344MMX.cjs → chunk-NXJ3O4WO.cjs} +15 -15
  26. package/dist/{chunk-YBTORXFY.cjs → chunk-PRCGRDHV.cjs} +40 -25
  27. package/dist/{chunk-75BFVMNA.cjs → chunk-QPBP7FKI.cjs} +52 -52
  28. package/dist/{chunk-ZPVFFPQM.cjs → chunk-RIRIA3FO.cjs} +4 -4
  29. package/dist/{chunk-XR323UBY.cjs → chunk-STLJCAIZ.cjs} +6 -3
  30. package/dist/{chunk-6UKH22NQ.cjs → chunk-TGOJHOQR.cjs} +2 -1
  31. package/dist/{chunk-FAUVDMH4.cjs → chunk-THY2XVGY.cjs} +198 -164
  32. package/dist/{chunk-6GCXQIUU.cjs → chunk-TT64NRFU.cjs} +4 -4
  33. package/dist/{chunk-3W2PBWD5.cjs → chunk-TTERV57X.cjs} +4 -4
  34. package/dist/{chunk-A7IT7MZO.cjs → chunk-UCBR27JM.cjs} +13 -13
  35. package/dist/{chunk-KVGWOJCX.cjs → chunk-V3T5MDJV.cjs} +2 -2
  36. package/dist/{chunk-5RGGUQ4Y.cjs → chunk-VXXOUM2K.cjs} +67 -1
  37. package/dist/{chunk-EJVJDLYC.cjs → chunk-WSKMV2QS.cjs} +3 -3
  38. package/dist/{chunk-2BUSXRZ7.cjs → chunk-XXARXK62.cjs} +26 -26
  39. package/dist/{chunk-HATRCNXJ.cjs → chunk-XYZBN6D7.cjs} +2 -2
  40. package/dist/{chunk-YMPCACQX.cjs → chunk-Z6Y5X5SF.cjs} +41 -41
  41. package/dist/{cloud-tenants-3SWYRUXB.cjs → cloud-tenants-LRXMISV4.cjs} +19 -19
  42. package/dist/components/agent-mark.d.ts.map +1 -1
  43. package/dist/components/agent-mark.js +2 -2
  44. package/dist/components/case-studies/index.cjs +35 -35
  45. package/dist/components/chat/approval-batch-message.d.ts +3 -1
  46. package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
  47. package/dist/components/chat/approval-batch-message.js +88 -0
  48. package/dist/components/chat/chat-composer.d.ts +3 -1
  49. package/dist/components/chat/chat-composer.d.ts.map +1 -1
  50. package/dist/components/chat/chat-composer.js +2 -0
  51. package/dist/components/chat/chat-context-memory-bar.d.ts +7 -1
  52. package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
  53. package/dist/components/chat/chat-context-memory-bar.js +11 -5
  54. package/dist/components/chat/chat-message-row.d.ts.map +1 -1
  55. package/dist/components/chat/chat-message-row.js +3 -2
  56. package/dist/components/chat/embeddable-chat.d.ts +3 -0
  57. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  58. package/dist/components/chat/embeddable-chat.js +1 -0
  59. package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
  60. package/dist/components/chat/entity-cards/admin-content-card.js +2 -1
  61. package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
  62. package/dist/components/chat/entity-cards/blog-card.js +6 -6
  63. package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts.map +1 -1
  64. package/dist/components/chat/entity-cards/blog-image-placeholder.js +2 -1
  65. package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
  66. package/dist/components/chat/entity-cards/case-study-card.js +10 -9
  67. package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
  68. package/dist/components/chat/entity-cards/customer-interview-card.js +8 -7
  69. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  70. package/dist/components/chat/entity-cards/dispatch.js +12 -1
  71. package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
  72. package/dist/components/chat/entity-cards/employee-entry-card.js +3 -2
  73. package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
  74. package/dist/components/chat/entity-cards/entity-portrait-card.js +7 -5
  75. package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
  76. package/dist/components/chat/entity-cards/investor-update-card.js +2 -1
  77. package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
  78. package/dist/components/chat/entity-cards/onboarding-guide-card.js +13 -2
  79. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  80. package/dist/components/chat/entity-cards/program-card.js +17 -5
  81. package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
  82. package/dist/components/chat/entity-cards/roadmap-card.js +5 -4
  83. package/dist/components/chat/index.cjs +15 -15
  84. package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
  85. package/dist/components/chat/mingo-info-card.js +3 -2
  86. package/dist/components/contact/index.cjs +20 -20
  87. package/dist/components/docs/index.cjs +23 -23
  88. package/dist/components/embeds/index.cjs +20 -20
  89. package/dist/components/embeds/markdown-image.d.ts.map +1 -1
  90. package/dist/components/embeds/markdown-image.js +2 -1
  91. package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
  92. package/dist/components/embeds/og-link-preview.js +17 -6
  93. package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
  94. package/dist/components/embeds/twitter-embed-client.js +3 -2
  95. package/dist/components/faq/index.cjs +21 -21
  96. package/dist/components/features/board/ticket-card.js +5 -5
  97. package/dist/components/features/index.cjs +19 -19
  98. package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
  99. package/dist/components/features/media-gallery-manager.js +2 -1
  100. package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
  101. package/dist/components/features/notifications/notification-tile.js +3 -2
  102. package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
  103. package/dist/components/features/parallax-image-showcase.js +9 -35
  104. package/dist/components/features/select-button.d.ts.map +1 -1
  105. package/dist/components/features/select-button.js +3 -2
  106. package/dist/components/features/video-hover-preview.d.ts +1 -1
  107. package/dist/components/features/video-hover-preview.d.ts.map +1 -1
  108. package/dist/components/features/video-hover-preview.js +2 -1
  109. package/dist/components/features/video.d.ts.map +1 -1
  110. package/dist/components/features/video.js +13 -1
  111. package/dist/components/features/walkthrough-video.d.ts.map +1 -1
  112. package/dist/components/features/walkthrough-video.js +3 -3
  113. package/dist/components/help-center-pages/index.cjs +121 -121
  114. package/dist/components/hero-image-uploader.d.ts.map +1 -1
  115. package/dist/components/hero-image-uploader.js +12 -1
  116. package/dist/components/icon-display.d.ts.map +1 -1
  117. package/dist/components/icon-display.js +2 -1
  118. package/dist/components/index.cjs +137 -91
  119. package/dist/components/layout/page-layout.d.ts +1 -1
  120. package/dist/components/layout/page-layout.d.ts.map +1 -1
  121. package/dist/components/layout/title-block.d.ts +4 -2
  122. package/dist/components/layout/title-block.d.ts.map +1 -1
  123. package/dist/components/layout/title-block.js +21 -2
  124. package/dist/components/media-carousel.d.ts.map +1 -1
  125. package/dist/components/media-carousel.js +2 -1
  126. package/dist/components/meeting-scheduler/index.cjs +85 -85
  127. package/dist/components/navigation/index.cjs +22 -22
  128. package/dist/components/onboarding-guides/index.cjs +22 -22
  129. package/dist/components/platform/ScriptInfoSection.d.ts.map +1 -1
  130. package/dist/components/platform/ScriptInfoSection.js +12 -1
  131. package/dist/components/product-demo/index.cjs +30 -30
  132. package/dist/components/related-content/index.cjs +11 -11
  133. package/dist/components/shared/media-gallery-strip.d.ts.map +1 -1
  134. package/dist/components/shared/media-gallery-strip.js +3 -2
  135. package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
  136. package/dist/components/shared/product-release/product-release-card.js +13 -2
  137. package/dist/components/tickets/index.cjs +26 -26
  138. package/dist/components/ui/avatar-stack.d.ts.map +1 -1
  139. package/dist/components/ui/avatar-stack.js +4 -4
  140. package/dist/components/ui/data-table/data-table-body.d.ts +6 -1
  141. package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
  142. package/dist/components/ui/data-table/data-table-body.js +3 -1
  143. package/dist/components/ui/device-card.d.ts +6 -1
  144. package/dist/components/ui/device-card.d.ts.map +1 -1
  145. package/dist/components/ui/device-card.js +2 -1
  146. package/dist/components/ui/entity-image.d.ts.map +1 -1
  147. package/dist/components/ui/entity-image.js +3 -2
  148. package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
  149. package/dist/components/ui/image-gallery-modal.js +2 -1
  150. package/dist/components/ui/image-uploader.d.ts.map +1 -1
  151. package/dist/components/ui/image-uploader.js +2 -1
  152. package/dist/components/ui/index.cjs +37 -19
  153. package/dist/components/ui/index.d.ts +1 -0
  154. package/dist/components/ui/index.d.ts.map +1 -1
  155. package/dist/components/ui/index.js +1 -0
  156. package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
  157. package/dist/components/ui/markdown/base-components.js +2 -1
  158. package/dist/components/ui/page-actions.d.ts.map +1 -1
  159. package/dist/components/ui/page-actions.js +15 -12
  160. package/dist/components/ui/photo-wall.d.ts +7 -3
  161. package/dist/components/ui/photo-wall.d.ts.map +1 -1
  162. package/dist/components/ui/photo-wall.js +3 -4
  163. package/dist/components/ui/square-avatar.d.ts +4 -1
  164. package/dist/components/ui/square-avatar.d.ts.map +1 -1
  165. package/dist/components/ui/square-avatar.js +2 -1
  166. package/dist/components/user-summary-stub.d.ts +1 -1
  167. package/dist/components/user-summary-stub.d.ts.map +1 -1
  168. package/dist/components/user-summary-stub.js +16 -6
  169. package/dist/components/vendor-display-button.d.ts.map +1 -1
  170. package/dist/components/vendor-display-button.js +13 -3
  171. package/dist/components/vendor-icon.d.ts +7 -4
  172. package/dist/components/vendor-icon.d.ts.map +1 -1
  173. package/dist/components/vendor-icon.js +22 -71
  174. package/dist/{devices-MQILRW53.cjs → devices-CETR72XY.cjs} +20 -20
  175. package/dist/{embeddable-chat-XZDZOHFY.cjs → embeddable-chat-GHBCX2BY.cjs} +85 -84
  176. package/dist/hooks/index.cjs +6 -6
  177. package/dist/hooks/ui/use-image-edge-color.d.ts.map +1 -1
  178. package/dist/hooks/ui/use-image-edge-color.js +4 -3
  179. package/dist/image-sizes.cjs +68 -0
  180. package/dist/index.cjs +43 -25
  181. package/dist/{knowledge-WQ3ABXZC.cjs → knowledge-A2MWEF23.cjs} +20 -20
  182. package/dist/{logs-XRSJGB3I.cjs → logs-47JODA6C.cjs} +27 -27
  183. package/dist/{policies-Q67ZXAGY.cjs → policies-OPIDR6XF.cjs} +23 -23
  184. package/dist/{remote-session-4LYKEZSY.cjs → remote-session-IQTPEG63.cjs} +8 -8
  185. package/dist/{scripts-YX324R4S.cjs → scripts-4MQGJWFP.cjs} +26 -26
  186. package/dist/{software-update-PHMXJVAC.cjs → software-update-MQIGPBZ6.cjs} +23 -23
  187. package/dist/styles/image-sizes.d.ts +110 -0
  188. package/dist/styles/image-sizes.d.ts.map +1 -0
  189. package/dist/styles/image-sizes.js +66 -0
  190. package/dist/{tickets-board-3FBVYSXR.cjs → tickets-board-QF5JNSH2.cjs} +11 -11
  191. package/eslint-config/base.js +12 -0
  192. package/eslint-config/image-sizes.js +51 -0
  193. package/package.json +8 -1
  194. package/src/components/agent-mark.tsx +3 -4
  195. package/src/components/chat/approval-batch-message.tsx +109 -1
  196. package/src/components/chat/chat-composer.tsx +4 -0
  197. package/src/components/chat/chat-context-memory-bar.tsx +28 -5
  198. package/src/components/chat/chat-message-row.tsx +3 -2
  199. package/src/components/chat/embeddable-chat.tsx +4 -0
  200. package/src/components/chat/entity-cards/admin-content-card.tsx +2 -1
  201. package/src/components/chat/entity-cards/blog-card.tsx +6 -6
  202. package/src/components/chat/entity-cards/blog-image-placeholder.tsx +2 -1
  203. package/src/components/chat/entity-cards/case-study-card.tsx +10 -9
  204. package/src/components/chat/entity-cards/customer-interview-card.tsx +8 -7
  205. package/src/components/chat/entity-cards/dispatch.tsx +9 -1
  206. package/src/components/chat/entity-cards/employee-entry-card.tsx +3 -2
  207. package/src/components/chat/entity-cards/entity-portrait-card.tsx +7 -5
  208. package/src/components/chat/entity-cards/investor-update-card.tsx +2 -1
  209. package/src/components/chat/entity-cards/onboarding-guide-card.tsx +10 -2
  210. package/src/components/chat/entity-cards/program-card.tsx +14 -5
  211. package/src/components/chat/entity-cards/roadmap-card.tsx +5 -4
  212. package/src/components/chat/mingo-info-card.tsx +3 -2
  213. package/src/components/embeds/markdown-image.tsx +2 -1
  214. package/src/components/embeds/og-link-preview.tsx +14 -6
  215. package/src/components/embeds/twitter-embed-client.tsx +3 -2
  216. package/src/components/features/board/ticket-card.tsx +7 -6
  217. package/src/components/features/media-gallery-manager.tsx +2 -2
  218. package/src/components/features/notifications/notification-tile.tsx +3 -2
  219. package/src/components/features/parallax-image-showcase.tsx +9 -26
  220. package/src/components/features/select-button.tsx +3 -2
  221. package/src/components/features/video-hover-preview.tsx +3 -2
  222. package/src/components/features/video.tsx +10 -1
  223. package/src/components/features/walkthrough-video.tsx +7 -10
  224. package/src/components/hero-image-uploader.tsx +9 -1
  225. package/src/components/icon-display.tsx +2 -1
  226. package/src/components/layout/page-layout.tsx +1 -1
  227. package/src/components/layout/title-block.tsx +22 -3
  228. package/src/components/media-carousel.tsx +2 -1
  229. package/src/components/platform/ScriptInfoSection.tsx +9 -1
  230. package/src/components/shared/media-gallery-strip.tsx +4 -2
  231. package/src/components/shared/product-release/product-release-card.tsx +10 -2
  232. package/src/components/ui/avatar-stack.tsx +6 -6
  233. package/src/components/ui/data-table/data-table-body.tsx +9 -0
  234. package/src/components/ui/device-card.tsx +7 -1
  235. package/src/components/ui/entity-image.tsx +3 -2
  236. package/src/components/ui/image-gallery-modal.tsx +2 -1
  237. package/src/components/ui/image-uploader.tsx +2 -1
  238. package/src/components/ui/index.ts +1 -0
  239. package/src/components/ui/markdown/base-components.tsx +2 -1
  240. package/src/components/ui/page-actions.tsx +28 -14
  241. package/src/components/ui/photo-wall.tsx +10 -14
  242. package/src/components/ui/square-avatar.tsx +6 -3
  243. package/src/components/user-summary-stub.tsx +14 -7
  244. package/src/components/vendor-display-button.tsx +10 -3
  245. package/src/components/vendor-icon.tsx +31 -97
  246. package/src/hooks/ui/use-image-edge-color.ts +8 -4
  247. package/src/styles/image-sizes.ts +114 -0
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
 
20
- var _chunk7MV23NNTcjs = require('./chunk-7MV23NNT.cjs');
20
+ var _chunkJLKGLPDCcjs = require('./chunk-JLKGLPDC.cjs');
21
21
 
22
22
 
23
23
  var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
@@ -38,7 +38,7 @@ var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
38
38
 
39
39
 
40
40
 
41
- var _chunk3NGJ7NPTcjs = require('./chunk-3NGJ7NPT.cjs');
41
+ var _chunkKVJKKVB3cjs = require('./chunk-KVJKKVB3.cjs');
42
42
 
43
43
 
44
44
 
@@ -248,7 +248,7 @@ var _chunk7WT2C5YYcjs = require('./chunk-7WT2C5YY.cjs');
248
248
  var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
249
249
 
250
250
 
251
- var _chunkHATRCNXJcjs = require('./chunk-HATRCNXJ.cjs');
251
+ var _chunkXYZBN6D7cjs = require('./chunk-XYZBN6D7.cjs');
252
252
 
253
253
 
254
254
  var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
@@ -292,7 +292,7 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
292
292
 
293
293
 
294
294
 
295
- var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
295
+ var _chunkTHY2XVGYcjs = require('./chunk-THY2XVGY.cjs');
296
296
 
297
297
 
298
298
 
@@ -321,10 +321,10 @@ var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
321
321
 
322
322
 
323
323
 
324
- var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
324
+ var _chunkPRCGRDHVcjs = require('./chunk-PRCGRDHV.cjs');
325
325
 
326
326
 
327
- var _chunkVVLL37EMcjs = require('./chunk-VVLL37EM.cjs');
327
+ var _chunkGAHXURKJcjs = require('./chunk-GAHXURKJ.cjs');
328
328
 
329
329
 
330
330
 
@@ -332,7 +332,7 @@ var _chunkVVLL37EMcjs = require('./chunk-VVLL37EM.cjs');
332
332
 
333
333
 
334
334
 
335
- var _chunk6UKH22NQcjs = require('./chunk-6UKH22NQ.cjs');
335
+ var _chunkTGOJHOQRcjs = require('./chunk-TGOJHOQR.cjs');
336
336
 
337
337
 
338
338
  var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
@@ -348,7 +348,9 @@ var _chunkV4FXUIMHcjs = require('./chunk-V4FXUIMH.cjs');
348
348
  var _chunkSZHDXXMKcjs = require('./chunk-SZHDXXMK.cjs');
349
349
 
350
350
 
351
- var _chunk5RGGUQ4Ycjs = require('./chunk-5RGGUQ4Y.cjs');
351
+
352
+
353
+ var _chunkVXXOUM2Kcjs = require('./chunk-VXXOUM2K.cjs');
352
354
 
353
355
 
354
356
 
@@ -379,6 +381,7 @@ var _chunkLKQ33CMYcjs = require('./chunk-LKQ33CMY.cjs');
379
381
 
380
382
 
381
383
 
384
+
382
385
  var _chunk4WIJI4AKcjs = require('./chunk-4WIJI4AK.cjs');
383
386
 
384
387
 
@@ -1111,7 +1114,7 @@ var MarkdownContentImage = ({ src, alt }) => {
1111
1114
  alt: _nullishCoalesce(alt, () => ( "No image available")),
1112
1115
  width: 400,
1113
1116
  height: 400,
1114
- sizes: "(max-width: 400px) 100vw, 400px",
1117
+ sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.inline,
1115
1118
  className: "h-auto max-h-[400px] w-auto max-w-full rounded-lg object-contain",
1116
1119
  style: { width: "auto", height: "auto" }
1117
1120
  }
@@ -3283,7 +3286,7 @@ function onAskAiIntent(run) {
3283
3286
 
3284
3287
  // src/components/chat/chat-appearance-context.tsx
3285
3288
 
3286
- var ChatAppearanceContext = _react.createContext.call(void 0, _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.CLASSIC);
3289
+ var ChatAppearanceContext = _react.createContext.call(void 0, _chunkKVJKKVB3cjs.CHAT_APPEARANCE.CLASSIC);
3287
3290
  function useChatAppearance() {
3288
3291
  return _react.useContext.call(void 0, ChatAppearanceContext);
3289
3292
  }
@@ -3322,7 +3325,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3322
3325
  ...props
3323
3326
  }, ref) => {
3324
3327
  const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
3325
- const isV2 = useChatAppearance() === _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2;
3328
+ const isV2 = useChatAppearance() === _chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2;
3326
3329
  const handleApprove = async () => {
3327
3330
  setIsProcessing(true);
3328
3331
  try {
@@ -3345,7 +3348,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3345
3348
  {
3346
3349
  ref,
3347
3350
  className: _chunk7JWFMAQBcjs.cn.call(void 0,
3348
- _chunk7MV23NNTcjs.CHAT_BLOCK_CLASS,
3351
+ _chunkJLKGLPDCcjs.CHAT_BLOCK_CLASS,
3349
3352
  // v2: the thread owns the space below the card.
3350
3353
  !isV2 && "mb-[var(--spacing-system-xsf)]",
3351
3354
  className
@@ -3353,7 +3356,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3353
3356
  ...props,
3354
3357
  children: [
3355
3358
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _49 => _49.explanation, 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]) || "Approval required" }),
3356
- showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ApprovalWaitingLine, {}),
3359
+ showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ApprovalWaitingLine, {}),
3357
3360
  !showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
3358
3361
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3359
3362
  _chunkAHBTZ7DNcjs.Button,
@@ -3385,14 +3388,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3385
3388
  children: "Reject"
3386
3389
  }
3387
3390
  )
3388
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3391
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3389
3392
  ]
3390
3393
  }
3391
3394
  );
3392
3395
  }
3393
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunk7MV23NNTcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
3396
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkJLKGLPDCcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
3394
3397
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
3395
- showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ApprovalWaitingLine, {}),
3398
+ showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ApprovalWaitingLine, {}),
3396
3399
  !showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
3397
3400
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3398
3401
  _chunkAHBTZ7DNcjs.Button,
@@ -3424,7 +3427,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
3424
3427
  children: "Reject"
3425
3428
  }
3426
3429
  )
3427
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3430
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
3428
3431
  ] });
3429
3432
  }
3430
3433
  );
@@ -3454,7 +3457,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
3454
3457
 
3455
3458
  var AiAssistantInfo = _react.forwardRef.call(void 0,
3456
3459
  ({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
3457
- const isV2 = useChatAppearance() === _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2;
3460
+ const isV2 = useChatAppearance() === _chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2;
3458
3461
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3459
3462
  "div",
3460
3463
  {
@@ -3470,7 +3473,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
3470
3473
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
3471
3474
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
3472
3475
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
3473
- timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunk3NGJ7NPTcjs.formatTime.call(void 0, timestamp) })
3476
+ timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkKVJKKVB3cjs.formatTime.call(void 0, timestamp) })
3474
3477
  ] }),
3475
3478
  body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
3476
3479
  ] })
@@ -3585,7 +3588,7 @@ var SystemEventMessage = _react.forwardRef.call(void 0, ({ text: text2, timestam
3585
3588
  AiAssistantInfo,
3586
3589
  {
3587
3590
  ref,
3588
- leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
3591
+ leading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { alt: joined, fallback: joined, size: "lg", variant: "round", className: "shrink-0" }),
3589
3592
  title: "Technician Joined",
3590
3593
  body: `You're now chatting with ${joined}.`,
3591
3594
  timestamp,
@@ -3669,7 +3672,7 @@ var thoughtMdClasses = [
3669
3672
  var ThinkingDisplay = _react.forwardRef.call(void 0,
3670
3673
  ({ className, text: text2, isStreaming = false, ...props }, ref) => {
3671
3674
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
3672
- const { innerRef, isOverflowing, containerStyle } = _chunk7MV23NNTcjs.useCollapsible.call(void 0, {
3675
+ const { innerRef, isOverflowing, containerStyle } = _chunkJLKGLPDCcjs.useCollapsible.call(void 0, {
3673
3676
  expanded,
3674
3677
  collapsedHeight: 19,
3675
3678
  disableTransition: isStreaming
@@ -3684,7 +3687,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
3684
3687
  setExpanded(!expanded);
3685
3688
  }
3686
3689
  };
3687
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunk7MV23NNTcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3690
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkJLKGLPDCcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3688
3691
  "div",
3689
3692
  {
3690
3693
  role: "button",
@@ -3702,7 +3705,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
3702
3705
  isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
3703
3706
  ] }),
3704
3707
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: text2, textSize: "compact" }) }) }),
3705
- canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ExpandChevron, { expanded }) })
3708
+ canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ExpandChevron, { expanded }) })
3706
3709
  ]
3707
3710
  }
3708
3711
  ) });
@@ -3841,7 +3844,7 @@ function renderQuickActionIcon(icon) {
3841
3844
  if (!spec.name && !spec.url) return void 0;
3842
3845
  const accentClass = spec.accent ? ACCENT_CLASS[spec.accent] : void 0;
3843
3846
  const props = spec.accent && !accentClass ? { color: spec.accent, ..._nullishCoalesce(spec.props, () => ( {})) } : spec.props;
3844
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
3847
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: spec.name, url: spec.url, props }, size: _nullishCoalesce(spec.size, () => ( 16)), className: accentClass });
3845
3848
  }
3846
3849
  function composeChipLabel(label, lozenge) {
3847
3850
  if (!lozenge) return label;
@@ -3876,7 +3879,7 @@ function QuickActionChipSkeleton({
3876
3879
  }) {
3877
3880
  const question = variant === "question";
3878
3881
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3879
- _chunk6UKH22NQcjs.Tag,
3882
+ _chunkTGOJHOQRcjs.Tag,
3880
3883
  {
3881
3884
  ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
3882
3885
  variant: "outline",
@@ -3940,7 +3943,7 @@ function QuickActionChipButton({
3940
3943
  const tagSize = question ? "sentence" : size;
3941
3944
  if (!interactive) {
3942
3945
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3943
- _chunk6UKH22NQcjs.Tag,
3946
+ _chunkTGOJHOQRcjs.Tag,
3944
3947
  {
3945
3948
  ...markers,
3946
3949
  variant: tagVariant,
@@ -3969,7 +3972,7 @@ function QuickActionChipButton({
3969
3972
  className
3970
3973
  ),
3971
3974
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3972
- _chunk6UKH22NQcjs.Tag,
3975
+ _chunkTGOJHOQRcjs.Tag,
3973
3976
  {
3974
3977
  variant: tagVariant,
3975
3978
  size: tagSize,
@@ -4043,9 +4046,9 @@ var iconTint = {
4043
4046
  var ErrorMessageDisplay = _react.forwardRef.call(void 0,
4044
4047
  ({ className, title, details, type = "error", ...props }, ref) => {
4045
4048
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
4046
- const { innerRef, containerStyle } = _chunk7MV23NNTcjs.useCollapsible.call(void 0, { expanded });
4049
+ const { innerRef, containerStyle } = _chunkJLKGLPDCcjs.useCollapsible.call(void 0, { expanded });
4047
4050
  const hasDetails = Boolean(details);
4048
- const isV2 = useChatAppearance() === _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2;
4051
+ const isV2 = useChatAppearance() === _chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2;
4049
4052
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
4050
4053
  "div",
4051
4054
  {
@@ -4079,7 +4082,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
4079
4082
  children: title
4080
4083
  }
4081
4084
  ),
4082
- hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ExpandChevron, { expanded })
4085
+ hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ExpandChevron, { expanded })
4083
4086
  ]
4084
4087
  }
4085
4088
  ),
@@ -4127,7 +4130,7 @@ function MspOrganizationCard({
4127
4130
  const trailing = action && loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { children: action }) : action;
4128
4131
  if (footer) {
4129
4132
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, FOOTER_FRAME_CLASS, className), children: [
4130
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
4133
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "sm", variant: "square" }),
4131
4134
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TEXT_STACK_CLASS, children: [
4132
4135
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: FOOTER_CAPTION_CLASS, children: FOOTER_CAPTION }),
4133
4136
  loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/5" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: _nullishCoalesce(title, () => ( name)) })
@@ -4136,7 +4139,7 @@ function MspOrganizationCard({
4136
4139
  ] });
4137
4140
  }
4138
4141
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_FRAME_CLASS, className), children: [
4139
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4142
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { loading, src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4140
4143
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TEXT_STACK_CLASS, children: loading ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4141
4144
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/5" }),
4142
4145
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-2/5" })
@@ -4246,7 +4249,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
4246
4249
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [
4247
4250
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
4248
4251
  userIcon && !isLoading ? /* @__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,
4249
- _chunk6UKH22NQcjs.SquareAvatar,
4252
+ _chunkTGOJHOQRcjs.SquareAvatar,
4250
4253
  {
4251
4254
  loading: isLoading,
4252
4255
  src: userAvatar,
@@ -4328,9 +4331,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
4328
4331
  )
4329
4332
  ] }),
4330
4333
  (ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4331
- _chunk7MV23NNTcjs.TicketStatusTag,
4334
+ _chunkJLKGLPDCcjs.TicketStatusTag,
4332
4335
  {
4333
- ..._chunk7MV23NNTcjs.resolveStatusTagProps.call(void 0, {
4336
+ ..._chunkJLKGLPDCcjs.resolveStatusTagProps.call(void 0, {
4334
4337
  status: ticketInfo.status,
4335
4338
  statusKind: ticketInfo.statusKind,
4336
4339
  statusName: ticketInfo.statusName,
@@ -4933,11 +4936,11 @@ var remarkMentionChips = () => {
4933
4936
  // src/components/chat/tool-execution-display.tsx
4934
4937
 
4935
4938
 
4936
- var COMMAND_BODY_KEYS = new Set(_chunk7MV23NNTcjs.COMMAND_BODY_ARG_KEYS);
4939
+ var COMMAND_BODY_KEYS = new Set(_chunkJLKGLPDCcjs.COMMAND_BODY_ARG_KEYS);
4937
4940
  var ToolExecutionDisplay = _react.forwardRef.call(void 0,
4938
4941
  ({ className, message, assistantType, variant = "admin", ...props }, ref) => {
4939
4942
  const [expanded, setExpanded] = _react.useState.call(void 0, false);
4940
- const { innerRef, containerStyle } = _chunk7MV23NNTcjs.useCollapsible.call(void 0, { expanded });
4943
+ const { innerRef, containerStyle } = _chunkJLKGLPDCcjs.useCollapsible.call(void 0, { expanded });
4941
4944
  const isClient = assistantType === "fae";
4942
4945
  const isClientView = variant === "client";
4943
4946
  const isExecuting = message.type === "EXECUTING_TOOL";
@@ -4968,7 +4971,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
4968
4971
  const statusTone = isExecuting ? "working" : message.success === false ? "error" : "success";
4969
4972
  const statusLabel = _optionalChain([message, 'access', _84 => _84.statusLabel, 'optionalAccess', _85 => _85.trim, 'call', _86 => _86()]) || (isExecuting ? "Working on it" : message.success === false ? "Failed" : "Done");
4970
4973
  const headerContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
4971
- !isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHATRCNXJcjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
4974
+ !isClient && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXYZBN6D7cjs.ToolIcon, { toolType: integratedToolType, size: 16 }) }),
4972
4975
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4973
4976
  "div",
4974
4977
  {
@@ -4980,7 +4983,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
4980
4983
  }
4981
4984
  ),
4982
4985
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
4983
- !isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ExpandChevron, { expanded: isExpanded }) })
4986
+ !isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ExpandChevron, { expanded: isExpanded }) })
4984
4987
  ] });
4985
4988
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4986
4989
  "div",
@@ -4990,7 +4993,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
4990
4993
  // The command running block keeps its bordered box in both chats
4991
4994
  // (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
4992
4995
  "flex w-full flex-col overflow-hidden",
4993
- _chunk7MV23NNTcjs.CHAT_BLOCK_FRAME_CLASS,
4996
+ _chunkJLKGLPDCcjs.CHAT_BLOCK_FRAME_CLASS,
4994
4997
  className
4995
4998
  ),
4996
4999
  ...props,
@@ -5001,14 +5004,14 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
5001
5004
  // It reads as a card: what was done, then one status line under it.
5002
5005
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left", children: [
5003
5006
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
5004
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.StatusLine, { tone: statusTone, label: statusLabel })
5007
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.StatusLine, { tone: statusTone, label: statusLabel })
5005
5008
  ] })
5006
5009
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5007
5010
  hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "row", type: "button", "aria-expanded": expanded, onClick: () => setExpanded((prev) => !prev), children: headerContent }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-start gap-[var(--spacing-system-xs)] p-[var(--spacing-system-s)] text-left", children: headerContent }),
5008
5011
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: hasBody && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start gap-0 border-t border-ods-border p-[var(--spacing-system-sf)] text-h6", children: [
5009
- argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.ArgRow, { argKey: key, value }, key)),
5012
+ argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ArgRow, { argKey: key, value }, key)),
5010
5013
  hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5011
- _chunk7MV23NNTcjs.ResultBlock,
5014
+ _chunkJLKGLPDCcjs.ResultBlock,
5012
5015
  {
5013
5016
  result: message.result,
5014
5017
  className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
@@ -5040,8 +5043,8 @@ ToolExecutionDisplay.displayName = "ToolExecutionDisplay";
5040
5043
 
5041
5044
  // src/components/chat/chat-message-layout.ts
5042
5045
  var CHAT_MESSAGE_ROW_PADDING_CLASS = {
5043
- [_chunk3NGJ7NPTcjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
5044
- [_chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
5046
+ [_chunkKVJKKVB3cjs.CHAT_APPEARANCE.CLASSIC]: "py-[var(--spacing-system-s)]",
5047
+ [_chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2]: "py-[calc(var(--spacing-system-m)/2)]"
5045
5048
  };
5046
5049
  var CHAT_MESSAGE_STACK_CLASS = "grid min-w-0 grid-cols-1 gap-[var(--spacing-system-xxs)]";
5047
5050
  var CHAT_MESSAGE_HEADER_CLASS = "flex items-center gap-[var(--spacing-system-xs)]";
@@ -5082,8 +5085,8 @@ var remarkStripCitations = () => {
5082
5085
  var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
5083
5086
  var CARD_MARKER_REGEX = createCardMarkerScanner();
5084
5087
  function formatMessageTimestamp(timestamp) {
5085
- const time = _chunk3NGJ7NPTcjs.formatTime.call(void 0, timestamp);
5086
- return _chunk7MV23NNTcjs.isToday.call(void 0, timestamp) ? time : `${_chunk3NGJ7NPTcjs.formatDate.call(void 0, timestamp)} ${time}`;
5088
+ const time = _chunkKVJKKVB3cjs.formatTime.call(void 0, timestamp);
5089
+ return _chunkJLKGLPDCcjs.isToday.call(void 0, timestamp) ? time : `${_chunkKVJKKVB3cjs.formatDate.call(void 0, timestamp)} ${time}`;
5087
5090
  }
5088
5091
  function normalizeContent(content) {
5089
5092
  if (typeof content === "string") {
@@ -5139,7 +5142,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5139
5142
  const isError = role === "error";
5140
5143
  const inheritedAppearance = useChatAppearance();
5141
5144
  const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
5142
- const isV2 = appearance === _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2;
5145
+ const isV2 = appearance === _chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2;
5143
5146
  const authorType = _nullishCoalesce(authorTypeProp, () => ( (isHuman ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
5144
5147
  const isOtherPerson = isHuman && selfAuthorType !== void 0 && authorType !== "system" && authorType !== selfAuthorType;
5145
5148
  const isUser = isHuman && !isOtherPerson;
@@ -5327,9 +5330,9 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5327
5330
  const faceBox = "h-5 w-5 flex-shrink-0";
5328
5331
  const face = !showAvatar || isSystem ? null : !isHuman && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isHuman && !avatar && assistantType ? (
5329
5332
  // An agent with no picture shows its packaged mark, never initials.
5330
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
5333
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
5331
5334
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5332
- _chunk6UKH22NQcjs.SquareAvatar,
5335
+ _chunkTGOJHOQRcjs.SquareAvatar,
5333
5336
  {
5334
5337
  src: avatar || void 0,
5335
5338
  alt: displayName,
@@ -5345,7 +5348,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5345
5348
  "div",
5346
5349
  {
5347
5350
  ref,
5348
- className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2], className),
5351
+ className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[_chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2], className),
5349
5352
  ...props,
5350
5353
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SystemEventMessage, { text: name, timestamp }) })
5351
5354
  }
@@ -5357,7 +5360,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5357
5360
  ref,
5358
5361
  className: _chunk7JWFMAQBcjs.cn.call(void 0,
5359
5362
  "relative",
5360
- CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2 : _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.CLASSIC],
5363
+ CHAT_MESSAGE_ROW_PADDING_CLASS[isV2 ? _chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2 : _chunkKVJKKVB3cjs.CHAT_APPEARANCE.CLASSIC],
5361
5364
  className
5362
5365
  ),
5363
5366
  ...props,
@@ -5414,7 +5417,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
5414
5417
  );
5415
5418
  } else if (segment.type === "approval_batch") {
5416
5419
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5417
- _chunk7MV23NNTcjs.ApprovalBatchMessage,
5420
+ _chunkJLKGLPDCcjs.ApprovalBatchMessage,
5418
5421
  {
5419
5422
  data: segment.data,
5420
5423
  status: segment.status,
@@ -5500,7 +5503,7 @@ function ChatMessageSkeleton({
5500
5503
  const lines = Math.max(1, bodyLines);
5501
5504
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative", CHAT_MESSAGE_ROW_PADDING_CLASS[appearance], className), ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CHAT_MESSAGE_STACK_CLASS, children: [
5502
5505
  (showAvatar || showName) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, CHAT_MESSAGE_HEADER_CLASS, isUser && "justify-end"), children: [
5503
- showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
5506
+ showAvatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { loading: true, sizePx: CHAT_MESSAGE_FACE_PX, variant: "round" }),
5504
5507
  showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-24" }),
5505
5508
  showName && showTime && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: _chunk7JWFMAQBcjs.cn.call(void 0, "ml-auto", TIME_BAR_CLASS) })
5506
5509
  ] }),
@@ -5688,7 +5691,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
5688
5691
  approvalVariant,
5689
5692
  selfAuthorType,
5690
5693
  nameEveryTurn,
5691
- appearance = _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.CLASSIC,
5694
+ appearance = _chunkKVJKKVB3cjs.CHAT_APPEARANCE.CLASSIC,
5692
5695
  assistantIcon,
5693
5696
  pendingApprovals,
5694
5697
  hasNextPage,
@@ -6726,7 +6729,7 @@ function formatChatAttachmentMarkdownForBubble(att, viewUrlPrefix) {
6726
6729
 
6727
6730
  [Attached: ${safeName}](${url})`;
6728
6731
  }
6729
- var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkFAUVDMH4cjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
6732
+ var CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkTHY2XVGYcjs.escapeRegExp.call(void 0, CHAT_ATTACHMENT_VIEW_URL_PREFIX);
6730
6733
  var CHAT_ATTACHMENT_MARKDOWN_PATTERN = new RegExp(
6731
6734
  `^\\s*!?\\[[^\\]]*\\]\\(${CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED}[^)]+\\)\\s*$`,
6732
6735
  "gm"
@@ -7565,7 +7568,7 @@ function MingoChatHistoryRow({
7565
7568
  !loading && "cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent"
7566
7569
  ),
7567
7570
  children: [
7568
- loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: _chunk3NGJ7NPTcjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunk3NGJ7NPTcjs.SKELETON_TITLE_WIDTHS.length] }) : null,
7571
+ loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: _chunkKVJKKVB3cjs.SKELETON_TITLE_WIDTHS[skeletonIndex % _chunkKVJKKVB3cjs.SKELETON_TITLE_WIDTHS.length] }) : null,
7569
7572
  !loading && unread > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-8 min-w-8 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xsf)] text-ods-text-on-accent text-h5", children: unread > 99 ? "99+" : unread }) : null,
7570
7573
  loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7571
7574
  "span",
@@ -7635,7 +7638,7 @@ function MingoChatHistoryRow({
7635
7638
  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")
7636
7639
  ),
7637
7640
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7638
- _chunk6UKH22NQcjs.SquareAvatar,
7641
+ _chunkTGOJHOQRcjs.SquareAvatar,
7639
7642
  {
7640
7643
  variant: "round",
7641
7644
  sizePx: 24,
@@ -7691,7 +7694,7 @@ function MingoChatHistory({
7691
7694
  const isLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
7692
7695
  const groups = _react.useMemo.call(void 0, () => groupDialogs(dialogs), [dialogs]);
7693
7696
  const noSearchResults = groups.length === 0 && !!_optionalChain([searchQuery, 'optionalAccess', _167 => _167.trim, 'call', _168 => _168()]);
7694
- const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunk3NGJ7NPTcjs.useScrollFade.call(void 0, );
7697
+ const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkKVJKKVB3cjs.useScrollFade.call(void 0, );
7695
7698
  const sentinelRef = _react.useRef.call(void 0, null);
7696
7699
  const onLoadMoreRef = _react.useRef.call(void 0, onLoadMore);
7697
7700
  const isLoadingMoreRef = _react.useRef.call(void 0, isLoadingMore);
@@ -7756,8 +7759,8 @@ function MingoChatHistory({
7756
7759
  ]
7757
7760
  }
7758
7761
  ),
7759
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
7760
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
7762
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, color: "var(--color-bg-card)", className: "h-12" }),
7763
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, color: "var(--color-bg-card)", className: "h-12" })
7761
7764
  ] }) });
7762
7765
  }
7763
7766
 
@@ -7813,7 +7816,7 @@ function MingoWelcome({
7813
7816
  } catch (e7) {
7814
7817
  }
7815
7818
  }, [promoStorage, promoStorageKey]);
7816
- const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk3NGJ7NPTcjs.useScrollFade.call(void 0, );
7819
+ const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkKVJKKVB3cjs.useScrollFade.call(void 0, );
7817
7820
  const showPinnedRegion = !!dialogHistory || !historyLoading && !loadError;
7818
7821
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7819
7822
  "div",
@@ -7845,7 +7848,7 @@ function MingoWelcome({
7845
7848
  onScroll: updateScrollFade,
7846
7849
  className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
7847
7850
  children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-l)] px-[var(--spacing-system-l)] py-[var(--spacing-system-xxl)] text-center", children: [
7848
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
7851
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
7849
7852
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
7850
7853
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
7851
7854
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
@@ -7853,8 +7856,8 @@ function MingoWelcome({
7853
7856
  ] })
7854
7857
  }
7855
7858
  ),
7856
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
7857
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
7859
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
7860
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
7858
7861
  ] }) })))),
7859
7862
  showPinnedRegion && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-m)]", children: [
7860
7863
  resolvedPromo && !promoDismissed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex shrink-0 items-center gap-[var(--spacing-system-m)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)] pr-[var(--spacing-system-xl)]", children: [
@@ -7934,7 +7937,7 @@ function GuideWelcome({
7934
7937
  children,
7935
7938
  className
7936
7939
  }) {
7937
- const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunk3NGJ7NPTcjs.useScrollFade.call(void 0, );
7940
+ const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = _chunkKVJKKVB3cjs.useScrollFade.call(void 0, );
7938
7941
  const subtitleIsLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || subtitleLoading && !subtitle;
7939
7942
  const chipItems = _react.useMemo.call(void 0,
7940
7943
  () => quickActions.map((action) => ({
@@ -7970,8 +7973,8 @@ function GuideWelcome({
7970
7973
  icon && (icon.name || icon.url) ? (
7971
7974
  // Agent-mode identity glyph (chat-config Identity tab). Sized to
7972
7975
  // match the default Mingo mark (48px).
7973
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
7974
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
7976
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
7977
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
7975
7978
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
7976
7979
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
7977
7980
  subtitleIsLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4 max-w-80" }) }) : subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : null
@@ -7981,8 +7984,8 @@ function GuideWelcome({
7981
7984
  ]
7982
7985
  }
7983
7986
  ),
7984
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
7985
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
7987
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
7988
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
7986
7989
  ] }),
7987
7990
  quickActions.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7988
7991
  QuickActionWall,
@@ -8066,17 +8069,17 @@ function MingoArchiveList({
8066
8069
  className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] px-[var(--spacing-system-xs)] pt-[var(--spacing-system-mf)]",
8067
8070
  children: [
8068
8071
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 px-[var(--spacing-system-xs)] pt-[var(--spacing-system-xs)] text-ods-text-secondary text-h5", children: "Archived Chats" }),
8069
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
8072
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-xxs)] overflow-y-auto overscroll-contain pb-[var(--spacing-system-mf)]", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ChatListItemLoadingPage, { count: pageSize, trailing: true }) : dialogs.length > 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
8070
8073
  dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8071
- _chunk3NGJ7NPTcjs.ChatListItem,
8074
+ _chunkKVJKKVB3cjs.ChatListItem,
8072
8075
  {
8073
8076
  "data-loading-item": true,
8074
8077
  title: dialog.title || "Untitled Chat",
8075
8078
  onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _179 => _179(dialog.id)]),
8076
8079
  trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
8077
- dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunk7MV23NNTcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
8080
+ dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkJLKGLPDCcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
8078
8081
  dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8079
- _chunk6UKH22NQcjs.SquareAvatar,
8082
+ _chunkTGOJHOQRcjs.SquareAvatar,
8080
8083
  {
8081
8084
  variant: "round",
8082
8085
  sizePx: 24,
@@ -8140,7 +8143,7 @@ function MingoChatHeader({
8140
8143
  subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: subtitle })
8141
8144
  ] }),
8142
8145
  avatar && (avatar.name || avatar.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8143
- _chunk6UKH22NQcjs.SquareAvatar,
8146
+ _chunkTGOJHOQRcjs.SquareAvatar,
8144
8147
  {
8145
8148
  variant: "round",
8146
8149
  sizePx: 32,
@@ -8379,7 +8382,7 @@ function MingoChatRail({
8379
8382
  onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", size: "small", leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXLTOM62Pcjs.Refresh01RightIcon, {}), onClick: onRetry, children: "Try again" })
8380
8383
  ] });
8381
8384
  } else if (loading) {
8382
- list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ChatListItemLoadingPage, { count: pageSize });
8385
+ list = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ChatListItemLoadingPage, { count: pageSize });
8383
8386
  } else if (dialogs.length === 0 && !draftTitle) {
8384
8387
  list = hasSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-[var(--spacing-system-xs)] py-[var(--spacing-system-s)] text-ods-text-secondary text-h6", children: "No chats found" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8385
8388
  ChatListEmptyState,
@@ -8391,7 +8394,7 @@ function MingoChatRail({
8391
8394
  );
8392
8395
  } else {
8393
8396
  list = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
8394
- draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
8397
+ draftTitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ChatListItem, { active: true, title: draftTitle, tabIndex: -1, className: "cursor-default" }),
8395
8398
  dialogs.map((dialog) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8396
8399
  MingoChatRailRow,
8397
8400
  {
@@ -8413,13 +8416,13 @@ function MingoChatRail({
8413
8416
  ] });
8414
8417
  }
8415
8418
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8416
- _chunk3NGJ7NPTcjs.ChatNavSidebar,
8419
+ _chunkKVJKKVB3cjs.ChatNavSidebar,
8417
8420
  {
8418
8421
  className,
8419
8422
  "data-accent": "mingo",
8420
8423
  "aria-label": "Mingo chats",
8421
8424
  logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
8422
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
8425
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
8423
8426
  onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8424
8427
  _chunkAHBTZ7DNcjs.Button,
8425
8428
  {
@@ -8472,7 +8475,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems, ...prop
8472
8475
  const title = dialog.title || "Untitled Chat";
8473
8476
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), className: "group/row relative shrink-0", children: [
8474
8477
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8475
- _chunk3NGJ7NPTcjs.ChatListItem,
8478
+ _chunkKVJKKVB3cjs.ChatListItem,
8476
8479
  {
8477
8480
  active,
8478
8481
  title,
@@ -8695,8 +8698,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
8695
8698
  const save = () => {
8696
8699
  if (canSave) onSave(name.trim());
8697
8700
  };
8698
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
8699
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Rename Chat" }) }),
8701
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
8702
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: "Rename Chat" }) }),
8700
8703
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
8701
8704
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { htmlFor: "rename-chat-input", variant: "large", children: "Chat Name" }),
8702
8705
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8713,27 +8716,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
8713
8716
  }
8714
8717
  )
8715
8718
  ] }),
8716
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
8719
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
8717
8720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
8718
8721
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", type: "button", onClick: save, disabled: !canSave, className: footerBtn, children: "Save" })
8719
8722
  ] })
8720
8723
  ] });
8721
8724
  }
8722
8725
  function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
8723
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
8724
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Archive Chat" }) }),
8726
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
8727
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: "Archive Chat" }) }),
8725
8728
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be hidden from your current chats." }),
8726
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
8729
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
8727
8730
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
8728
8731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "destructive", type: "button", onClick: onConfirm, className: footerBtn, children: "Archive Chat" })
8729
8732
  ] })
8730
8733
  ] });
8731
8734
  }
8732
8735
  function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
8733
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
8734
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Unarchive Chat" }) }),
8736
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
8737
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: "Unarchive Chat" }) }),
8735
8738
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be moved back to your current chats." }),
8736
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
8739
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
8737
8740
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", type: "button", onClick: onClose, className: footerBtn, children: "Cancel" }),
8738
8741
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", type: "button", onClick: onConfirm, className: footerBtn, children: "Unarchive Chat" })
8739
8742
  ] })
@@ -8906,7 +8909,7 @@ function ChatPanelHeader({
8906
8909
  avatar && (avatar.name || avatar.avatarUrl) ? (
8907
8910
  // Owner avatar at the title cell's right edge (Figma 113:63273).
8908
8911
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8909
- _chunk6UKH22NQcjs.SquareAvatar,
8912
+ _chunkTGOJHOQRcjs.SquareAvatar,
8910
8913
  {
8911
8914
  variant: "round",
8912
8915
  sizePx: 32,
@@ -9074,8 +9077,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size = "default" }) {
9074
9077
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
9075
9078
  (!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
9076
9079
  status === "sniffing" && "Checking the file",
9077
- status === "uploading" && `${progress}% \xB7 ${_chunk6UKH22NQcjs.formatFileSize.call(void 0, file.size)}`,
9078
- status === "ready" && _chunk6UKH22NQcjs.formatFileSize.call(void 0, file.size),
9080
+ status === "uploading" && `${progress}% \xB7 ${_chunkTGOJHOQRcjs.formatFileSize.call(void 0, file.size)}`,
9081
+ status === "ready" && _chunkTGOJHOQRcjs.formatFileSize.call(void 0, file.size),
9079
9082
  status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
9080
9083
  ] })
9081
9084
  ] }),
@@ -9129,11 +9132,13 @@ function useObjectUrl(file) {
9129
9132
 
9130
9133
 
9131
9134
  var itemKey3 = (item) => `${item.type}:${item.id}`;
9135
+ var MEMORY_STRIP_CLASS = "relative flex items-center gap-[var(--spacing-system-xs)] border-b border-ods-border bg-ods-bg p-[var(--spacing-system-xs)]";
9132
9136
  function ChatContextMemoryBar({
9133
9137
  items,
9134
9138
  onRemove,
9135
9139
  resolveIcon: resolveIcon2,
9136
9140
  disabled = false,
9141
+ pending = false,
9137
9142
  className
9138
9143
  }) {
9139
9144
  const [open, setOpen] = _react.useState.call(void 0, false);
@@ -9152,7 +9157,13 @@ function ChatContextMemoryBar({
9152
9157
  document.removeEventListener("touchstart", onOutside, true);
9153
9158
  };
9154
9159
  }, [open]);
9155
- if (items.length === 0) return null;
9160
+ if (items.length === 0 && !pending) return null;
9161
+ if (items.length === 0) {
9162
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, MEMORY_STRIP_CLASS, className), children: [
9163
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48 max-w-full" }) }),
9164
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "bare", size: "icon-sm", type: "button", tabIndex: -1, className: "invisible shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 16 }) })
9165
+ ] });
9166
+ }
9156
9167
  return (
9157
9168
  // `relative` anchors the popover to this strip; `bottom-full` floats it
9158
9169
  // above, matching the context picker's placement over the input.
@@ -9160,10 +9171,7 @@ function ChatContextMemoryBar({
9160
9171
  "div",
9161
9172
  {
9162
9173
  ref: rootRef,
9163
- className: _chunk7JWFMAQBcjs.cn.call(void 0,
9164
- "relative flex items-center gap-[var(--spacing-system-xs)] border-b border-ods-border bg-ods-bg p-[var(--spacing-system-xs)]",
9165
- className
9166
- ),
9174
+ className: _chunk7JWFMAQBcjs.cn.call(void 0, MEMORY_STRIP_CLASS, className),
9167
9175
  onKeyDown: (e) => {
9168
9176
  if (e.key === "Escape" && open) {
9169
9177
  e.preventDefault();
@@ -9327,7 +9335,7 @@ var ModelDisplay = _react2.default.forwardRef(
9327
9335
  const isLoading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loading;
9328
9336
  const icon = getProviderIcon(provider);
9329
9337
  const name = displayName || modelName;
9330
- const isV2 = useChatAppearance() === _chunk3NGJ7NPTcjs.CHAT_APPEARANCE.V2;
9338
+ const isV2 = useChatAppearance() === _chunkKVJKKVB3cjs.CHAT_APPEARANCE.V2;
9331
9339
  const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
9332
9340
  if (isLoading) {
9333
9341
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, MODEL_DISPLAY_ROW_CLASS, className), ...props, children: [
@@ -9435,6 +9443,7 @@ function ChatComposer({
9435
9443
  onRemoveContextItem,
9436
9444
  contextMemoryItems,
9437
9445
  onRemoveContextMemoryItem,
9446
+ contextMemoryPending,
9438
9447
  contextPickerOpen = false,
9439
9448
  onOpenContextPicker,
9440
9449
  onCloseContextPicker,
@@ -9455,7 +9464,7 @@ function ChatComposer({
9455
9464
  }, [entityTypes]);
9456
9465
  const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
9457
9466
  const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9458
- _chunk3NGJ7NPTcjs.ChatInput,
9467
+ _chunkKVJKKVB3cjs.ChatInput,
9459
9468
  {
9460
9469
  ref: inputRef,
9461
9470
  onSend,
@@ -9523,6 +9532,7 @@ function ChatComposer({
9523
9532
  {
9524
9533
  items: memory,
9525
9534
  onRemove: onRemoveContextMemoryItem,
9535
+ pending: contextMemoryPending,
9526
9536
  resolveIcon: resolveContextIcon,
9527
9537
  disabled: sending || locked,
9528
9538
  className: "rounded-t-md"
@@ -9625,16 +9635,16 @@ function ChatArchivePage(props) {
9625
9635
 
9626
9636
  // src/components/chat/utils/execute-navigation.ts
9627
9637
  function isForeignOriginHref(href) {
9628
- return /^https?:\/\//i.test(href) && !_chunkYBTORXFYcjs.isSameOriginAbsoluteHref.call(void 0, href);
9638
+ return /^https?:\/\//i.test(href) && !_chunkPRCGRDHVcjs.isSameOriginAbsoluteHref.call(void 0, href);
9629
9639
  }
9630
9640
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
9631
- const isNewTab = runtime ? _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
9641
+ const isNewTab = runtime ? _chunkPRCGRDHVcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
9632
9642
  if (isNewTab) {
9633
9643
  if (_optionalChain([runtime, 'optionalAccess', _205 => _205.navigation, 'access', _206 => _206.openExternal])) runtime.navigation.openExternal(href);
9634
- else window.open(href, "_blank", _chunkFAUVDMH4cjs.NEW_TAB_FEATURES);
9644
+ else window.open(href, "_blank", _chunkTHY2XVGYcjs.NEW_TAB_FEATURES);
9635
9645
  return;
9636
9646
  }
9637
- const target = isForeignOriginHref(href) ? href : _chunkFAUVDMH4cjs.stripSameOriginToPath.call(void 0, href);
9647
+ const target = isForeignOriginHref(href) ? href : _chunkTHY2XVGYcjs.stripSameOriginToPath.call(void 0, href);
9638
9648
  if (target.includes("#") && _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, target, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX })) {
9639
9649
  return;
9640
9650
  }
@@ -9685,8 +9695,8 @@ function useNavLinkViaRuntime({
9685
9695
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
9686
9696
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
9687
9697
  const panel = useChatPanel();
9688
- const resolvedHref = _chunkFAUVDMH4cjs.resolveHrefForRuntime.call(void 0, href, runtime);
9689
- const isNewTab = _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
9698
+ const resolvedHref = _chunkTHY2XVGYcjs.resolveHrefForRuntime.call(void 0, href, runtime);
9699
+ const isNewTab = _chunkPRCGRDHVcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
9690
9700
  const onClick = (e) => {
9691
9701
  _optionalChain([onClickProp, 'optionalCall', _210 => _210(e)]);
9692
9702
  if (e.defaultPrevented) return;
@@ -9700,7 +9710,7 @@ function useNavLinkViaRuntime({
9700
9710
  });
9701
9711
  if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _211 => _211.closeChat])) panel.closeChat();
9702
9712
  };
9703
- const attrs = _chunkYBTORXFYcjs.newTabAnchorAttrs.call(void 0, isNewTab);
9713
+ const attrs = _chunkPRCGRDHVcjs.newTabAnchorAttrs.call(void 0, isNewTab);
9704
9714
  return {
9705
9715
  href: resolvedHref,
9706
9716
  ...attrs,
@@ -9845,7 +9855,7 @@ function UserDisplay({
9845
9855
  compact = false,
9846
9856
  className
9847
9857
  }) {
9848
- const avatarSrc = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, avatarUrl);
9858
+ const avatarSrc = _chunkTHY2XVGYcjs.useProxiedImageUrl.call(void 0, avatarUrl);
9849
9859
  if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) {
9850
9860
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9851
9861
  UserDisplaySkeleton,
@@ -9859,7 +9869,7 @@ function UserDisplay({
9859
9869
  );
9860
9870
  }
9861
9871
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, USER_ROW_CLASS, className), children: [
9862
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
9872
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: avatarSrc || void 0, fallback: name, alt: name, sizePx: size, variant: shape }),
9863
9873
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
9864
9874
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate text-ods-text-primary", compact ? "text-h6" : "text-h4"), children: name }),
9865
9875
  subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "block truncate text-ods-text-secondary text-h6", children: subtitle })
@@ -9874,7 +9884,7 @@ function UserDisplaySkeleton({
9874
9884
  className
9875
9885
  }) {
9876
9886
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, USER_ROW_CLASS, className), "aria-hidden": true, children: [
9877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
9887
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { loading: true, sizePx: size, variant: shape }),
9878
9888
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: USER_TEXT_CLASS, children: [
9879
9889
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: compact ? "h6" : "h4", className: "w-28" }),
9880
9890
  subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
@@ -10313,7 +10323,7 @@ function CardsStrip(props) {
10313
10323
  }
10314
10324
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ManagedCell, { item, ctx, cardWidthMobile, cardWidthDesktop });
10315
10325
  };
10316
- const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} break-words`, children: _chunkFAUVDMH4cjs.accentSentenceMarks.call(void 0, title) });
10326
+ const heading = showTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkTHY2XVGYcjs.SECTION_HEADING_CLASS} break-words`, children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) });
10317
10327
  if (items.length === 0) {
10318
10328
  if (!inScope || !skeleton) return null;
10319
10329
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, STRIP_ROOT_CLASS, className), children: [
@@ -10503,7 +10513,7 @@ var VIDEO_BITES_SKELETON_COUNT = Math.ceil(
10503
10513
  );
10504
10514
  function VideoBitesStrip({
10505
10515
  bites,
10506
- title = _chunkYBTORXFYcjs.DEFAULT_VIDEO_BITES_TITLE,
10516
+ title = _chunkPRCGRDHVcjs.DEFAULT_VIDEO_BITES_TITLE,
10507
10517
  showTitle = true,
10508
10518
  filterPublished = true,
10509
10519
  profile = null,
@@ -10516,7 +10526,7 @@ function VideoBitesStrip({
10516
10526
  cardHeightMobile = VIDEO_BITES_CARD_HEIGHT_MOBILE_PX,
10517
10527
  showChevrons = true,
10518
10528
  onBiteNavigate,
10519
- sortComparator = _chunkYBTORXFYcjs.sortBitesByCreatedAtDesc,
10529
+ sortComparator = _chunkPRCGRDHVcjs.sortBitesByCreatedAtDesc,
10520
10530
  skeletonCount,
10521
10531
  className
10522
10532
  }) {
@@ -10614,7 +10624,7 @@ function VideoBiteCardSkeleton({ aspect = "9:16", height, heightMobile, classNam
10614
10624
  function VideoBitesStripSkeleton({
10615
10625
  count = VIDEO_BITES_SKELETON_COUNT,
10616
10626
  aspect = "9:16",
10617
- title = _chunkYBTORXFYcjs.DEFAULT_VIDEO_BITES_TITLE,
10627
+ title = _chunkPRCGRDHVcjs.DEFAULT_VIDEO_BITES_TITLE,
10618
10628
  showTitle = true,
10619
10629
  headerSlot,
10620
10630
  cardHeightDesktop = VIDEO_BITES_CARD_HEIGHT_DESKTOP_PX,
@@ -10746,7 +10756,7 @@ function VideoBiteCard({
10746
10756
  style: biteMediaStyle(cssAspect, height, heightMobile),
10747
10757
  children: [
10748
10758
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10749
- _chunkYBTORXFYcjs.VideoHoverPreviewSurface,
10759
+ _chunkPRCGRDHVcjs.VideoHoverPreviewSurface,
10750
10760
  {
10751
10761
  url: bite.url,
10752
10762
  posterUrl: bite.thumbnail_url,
@@ -10818,7 +10828,7 @@ function EntityVideoSection({
10818
10828
  title = "Video",
10819
10829
  videoSummary,
10820
10830
  videoBites,
10821
- bitesTitle = _chunkYBTORXFYcjs.DEFAULT_VIDEO_BITES_TITLE,
10831
+ bitesTitle = _chunkPRCGRDHVcjs.DEFAULT_VIDEO_BITES_TITLE,
10822
10832
  filterPublishedBites = true,
10823
10833
  bitesProfile = null,
10824
10834
  bitesHref,
@@ -10853,7 +10863,7 @@ function EntityVideoSection({
10853
10863
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
10854
10864
  ] }),
10855
10865
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10856
- _chunkYBTORXFYcjs.Video,
10866
+ _chunkPRCGRDHVcjs.Video,
10857
10867
  {
10858
10868
  kind: fullVideoKind,
10859
10869
  url: fullVideoUrl,
@@ -10865,7 +10875,7 @@ function EntityVideoSection({
10865
10875
  }
10866
10876
  ) }),
10867
10877
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "highlights", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10868
- _chunkYBTORXFYcjs.Video,
10878
+ _chunkPRCGRDHVcjs.Video,
10869
10879
  {
10870
10880
  url: highlightVideoUrl,
10871
10881
  poster: highlightVideoThumbnail,
@@ -10874,7 +10884,7 @@ function EntityVideoSection({
10874
10884
  }
10875
10885
  ) })
10876
10886
  ] }) : fullVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10877
- _chunkYBTORXFYcjs.Video,
10887
+ _chunkPRCGRDHVcjs.Video,
10878
10888
  {
10879
10889
  kind: fullVideoKind,
10880
10890
  url: fullVideoUrl,
@@ -10885,7 +10895,7 @@ function EntityVideoSection({
10885
10895
  priority
10886
10896
  }
10887
10897
  ) : highlightVideoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10888
- _chunkYBTORXFYcjs.Video,
10898
+ _chunkPRCGRDHVcjs.Video,
10889
10899
  {
10890
10900
  url: highlightVideoUrl,
10891
10901
  poster: highlightVideoThumbnail,
@@ -10895,7 +10905,7 @@ function EntityVideoSection({
10895
10905
  }
10896
10906
  ) : null),
10897
10907
  videoSummary && MarkdownRenderer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 flex-col gap-6", children: [
10898
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkFAUVDMH4cjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
10908
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: `${_chunkTHY2XVGYcjs.SECTION_HEADING_CLASS} break-words`, children: "Summary" }),
10899
10909
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden break-words text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: videoSummary }) })
10900
10910
  ] }),
10901
10911
  videoBites && videoBites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -10914,13 +10924,13 @@ function EntityVideoSection({
10914
10924
  ] });
10915
10925
  }
10916
10926
  function EntityVideoSectionSkeleton({ tabs = false, className }) {
10917
- if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.Video, { loading: true, url: "", layout: "centered", className });
10927
+ if (!tabs) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { loading: true, url: "", layout: "centered", className });
10918
10928
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tabs, { defaultValue: "full-video", className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full", className), "aria-hidden": true, inert: true, children: [
10919
10929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, TabsList, { className: VIDEO_TAB_LIST_CLASS, children: [
10920
10930
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "full-video", className: VIDEO_TAB_TRIGGER_CLASS, children: FULL_VIDEO_TAB_LABEL }),
10921
10931
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsTrigger, { value: "highlights", className: VIDEO_TAB_TRIGGER_CLASS, children: HIGHLIGHTS_TAB_LABEL })
10922
10932
  ] }),
10923
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.Video, { loading: true, url: "", layout: "centered" }) })
10933
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabsContent, { value: "full-video", className: VIDEO_TAB_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { loading: true, url: "", layout: "centered" }) })
10924
10934
  ] });
10925
10935
  }
10926
10936
 
@@ -10967,7 +10977,7 @@ function designDocPeople(doc) {
10967
10977
  return people;
10968
10978
  }
10969
10979
  function designDocMetaLine(doc) {
10970
- return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkFAUVDMH4cjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
10980
+ return [_optionalChain([doc, 'access', _246 => _246.author, 'optionalAccess', _247 => _247.full_name]) ? `DRI ${doc.author.full_name}` : null, `updated ${_chunkTHY2XVGYcjs.formatDateShort.call(void 0, doc.updated_at)}`].filter(Boolean).join(" \xB7 ");
10971
10981
  }
10972
10982
  var DESIGN_DOC_CARD_BODY = "flex h-full flex-col gap-[var(--spacing-system-mf)] p-[var(--spacing-system-lf)]";
10973
10983
  var DESIGN_DOC_CARD_HEADER = "flex w-full items-center gap-[16px]";
@@ -10977,27 +10987,27 @@ var DESIGN_DOC_CARD_META_ROW = `flex items-center text-h5 ${_chunk4WIJI4AKcjs.TE
10977
10987
  var DESIGN_DOC_CARD_SUMMARY_ROW = `flex items-center text-h4 ${_chunk4WIJI4AKcjs.TEXT_LINES_MIN[3]}`;
10978
10988
  var DESIGN_DOC_CARD_FOOTER = "flex w-full items-center justify-between gap-2";
10979
10989
  function DesignDocCardSkeleton({ className } = {}) {
10980
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkYBTORXFYcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
10990
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkPRCGRDHVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className), "aria-hidden": true, children: [
10981
10991
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
10982
10992
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADING, children: [
10983
10993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", lines: 2, className: "w-3/4" }) }),
10984
10994
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h5", className: "w-1/3" }) })
10985
10995
  ] }),
10986
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
10996
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { loading: true, text: "", variant: "button", className: "hidden md:inline-flex" })
10987
10997
  ] }),
10988
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
10998
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { loading: true, text: "", variant: "button" }) }),
10989
10999
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", lines: 3, className: "w-full" }) }),
10990
11000
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
10991
11001
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
10992
11002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/3" }),
10993
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVVLL37EMcjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
11003
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAHXURKJcjs.AvatarStack, { loading: true, people: [], max: 1, size: "xs", className: "shrink-0" })
10994
11004
  ] })
10995
11005
  ] });
10996
11006
  }
10997
11007
  function DesignDocCard({ doc, href, target, rel, className }) {
10998
11008
  const readiness = DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)];
10999
11009
  const people = designDocPeople(doc);
11000
- const link = _chunkYBTORXFYcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
11010
+ const link = _chunkPRCGRDHVcjs.safeHref.call(void 0, _nullishCoalesce(href, () => ( null)));
11001
11011
  if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocCardSkeleton, { className });
11002
11012
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
11003
11013
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_HEADER, children: [
@@ -11006,7 +11016,7 @@ function DesignDocCard({ doc, href, target, rel, className }) {
11006
11016
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h5", children: designDocMetaLine(doc) }) })
11007
11017
  ] }),
11008
11018
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11009
- _chunkYBTORXFYcjs.StatusBadge,
11019
+ _chunkPRCGRDHVcjs.StatusBadge,
11010
11020
  {
11011
11021
  text: readiness.label,
11012
11022
  colorScheme: readiness.scheme,
@@ -11016,15 +11026,15 @@ function DesignDocCard({ doc, href, target, rel, className }) {
11016
11026
  }
11017
11027
  )
11018
11028
  ] }),
11019
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
11029
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { text: readiness.label, colorScheme: readiness.scheme, variant: "button", singleLine: true }) }),
11020
11030
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DESIGN_DOC_CARD_SUMMARY_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-ods-text-secondary text-h4", children: doc.summary || "" }) }),
11021
11031
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1" }),
11022
11032
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DESIGN_DOC_CARD_FOOTER, children: [
11023
11033
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: formatCompletionLabelWithBlockers(doc.completion) }),
11024
- people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVVLL37EMcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
11034
+ people.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGAHXURKJcjs.AvatarStack, { size: "xs", people, className: "shrink-0" }) : null
11025
11035
  ] })
11026
11036
  ] });
11027
- const outer = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkYBTORXFYcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
11037
+ const outer = _chunk7JWFMAQBcjs.cn.call(void 0, _chunkPRCGRDHVcjs.CONTENT_CARD_FRAME_CLASS, DESIGN_DOC_CARD_BODY, className);
11028
11038
  return link ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href: link, target, rel, className: outer, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: outer, children: body });
11029
11039
  }
11030
11040
 
@@ -11132,7 +11142,7 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
11132
11142
  if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GitHubActivityCardSkeleton, { variant, className });
11133
11143
  const kind = _nullishCoalesce(item.kind, () => ( "commit"));
11134
11144
  const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
11135
- const dateText = _chunk6UKH22NQcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
11145
+ const dateText = _chunkTGOJHOQRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
11136
11146
  const idLabel = formatActivityId(item.id, kind);
11137
11147
  const { display: title, reviewState } = parseGithubTitle(item.title, kind);
11138
11148
  const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
@@ -11166,26 +11176,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
11166
11176
  metaParts.push(
11167
11177
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
11168
11178
  );
11169
- const href = _chunkYBTORXFYcjs.safeHref.call(void 0, item.url);
11179
+ const href = _chunkPRCGRDHVcjs.safeHref.call(void 0, item.url);
11170
11180
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
11171
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
11172
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
11173
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
11181
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
11182
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TEXT_COL, children: [
11183
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunkPRCGRDHVcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
11174
11184
  reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
11175
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE, children: primaryText })
11185
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TITLE, children: primaryText })
11176
11186
  ] }),
11177
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
11187
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
11178
11188
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
11179
11189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
11180
11190
  ] }, i)) }) }),
11181
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkYBTORXFYcjs.COMPACT_CARD_SUMMARY, children: _chunkYBTORXFYcjs.COMPACT_CARD_ROW_FILLER }) })
11191
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_SUMMARY, children: _chunkPRCGRDHVcjs.COMPACT_CARD_ROW_FILLER }) })
11182
11192
  ] }),
11183
11193
  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
11184
11194
  ] });
11185
11195
  if (anchorProps) {
11186
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
11196
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunkPRCGRDHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
11187
11197
  }
11188
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
11198
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunkPRCGRDHVcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkPRCGRDHVcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
11189
11199
  }
11190
11200
  function GitHubActivityCardSkeleton({
11191
11201
  variant = "compact",
@@ -11193,7 +11203,7 @@ function GitHubActivityCardSkeleton({
11193
11203
  }) {
11194
11204
  if (variant === "row") {
11195
11205
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11196
- _chunkYBTORXFYcjs.ActivityRowSkeleton,
11206
+ _chunkPRCGRDHVcjs.ActivityRowSkeleton,
11197
11207
  {
11198
11208
  lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-28 shrink-0 items-center gap-2", children: [
11199
11209
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 rounded" }),
@@ -11204,7 +11214,7 @@ function GitHubActivityCardSkeleton({
11204
11214
  }
11205
11215
  );
11206
11216
  }
11207
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
11217
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.CompactCardSkeleton, { titleWidth: "w-2/3", rows: [{ width: "w-1/2" }, {}], trailingIcon: true, className });
11208
11218
  }
11209
11219
 
11210
11220
  // src/utils/url-fix.ts
@@ -11245,89 +11255,41 @@ function getVendorLogo(vendor) {
11245
11255
 
11246
11256
  // src/components/vendor-icon.tsx
11247
11257
 
11248
- var sizeClasses = {
11249
- xs: "w-6 h-6",
11250
- sm: "w-8 h-8",
11251
- md: "w-10 h-10",
11252
- lg: "w-12 h-12",
11253
- l: "w-14 h-14",
11254
- xl: "w-16 h-16"
11255
- };
11256
- var imageSizeMap = {
11257
- xs: { width: 16, height: 16 },
11258
- sm: { width: 20, height: 20 },
11259
- md: { width: 32, height: 32 },
11260
- lg: { width: 40, height: 40 },
11261
- l: { width: 38, height: 38 },
11262
- xl: { width: 40, height: 40 }
11258
+ var BACKGROUND_CLASS = {
11259
+ dark: "",
11260
+ light: "bg-ods-card",
11261
+ white: "bg-white border-[#E5E5E5] [--ods-avatar-initials:#333333]"
11263
11262
  };
11264
- var tilePxMap = {
11265
- xs: 24,
11266
- sm: 32,
11267
- md: 40,
11268
- lg: 48,
11269
- l: 56,
11270
- xl: 64
11271
- };
11272
- var backgroundClasses = {
11273
- dark: "bg-ods-bg border border-ods-border",
11274
- light: "bg-ods-card border border-ods-border",
11275
- white: "bg-white border border-[#E5E5E5]"
11276
- };
11277
- function VendorIconSkeleton({
11278
- size = "md",
11279
- className,
11280
- ...props
11281
- }) {
11282
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11283
- _chunk4WIJI4AKcjs.UnifiedSkeleton,
11284
- {
11285
- className: _chunk7JWFMAQBcjs.cn.call(void 0, sizeClasses[size], "flex-shrink-0 rounded-lg", className),
11286
- ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props)
11287
- }
11288
- );
11289
- }
11290
11263
  function VendorIcon({
11291
11264
  vendor,
11292
11265
  size = "md",
11293
- className = "",
11266
+ className,
11294
11267
  showBackground = true,
11295
11268
  backgroundStyle = "dark",
11296
- loading: loadingProp,
11269
+ loading,
11297
11270
  ...props
11298
11271
  }) {
11299
- const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
11300
11272
  const logoUrl = getVendorLogo(vendor);
11301
- const logoSrc = _chunkFAUVDMH4cjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
11302
- const { width, height } = showBackground ? imageSizeMap[size] : { width: tilePxMap[size], height: tilePxMap[size] };
11303
- const containerClasses = _chunk7JWFMAQBcjs.cn.call(void 0,
11304
- sizeClasses[size],
11305
- "flex flex-shrink-0 items-center justify-center rounded-lg",
11306
- showBackground && backgroundClasses[backgroundStyle],
11307
- !showBackground && "overflow-hidden",
11308
- className
11309
- );
11310
- const markers = _chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props);
11311
- if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIconSkeleton, { size, className, ...markers });
11312
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: containerClasses, ...markers, children: logoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11313
- _chunkKUXHXLJQcjs.next_image_default,
11273
+ const logoSrc = _chunkTHY2XVGYcjs.useProxiedImageUrl.call(void 0, logoUrl, { directHttps: false });
11274
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11275
+ _chunkTGOJHOQRcjs.SquareAvatar,
11314
11276
  {
11315
- src: logoSrc,
11277
+ src: logoUrl ? logoSrc || void 0 : void 0,
11316
11278
  alt: `${vendor.title} logo`,
11317
- width,
11318
- height,
11319
- className: _chunk7JWFMAQBcjs.cn.call(void 0, "object-contain", showBackground ? "p-1" : "h-full w-full")
11320
- }
11321
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11322
- "div",
11323
- {
11279
+ fallback: vendor.title,
11280
+ size,
11281
+ fit: "contain",
11282
+ padded: showBackground,
11283
+ loading,
11284
+ initialsClassName: "uppercase text-h6",
11324
11285
  className: _chunk7JWFMAQBcjs.cn.call(void 0,
11325
- "flex items-center justify-center uppercase text-h6",
11326
- backgroundStyle === "white" ? "text-[#333333]" : "text-ods-text-secondary"
11286
+ "rounded-lg",
11287
+ showBackground ? BACKGROUND_CLASS[backgroundStyle] : "border-0 bg-transparent",
11288
+ className
11327
11289
  ),
11328
- children: _optionalChain([vendor, 'access', _252 => _252.title, 'optionalAccess', _253 => _253.substring, 'call', _254 => _254(0, 2)]) || "??"
11290
+ ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props)
11329
11291
  }
11330
- ) });
11292
+ );
11331
11293
  }
11332
11294
 
11333
11295
  // src/components/chat/hooks/use-chat-card-item.ts
@@ -11342,8 +11304,8 @@ function useChatCardItem(type, id) {
11342
11304
  const res = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, url);
11343
11305
  if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
11344
11306
  const data = await res.json();
11345
- const items = _chunkFAUVDMH4cjs.extractCardItems.call(void 0, type, data);
11346
- const match = items.find((it) => _chunkFAUVDMH4cjs.extractItemId.call(void 0, type, it) === id);
11307
+ const items = _chunkTHY2XVGYcjs.extractCardItems.call(void 0, type, data);
11308
+ const match = items.find((it) => _chunkTHY2XVGYcjs.extractItemId.call(void 0, type, it) === id);
11347
11309
  return _nullishCoalesce(match, () => ( null));
11348
11310
  },
11349
11311
  enabled: !!url && id.length > 0,
@@ -11385,15 +11347,15 @@ var TRAILING_CELL_LAYOUT = "w-[56px] md:w-[68px]";
11385
11347
  function CardMedia({ imageSrc, imageAlt, icon }) {
11386
11348
  if (imageSrc) {
11387
11349
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
11388
- /* @__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: _chunk6UKH22NQcjs.personInitials.call(void 0, imageAlt) || "?" }),
11350
+ /* @__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: _chunkTGOJHOQRcjs.personInitials.call(void 0, imageAlt) || "?" }),
11389
11351
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11390
11352
  _chunkKUXHXLJQcjs.next_image_default,
11391
11353
  {
11392
11354
  src: imageSrc,
11393
11355
  alt: imageAlt || "",
11394
11356
  className: "relative block size-10 rounded-sm border border-ods-border object-cover",
11395
- width: 40,
11396
- height: 40,
11357
+ width: _chunk4WIJI4AKcjs.AVATAR_SIZE_PX.md,
11358
+ height: _chunk4WIJI4AKcjs.AVATAR_SIZE_PX.md,
11397
11359
  unoptimized: true,
11398
11360
  onError: (e) => {
11399
11361
  const img = e.currentTarget;
@@ -11457,7 +11419,7 @@ function MingoInfoCard({
11457
11419
  status ? (
11458
11420
  // Reuse the shared Tag palette (single source of truth for colours)
11459
11421
  // without rendering Tag's `<div>` — span-only for `<p>` validity.
11460
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunk6UKH22NQcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
11422
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, _chunkTGOJHOQRcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(status.variant, () => ( "success")) }), "shrink-0"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate uppercase tracking-[-0.28px]", children: status.label }) })
11461
11423
  ) : null
11462
11424
  ] });
11463
11425
  const contentClass = _chunk7JWFMAQBcjs.cn.call(void 0,
@@ -11533,7 +11495,7 @@ function pickFetchedCardHref({
11533
11495
  itemHref,
11534
11496
  allowComposed
11535
11497
  }) {
11536
- if (_optionalChain([composed, 'optionalAccess', _255 => _255.hostOverride])) {
11498
+ if (_optionalChain([composed, 'optionalAccess', _252 => _252.hostOverride])) {
11537
11499
  return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
11538
11500
  }
11539
11501
  if (itemHref) return { source: "item", href: itemHref };
@@ -11549,7 +11511,7 @@ function resolveFetchedCardHref({
11549
11511
  composeContentUrl
11550
11512
  }) {
11551
11513
  if (!composeContentUrl || !contentRefType || !id) return null;
11552
- const canonicalType = _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, contentRefType);
11514
+ const canonicalType = _chunkTHY2XVGYcjs.canonicalContentRefType.call(void 0, contentRefType);
11553
11515
  return composeContentUrl({
11554
11516
  // The card registry keys some entries by the legacy rail vocabulary
11555
11517
  // (`blog_post_existing`) because that is what `buildListUrl` expects.
@@ -11579,7 +11541,7 @@ function sourceRowCtxFromRuntime(runtime, surface = {}) {
11579
11541
  }
11580
11542
  function pickSourceIcon(sourceRepo, documentType) {
11581
11543
  const iconName = sourceRepo ? getSourceIconName(sourceRepo) : void 0;
11582
- const icon = iconName ? _chunk5RGGUQ4Ycjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
11544
+ const icon = iconName ? _chunkVXXOUM2Kcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }) : _lucidereact.FileText;
11583
11545
  const iconLabel = _nullishCoalesce(documentType, () => ( "Source"));
11584
11546
  return { icon, iconLabel };
11585
11547
  }
@@ -11595,20 +11557,20 @@ function resolveSourceRowCTA(row, ctx = {}) {
11595
11557
  if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
11596
11558
  const safePath = sanitizePath(row.path);
11597
11559
  if (safePath) {
11598
- const docTarget = row.documentType ? _optionalChain([ctx, 'access', _256 => _256.docPlatformTargets, 'optionalAccess', _257 => _257[row.documentType]]) : void 0;
11560
+ const docTarget = row.documentType ? _optionalChain([ctx, 'access', _253 => _253.docPlatformTargets, 'optionalAccess', _254 => _254[row.documentType]]) : void 0;
11599
11561
  if (docTarget) {
11600
11562
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
11601
11563
  const base = `${getPlatformUrl(docTarget.platform)}${seg ? `/${seg}` : ""}/`;
11602
- href = _nullishCoalesce(_chunkYBTORXFYcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11564
+ href = _nullishCoalesce(_chunkPRCGRDHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11603
11565
  targetPlatform = docTarget.platform;
11604
11566
  } else if (ctx.chipBasePlatform) {
11605
11567
  const base = `${getPlatformUrl(ctx.chipBasePlatform)}/knowledge-base/`;
11606
- href = _nullishCoalesce(_chunkYBTORXFYcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11568
+ href = _nullishCoalesce(_chunkPRCGRDHVcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
11607
11569
  targetPlatform = ctx.chipBasePlatform;
11608
11570
  } else if (ctx.baseRoute) {
11609
11571
  const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
11610
11572
  const absolute = new URL(safePath, synthetic).toString();
11611
- href = _nullishCoalesce(_chunkYBTORXFYcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
11573
+ href = _nullishCoalesce(_chunkPRCGRDHVcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
11612
11574
  targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
11613
11575
  }
11614
11576
  }
@@ -11617,15 +11579,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
11617
11579
  // Canonical vocabulary only — a rail-vocab alias would miss the host's
11618
11580
  // `hostedTypes` / `overrides` and fall through to the seam's default
11619
11581
  // `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
11620
- type: _chunkFAUVDMH4cjs.canonicalContentRefType.call(void 0, row.documentType),
11582
+ type: _chunkTHY2XVGYcjs.canonicalContentRefType.call(void 0, row.documentType),
11621
11583
  identifier: idValue,
11622
11584
  externalUrl: row.externalUrl,
11623
11585
  targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
11624
11586
  });
11625
- href = composed.href ? _nullishCoalesce(_chunkYBTORXFYcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
11587
+ href = composed.href ? _nullishCoalesce(_chunkPRCGRDHVcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
11626
11588
  targetPlatform = composed.targetPlatform;
11627
11589
  } else if (row.externalUrl) {
11628
- href = _nullishCoalesce(_chunkYBTORXFYcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
11590
+ href = _nullishCoalesce(_chunkPRCGRDHVcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
11629
11591
  targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
11630
11592
  }
11631
11593
  const documentType = row.documentType;
@@ -11664,7 +11626,7 @@ function resolveCardDestination({
11664
11626
  composeContentUrl,
11665
11627
  resolveHref = (href) => href
11666
11628
  }) {
11667
- const refPath = typeof _optionalChain([chatRef, 'access', _258 => _258.metadata, 'optionalAccess', _259 => _259.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
11629
+ const refPath = typeof _optionalChain([chatRef, 'access', _255 => _255.metadata, 'optionalAccess', _256 => _256.path]) === "string" && chatRef.metadata.path ? chatRef.metadata.path : null;
11668
11630
  const path = _nullishCoalesce(refPath, () => ( (item ? readFetchedCardPath(item) : null)));
11669
11631
  const cta = resolveSourceRowCTA(
11670
11632
  {
@@ -11681,7 +11643,7 @@ function resolveCardDestination({
11681
11643
  const rowUrl = cta.href ? resolveHref(cta.href) : _nullishCoalesce(chatRef.url, () => ( null));
11682
11644
  const rowPlatform = _nullishCoalesce(_nullishCoalesce(cta.targetPlatform, () => ( chatRef.targetPlatform)), () => ( null));
11683
11645
  if (rowUrl) return { url: rowUrl, targetPlatform: rowPlatform, path, source: "row" };
11684
- if (_optionalChain([entry, 'optionalAccess', _260 => _260.contentRefType]) && item) {
11646
+ if (_optionalChain([entry, 'optionalAccess', _257 => _257.contentRefType]) && item) {
11685
11647
  const choice = pickFetchedCardHref({
11686
11648
  composed: resolveFetchedCardHref({
11687
11649
  contentRefType: entry.contentRefType,
@@ -11689,10 +11651,10 @@ function resolveCardDestination({
11689
11651
  item,
11690
11652
  composeContentUrl
11691
11653
  }),
11692
- itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _261 => _261.fallbackHref, 'optionalCall', _262 => _262(item)]), () => ( null)),
11654
+ itemHref: _nullishCoalesce(_optionalChain([entry, 'access', _258 => _258.fallbackHref, 'optionalCall', _259 => _259(item)]), () => ( null)),
11693
11655
  allowComposed: !entry.noComposedHref
11694
11656
  });
11695
- const url = choice ? _nullishCoalesce(_chunkYBTORXFYcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
11657
+ const url = choice ? _nullishCoalesce(_chunkPRCGRDHVcjs.safeHref.call(void 0, choice.href), () => ( null)) : null;
11696
11658
  if (choice && url) {
11697
11659
  return { url, targetPlatform: _nullishCoalesce(choice.targetPlatform, () => ( rowPlatform)), path, source: choice.source };
11698
11660
  }
@@ -11705,11 +11667,11 @@ function resolveCardDestination({
11705
11667
 
11706
11668
  function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
11707
11669
  const label = entityLabel || "Item";
11708
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
11709
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkYBTORXFYcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
11710
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TEXT_COL, children: [
11711
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkYBTORXFYcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkYBTORXFYcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
11712
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkYBTORXFYcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
11670
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunkPRCGRDHVcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
11671
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
11672
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TEXT_COL, children: [
11673
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunkPRCGRDHVcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
11674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkPRCGRDHVcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
11713
11675
  label,
11714
11676
  " deleted",
11715
11677
  recoveryNote ? ` \xB7 ${recoveryNote}` : ""
@@ -11755,7 +11717,7 @@ function GitHubChatCard({
11755
11717
  const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
11756
11718
  const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
11757
11719
  const idLabel = formatActivityId(chatRef.id, kind);
11758
- const dateText = _chunk6UKH22NQcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
11720
+ const dateText = _chunkTGOJHOQRcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
11759
11721
  const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
11760
11722
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11761
11723
  MingoInfoCard,
@@ -11764,7 +11726,7 @@ function GitHubChatCard({
11764
11726
  description,
11765
11727
  icon: githubKindIcon(kind),
11766
11728
  status,
11767
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11729
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11768
11730
  menuGroups: cardMenuGroups(chatRef.url, discuss),
11769
11731
  menuAriaLabel: "Activity actions"
11770
11732
  }
@@ -11783,8 +11745,8 @@ function cardMenuGroups(href, discuss, openDetails, externalLink) {
11783
11745
  if (href) {
11784
11746
  items.push({
11785
11747
  id: "open-details",
11786
- label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _263 => _263.label]), () => ( "Open Details")),
11787
- icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _264 => _264.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
11748
+ label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _260 => _260.label]), () => ( "Open Details")),
11749
+ icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _261 => _261.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMLT7ASAcjs.EyeIcon, { size: 20 }))),
11788
11750
  // Main row → open the entity (same tab, soft Link nav).
11789
11751
  href,
11790
11752
  // Trailing 40px ↗ side-button → open in a new tab.
@@ -11844,18 +11806,18 @@ function itemVideoMetadata(item) {
11844
11806
  for (const v of vals) if (typeof v === "string" && v.length > 0) return v;
11845
11807
  return void 0;
11846
11808
  };
11847
- const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _265 => _265.metadata]), () => ( {}));
11809
+ const m = _nullishCoalesce(_optionalChain([item, 'optionalAccess', _262 => _262.metadata]), () => ( {}));
11848
11810
  const out = {};
11849
- const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _266 => _266.custom_video_url]), _optionalChain([item, 'optionalAccess', _267 => _267.main_video_url]));
11850
- const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _268 => _268.youtube_url]), _optionalChain([item, 'optionalAccess', _269 => _269.testimonial_video_url]));
11851
- const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _270 => _270.highlight_video_url]));
11811
+ const videoUrl = pick(m.videoUrl, _optionalChain([item, 'optionalAccess', _263 => _263.custom_video_url]), _optionalChain([item, 'optionalAccess', _264 => _264.main_video_url]));
11812
+ const youtubeUrl = pick(m.youtubeUrl, _optionalChain([item, 'optionalAccess', _265 => _265.youtube_url]), _optionalChain([item, 'optionalAccess', _266 => _266.testimonial_video_url]));
11813
+ const highlightVideoUrl = pick(m.highlightVideoUrl, _optionalChain([item, 'optionalAccess', _267 => _267.highlight_video_url]));
11852
11814
  const videoPoster = pick(
11853
11815
  m.videoPoster,
11854
- _optionalChain([item, 'optionalAccess', _271 => _271.main_video_thumbnail]),
11855
- _optionalChain([item, 'optionalAccess', _272 => _272.highlight_video_thumbnail]),
11856
- _optionalChain([item, 'optionalAccess', _273 => _273.featured_image])
11816
+ _optionalChain([item, 'optionalAccess', _268 => _268.main_video_thumbnail]),
11817
+ _optionalChain([item, 'optionalAccess', _269 => _269.highlight_video_thumbnail]),
11818
+ _optionalChain([item, 'optionalAccess', _270 => _270.featured_image])
11857
11819
  );
11858
- const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _274 => _274.highlight_video_thumbnail]));
11820
+ const highlightVideoPoster = pick(m.highlightVideoPoster, _optionalChain([item, 'optionalAccess', _271 => _271.highlight_video_thumbnail]));
11859
11821
  if (videoUrl) out.videoUrl = videoUrl;
11860
11822
  if (youtubeUrl) out.youtubeUrl = youtubeUrl;
11861
11823
  if (highlightVideoUrl) out.highlightVideoUrl = highlightVideoUrl;
@@ -11885,15 +11847,15 @@ function fetchedItemDisplayRef(item, chatRef) {
11885
11847
  }
11886
11848
  function fetchedFaqDisplayRef(item, chatRef) {
11887
11849
  const it = item;
11888
- const answer = typeof _optionalChain([it, 'optionalAccess', _275 => _275.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
11850
+ const answer = typeof _optionalChain([it, 'optionalAccess', _272 => _272.answer]) === "string" && it.answer.trim().length > 0 ? it.answer.trim() : null;
11889
11851
  return {
11890
11852
  type: "faq",
11891
11853
  id: chatRef.id,
11892
11854
  sourceRepo: chatRef.sourceRepo,
11893
- title: typeof _optionalChain([it, 'optionalAccess', _276 => _276.question]) === "string" && it.question ? it.question : chatRef.id,
11855
+ title: typeof _optionalChain([it, 'optionalAccess', _273 => _273.question]) === "string" && it.question ? it.question : chatRef.id,
11894
11856
  url: _nullishCoalesce(chatRef.url, () => ( null)),
11895
11857
  ...answer ? { preview: answer.length > 400 ? `${answer.slice(0, 397)}\u2026` : answer } : {},
11896
- metadata: typeof _optionalChain([it, 'optionalAccess', _277 => _277.section]) === "string" && it.section ? { section: it.section } : {}
11858
+ metadata: typeof _optionalChain([it, 'optionalAccess', _274 => _274.section]) === "string" && it.section ? { section: it.section } : {}
11897
11859
  };
11898
11860
  }
11899
11861
  function HubspotTicketChatCard({
@@ -11901,8 +11863,8 @@ function HubspotTicketChatCard({
11901
11863
  isNewTab,
11902
11864
  discuss
11903
11865
  }) {
11904
- const status = typeof _optionalChain([chatRef, 'access', _278 => _278.metadata, 'optionalAccess', _279 => _279.status]) === "string" ? chatRef.metadata.status : void 0;
11905
- const statusLabel = typeof _optionalChain([chatRef, 'access', _280 => _280.metadata, 'optionalAccess', _281 => _281.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
11866
+ const status = typeof _optionalChain([chatRef, 'access', _275 => _275.metadata, 'optionalAccess', _276 => _276.status]) === "string" ? chatRef.metadata.status : void 0;
11867
+ const statusLabel = typeof _optionalChain([chatRef, 'access', _277 => _277.metadata, 'optionalAccess', _278 => _278.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
11906
11868
  const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
11907
11869
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11908
11870
  MingoInfoCard,
@@ -11911,7 +11873,7 @@ function HubspotTicketChatCard({
11911
11873
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
11912
11874
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 24 }),
11913
11875
  status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
11914
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11876
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11915
11877
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
11916
11878
  label: "Open Ticket Details",
11917
11879
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOSS23NHHcjs.TagIcon, { size: 20 })
@@ -11925,7 +11887,7 @@ function FaqChatCard({
11925
11887
  isNewTab,
11926
11888
  discuss
11927
11889
  }) {
11928
- const section = typeof _optionalChain([chatRef, 'access', _282 => _282.metadata, 'optionalAccess', _283 => _283.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
11890
+ const section = typeof _optionalChain([chatRef, 'access', _279 => _279.metadata, 'optionalAccess', _280 => _280.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
11929
11891
  const statusLabel = section && section.length > 0 ? section : "FAQ";
11930
11892
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
11931
11893
  MingoInfoCard,
@@ -11934,7 +11896,7 @@ function FaqChatCard({
11934
11896
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
11935
11897
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 24 }),
11936
11898
  status: { label: statusLabel, variant: "grey" },
11937
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11899
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11938
11900
  menuGroups: cardMenuGroups(chatRef.url, discuss),
11939
11901
  menuAriaLabel: "FAQ actions"
11940
11902
  }
@@ -11945,7 +11907,7 @@ function SlackChatCard({
11945
11907
  isNewTab,
11946
11908
  discuss
11947
11909
  }) {
11948
- const channelName = typeof _optionalChain([chatRef, 'access', _284 => _284.metadata, 'optionalAccess', _285 => _285.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
11910
+ const channelName = typeof _optionalChain([chatRef, 'access', _281 => _281.metadata, 'optionalAccess', _282 => _282.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
11949
11911
  const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
11950
11912
  const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
11951
11913
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11954,7 +11916,7 @@ function SlackChatCard({
11954
11916
  title,
11955
11917
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
11956
11918
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUHFVG4Fcjs.SlackLogoGreyIcon, { size: 24 }),
11957
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11919
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11958
11920
  menuGroups: cardMenuGroups(chatRef.url, discuss),
11959
11921
  menuAriaLabel: "Message actions"
11960
11922
  }
@@ -11972,7 +11934,7 @@ function GlyphChatCard({
11972
11934
  title: chatRef.title,
11973
11935
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
11974
11936
  icon,
11975
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11937
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11976
11938
  menuGroups: cardMenuGroups(chatRef.url, discuss),
11977
11939
  menuAriaLabel: "Card actions"
11978
11940
  }
@@ -11988,22 +11950,22 @@ function TrustCenterChatCard({
11988
11950
  isNewTab,
11989
11951
  discuss
11990
11952
  }) {
11991
- const raw2 = _optionalChain([item, 'optionalAccess', _286 => _286.frameworks]);
11953
+ const raw2 = _optionalChain([item, 'optionalAccess', _283 => _283.frameworks]);
11992
11954
  const frameworks = Array.isArray(raw2) ? raw2 : [];
11993
- const summary = _chunkFAUVDMH4cjs.trustFrameworksSummary.call(void 0, frameworks);
11955
+ const summary = _chunkTHY2XVGYcjs.trustFrameworksSummary.call(void 0, frameworks);
11994
11956
  const leadFramework = frameworks[0];
11995
11957
  const lead = leadFramework ? {
11996
- label: _chunkFAUVDMH4cjs.trustFrameworkBadge.call(void 0, leadFramework),
11997
- color: _chunkFAUVDMH4cjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
11958
+ label: _chunkTHY2XVGYcjs.trustFrameworkBadge.call(void 0, leadFramework),
11959
+ color: _chunkTHY2XVGYcjs.trustFrameworkMonitoringEntry.call(void 0, leadFramework.monitoring).color
11998
11960
  } : void 0;
11999
11961
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12000
11962
  MingoInfoCard,
12001
11963
  {
12002
- title: _chunkFAUVDMH4cjs.TRUST_CENTER_TITLE,
12003
- description: summary || _chunkFAUVDMH4cjs.TRUST_CENTER_TAGLINE,
11964
+ title: _chunkTHY2XVGYcjs.TRUST_CENTER_TITLE,
11965
+ description: summary || _chunkTHY2XVGYcjs.TRUST_CENTER_TAGLINE,
12004
11966
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 24 }),
12005
11967
  status: lead ? { label: lead.label, variant: TRUST_STATUS_TAG_VARIANT[lead.color] } : void 0,
12006
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11968
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12007
11969
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
12008
11970
  label: "View trust center",
12009
11971
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBGYDNT6cjs.ShieldCheckIcon, { size: 20 })
@@ -12025,7 +11987,7 @@ function DataRoomDocChatCard({
12025
11987
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
12026
11988
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
12027
11989
  status: { label: badgeText, variant: "grey" },
12028
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
11990
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12029
11991
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12030
11992
  menuAriaLabel: "Document actions"
12031
11993
  }
@@ -12037,14 +11999,14 @@ function GenericFinancialChatCard({
12037
11999
  isNewTab,
12038
12000
  discuss
12039
12001
  }) {
12040
- const subtitle = typeof _optionalChain([chatRef, 'access', _287 => _287.metadata, 'optionalAccess', _288 => _288.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
12002
+ const subtitle = typeof _optionalChain([chatRef, 'access', _284 => _284.metadata, 'optionalAccess', _285 => _285.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
12041
12003
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12042
12004
  MingoInfoCard,
12043
12005
  {
12044
12006
  title: chatRef.title,
12045
12007
  description: subtitle,
12046
12008
  icon,
12047
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12009
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12048
12010
  menuGroups: cardMenuGroups(chatRef.url, discuss),
12049
12011
  menuAriaLabel: "Document actions"
12050
12012
  }
@@ -12106,12 +12068,12 @@ function ProductReleaseChatCard({
12106
12068
  discuss
12107
12069
  }) {
12108
12070
  const releaseProps = buildProps(item);
12109
- const status = _optionalChain([item, 'optionalAccess', _289 => _289.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
12071
+ const status = _optionalChain([item, 'optionalAccess', _286 => _286.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
12110
12072
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12111
12073
  EntityMingoCard,
12112
12074
  {
12113
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _290 => _290.title]), () => ( "")),
12114
- description: _optionalChain([item, 'optionalAccess', _291 => _291.summary]) || releaseProps.formattedDate || void 0,
12075
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _287 => _287.title]), () => ( "")),
12076
+ description: _optionalChain([item, 'optionalAccess', _288 => _288.summary]) || releaseProps.formattedDate || void 0,
12115
12077
  cover: releaseProps.coverImage || void 0,
12116
12078
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkX5LU4XQNcjs.Rocket02Icon, { size: 24 }),
12117
12079
  status,
@@ -12128,17 +12090,17 @@ function CampaignChatCard({
12128
12090
  isNewTab,
12129
12091
  discuss
12130
12092
  }) {
12131
- const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _292 => _292.goals])) ? item.goals.length : 0;
12093
+ const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _289 => _289.goals])) ? item.goals.length : 0;
12132
12094
  const meta = [
12133
- _optionalChain([item, 'optionalAccess', _293 => _293.start_date]) ? _chunkFAUVDMH4cjs.formatDateShort.call(void 0, item.start_date) : null,
12095
+ _optionalChain([item, 'optionalAccess', _290 => _290.start_date]) ? _chunkTHY2XVGYcjs.formatDateShort.call(void 0, item.start_date) : null,
12134
12096
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
12135
12097
  "Marketing campaign"
12136
12098
  ].filter(Boolean).join(" \xB7 ");
12137
12099
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12138
12100
  EntityMingoCard,
12139
12101
  {
12140
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _294 => _294.name]), () => ( "")),
12141
- description: meta || _optionalChain([item, 'optionalAccess', _295 => _295.description]) || void 0,
12102
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _291 => _291.name]), () => ( "")),
12103
+ description: meta || _optionalChain([item, 'optionalAccess', _292 => _292.description]) || void 0,
12142
12104
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6OCFDC2Qcjs.Megaphone01Icon, { size: 24 }),
12143
12105
  chatRef,
12144
12106
  isNewTab,
@@ -12169,7 +12131,7 @@ function EntityMingoCard({
12169
12131
  imageAlt: typeof title === "string" ? title : void 0,
12170
12132
  icon: fallbackIcon,
12171
12133
  status,
12172
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12134
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
12173
12135
  menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
12174
12136
  menuAriaLabel
12175
12137
  }
@@ -12181,7 +12143,7 @@ function entityCover(image, ogPlaceholder) {
12181
12143
  function statusPill(status) {
12182
12144
  const s = typeof status === "string" ? status.trim() : "";
12183
12145
  if (!s) return void 0;
12184
- const scheme = _chunkFAUVDMH4cjs.getStatusColorScheme.call(void 0, s);
12146
+ const scheme = _chunkTHY2XVGYcjs.getStatusColorScheme.call(void 0, s);
12185
12147
  const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
12186
12148
  return { label: s, variant };
12187
12149
  }
@@ -12193,14 +12155,14 @@ function BlogChatCard({
12193
12155
  hasEmbeddedVideo,
12194
12156
  discuss
12195
12157
  }) {
12196
- const category = Array.isArray(_optionalChain([item, 'optionalAccess', _296 => _296.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _297 => _297.categories, 'access', _298 => _298.find, 'call', _299 => _299((c) => _optionalChain([c, 'optionalAccess', _300 => _300.name])), 'optionalAccess', _301 => _301.name]), () => ( void 0)) : void 0;
12158
+ const category = Array.isArray(_optionalChain([item, 'optionalAccess', _293 => _293.categories])) ? _nullishCoalesce(_optionalChain([item, 'access', _294 => _294.categories, 'access', _295 => _295.find, 'call', _296 => _296((c) => _optionalChain([c, 'optionalAccess', _297 => _297.name])), 'optionalAccess', _298 => _298.name]), () => ( void 0)) : void 0;
12197
12159
  const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
12198
12160
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12199
12161
  EntityMingoCard,
12200
12162
  {
12201
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _302 => _302.title]), () => ( "")),
12202
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _303 => _303.summary]), () => ( void 0)),
12203
- cover: entityCover(_optionalChain([item, 'optionalAccess', _304 => _304.featured_image]), ogPlaceholder),
12163
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _299 => _299.title]), () => ( "")),
12164
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _300 => _300.summary]), () => ( void 0)),
12165
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _301 => _301.featured_image]), ogPlaceholder),
12204
12166
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEAPORE6cjs.NewspaperIcon, { size: 24 }),
12205
12167
  status,
12206
12168
  chatRef,
@@ -12217,13 +12179,13 @@ function CaseStudyChatCard({
12217
12179
  ogPlaceholder,
12218
12180
  discuss
12219
12181
  }) {
12220
- const meta = [_optionalChain([item, 'optionalAccess', _305 => _305.msp, 'optionalAccess', _306 => _306.name]), _optionalChain([item, 'optionalAccess', _307 => _307.user, 'optionalAccess', _308 => _308.full_name])].filter(Boolean).join(" \xB7 ");
12182
+ const meta = [_optionalChain([item, 'optionalAccess', _302 => _302.msp, 'optionalAccess', _303 => _303.name]), _optionalChain([item, 'optionalAccess', _304 => _304.user, 'optionalAccess', _305 => _305.full_name])].filter(Boolean).join(" \xB7 ");
12221
12183
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12222
12184
  EntityMingoCard,
12223
12185
  {
12224
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _309 => _309.title]), () => ( "")),
12225
- description: _optionalChain([item, 'optionalAccess', _310 => _310.summary]) || meta || void 0,
12226
- cover: entityCover(_optionalChain([item, 'optionalAccess', _311 => _311.featured_image]), ogPlaceholder),
12186
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _306 => _306.title]), () => ( "")),
12187
+ description: _optionalChain([item, 'optionalAccess', _307 => _307.summary]) || meta || void 0,
12188
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _308 => _308.featured_image]), ogPlaceholder),
12227
12189
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk44URXY24cjs.TrophyIcon, { size: 24 }),
12228
12190
  status: { label: "Case study", variant: "grey" },
12229
12191
  chatRef,
@@ -12240,13 +12202,13 @@ function CustomerInterviewChatCard({
12240
12202
  ogPlaceholder,
12241
12203
  discuss
12242
12204
  }) {
12243
- const meta = [_optionalChain([item, 'optionalAccess', _312 => _312.user, 'optionalAccess', _313 => _313.full_name]), _optionalChain([item, 'optionalAccess', _314 => _314.msp, 'optionalAccess', _315 => _315.name])].filter(Boolean).join(" \xB7 ");
12205
+ const meta = [_optionalChain([item, 'optionalAccess', _309 => _309.user, 'optionalAccess', _310 => _310.full_name]), _optionalChain([item, 'optionalAccess', _311 => _311.msp, 'optionalAccess', _312 => _312.name])].filter(Boolean).join(" \xB7 ");
12244
12206
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12245
12207
  EntityMingoCard,
12246
12208
  {
12247
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _316 => _316.title]), () => ( "")),
12248
- description: _optionalChain([item, 'optionalAccess', _317 => _317.video_summary]) || meta || void 0,
12249
- cover: entityCover(_optionalChain([item, 'optionalAccess', _318 => _318.featured_image]), ogPlaceholder),
12209
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _313 => _313.title]), () => ( "")),
12210
+ description: _optionalChain([item, 'optionalAccess', _314 => _314.video_summary]) || meta || void 0,
12211
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _315 => _315.featured_image]), ogPlaceholder),
12250
12212
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 }),
12251
12213
  status: { label: "Interview", variant: "grey" },
12252
12214
  chatRef,
@@ -12263,16 +12225,16 @@ function DesignDocChatCard({
12263
12225
  discuss
12264
12226
  }) {
12265
12227
  const displayRef = fetchedItemDisplayRef(item, chatRef);
12266
- const doc = _optionalChain([item, 'optionalAccess', _319 => _319.doc]);
12228
+ const doc = _optionalChain([item, 'optionalAccess', _316 => _316.doc]);
12267
12229
  const readiness = doc ? DESIGN_DOC_READINESS_DISPLAY[designDocReadiness(doc.completion)] : null;
12268
12230
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12269
12231
  MingoInfoCard,
12270
12232
  {
12271
- title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _320 => _320.title]), () => ( displayRef.title)),
12233
+ title: _nullishCoalesce(_optionalChain([doc, 'optionalAccess', _317 => _317.title]), () => ( displayRef.title)),
12272
12234
  description: doc ? [designDocMetaLine(doc), formatCompletionLabel(doc.completion)].join(" \xB7 ") : _nullishCoalesce(displayRef.preview, () => ( void 0)),
12273
12235
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 24 }),
12274
12236
  status: readiness ? { label: readiness.label, variant: readiness.scheme === "success" ? "success" : "grey" } : { label: "Design doc", variant: "grey" },
12275
- anchorProps: _chunkYBTORXFYcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
12237
+ anchorProps: _chunkPRCGRDHVcjs.buildAnchorProps.call(void 0, displayRef.url, isNewTab),
12276
12238
  menuGroups: cardMenuGroups(displayRef.url, discuss),
12277
12239
  menuAriaLabel: "Design doc actions"
12278
12240
  }
@@ -12285,13 +12247,13 @@ function InvestorUpdateChatCard({
12285
12247
  ogPlaceholder,
12286
12248
  discuss
12287
12249
  }) {
12288
- const title = _optionalChain([item, 'optionalAccess', _321 => _321.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _322 => _322.update_number]), () => ( "?"))}`;
12250
+ const title = _optionalChain([item, 'optionalAccess', _318 => _318.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _319 => _319.update_number]), () => ( "?"))}`;
12289
12251
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12290
12252
  EntityMingoCard,
12291
12253
  {
12292
12254
  title,
12293
- description: _optionalChain([item, 'optionalAccess', _323 => _323.strategic_update]) || _optionalChain([item, 'optionalAccess', _324 => _324.content]) || _chunkFAUVDMH4cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _325 => _325.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _326 => _326.period_end]), () => ( null))) || void 0,
12294
- cover: entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.featured_image]), ogPlaceholder),
12255
+ description: _optionalChain([item, 'optionalAccess', _320 => _320.strategic_update]) || _optionalChain([item, 'optionalAccess', _321 => _321.content]) || _chunkTHY2XVGYcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _322 => _322.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _323 => _323.period_end]), () => ( null))) || void 0,
12256
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _324 => _324.featured_image]), ogPlaceholder),
12295
12257
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk37SGOMF5cjs.PresentationLineIcon, { size: 24 }),
12296
12258
  status: { label: "Investor update", variant: "grey" },
12297
12259
  chatRef,
@@ -12308,12 +12270,12 @@ function OnboardingGuideChatCard({
12308
12270
  ogPlaceholder,
12309
12271
  discuss
12310
12272
  }) {
12311
- const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _328 => _328.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _329 => _329.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _330 => _330.og_image_url]), ogPlaceholder)));
12273
+ const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _325 => _325.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _326 => _326.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _327 => _327.og_image_url]), ogPlaceholder)));
12312
12274
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12313
12275
  EntityMingoCard,
12314
12276
  {
12315
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _331 => _331.title]), () => ( "")),
12316
- description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _332 => _332.summary]), () => ( _optionalChain([item, 'optionalAccess', _333 => _333.description]))), () => ( void 0)),
12277
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _328 => _328.title]), () => ( "")),
12278
+ description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _329 => _329.summary]), () => ( _optionalChain([item, 'optionalAccess', _330 => _330.description]))), () => ( void 0)),
12317
12279
  cover,
12318
12280
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 24 }),
12319
12281
  status: { label: "Guide", variant: "grey" },
@@ -12334,13 +12296,13 @@ function ProgramChatCard({
12334
12296
  discuss
12335
12297
  }) {
12336
12298
  const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGZ6NU2C2cjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM4KPLFFAcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZL4LQNYXcjs.MicrophoneIcon, { size: 24 });
12337
- const { line: meta } = _chunkFAUVDMH4cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkFAUVDMH4cjs.programMetaFormatters.call(void 0, _chunkFAUVDMH4cjs.PROGRAM_META_RENDERERS));
12299
+ const { line: meta } = _chunkTHY2XVGYcjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunkTHY2XVGYcjs.programMetaFormatters.call(void 0, _chunkTHY2XVGYcjs.PROGRAM_META_RENDERERS));
12338
12300
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12339
12301
  EntityMingoCard,
12340
12302
  {
12341
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _334 => _334.title]), () => ( "")),
12342
- description: meta || _optionalChain([item, 'optionalAccess', _335 => _335.description]) || void 0,
12343
- cover: entityCover(_optionalChain([item, 'optionalAccess', _336 => _336.cover_url]), ogPlaceholder),
12303
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _331 => _331.title]), () => ( "")),
12304
+ description: meta || _optionalChain([item, 'optionalAccess', _332 => _332.description]) || void 0,
12305
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _333 => _333.cover_url]), ogPlaceholder),
12344
12306
  fallbackIcon: icon,
12345
12307
  status: { label, variant: "grey" },
12346
12308
  chatRef,
@@ -12357,13 +12319,23 @@ function RoadmapChatCard({
12357
12319
  cardType,
12358
12320
  discuss
12359
12321
  }) {
12360
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _337 => _337.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
12361
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _338 => _338.customItemId]) != null;
12322
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _334 => _334.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
12323
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _335 => _335.customItemId]) != null;
12362
12324
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UIJR4PYcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6DN5HKRWcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQDSQKK2cjs.MapIcon, { size: 24 });
12363
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _339 => _339.customItemId]), className: "size-6" }) : logoUrl ? (
12325
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _336 => _336.customItemId]), className: "size-6" }) : logoUrl ? (
12364
12326
  // Contained (not full-bleed) so the integration logo keeps its aspect
12365
12327
  // ratio inside the bordered icon box — matches RoadmapCard.
12366
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
12328
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12329
+ _chunkKUXHXLJQcjs.next_image_default,
12330
+ {
12331
+ src: logoUrl,
12332
+ alt: "",
12333
+ className: "size-6 object-contain",
12334
+ width: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
12335
+ height: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
12336
+ unoptimized: true
12337
+ }
12338
+ )
12367
12339
  ) : defaultIcon;
12368
12340
  const clickupHref = clickupTaskUrl(chatRef.id);
12369
12341
  const clickupIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk27TMRMOMcjs.ClickupLogoIcon, { size: 20 });
@@ -12371,10 +12343,10 @@ function RoadmapChatCard({
12371
12343
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12372
12344
  EntityMingoCard,
12373
12345
  {
12374
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _340 => _340.title]), () => ( "")),
12375
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _341 => _341.description]), () => ( void 0)),
12346
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _337 => _337.title]), () => ( "")),
12347
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _338 => _338.description]), () => ( void 0)),
12376
12348
  fallbackIcon: icon,
12377
- status: statusPill(_optionalChain([item, 'optionalAccess', _342 => _342.status])),
12349
+ status: statusPill(_optionalChain([item, 'optionalAccess', _339 => _339.status])),
12378
12350
  chatRef,
12379
12351
  isNewTab,
12380
12352
  discuss,
@@ -12390,7 +12362,7 @@ function refHydratedEntry(docType, label, renderRef) {
12390
12362
  bareInline: true,
12391
12363
  contentRefType: docType,
12392
12364
  noComposedHref: true,
12393
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _343 => _343.url]), () => ( null)),
12365
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _340 => _340.url]), () => ( null)),
12394
12366
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
12395
12367
  render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
12396
12368
  };
@@ -12422,15 +12394,15 @@ function financialRegistryEntries() {
12422
12394
  );
12423
12395
  }
12424
12396
  function refText(ref, key) {
12425
- const value = _optionalChain([ref, 'optionalAccess', _344 => _344[key]]);
12397
+ const value = _optionalChain([ref, 'optionalAccess', _341 => _341[key]]);
12426
12398
  return typeof value === "string" && value.length > 0 ? value : null;
12427
12399
  }
12428
12400
  function VendorGlyph({ title, logoUrl }) {
12429
- if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
12401
+ if (!logoUrl) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: SOURCE_ICON_NAMES.vendors }, size: 24 });
12430
12402
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorIcon, { vendor: { title, logo_url: logoUrl }, size: "xs", showBackground: false });
12431
12403
  }
12432
12404
  function SitePageGlyph({ iconName }) {
12433
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
12405
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: _nullishCoalesce(iconName, () => ( SOURCE_ICON_NAMES["website-pages"])) }, size: 24 });
12434
12406
  }
12435
12407
  var GITHUB_CARD_CONFIGS = {
12436
12408
  github_commit: { label: "GitHub commit", kind: "commit" },
@@ -12468,7 +12440,7 @@ var REF_GLYPH_CARD_CONFIGS = {
12468
12440
  // rate. A glyph card; it opens the pricing page.
12469
12441
  openframe_price: { label: "OpenFrame price" },
12470
12442
  // A vendor (product) of the OpenMSP directory. A glyph card; it opens the vendor's page there.
12471
- vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _345 => _345.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
12443
+ vendor: { label: "Vendor", icon: (ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, VendorGlyph, { title: _nullishCoalesce(_optionalChain([ref, 'optionalAccess', _342 => _342.title]), () => ( "")), logoUrl: refText(ref, "logo_url") }) }
12472
12444
  };
12473
12445
  function sourceGlyph(docType) {
12474
12446
  const { Icon } = resolveSourceIcon({ sourceRepo: defaultTableIdForDocumentType(docType), documentType: docType });
@@ -12487,8 +12459,8 @@ function refGlyphRegistryEntries() {
12487
12459
  title: displayRef.title,
12488
12460
  description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
12489
12461
  cover: entityCover(
12490
- _optionalChain([displayRef, 'access', _346 => _346.metadata, 'optionalAccess', _347 => _347.videoPoster]),
12491
- _nullishCoalesce(_optionalChain([opts, 'access', _348 => _348.extras, 'optionalAccess', _349 => _349.buildOgPlaceholderUrl, 'optionalCall', _350 => _350(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
12462
+ _optionalChain([displayRef, 'access', _343 => _343.metadata, 'optionalAccess', _344 => _344.videoPoster]),
12463
+ _nullishCoalesce(_optionalChain([opts, 'access', _345 => _345.extras, 'optionalAccess', _346 => _346.buildOgPlaceholderUrl, 'optionalCall', _347 => _347(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
12492
12464
  ),
12493
12465
  fallbackIcon: glyph(displayRef),
12494
12466
  status: { label: cfg.label, variant: "grey" },
@@ -12503,9 +12475,9 @@ function refGlyphRegistryEntries() {
12503
12475
  }
12504
12476
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
12505
12477
  const it = item;
12506
- const title = typeof _optionalChain([it, 'optionalAccess', _351 => _351.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
12507
- const author = typeof _optionalChain([it, 'optionalAccess', _352 => _352.author, 'optionalAccess', _353 => _353.full_name]) === "string" ? it.author.full_name.trim() : "";
12508
- const summary = typeof _optionalChain([it, 'optionalAccess', _354 => _354.summary]) === "string" ? it.summary.trim() : "";
12478
+ const title = typeof _optionalChain([it, 'optionalAccess', _348 => _348.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
12479
+ const author = typeof _optionalChain([it, 'optionalAccess', _349 => _349.author, 'optionalAccess', _350 => _350.full_name]) === "string" ? it.author.full_name.trim() : "";
12480
+ const summary = typeof _optionalChain([it, 'optionalAccess', _351 => _351.summary]) === "string" ? it.summary.trim() : "";
12509
12481
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
12510
12482
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
12511
12483
  }
@@ -12547,7 +12519,7 @@ function programRegistryEntries() {
12547
12519
  label: cfg.label,
12548
12520
  contentRefType: cfg.contentRefType,
12549
12521
  bareInline: true,
12550
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProgramCard, { loading: true, size: "sm" }),
12522
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.ProgramCard, { loading: true, size: "sm" }),
12551
12523
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12552
12524
  ProgramChatCard,
12553
12525
  {
@@ -12557,7 +12529,7 @@ function programRegistryEntries() {
12557
12529
  discuss: opts.discuss,
12558
12530
  configKey: cfg.configKey,
12559
12531
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
12560
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _355 => _355.extras, 'optionalAccess', _356 => _356.buildOgPlaceholderUrl, 'optionalCall', _357 => _357(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _358 => _358.title]), () => ( "")))]), () => ( null))
12532
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _352 => _352.extras, 'optionalAccess', _353 => _353.buildOgPlaceholderUrl, 'optionalCall', _354 => _354(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _355 => _355.title]), () => ( "")))]), () => ( null))
12561
12533
  }
12562
12534
  )
12563
12535
  }));
@@ -12578,7 +12550,7 @@ var ROADMAP_CARD_CONFIGS = {
12578
12550
  // The card's destination IS the ClickUp deep link, derived from the
12579
12551
  // task id post-fetch (the refs frame used to carry it).
12580
12552
  noComposedHref: true,
12581
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _359 => _359.id]) != null ? clickupTaskUrl(String(item.id)) : null
12553
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _356 => _356.id]) != null ? clickupTaskUrl(String(item.id)) : null
12582
12554
  }
12583
12555
  };
12584
12556
  function roadmapRegistryEntries() {
@@ -12588,7 +12560,7 @@ function roadmapRegistryEntries() {
12588
12560
  bareInline: true,
12589
12561
  ...cfg.noComposedHref ? { noComposedHref: true } : {},
12590
12562
  ...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
12591
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.RoadmapCard, { loading: true, size: "sm" }),
12563
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.RoadmapCard, { loading: true, size: "sm" }),
12592
12564
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12593
12565
  RoadmapChatCard,
12594
12566
  {
@@ -12620,8 +12592,8 @@ var CHAT_CARD_REGISTRY = {
12620
12592
  DeletedDataCard,
12621
12593
  {
12622
12594
  title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
12623
- entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _360 => _360.metadata, 'optionalAccess', _361 => _361.entity_label]), () => ( null)),
12624
- recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _362 => _362.metadata, 'optionalAccess', _363 => _363.recovery_note]), () => ( null))
12595
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _357 => _357.metadata, 'optionalAccess', _358 => _358.entity_label]), () => ( null)),
12596
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _359 => _359.metadata, 'optionalAccess', _360 => _360.recovery_note]), () => ( null))
12625
12597
  }
12626
12598
  )
12627
12599
  },
@@ -12638,7 +12610,7 @@ var CHAT_CARD_REGISTRY = {
12638
12610
  bareInline: true,
12639
12611
  contentRefType: "faq",
12640
12612
  noComposedHref: true,
12641
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _364 => _364.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
12613
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _361 => _361.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
12642
12614
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
12643
12615
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
12644
12616
  },
@@ -12646,12 +12618,12 @@ var CHAT_CARD_REGISTRY = {
12646
12618
  // projection route; `extractCardItems` turns its object payload into the
12647
12619
  // single matched row. Destination is the public page unless the host
12648
12620
  // re-homes the type (`composeContentUrl` override).
12649
- [_chunkFAUVDMH4cjs.TRUST_CENTER_DOCUMENT_TYPE]: {
12621
+ [_chunkTHY2XVGYcjs.TRUST_CENTER_DOCUMENT_TYPE]: {
12650
12622
  label: "Trust center",
12651
12623
  bareInline: true,
12652
- contentRefType: _chunkFAUVDMH4cjs.TRUST_CENTER_DOCUMENT_TYPE,
12624
+ contentRefType: _chunkTHY2XVGYcjs.TRUST_CENTER_DOCUMENT_TYPE,
12653
12625
  noComposedHref: true,
12654
- fallbackHref: () => _chunkFAUVDMH4cjs.TRUST_CENTER_PAGE_PATH,
12626
+ fallbackHref: () => _chunkTHY2XVGYcjs.TRUST_CENTER_PAGE_PATH,
12655
12627
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
12656
12628
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrustCenterChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
12657
12629
  },
@@ -12677,7 +12649,7 @@ var CHAT_CARD_REGISTRY = {
12677
12649
  label: "Blog post",
12678
12650
  contentRefType: "blog_post_existing",
12679
12651
  bareInline: true,
12680
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.BlogCard, { loading: true, size: "sm" }),
12652
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.BlogCard, { loading: true, size: "sm" }),
12681
12653
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12682
12654
  BlogChatCard,
12683
12655
  {
@@ -12685,8 +12657,8 @@ var CHAT_CARD_REGISTRY = {
12685
12657
  chatRef,
12686
12658
  isNewTab: opts.isNewTab,
12687
12659
  discuss: opts.discuss,
12688
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _365 => _365.extras, 'optionalAccess', _366 => _366.buildOgPlaceholderUrl, 'optionalCall', _367 => _367(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _368 => _368.title]), () => ( "")))]), () => ( null)),
12689
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _369 => _369.metadata, 'optionalAccess', _370 => _370.hasEmbeddedVideo]) === true
12660
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _362 => _362.extras, 'optionalAccess', _363 => _363.buildOgPlaceholderUrl, 'optionalCall', _364 => _364(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _365 => _365.title]), () => ( "")))]), () => ( null)),
12661
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _366 => _366.metadata, 'optionalAccess', _367 => _367.hasEmbeddedVideo]) === true
12690
12662
  }
12691
12663
  )
12692
12664
  },
@@ -12694,7 +12666,7 @@ var CHAT_CARD_REGISTRY = {
12694
12666
  label: "Case study",
12695
12667
  contentRefType: "case_study",
12696
12668
  bareInline: true,
12697
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYBTORXFYcjs.CaseStudyCard, { loading: true, size: "sm" }),
12669
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.CaseStudyCard, { loading: true, size: "sm" }),
12698
12670
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12699
12671
  CaseStudyChatCard,
12700
12672
  {
@@ -12702,7 +12674,7 @@ var CHAT_CARD_REGISTRY = {
12702
12674
  chatRef,
12703
12675
  isNewTab: opts.isNewTab,
12704
12676
  discuss: opts.discuss,
12705
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _371 => _371.extras, 'optionalAccess', _372 => _372.buildOgPlaceholderUrl, 'optionalCall', _373 => _373(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _374 => _374.title]), () => ( "")))]), () => ( null))
12677
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _368 => _368.extras, 'optionalAccess', _369 => _369.buildOgPlaceholderUrl, 'optionalCall', _370 => _370(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _371 => _371.title]), () => ( "")))]), () => ( null))
12706
12678
  }
12707
12679
  )
12708
12680
  },
@@ -12711,7 +12683,7 @@ var CHAT_CARD_REGISTRY = {
12711
12683
  contentRefType: "design_doc",
12712
12684
  bareInline: true,
12713
12685
  noComposedHref: true,
12714
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _375 => _375.url]), () => ( null)),
12686
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _372 => _372.url]), () => ( null)),
12715
12687
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
12716
12688
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DesignDocChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
12717
12689
  },
@@ -12719,7 +12691,7 @@ var CHAT_CARD_REGISTRY = {
12719
12691
  label: "Customer interview",
12720
12692
  contentRefType: "customer_interview",
12721
12693
  bareInline: true,
12722
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.CustomerInterviewCard, { loading: true, size: "sm" }),
12694
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.CustomerInterviewCard, { loading: true, size: "sm" }),
12723
12695
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12724
12696
  CustomerInterviewChatCard,
12725
12697
  {
@@ -12727,7 +12699,7 @@ var CHAT_CARD_REGISTRY = {
12727
12699
  chatRef,
12728
12700
  isNewTab: opts.isNewTab,
12729
12701
  discuss: opts.discuss,
12730
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _376 => _376.extras, 'optionalAccess', _377 => _377.buildOgPlaceholderUrl, 'optionalCall', _378 => _378(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _379 => _379.title]), () => ( "")))]), () => ( null))
12702
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _373 => _373.extras, 'optionalAccess', _374 => _374.buildOgPlaceholderUrl, 'optionalCall', _375 => _375(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _376 => _376.title]), () => ( "")))]), () => ( null))
12731
12703
  }
12732
12704
  )
12733
12705
  },
@@ -12735,9 +12707,9 @@ var CHAT_CARD_REGISTRY = {
12735
12707
  label: "Product release",
12736
12708
  contentRefType: "product_release",
12737
12709
  bareInline: true,
12738
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.ProductReleaseCard, { loading: true, size: "sm" }),
12710
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.ProductReleaseCard, { loading: true, size: "sm" }),
12739
12711
  render: (item, chatRef, opts) => {
12740
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _380 => _380.extras, 'optionalAccess', _381 => _381.buildProductReleaseCardProps]), () => ( _chunkFAUVDMH4cjs.defaultBuildProductReleaseCardProps));
12712
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _377 => _377.extras, 'optionalAccess', _378 => _378.buildProductReleaseCardProps]), () => ( _chunkTHY2XVGYcjs.defaultBuildProductReleaseCardProps));
12741
12713
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12742
12714
  ProductReleaseChatCard,
12743
12715
  {
@@ -12755,7 +12727,7 @@ var CHAT_CARD_REGISTRY = {
12755
12727
  label: "Investor update",
12756
12728
  contentRefType: "investor_update",
12757
12729
  bareInline: true,
12758
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.InvestorUpdateCard, { loading: true, size: "sm" }),
12730
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.InvestorUpdateCard, { loading: true, size: "sm" }),
12759
12731
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12760
12732
  InvestorUpdateChatCard,
12761
12733
  {
@@ -12763,7 +12735,7 @@ var CHAT_CARD_REGISTRY = {
12763
12735
  chatRef,
12764
12736
  isNewTab: opts.isNewTab,
12765
12737
  discuss: opts.discuss,
12766
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _382 => _382.extras, 'optionalAccess', _383 => _383.buildOgPlaceholderUrl, 'optionalCall', _384 => _384(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _385 => _385.title]), () => ( "")))]), () => ( null))
12738
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _379 => _379.extras, 'optionalAccess', _380 => _380.buildOgPlaceholderUrl, 'optionalCall', _381 => _381(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _382 => _382.title]), () => ( "")))]), () => ( null))
12767
12739
  }
12768
12740
  )
12769
12741
  },
@@ -12773,7 +12745,7 @@ var CHAT_CARD_REGISTRY = {
12773
12745
  bareInline: true,
12774
12746
  // "Display" affordance (verbatim guide body) instead of "Ask".
12775
12747
  displayAction: true,
12776
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFAUVDMH4cjs.OnboardingGuideCard, { loading: true, size: "sm" }),
12748
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTHY2XVGYcjs.OnboardingGuideCard, { loading: true, size: "sm" }),
12777
12749
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12778
12750
  OnboardingGuideChatCard,
12779
12751
  {
@@ -12781,7 +12753,7 @@ var CHAT_CARD_REGISTRY = {
12781
12753
  chatRef,
12782
12754
  isNewTab: opts.isNewTab,
12783
12755
  discuss: opts.discuss,
12784
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _386 => _386.extras, 'optionalAccess', _387 => _387.buildOgPlaceholderUrl, 'optionalCall', _388 => _388(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _389 => _389.title]), () => ( "")))]), () => ( null))
12756
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _383 => _383.extras, 'optionalAccess', _384 => _384.buildOgPlaceholderUrl, 'optionalCall', _385 => _385(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _386 => _386.title]), () => ( "")))]), () => ( null))
12785
12757
  }
12786
12758
  )
12787
12759
  },
@@ -12792,13 +12764,13 @@ var CHAT_CARD_REGISTRY = {
12792
12764
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCard, { loading: true, title: "" }),
12793
12765
  // No public viewer — synthesize the hub-internal admin URL post-fetch
12794
12766
  // so the wrapper + isNewTab computation see the actual destination.
12795
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _390 => _390.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
12767
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _387 => _387.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
12796
12768
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
12797
12769
  },
12798
12770
  ...roadmapRegistryEntries()
12799
12771
  };
12800
12772
  function chatCardLabel(docType) {
12801
- return _optionalChain([CHAT_CARD_REGISTRY, 'access', _391 => _391[docType], 'optionalAccess', _392 => _392.label]);
12773
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _388 => _388[docType], 'optionalAccess', _389 => _389.label]);
12802
12774
  }
12803
12775
  function ChatCardNavWrap({
12804
12776
  href,
@@ -12814,13 +12786,13 @@ function ChatCardNavWrap({
12814
12786
  if (!href) return;
12815
12787
  const targetEl = e.target;
12816
12788
  const host = e.currentTarget;
12817
- if (!_optionalChain([host, 'optionalAccess', _393 => _393.contains, 'call', _394 => _394(targetEl)])) return;
12818
- if (_optionalChain([targetEl, 'optionalAccess', _395 => _395.closest, 'optionalCall', _396 => _396("button")])) return;
12819
- if (!_optionalChain([targetEl, 'optionalAccess', _397 => _397.closest, 'optionalCall', _398 => _398("a")])) return;
12789
+ if (!_optionalChain([host, 'optionalAccess', _390 => _390.contains, 'call', _391 => _391(targetEl)])) return;
12790
+ if (_optionalChain([targetEl, 'optionalAccess', _392 => _392.closest, 'optionalCall', _393 => _393("button")])) return;
12791
+ if (!_optionalChain([targetEl, 'optionalAccess', _394 => _394.closest, 'optionalCall', _395 => _395("a")])) return;
12820
12792
  const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
12821
12793
  if (!handled) return;
12822
12794
  e.stopPropagation();
12823
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _399 => _399.closeChat])) panel.closeChat();
12795
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _396 => _396.closeChat])) panel.closeChat();
12824
12796
  };
12825
12797
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
12826
12798
  }
@@ -12836,7 +12808,7 @@ function ChatCardLoader({
12836
12808
  const entry = CHAT_CARD_REGISTRY[chatRef.type];
12837
12809
  const fetchEntry = entry && entry.contentRefType ? entry : null;
12838
12810
  const { item, isLoading, isError, isFetched } = useChatCardItem(
12839
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _400 => _400.contentRefType]), () => ( "")),
12811
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _397 => _397.contentRefType]), () => ( "")),
12840
12812
  fetchEntry ? chatRef.id : ""
12841
12813
  );
12842
12814
  if (!entry) return null;
@@ -12846,7 +12818,7 @@ function ChatCardLoader({
12846
12818
  entry: fetchEntry,
12847
12819
  ctx: sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform }),
12848
12820
  composeContentUrl: runtime.composeContentUrl,
12849
- resolveHref: (href) => _chunkFAUVDMH4cjs.resolveHrefForRuntime.call(void 0, href, runtime)
12821
+ resolveHref: (href) => _chunkTHY2XVGYcjs.resolveHrefForRuntime.call(void 0, href, runtime)
12850
12822
  });
12851
12823
  const hrefResolvedChatRef = {
12852
12824
  ...chatRef,
@@ -12857,12 +12829,12 @@ function ChatCardLoader({
12857
12829
  };
12858
12830
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
12859
12831
  const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
12860
- const isNewTab = _chunkYBTORXFYcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
12832
+ const isNewTab = _chunkPRCGRDHVcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
12861
12833
  const useDisplay = !!entry.displayAction && !!onDisplay;
12862
12834
  const discussFn = useDisplay ? onDisplay : onDiscuss;
12863
12835
  const discuss = discussFn ? {
12864
12836
  label: useDisplay ? "Display" : "Ask Mingo",
12865
- icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7MV23NNTcjs.AgentMark, { agent: "mingo", className: "size-5" }),
12837
+ icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentMark, { agent: "mingo", className: "size-5" }),
12866
12838
  run: () => discussFn(finalChatRef)
12867
12839
  } : void 0;
12868
12840
  const renderOpts = {
@@ -12872,7 +12844,7 @@ function ChatCardLoader({
12872
12844
  isNewTab,
12873
12845
  discuss
12874
12846
  };
12875
- const path = typeof _optionalChain([finalChatRef, 'access', _401 => _401.metadata, 'optionalAccess', _402 => _402.path]) === "string" ? finalChatRef.metadata.path : null;
12847
+ const path = typeof _optionalChain([finalChatRef, 'access', _398 => _398.metadata, 'optionalAccess', _399 => _399.path]) === "string" ? finalChatRef.metadata.path : null;
12876
12848
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12877
12849
  ChatCardNavWrap,
12878
12850
  {
@@ -12896,7 +12868,7 @@ function ChatCardLoader({
12896
12868
  if (!fetchEntry) {
12897
12869
  return finish(entry.render(void 0, finalChatRef, renderOpts));
12898
12870
  }
12899
- if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _403 => _403.skeleton, 'optionalCall', _404 => _404()]), () => ( null)) });
12871
+ if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _400 => _400.skeleton, 'optionalCall', _401 => _401()]), () => ( null)) });
12900
12872
  if (!item) {
12901
12873
  if (isError) {
12902
12874
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
@@ -12971,12 +12943,12 @@ function makeBatchDedupKey(item) {
12971
12943
  return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
12972
12944
  }
12973
12945
  function getChatTypeMessageType(chatType) {
12974
- return chatType === _chunk3NGJ7NPTcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
12946
+ return chatType === _chunkKVJKKVB3cjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
12975
12947
  }
12976
12948
  function useChunkCatchup({
12977
12949
  dialogId,
12978
12950
  onChunkReceived,
12979
- chatTypes = [_chunk3NGJ7NPTcjs.CHAT_TYPE.CLIENT],
12951
+ chatTypes = [_chunkKVJKKVB3cjs.CHAT_TYPE.CLIENT],
12980
12952
  fetchChunks
12981
12953
  }) {
12982
12954
  const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
@@ -13190,7 +13162,7 @@ function useChunkCatchup({
13190
13162
  if (catchupRun.current === run) {
13191
13163
  if (currentDialogId !== dialogIdRef.current) {
13192
13164
  catchupRun.current = null;
13193
- if (_optionalChain([pendingCatchupRef, 'access', _405 => _405.current, 'optionalAccess', _406 => _406.dialogId]) === currentDialogId) {
13165
+ if (_optionalChain([pendingCatchupRef, 'access', _402 => _402.current, 'optionalAccess', _403 => _403.dialogId]) === currentDialogId) {
13194
13166
  pendingCatchupRef.current = null;
13195
13167
  }
13196
13168
  } else {
@@ -13201,7 +13173,7 @@ function useChunkCatchup({
13201
13173
  if (pending.dialogId === currentDialogId) {
13202
13174
  rearmForQueuedCatchup();
13203
13175
  try {
13204
- await _optionalChain([catchUpChunksRef, 'access', _407 => _407.current, 'optionalCall', _408 => _408(pending.fromSequenceId)]);
13176
+ await _optionalChain([catchUpChunksRef, 'access', _404 => _404.current, 'optionalCall', _405 => _405(pending.fromSequenceId)]);
13205
13177
  } catch (rerunError) {
13206
13178
  console.error("Queued catch-up re-run failed:", rerunError);
13207
13179
  }
@@ -13352,20 +13324,20 @@ function useNatsDialogSubscription({
13352
13324
  const tearDownSubscriptions = () => {
13353
13325
  subscriptionRefs.current.forEach((sub) => {
13354
13326
  try {
13355
- _optionalChain([sub, 'optionalAccess', _409 => _409.unsubscribe, 'call', _410 => _410()]);
13327
+ _optionalChain([sub, 'optionalAccess', _406 => _406.unsubscribe, 'call', _407 => _407()]);
13356
13328
  } catch (e10) {
13357
13329
  }
13358
13330
  });
13359
13331
  subscriptionRefs.current.clear();
13360
13332
  lastSubscribedDialogIdRef.current = null;
13361
- _optionalChain([abortControllerRef, 'access', _411 => _411.current, 'optionalAccess', _412 => _412.abort, 'call', _413 => _413()]);
13333
+ _optionalChain([abortControllerRef, 'access', _408 => _408.current, 'optionalAccess', _409 => _409.abort, 'call', _410 => _410()]);
13362
13334
  abortControllerRef.current = null;
13363
13335
  };
13364
13336
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
13365
13337
  const lifecycle = _chunkKHKPLOU4cjs.startConnectionLifecycle.call(void 0, {
13366
13338
  conn: sharedConn,
13367
13339
  wsUrl,
13368
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _414 => _414.current, 'optionalCall', _415 => _415()]),
13340
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _411 => _411.current, 'optionalCall', _412 => _412()]),
13369
13341
  backoff: reconnectionBackoffRef.current,
13370
13342
  getFreshUrl: () => getNatsWsUrlRef.current(),
13371
13343
  shouldRetryOn: isDisconnectStatus,
@@ -13376,7 +13348,7 @@ function useNatsDialogSubscription({
13376
13348
  setReconnectionCount((c) => c + 1);
13377
13349
  }
13378
13350
  hadConnectionBeforeRef.current = true;
13379
- _optionalChain([onConnectRef, 'access', _416 => _416.current, 'optionalCall', _417 => _417()]);
13351
+ _optionalChain([onConnectRef, 'access', _413 => _413.current, 'optionalCall', _414 => _414()]);
13380
13352
  }
13381
13353
  if (status === "error") {
13382
13354
  console.warn("[NATS] protocol error:", evt.data);
@@ -13386,7 +13358,7 @@ function useNatsDialogSubscription({
13386
13358
  setIsConnected(false);
13387
13359
  setIsSubscribed(false);
13388
13360
  tearDownSubscriptions();
13389
- _optionalChain([onDisconnectRef, 'access', _418 => _418.current, 'optionalCall', _419 => _419()]);
13361
+ _optionalChain([onDisconnectRef, 'access', _415 => _415.current, 'optionalCall', _416 => _416()]);
13390
13362
  }
13391
13363
  }
13392
13364
  });
@@ -13417,13 +13389,13 @@ function useNatsDialogSubscription({
13417
13389
  setIsSubscribed(false);
13418
13390
  subscriptionRefs.current.forEach((sub) => {
13419
13391
  try {
13420
- _optionalChain([sub, 'optionalAccess', _420 => _420.unsubscribe, 'call', _421 => _421()]);
13392
+ _optionalChain([sub, 'optionalAccess', _417 => _417.unsubscribe, 'call', _418 => _418()]);
13421
13393
  } catch (e11) {
13422
13394
  }
13423
13395
  });
13424
13396
  subscriptionRefs.current.clear();
13425
13397
  lastSubscribedDialogIdRef.current = null;
13426
- _optionalChain([abortControllerRef, 'access', _422 => _422.current, 'optionalAccess', _423 => _423.abort, 'call', _424 => _424()]);
13398
+ _optionalChain([abortControllerRef, 'access', _419 => _419.current, 'optionalAccess', _420 => _420.abort, 'call', _421 => _421()]);
13427
13399
  abortControllerRef.current = null;
13428
13400
  }
13429
13401
  return void 0;
@@ -13435,12 +13407,12 @@ function useNatsDialogSubscription({
13435
13407
  if (subscriptionRefs.current.size > 0) {
13436
13408
  subscriptionRefs.current.forEach((sub) => {
13437
13409
  try {
13438
- _optionalChain([sub, 'optionalAccess', _425 => _425.unsubscribe, 'call', _426 => _426()]);
13410
+ _optionalChain([sub, 'optionalAccess', _422 => _422.unsubscribe, 'call', _423 => _423()]);
13439
13411
  } catch (e12) {
13440
13412
  }
13441
13413
  });
13442
13414
  subscriptionRefs.current.clear();
13443
- _optionalChain([abortControllerRef, 'access', _427 => _427.current, 'optionalAccess', _428 => _428.abort, 'call', _429 => _429()]);
13415
+ _optionalChain([abortControllerRef, 'access', _424 => _424.current, 'optionalAccess', _425 => _425.abort, 'call', _426 => _426()]);
13444
13416
  }
13445
13417
  abortControllerRef.current = new AbortController();
13446
13418
  const abort = abortControllerRef.current;
@@ -13470,7 +13442,7 @@ function useNatsDialogSubscription({
13470
13442
  });
13471
13443
  lastSubscribedDialogIdRef.current = dialogId;
13472
13444
  setIsSubscribed(true);
13473
- _optionalChain([onSubscribedRef, 'access', _430 => _430.current, 'optionalCall', _431 => _431()]);
13445
+ _optionalChain([onSubscribedRef, 'access', _427 => _427.current, 'optionalCall', _428 => _428()]);
13474
13446
  };
13475
13447
  if (isConnectedRef.current) {
13476
13448
  createSubscriptions();
@@ -13481,7 +13453,7 @@ function useNatsDialogSubscription({
13481
13453
  abort.abort();
13482
13454
  subscriptions.forEach((sub) => {
13483
13455
  try {
13484
- _optionalChain([sub, 'optionalAccess', _432 => _432.unsubscribe, 'call', _433 => _433()]);
13456
+ _optionalChain([sub, 'optionalAccess', _429 => _429.unsubscribe, 'call', _430 => _430()]);
13485
13457
  } catch (e14) {
13486
13458
  }
13487
13459
  });
@@ -13520,7 +13492,7 @@ function useNatsDialogSubscription({
13520
13492
  });
13521
13493
  lastSubscribedDialogIdRef.current = currentDialogId;
13522
13494
  setIsSubscribed(true);
13523
- _optionalChain([onSubscribedRef, 'access', _434 => _434.current, 'optionalCall', _435 => _435()]);
13495
+ _optionalChain([onSubscribedRef, 'access', _431 => _431.current, 'optionalCall', _432 => _432()]);
13524
13496
  } else if (subscriptionRefs.current.size > 0) {
13525
13497
  setIsSubscribed(true);
13526
13498
  }
@@ -13528,10 +13500,10 @@ function useNatsDialogSubscription({
13528
13500
  return { isConnected, isSubscribed, reconnectionCount };
13529
13501
  }
13530
13502
  function buildNatsWsUrl(apiBaseUrl, options) {
13531
- const path = _optionalChain([options, 'optionalAccess', _436 => _436.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
13503
+ const path = _optionalChain([options, 'optionalAccess', _433 => _433.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
13532
13504
  const u = new URL(path, apiBaseUrl);
13533
13505
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
13534
- if (_optionalChain([options, 'optionalAccess', _437 => _437.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _438 => _438.token])) {
13506
+ if (_optionalChain([options, 'optionalAccess', _434 => _434.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _435 => _435.token])) {
13535
13507
  u.searchParams.set("authorization", options.token);
13536
13508
  }
13537
13509
  return u.toString();
@@ -13549,7 +13521,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
13549
13521
  const data = await res.json();
13550
13522
  return _nullishCoalesce(data.commands, () => ( []));
13551
13523
  } catch (err) {
13552
- if (_optionalChain([err, 'optionalAccess', _439 => _439.name]) === "AbortError") throw err;
13524
+ if (_optionalChain([err, 'optionalAccess', _436 => _436.name]) === "AbortError") throw err;
13553
13525
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
13554
13526
  return [];
13555
13527
  }
@@ -13557,8 +13529,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
13557
13529
  var NO_COMMANDS = [];
13558
13530
  function useSlashCommands(prefix, commandsUrl) {
13559
13531
  const [answered, setAnswered] = _react.useState.call(void 0, null);
13560
- const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _440 => _440.prefix]) === prefix ? answered.commands : NO_COMMANDS;
13561
- const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _441 => _441.prefix]) !== prefix;
13532
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _437 => _437.prefix]) === prefix ? answered.commands : NO_COMMANDS;
13533
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _438 => _438.prefix]) !== prefix;
13562
13534
  _react.useEffect.call(void 0, () => {
13563
13535
  if (prefix == null) return void 0;
13564
13536
  let cancelled = false;
@@ -13568,7 +13540,7 @@ function useSlashCommands(prefix, commandsUrl) {
13568
13540
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
13569
13541
  if (!cancelled) setAnswered({ prefix, commands: next });
13570
13542
  } catch (err) {
13571
- if (!cancelled && _optionalChain([err, 'optionalAccess', _442 => _442.name]) !== "AbortError") {
13543
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _439 => _439.name]) !== "AbortError") {
13572
13544
  console.warn("[use-slash-commands] fetch failed:", err);
13573
13545
  setAnswered({ prefix, commands: NO_COMMANDS });
13574
13546
  }
@@ -13591,7 +13563,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
13591
13563
  const query = _reactquery.useQuery.call(void 0, {
13592
13564
  queryKey: ["chat-slash-commands", commandsUrl],
13593
13565
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
13594
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _443 => _443.enabled]), () => ( true)),
13566
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _440 => _440.enabled]), () => ( true)),
13595
13567
  staleTime: Infinity,
13596
13568
  gcTime: Infinity,
13597
13569
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -13630,21 +13602,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
13630
13602
  }
13631
13603
  const data = await res.json();
13632
13604
  return {
13633
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _444 => _444.name]), () => ( null)),
13634
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _445 => _445.icon]), () => ( null)),
13635
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _446 => _446.greeting]), () => ( null)),
13636
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _447 => _447.enabledRagTableIds]), () => ( [])),
13637
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _448 => _448.quickActions]), () => ( [])),
13638
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _449 => _449.suggestedQueries]), () => ( []))
13605
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _441 => _441.name]), () => ( null)),
13606
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _442 => _442.icon]), () => ( null)),
13607
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _443 => _443.greeting]), () => ( null)),
13608
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _444 => _444.enabledRagTableIds]), () => ( [])),
13609
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _445 => _445.quickActions]), () => ( [])),
13610
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _446 => _446.suggestedQueries]), () => ( []))
13639
13611
  };
13640
13612
  } catch (err) {
13641
- if (_optionalChain([err, 'optionalAccess', _450 => _450.name]) === "AbortError") throw err;
13613
+ if (_optionalChain([err, 'optionalAccess', _447 => _447.name]) === "AbortError") throw err;
13642
13614
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
13643
13615
  return EMPTY_STATE_FALLBACK;
13644
13616
  }
13645
13617
  }
13646
13618
  function useEmptyStateConfig(emptyStateUrl, options) {
13647
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _451 => _451.enabled]), () => ( true))) && !!emptyStateUrl;
13619
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _448 => _448.enabled]), () => ( true))) && !!emptyStateUrl;
13648
13620
  const query = _reactquery.useQuery.call(void 0, {
13649
13621
  queryKey: ["chat-empty-state", emptyStateUrl],
13650
13622
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -13673,7 +13645,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
13673
13645
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
13674
13646
  function uploadWithProgress(url, file, token, onProgress, signal) {
13675
13647
  return new Promise((resolve, reject) => {
13676
- if (_optionalChain([signal, 'optionalAccess', _452 => _452.aborted])) {
13648
+ if (_optionalChain([signal, 'optionalAccess', _449 => _449.aborted])) {
13677
13649
  reject(new Error("Upload cancelled"));
13678
13650
  return;
13679
13651
  }
@@ -13715,7 +13687,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
13715
13687
  const handleSignalAbort = () => {
13716
13688
  xhr.abort();
13717
13689
  };
13718
- _optionalChain([signal, 'optionalAccess', _453 => _453.addEventListener, 'call', _454 => _454("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
13690
+ _optionalChain([signal, 'optionalAccess', _450 => _450.addEventListener, 'call', _451 => _451("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
13719
13691
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
13720
13692
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
13721
13693
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -13759,10 +13731,10 @@ function useChatAttachments() {
13759
13731
  try {
13760
13732
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
13761
13733
  } catch (err) {
13762
- if (_optionalChain([ctrl, 'optionalAccess', _455 => _455.signal, 'access', _456 => _456.aborted])) return;
13734
+ if (_optionalChain([ctrl, 'optionalAccess', _452 => _452.signal, 'access', _453 => _453.aborted])) return;
13763
13735
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
13764
13736
  }
13765
- if (_optionalChain([ctrl, 'optionalAccess', _457 => _457.signal, 'access', _458 => _458.aborted])) return;
13737
+ if (_optionalChain([ctrl, 'optionalAccess', _454 => _454.signal, 'access', _455 => _455.aborted])) return;
13766
13738
  if (!sniffed) {
13767
13739
  throw new Error("Unrecognized file format");
13768
13740
  }
@@ -13776,7 +13748,7 @@ function useChatAttachments() {
13776
13748
  const urlResp = await _chunk5GJM7VRRcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
13777
13749
  method: "POST",
13778
13750
  headers: { "Content-Type": "application/json" },
13779
- signal: _optionalChain([ctrl, 'optionalAccess', _459 => _459.signal]),
13751
+ signal: _optionalChain([ctrl, 'optionalAccess', _456 => _456.signal]),
13780
13752
  body: JSON.stringify({
13781
13753
  fileName: att.file.name,
13782
13754
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -13805,9 +13777,9 @@ function useChatAttachments() {
13805
13777
  (pct) => {
13806
13778
  updateOne(att.id, { progress: pct });
13807
13779
  },
13808
- _optionalChain([ctrl, 'optionalAccess', _460 => _460.signal])
13780
+ _optionalChain([ctrl, 'optionalAccess', _457 => _457.signal])
13809
13781
  );
13810
- if (_optionalChain([ctrl, 'optionalAccess', _461 => _461.signal, 'access', _462 => _462.aborted])) return;
13782
+ if (_optionalChain([ctrl, 'optionalAccess', _458 => _458.signal, 'access', _459 => _459.aborted])) return;
13811
13783
  updateOne(att.id, {
13812
13784
  status: "ready",
13813
13785
  progress: 100,
@@ -13815,7 +13787,7 @@ function useChatAttachments() {
13815
13787
  viewToken: mintData.viewToken
13816
13788
  });
13817
13789
  } catch (err) {
13818
- if (_optionalChain([ctrl, 'optionalAccess', _463 => _463.signal, 'access', _464 => _464.aborted])) return;
13790
+ if (_optionalChain([ctrl, 'optionalAccess', _460 => _460.signal, 'access', _461 => _461.aborted])) return;
13819
13791
  const message = err instanceof Error ? err.message : String(err);
13820
13792
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
13821
13793
  } finally {
@@ -13937,7 +13909,7 @@ function useChatAttachmentImageGallery() {
13937
13909
  return () => root.removeEventListener("click", onClick);
13938
13910
  }, [viewUrlPrefix]);
13939
13911
  const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
13940
- _chunkFAUVDMH4cjs.ImageGalleryModal,
13912
+ _chunkTHY2XVGYcjs.ImageGalleryModal,
13941
13913
  {
13942
13914
  images: state.images,
13943
13915
  isOpen: state.isOpen,
@@ -13964,11 +13936,11 @@ var ANON_DEFAULTS = {
13964
13936
  function useResolveChatIdentity(enabled) {
13965
13937
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
13966
13938
  const url = runtime.endpoints.identityUrl;
13967
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _465 => _465.email]), () => ( null));
13939
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _462 => _462.email]), () => ( null));
13968
13940
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
13969
13941
  const [resolved, setResolved] = _react.useState.call(void 0, null);
13970
- const data = _optionalChain([resolved, 'optionalAccess', _466 => _466.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
13971
- const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _467 => _467.key]) !== requestKey;
13942
+ const data = _optionalChain([resolved, 'optionalAccess', _463 => _463.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
13943
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _464 => _464.key]) !== requestKey;
13972
13944
  _react.useEffect.call(void 0, () => {
13973
13945
  if (requestKey === null) return void 0;
13974
13946
  let cancelled = false;
@@ -14090,9 +14062,9 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
14090
14062
  role: "user",
14091
14063
  content: content.question,
14092
14064
  timestamp: new Date(at),
14093
- name: _optionalChain([user, 'optionalAccess', _468 => _468.name]),
14094
- avatar: _optionalChain([user, 'optionalAccess', _469 => _469.avatar]),
14095
- authorType: _optionalChain([user, 'optionalAccess', _470 => _470.authorType])
14065
+ name: _optionalChain([user, 'optionalAccess', _465 => _465.name]),
14066
+ avatar: _optionalChain([user, 'optionalAccess', _466 => _466.avatar]),
14067
+ authorType: _optionalChain([user, 'optionalAccess', _467 => _467.authorType])
14096
14068
  },
14097
14069
  {
14098
14070
  id: `${id}-answer`,
@@ -14103,10 +14075,10 @@ function exchangeMessages({ id, at, content }, user, assistant, onPick) {
14103
14075
  ],
14104
14076
  // A millisecond after the question, so the pair keeps its order.
14105
14077
  timestamp: new Date(at + 1),
14106
- name: _optionalChain([assistant, 'optionalAccess', _471 => _471.name]),
14107
- avatar: _optionalChain([assistant, 'optionalAccess', _472 => _472.avatar]),
14108
- authorType: _optionalChain([assistant, 'optionalAccess', _473 => _473.authorType]),
14109
- assistantType: _optionalChain([assistant, 'optionalAccess', _474 => _474.assistantType])
14078
+ name: _optionalChain([assistant, 'optionalAccess', _468 => _468.name]),
14079
+ avatar: _optionalChain([assistant, 'optionalAccess', _469 => _469.avatar]),
14080
+ authorType: _optionalChain([assistant, 'optionalAccess', _470 => _470.authorType]),
14081
+ assistantType: _optionalChain([assistant, 'optionalAccess', _471 => _471.assistantType])
14110
14082
  }
14111
14083
  ];
14112
14084
  }
@@ -14122,8 +14094,8 @@ function mergeByTime(thread, local) {
14122
14094
  const out = [];
14123
14095
  let next = 0;
14124
14096
  for (const message of thread) {
14125
- const at = _optionalChain([message, 'access', _475 => _475.timestamp, 'optionalAccess', _476 => _476.getTime, 'call', _477 => _477()]);
14126
- while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _478 => _478[next], 'access', _479 => _479.timestamp, 'optionalAccess', _480 => _480.getTime, 'call', _481 => _481()]), () => ( 0))) < at) {
14097
+ const at = _optionalChain([message, 'access', _472 => _472.timestamp, 'optionalAccess', _473 => _473.getTime, 'call', _474 => _474()]);
14098
+ while (next < local.length && at !== void 0 && (_nullishCoalesce(_optionalChain([local, 'access', _475 => _475[next], 'access', _476 => _476.timestamp, 'optionalAccess', _477 => _477.getTime, 'call', _478 => _478()]), () => ( 0))) < at) {
14127
14099
  out.push(local[next]);
14128
14100
  next += 1;
14129
14101
  }
@@ -14228,9 +14200,9 @@ function appendToTrailingAssistant(prev, segments) {
14228
14200
  for (const seg of segments) {
14229
14201
  const tail = merged[merged.length - 1];
14230
14202
  const key = upsertKey(seg);
14231
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _482 => _482.type]) === "text") {
14203
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _479 => _479.type]) === "text") {
14232
14204
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
14233
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _483 => _483.type]) === "thinking") {
14205
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _480 => _480.type]) === "thinking") {
14234
14206
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
14235
14207
  } else if (key) {
14236
14208
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -14271,7 +14243,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
14271
14243
  }
14272
14244
  if (s.type !== "approval_batch") return s;
14273
14245
  const isAnchor = s.data.approvalRequestId === requestId;
14274
- const hasRow = _optionalChain([s, 'access', _484 => _484.data, 'access', _485 => _485.toolCalls, 'optionalAccess', _486 => _486.some, 'call', _487 => _487((c) => c.toolExecutionRequestId === requestId)]);
14246
+ const hasRow = _optionalChain([s, 'access', _481 => _481.data, 'access', _482 => _482.toolCalls, 'optionalAccess', _483 => _483.some, 'call', _484 => _484((c) => c.toolExecutionRequestId === requestId)]);
14275
14247
  if (!isAnchor && !hasRow) return s;
14276
14248
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
14277
14249
  const nextExecutions = hasRow ? {
@@ -14293,8 +14265,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
14293
14265
  };
14294
14266
  }
14295
14267
  function nextBatchExecution(prevExec, toolData) {
14296
- if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _488 => _488.status]) === "done") return null;
14297
- return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _489 => _489.result]), success: _optionalChain([prevExec, 'optionalAccess', _490 => _490.success]) };
14268
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _485 => _485.status]) === "done") return null;
14269
+ return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _486 => _486.result]), success: _optionalChain([prevExec, 'optionalAccess', _487 => _487.success]) };
14298
14270
  }
14299
14271
  function withBatchExecution(seg, execId, state) {
14300
14272
  return {
@@ -14311,11 +14283,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
14311
14283
  }
14312
14284
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
14313
14285
  return mapSegments(prev, (s) => {
14314
- if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _491 => _491.data, 'access', _492 => _492.toolCalls, 'optionalAccess', _493 => _493.some, 'call', _494 => _494((c) => c.toolExecutionRequestId === rowRequestId)])) {
14286
+ if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _488 => _488.data, 'access', _489 => _489.toolCalls, 'optionalAccess', _490 => _490.some, 'call', _491 => _491((c) => c.toolExecutionRequestId === rowRequestId)])) {
14315
14287
  return s;
14316
14288
  }
14317
- const existing = _optionalChain([s, 'access', _495 => _495.data, 'access', _496 => _496.executions, 'optionalAccess', _497 => _497[rowRequestId]]);
14318
- if (_optionalChain([existing, 'optionalAccess', _498 => _498.status]) === "done") return s;
14289
+ const existing = _optionalChain([s, 'access', _492 => _492.data, 'access', _493 => _493.executions, 'optionalAccess', _494 => _494[rowRequestId]]);
14290
+ if (_optionalChain([existing, 'optionalAccess', _495 => _495.status]) === "done") return s;
14319
14291
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
14320
14292
  });
14321
14293
  }
@@ -14351,7 +14323,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
14351
14323
  for (let j = message.segments.length - 1; j >= 0; j--) {
14352
14324
  const seg = message.segments[j];
14353
14325
  if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
14354
- const prevExec = _optionalChain([seg, 'access', _499 => _499.data, 'access', _500 => _500.executions, 'optionalAccess', _501 => _501[execId]]);
14326
+ const prevExec = _optionalChain([seg, 'access', _496 => _496.data, 'access', _497 => _497.executions, 'optionalAccess', _498 => _498[execId]]);
14355
14327
  const nextExec = nextBatchExecution(prevExec, toolData);
14356
14328
  if (nextExec === null) return prev;
14357
14329
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -14524,9 +14496,9 @@ var MessageSegmentAccumulator = class {
14524
14496
  type: "tool_execution",
14525
14497
  data: {
14526
14498
  ...toolData,
14527
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _502 => _502.data, 'access', _503 => _503.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _504 => _504.toolTitle]))),
14528
- toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _505 => _505.data, 'access', _506 => _506.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _507 => _507.toolExplanation]))),
14529
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _508 => _508.parameters])
14499
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _499 => _499.data, 'access', _500 => _500.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _501 => _501.toolTitle]))),
14500
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _502 => _502.data, 'access', _503 => _503.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _504 => _504.toolExplanation]))),
14501
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _505 => _505.parameters])
14530
14502
  }
14531
14503
  };
14532
14504
  if (existingIndex !== -1) {
@@ -14550,7 +14522,7 @@ var MessageSegmentAccumulator = class {
14550
14522
  if (seg.type !== "approval_batch") return seg;
14551
14523
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
14552
14524
  if (!hasCall) return seg;
14553
- const prev = _optionalChain([seg, 'access', _509 => _509.data, 'access', _510 => _510.executions, 'optionalAccess', _511 => _511[execId]]);
14525
+ const prev = _optionalChain([seg, 'access', _506 => _506.data, 'access', _507 => _507.executions, 'optionalAccess', _508 => _508[execId]]);
14554
14526
  const next = nextBatchExecution(prev, toolData);
14555
14527
  matched = true;
14556
14528
  if (next === null) return seg;
@@ -14684,8 +14656,8 @@ var MessageSegmentAccumulator = class {
14684
14656
  requestId,
14685
14657
  {
14686
14658
  ...pendingApproval,
14687
- command: _optionalChain([pendingApproval, 'optionalAccess', _512 => _512.command]) || "",
14688
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _513 => _513.approvalType]) || approvalType
14659
+ command: _optionalChain([pendingApproval, 'optionalAccess', _509 => _509.command]) || "",
14660
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _510 => _510.approvalType]) || approvalType
14689
14661
  },
14690
14662
  status
14691
14663
  );
@@ -14710,9 +14682,9 @@ var MessageSegmentAccumulator = class {
14710
14682
  type: "escalation_offer",
14711
14683
  // The resolved chunk carries no text/origin — a redelivered offer must
14712
14684
  // not blank the card the PENDING chunk already painted.
14713
- data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _514 => _514.data, 'access', _515 => _515.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _516 => _516.data, 'access', _517 => _517.origin]))) },
14685
+ data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _511 => _511.data, 'access', _512 => _512.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _513 => _513.data, 'access', _514 => _514.origin]))) },
14714
14686
  status,
14715
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _518 => _518.resolvedByName]))),
14687
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _515 => _515.resolvedByName]))),
14716
14688
  onApprove: this.callbacks.onEscalationApprove,
14717
14689
  onReject: this.callbacks.onEscalationReject
14718
14690
  };
@@ -15099,7 +15071,7 @@ function nullableText(value) {
15099
15071
  }
15100
15072
  function httpsUrl(value) {
15101
15073
  const candidate = text(value);
15102
- if (!candidate || _chunkYBTORXFYcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
15074
+ if (!candidate || _chunkPRCGRDHVcjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
15103
15075
  try {
15104
15076
  return new URL(candidate).protocol === "https:" ? candidate : void 0;
15105
15077
  } catch (e17) {
@@ -15116,7 +15088,7 @@ function youtubeVideoId(value) {
15116
15088
  const hostname = parsed.hostname.toLowerCase();
15117
15089
  const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
15118
15090
  if (!isYoutubeHost) return void 0;
15119
- const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _519 => _519.exec, 'call', _520 => _520(parsed.pathname), 'optionalAccess', _521 => _521[1]]);
15091
+ const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _516 => _516.exec, 'call', _517 => _517(parsed.pathname), 'optionalAccess', _518 => _518[1]]);
15120
15092
  const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
15121
15093
  return id && YOUTUBE_ID.test(id) ? id : void 0;
15122
15094
  }
@@ -15235,11 +15207,11 @@ function cards(value, decodedSources) {
15235
15207
  {
15236
15208
  type,
15237
15209
  id,
15238
- title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _522 => _522.name]), () => ( id)),
15239
- url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _523 => _523.externalUrl]), () => ( null)),
15240
- ..._optionalChain([source, 'optionalAccess', _524 => _524.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
15241
- ..._optionalChain([source, 'optionalAccess', _525 => _525.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
15242
- ..._optionalChain([source, 'optionalAccess', _526 => _526.path]) ? { metadata: { path: source.path } } : {}
15210
+ title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _519 => _519.name]), () => ( id)),
15211
+ url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _520 => _520.externalUrl]), () => ( null)),
15212
+ ..._optionalChain([source, 'optionalAccess', _521 => _521.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
15213
+ ..._optionalChain([source, 'optionalAccess', _522 => _522.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
15214
+ ..._optionalChain([source, 'optionalAccess', _523 => _523.path]) ? { metadata: { path: source.path } } : {}
15243
15215
  }
15244
15216
  ];
15245
15217
  });
@@ -15275,11 +15247,11 @@ function attachmentsEvent(record) {
15275
15247
  }
15276
15248
  function mergeSourceMetadata(previous, event) {
15277
15249
  const byIndex = /* @__PURE__ */ new Map();
15278
- for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _527 => _527.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
15250
+ for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _524 => _524.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
15279
15251
  if (!byIndex.has(source.index)) byIndex.set(source.index, source);
15280
15252
  }
15281
15253
  const byIdentity = /* @__PURE__ */ new Map();
15282
- for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _528 => _528.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
15254
+ for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _525 => _525.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
15283
15255
  const identity = `${ref.type}:${ref.id}`;
15284
15256
  if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
15285
15257
  }
@@ -15389,7 +15361,7 @@ function createChatStreamReducer(options = {}) {
15389
15361
  let stateCache = null;
15390
15362
  function invalidate() {
15391
15363
  stateCache = null;
15392
- _optionalChain([onChange, 'optionalCall', _529 => _529()]);
15364
+ _optionalChain([onChange, 'optionalCall', _526 => _526()]);
15393
15365
  }
15394
15366
  function getState() {
15395
15367
  if (!stateCache) {
@@ -15407,7 +15379,7 @@ function createChatStreamReducer(options = {}) {
15407
15379
  return stateCache;
15408
15380
  }
15409
15381
  function emit(name, ...args) {
15410
- _optionalChain([onEffect, 'optionalCall', _530 => _530({ name, args })]);
15382
+ _optionalChain([onEffect, 'optionalCall', _527 => _527({ name, args })]);
15411
15383
  }
15412
15384
  function setMessagesInternal(next) {
15413
15385
  if (next !== messages) {
@@ -15450,12 +15422,12 @@ function createChatStreamReducer(options = {}) {
15450
15422
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
15451
15423
  }
15452
15424
  function applySegmentsToState(segments, meta) {
15453
- const seq = _optionalChain([meta, 'optionalAccess', _531 => _531.streamSeq]);
15454
- if (_optionalChain([meta, 'optionalAccess', _532 => _532.append]) && meta.isCompacting) {
15425
+ const seq = _optionalChain([meta, 'optionalAccess', _528 => _528.streamSeq]);
15426
+ if (_optionalChain([meta, 'optionalAccess', _529 => _529.append]) && meta.isCompacting) {
15455
15427
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
15456
15428
  return;
15457
15429
  }
15458
- if (_optionalChain([meta, 'optionalAccess', _533 => _533.append])) {
15430
+ if (_optionalChain([meta, 'optionalAccess', _530 => _530.append])) {
15459
15431
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
15460
15432
  return;
15461
15433
  }
@@ -15467,7 +15439,7 @@ function createChatStreamReducer(options = {}) {
15467
15439
  adoptTrailingAssistant = false;
15468
15440
  const last = messages[messages.length - 1];
15469
15441
  if (!last || last.role !== "assistant" || adoptTail) return;
15470
- const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _534 => _534.segments, 'optionalAccess', _535 => _535.length]), () => ( 0))) > 0 || last.content !== "";
15442
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _531 => _531.segments, 'optionalAccess', _532 => _532.length]), () => ( 0))) > 0 || last.content !== "";
15471
15443
  if (!hasContent) return;
15472
15444
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
15473
15445
  }
@@ -15683,16 +15655,16 @@ function createChatStreamReducer(options = {}) {
15683
15655
  const status = approvalStatuses[requestId] || "pending";
15684
15656
  if (!displayInline(approvalType)) {
15685
15657
  const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
15686
- const summary = required ? _chunk7MV23NNTcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
15658
+ const summary = required ? _chunkJLKGLPDCcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
15687
15659
  pendingEscalated.set(requestId, {
15688
15660
  command: summary,
15689
- explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
15661
+ explanation: _optionalChain([required, 'optionalAccess', _533 => _533.toolExplanation]),
15690
15662
  approvalType,
15691
15663
  toolCalls
15692
15664
  });
15693
15665
  emit("onEscalatedApproval", requestId, {
15694
15666
  command: summary,
15695
- explanation: _optionalChain([required, 'optionalAccess', _537 => _537.toolExplanation]),
15667
+ explanation: _optionalChain([required, 'optionalAccess', _534 => _534.toolExplanation]),
15696
15668
  approvalType
15697
15669
  });
15698
15670
  break;
@@ -15716,7 +15688,7 @@ function createChatStreamReducer(options = {}) {
15716
15688
  if (!call.requiresApproval) continue;
15717
15689
  segments = accumulator.addApprovalRequest(
15718
15690
  requestId,
15719
- _chunk7MV23NNTcjs.getCommandText.call(void 0, call),
15691
+ _chunkJLKGLPDCcjs.getCommandText.call(void 0, call),
15720
15692
  call.toolExplanation,
15721
15693
  approvalType,
15722
15694
  status,
@@ -15795,7 +15767,7 @@ function createChatStreamReducer(options = {}) {
15795
15767
  if (!call.requiresApproval) continue;
15796
15768
  segments = accumulator.addApprovalRequest(
15797
15769
  requestId,
15798
- _chunk7MV23NNTcjs.getCommandText.call(void 0, call),
15770
+ _chunkJLKGLPDCcjs.getCommandText.call(void 0, call),
15799
15771
  call.toolExplanation,
15800
15772
  escalatedData.approvalType,
15801
15773
  status
@@ -16080,7 +16052,7 @@ function createChatStreamReducer(options = {}) {
16080
16052
  const resolveBatch = (status, confirm) => async () => {
16081
16053
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
16082
16054
  for (const id of ids) {
16083
- const ok = await _optionalChain([confirm, 'optionalCall', _538 => _538(id)]);
16055
+ const ok = await _optionalChain([confirm, 'optionalCall', _535 => _535(id)]);
16084
16056
  if (ok === false) {
16085
16057
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
16086
16058
  }
@@ -16216,8 +16188,8 @@ function createChatStreamReducer(options = {}) {
16216
16188
  }
16217
16189
  }
16218
16190
  }
16219
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _539 => _539.resumed]), () => ( messages.length > 0)));
16220
- if (_optionalChain([extras, 'optionalAccess', _540 => _540.agentBusy])) agentBusyState();
16191
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _536 => _536.resumed]), () => ( messages.length > 0)));
16192
+ if (_optionalChain([extras, 'optionalAccess', _537 => _537.agentBusy])) agentBusyState();
16221
16193
  invalidate();
16222
16194
  }
16223
16195
  return {
@@ -16304,7 +16276,7 @@ function createChatStreamReducer(options = {}) {
16304
16276
  },
16305
16277
  endSseTurn() {
16306
16278
  const last = messages[messages.length - 1];
16307
- if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _541 => _541.segments, 'optionalAccess', _542 => _542.length]), () => ( 0))) === 0 && last.content === "") {
16279
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _538 => _538.segments, 'optionalAccess', _539 => _539.length]), () => ( 0))) === 0 && last.content === "") {
16308
16280
  messages = messages.slice(0, -1);
16309
16281
  }
16310
16282
  sseCurrentText = "";
@@ -16458,10 +16430,10 @@ function createChatDialogStore(options = {}) {
16458
16430
  if (onEvict) {
16459
16431
  const sep = key.indexOf(KEY_SEP);
16460
16432
  onEvict(key.slice(0, sep), key.slice(sep + 1), {
16461
- messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _543 => _543.state, 'access', _544 => _544.messages]), () => ( EMPTY_STATE.messages)),
16462
- approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _545 => _545.state, 'access', _546 => _546.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
16463
- lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _547 => _547.getLastAppliedSeq, 'call', _548 => _548()]), () => ( Number.NEGATIVE_INFINITY)),
16464
- pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _549 => _549.getPendingEchoes, 'call', _550 => _550()]), () => ( EMPTY_PENDING_ECHOES))
16433
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _540 => _540.state, 'access', _541 => _541.messages]), () => ( EMPTY_STATE.messages)),
16434
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _542 => _542.state, 'access', _543 => _543.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
16435
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _544 => _544.getLastAppliedSeq, 'call', _545 => _545()]), () => ( Number.NEGATIVE_INFINITY)),
16436
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _546 => _546.getPendingEchoes, 'call', _547 => _547()]), () => ( EMPTY_PENDING_ECHOES))
16465
16437
  });
16466
16438
  }
16467
16439
  }
@@ -16471,12 +16443,12 @@ function createChatDialogStore(options = {}) {
16471
16443
  const key = keyOf(dialogId, side);
16472
16444
  let reducer = reducers.get(key);
16473
16445
  if (!reducer) {
16474
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _551 => _551(dialogId, side)]), () => ( {}));
16446
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _548 => _548(dialogId, side)]), () => ( {}));
16475
16447
  const userOnChange = base.onChange;
16476
16448
  reducer = createChatStreamReducer({
16477
16449
  ...base,
16478
16450
  onChange: () => {
16479
- _optionalChain([userOnChange, 'optionalCall', _552 => _552()]);
16451
+ _optionalChain([userOnChange, 'optionalCall', _549 => _549()]);
16480
16452
  notify();
16481
16453
  }
16482
16454
  });
@@ -16521,7 +16493,7 @@ function createChatDialogStore(options = {}) {
16521
16493
  };
16522
16494
  }
16523
16495
  function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
16524
- return _nullishCoalesce(_optionalChain([reducers, 'access', _553 => _553.get, 'call', _554 => _554(keyOf(dialogId, side)), 'optionalAccess', _555 => _555.state]), () => ( EMPTY_STATE));
16496
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _550 => _550.get, 'call', _551 => _551(keyOf(dialogId, side)), 'optionalAccess', _552 => _552.state]), () => ( EMPTY_STATE));
16525
16497
  }
16526
16498
  function getServerSnapshot2() {
16527
16499
  return EMPTY_STATE;
@@ -16610,7 +16582,7 @@ function createDeltaBatcher({
16610
16582
  pending = [];
16611
16583
  const key = pendingKey;
16612
16584
  for (const delta of batch) applyOne(delta, key);
16613
- _optionalChain([onFlushed, 'optionalCall', _556 => _556(batch.length)]);
16585
+ _optionalChain([onFlushed, 'optionalCall', _553 => _553(batch.length)]);
16614
16586
  }
16615
16587
  function schedule() {
16616
16588
  if (raf !== null || timer !== null) return;
@@ -16634,7 +16606,7 @@ function createDeltaBatcher({
16634
16606
  }
16635
16607
  if (!isDeltaEvent(event)) return false;
16636
16608
  const tail = pending[pending.length - 1];
16637
- const seqAdvances = _optionalChain([tail, 'optionalAccess', _557 => _557.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
16609
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _554 => _554.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
16638
16610
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
16639
16611
  pending[pending.length - 1] = {
16640
16612
  ...tail,
@@ -16666,7 +16638,7 @@ function useChatStreamReducer({
16666
16638
  side = DEFAULT_DIALOG_SIDE,
16667
16639
  createReducerOptions
16668
16640
  }) {
16669
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _558 => _558()]), () => ( {})));
16641
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _555 => _555()]), () => ( {})));
16670
16642
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
16671
16643
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
16672
16644
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -16711,7 +16683,7 @@ function buildConfirmToolBody(request) {
16711
16683
  async function readServerErrorMessage(response) {
16712
16684
  try {
16713
16685
  const body = await response.json();
16714
- if (typeof _optionalChain([body, 'optionalAccess', _559 => _559.error]) === "string" && body.error.length > 0) return body.error;
16686
+ if (typeof _optionalChain([body, 'optionalAccess', _556 => _556.error]) === "string" && body.error.length > 0) return body.error;
16715
16687
  } catch (e18) {
16716
16688
  }
16717
16689
  return null;
@@ -16874,7 +16846,7 @@ function useManagedDialogList({
16874
16846
  try {
16875
16847
  await deleteDialogCallback(id);
16876
16848
  removeLocal(id);
16877
- _optionalChain([onDialogRemovedRef, 'access', _560 => _560.current, 'optionalCall', _561 => _561(id, "deleted")]);
16849
+ _optionalChain([onDialogRemovedRef, 'access', _557 => _557.current, 'optionalCall', _558 => _558(id, "deleted")]);
16878
16850
  } catch (err) {
16879
16851
  console.error(`${logTag} deleteDialog failed:`, err);
16880
16852
  throw err;
@@ -16885,7 +16857,7 @@ function useManagedDialogList({
16885
16857
  const renameDialog = _react.useCallback.call(void 0,
16886
16858
  async (id, title) => {
16887
16859
  if (!renameDialogCallback) return;
16888
- const previous = _optionalChain([dialogsRef, 'access', _562 => _562.current, 'access', _563 => _563.find, 'call', _564 => _564((d) => d.id === id), 'optionalAccess', _565 => _565.title]);
16860
+ const previous = _optionalChain([dialogsRef, 'access', _559 => _559.current, 'access', _560 => _560.find, 'call', _561 => _561((d) => d.id === id), 'optionalAccess', _562 => _562.title]);
16889
16861
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
16890
16862
  try {
16891
16863
  await renameDialogCallback(id, title);
@@ -16904,7 +16876,7 @@ function useManagedDialogList({
16904
16876
  try {
16905
16877
  await archiveDialogCallback(id);
16906
16878
  removeLocal(id);
16907
- _optionalChain([onDialogRemovedRef, 'access', _566 => _566.current, 'optionalCall', _567 => _567(id, "archived")]);
16879
+ _optionalChain([onDialogRemovedRef, 'access', _563 => _563.current, 'optionalCall', _564 => _564(id, "archived")]);
16908
16880
  } catch (err) {
16909
16881
  console.error(`${logTag} archiveDialog failed:`, err);
16910
16882
  throw err;
@@ -17093,7 +17065,7 @@ var STORAGE_KEY = "conversation";
17093
17065
  var namespaceFor = (source) => {
17094
17066
  const base = `mingo-chat-${source}`;
17095
17067
  const auth = _chunk5GJM7VRRcjs.getEmbedProxyAuth.call(void 0, );
17096
- return _optionalChain([auth, 'optionalAccess', _568 => _568.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
17068
+ return _optionalChain([auth, 'optionalAccess', _565 => _565.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
17097
17069
  };
17098
17070
  function createChatConversationStorage(source) {
17099
17071
  return _chunk5GJM7VRRcjs.createLocalStorageAdapter.call(void 0, {
@@ -17166,7 +17138,7 @@ function useChatHistoryHydration({
17166
17138
  if (cancelled) return;
17167
17139
  if (rows.length === 0) {
17168
17140
  const found = isRecord(body) ? body.found : void 0;
17169
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _569 => _569(conversationId)]);
17141
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _566 => _566(conversationId)]);
17170
17142
  return;
17171
17143
  }
17172
17144
  const hydrated = [];
@@ -17243,7 +17215,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17243
17215
  const { active = true } = runtimeOptions;
17244
17216
  const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
17245
17217
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
17246
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _570 => _570.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
17218
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _567 => _567.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
17247
17219
  const sendMessageRef = _react.useRef.call(void 0,
17248
17220
  () => Promise.resolve(true)
17249
17221
  );
@@ -17279,7 +17251,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17279
17251
  if (!restoredConversationRef.current) {
17280
17252
  restoredConversationRef.current = true;
17281
17253
  pruneStaleChatConversationStorage(source);
17282
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _571 => _571.load, 'call', _572 => _572(), 'optionalAccess', _573 => _573.conversationId]), () => ( null));
17254
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _568 => _568.load, 'call', _569 => _569(), 'optionalAccess', _570 => _570.conversationId]), () => ( null));
17283
17255
  }
17284
17256
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
17285
17257
  const commitConversationId = _react.useCallback.call(void 0,
@@ -17370,7 +17342,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17370
17342
  const abortControllerRef = _react.useRef.call(void 0, null);
17371
17343
  const switchConversation = _react.useCallback.call(void 0,
17372
17344
  (id) => {
17373
- _optionalChain([abortControllerRef, 'access', _574 => _574.current, 'optionalAccess', _575 => _575.abort, 'call', _576 => _576()]);
17345
+ _optionalChain([abortControllerRef, 'access', _571 => _571.current, 'optionalAccess', _572 => _572.abort, 'call', _573 => _573()]);
17374
17346
  flushDeltas();
17375
17347
  mutate((r) => r.reset());
17376
17348
  hydrationSendCountRef.current = 0;
@@ -17407,8 +17379,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17407
17379
  } = useManagedDialogList({
17408
17380
  autoLoad: active,
17409
17381
  fetchDialogs: fetchActiveDialogs,
17410
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _577 => _577.renameDialog]),
17411
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _578 => _578.archiveDialog]),
17382
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _574 => _574.renameDialog]),
17383
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _575 => _575.archiveDialog]),
17412
17384
  pageSize: CHAT_HISTORY_PAGE_SIZE,
17413
17385
  search: conversationsApi ? dialogSearch : void 0,
17414
17386
  logTag: "[useSseChatAdapter]",
@@ -17472,7 +17444,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17472
17444
  const serverMessage = await readServerErrorMessage(response);
17473
17445
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
17474
17446
  }
17475
- const reader = _optionalChain([response, 'access', _579 => _579.body, 'optionalAccess', _580 => _580.getReader, 'call', _581 => _581()]);
17447
+ const reader = _optionalChain([response, 'access', _576 => _576.body, 'optionalAccess', _577 => _577.getReader, 'call', _578 => _578()]);
17476
17448
  if (!reader) throw new Error("No response body");
17477
17449
  const frameDecoder = createSseFrameDecoder();
17478
17450
  let finished = false;
@@ -17501,7 +17473,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17501
17473
  }
17502
17474
  return true;
17503
17475
  } catch (err) {
17504
- if (_optionalChain([err, 'optionalAccess', _582 => _582.name]) === "AbortError" || ctrl.signal.aborted) {
17476
+ if (_optionalChain([err, 'optionalAccess', _579 => _579.name]) === "AbortError" || ctrl.signal.aborted) {
17505
17477
  return true;
17506
17478
  }
17507
17479
  flushDeltas();
@@ -17537,7 +17509,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17537
17509
  );
17538
17510
  sendMessageRef.current = sendMessage;
17539
17511
  const stopMessage = _react.useCallback.call(void 0, () => {
17540
- _optionalChain([abortControllerRef, 'access', _583 => _583.current, 'optionalAccess', _584 => _584.abort, 'call', _585 => _585()]);
17512
+ _optionalChain([abortControllerRef, 'access', _580 => _580.current, 'optionalAccess', _581 => _581.abort, 'call', _582 => _582()]);
17541
17513
  flushDeltas();
17542
17514
  mutate((r) => r.setPhase("idle"));
17543
17515
  }, [mutate, flushDeltas]);
@@ -17573,7 +17545,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17573
17545
  let sendIdx = -1;
17574
17546
  return state.messages.map((m) => {
17575
17547
  const segments = m.segments;
17576
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _586 => _586.filter, 'call', _587 => _587((s) => s.type === "text"), 'access', _588 => _588.map, 'call', _589 => _589((s) => s.text), 'access', _590 => _590.join, 'call', _591 => _591("")]), () => ( ""));
17548
+ const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _583 => _583.filter, 'call', _584 => _584((s) => s.type === "text"), 'access', _585 => _585.map, 'call', _586 => _586((s) => s.text), 'access', _587 => _587.join, 'call', _588 => _588("")]), () => ( ""));
17577
17549
  let sources2;
17578
17550
  let scrollAnchor;
17579
17551
  if (m.role === "user" && !m.hidden) {
@@ -17582,7 +17554,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17582
17554
  if (m.role === "assistant") {
17583
17555
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
17584
17556
  sources2 = sourcesMap.get(lookupIdx);
17585
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _592 => _592.get, 'call', _593 => _593(lookupIdx), 'optionalAccess', _594 => _594.scrollAnchor]), () => ( void 0));
17557
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _589 => _589.get, 'call', _590 => _590(lookupIdx), 'optionalAccess', _591 => _591.scrollAnchor]), () => ( void 0));
17586
17558
  }
17587
17559
  return {
17588
17560
  id: m.id,
@@ -17609,7 +17581,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17609
17581
  );
17610
17582
  return;
17611
17583
  }
17612
- const refSlug = typeof _optionalChain([reference, 'access', _595 => _595.metadata, 'optionalAccess', _596 => _596.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
17584
+ const refSlug = typeof _optionalChain([reference, 'access', _592 => _592.metadata, 'optionalAccess', _593 => _593.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
17613
17585
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
17614
17586
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
17615
17587
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -17657,18 +17629,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
17657
17629
  /** True while the mount-time rebuild from the server transcript runs. */
17658
17630
  isHydratingHistory,
17659
17631
  /** Provider key for the lib's `<ModelDisplay>` icon. */
17660
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _597 => _597.provider]), () => ( null)),
17661
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _598 => _598.modelLabel]), () => ( null)),
17662
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _599 => _599.contextWindowMaxTokens]), () => ( null)),
17632
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _594 => _594.provider]), () => ( null)),
17633
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _595 => _595.modelLabel]), () => ( null)),
17634
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _596 => _596.contextWindowMaxTokens]), () => ( null)),
17663
17635
  /** Input tokens (known after server's message_start frame; null until). */
17664
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _600 => _600.inputTokens]), () => ( null)),
17636
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _597 => _597.inputTokens]), () => ( null)),
17665
17637
  /** Output tokens (known only after server's trailing usage frame). */
17666
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _601 => _601.outputTokens]), () => ( null)),
17638
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _598 => _598.outputTokens]), () => ( null)),
17667
17639
  /** Cache hit % (read / total-input × 100). null during streaming. */
17668
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _602 => _602.cacheHitRatePct]), () => ( null)),
17640
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _599 => _599.cacheHitRatePct]), () => ( null)),
17669
17641
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
17670
17642
  * token counts). null until the trailing usage frame lands. */
17671
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _603 => _603.breakdown]), () => ( null)),
17643
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _600 => _600.breakdown]), () => ( null)),
17672
17644
  // ─── Dialog management ───────────────────────────────────────────────
17673
17645
  // With `chatConversationsUrl` the server transcript store IS the dialog
17674
17646
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -17742,7 +17714,7 @@ function extractIncompleteMessageState(lastMessage) {
17742
17714
  }
17743
17715
  break;
17744
17716
  case "approval_batch": {
17745
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _604 => _604.data, 'access', _605 => _605.executions, 'optionalAccess', _606 => _606[c.toolExecutionRequestId], 'optionalAccess', _607 => _607.status]) === "done");
17717
+ const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _601 => _601.data, 'access', _602 => _602.executions, 'optionalAccess', _603 => _603[c.toolExecutionRequestId], 'optionalAccess', _604 => _604.status]) === "done");
17746
17718
  if (segment.status !== "rejected" && !allDone) {
17747
17719
  hasIncompleteState = true;
17748
17720
  }
@@ -17806,11 +17778,11 @@ function extractIncompleteMessageState(lastMessage) {
17806
17778
  function extractIncompleteTailState(messages) {
17807
17779
  if (!messages || messages.length === 0) return void 0;
17808
17780
  let start = messages.length;
17809
- while (start > 0 && _optionalChain([messages, 'access', _608 => _608[start - 1], 'optionalAccess', _609 => _609.role]) === "assistant") start -= 1;
17781
+ while (start > 0 && _optionalChain([messages, 'access', _605 => _605[start - 1], 'optionalAccess', _606 => _606.role]) === "assistant") start -= 1;
17810
17782
  if (start === messages.length) return void 0;
17811
17783
  const segments = [];
17812
17784
  for (let i = start; i < messages.length; i += 1) {
17813
- const content = _optionalChain([messages, 'access', _610 => _610[i], 'optionalAccess', _611 => _611.content]);
17785
+ const content = _optionalChain([messages, 'access', _607 => _607[i], 'optionalAccess', _608 => _608.content]);
17814
17786
  if (Array.isArray(content)) segments.push(...content);
17815
17787
  }
17816
17788
  if (segments.length === 0) return void 0;
@@ -18041,7 +18013,7 @@ function decodeNatsChunk(chunk) {
18041
18013
  userId: typeof data.userId === "string" ? data.userId : void 0,
18042
18014
  // Wire shape carries no label; fall back to the id (parity with
18043
18015
  // the history path in `process-historical-messages.ts`).
18044
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _612 => _612.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _613 => _613.id]) === "string").map((it) => ({
18016
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _609 => _609.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _610 => _610.id]) === "string").map((it) => ({
18045
18017
  type: it.type,
18046
18018
  id: it.id,
18047
18019
  label: it.id
@@ -18093,15 +18065,15 @@ function decodeNatsChunk(chunk) {
18093
18065
 
18094
18066
  // src/components/chat/utils/process-historical-messages.ts
18095
18067
  function getOwnerDisplayName(owner) {
18096
- if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.ADMIN && owner.user) {
18068
+ if (_optionalChain([owner, 'optionalAccess', _611 => _611.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.ADMIN && owner.user) {
18097
18069
  const { firstName, lastName } = owner.user;
18098
18070
  const name = [firstName, lastName].filter(Boolean).join(" ");
18099
18071
  if (name) return name;
18100
18072
  }
18101
- return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
18073
+ return _optionalChain([owner, 'optionalAccess', _612 => _612.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
18102
18074
  }
18103
18075
  function getOwnerAvatar(owner) {
18104
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
18076
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _613 => _613.user, 'optionalAccess', _614 => _614.image, 'optionalAccess', _615 => _615.imageUrl]), () => ( void 0));
18105
18077
  }
18106
18078
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
18107
18079
  messageDataArray.forEach((data) => {
@@ -18293,7 +18265,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18293
18265
  event.offerId,
18294
18266
  event.text,
18295
18267
  event.origin,
18296
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _619 => _619[event.offerId]]), () => ( "pending"))
18268
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _616 => _616[event.offerId]]), () => ( "pending"))
18297
18269
  );
18298
18270
  break;
18299
18271
  case "ticket-escalated":
@@ -18327,7 +18299,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18327
18299
  );
18328
18300
  break;
18329
18301
  case "escalation-offer-resolved":
18330
- _optionalChain([offerResolutions, 'optionalAccess', _620 => _620.set, 'call', _621 => _621(event.offerId, {
18302
+ _optionalChain([offerResolutions, 'optionalAccess', _617 => _617.set, 'call', _618 => _618(event.offerId, {
18331
18303
  status: event.status,
18332
18304
  resolvedByName: event.resolvedByName
18333
18305
  })]);
@@ -18361,7 +18333,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18361
18333
  if (!call.requiresApproval) continue;
18362
18334
  accumulator.addApprovalRequest(
18363
18335
  event.requestId,
18364
- _chunk7MV23NNTcjs.getCommandText.call(void 0, call),
18336
+ _chunkJLKGLPDCcjs.getCommandText.call(void 0, call),
18365
18337
  call.toolExplanation,
18366
18338
  approvalType,
18367
18339
  status,
@@ -18391,7 +18363,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18391
18363
  }
18392
18364
  }
18393
18365
  } else {
18394
- _optionalChain([escalatedApprovals, 'optionalAccess', _622 => _622.set, 'call', _623 => _623(event.requestId, {
18366
+ _optionalChain([escalatedApprovals, 'optionalAccess', _619 => _619.set, 'call', _620 => _620(event.requestId, {
18395
18367
  command: event.command || "",
18396
18368
  explanation: event.explanation,
18397
18369
  approvalType,
@@ -18406,8 +18378,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18406
18378
  const existingStatus = approvalStatuses[requestId];
18407
18379
  const status = existingStatus || event.status;
18408
18380
  const resolvedByName = event.resolvedByName;
18409
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _624 => _624.get, 'call', _625 => _625(requestId)]);
18410
- if (_optionalChain([escalatedData, 'optionalAccess', _626 => _626.toolCalls]) && escalatedData.toolCalls.length > 0) {
18381
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _621 => _621.get, 'call', _622 => _622(requestId)]);
18382
+ if (_optionalChain([escalatedData, 'optionalAccess', _623 => _623.toolCalls]) && escalatedData.toolCalls.length > 0) {
18411
18383
  if (batchApprovalsEnabled) {
18412
18384
  accumulator.addApprovalBatch(
18413
18385
  requestId,
@@ -18422,14 +18394,14 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18422
18394
  if (!call.requiresApproval) continue;
18423
18395
  accumulator.addApprovalRequest(
18424
18396
  requestId,
18425
- _chunk7MV23NNTcjs.getCommandText.call(void 0, call),
18397
+ _chunkJLKGLPDCcjs.getCommandText.call(void 0, call),
18426
18398
  call.toolExplanation,
18427
18399
  escalatedData.approvalType,
18428
18400
  status
18429
18401
  );
18430
18402
  }
18431
18403
  }
18432
- _optionalChain([escalatedApprovals, 'optionalAccess', _627 => _627.delete, 'call', _628 => _628(requestId)]);
18404
+ _optionalChain([escalatedApprovals, 'optionalAccess', _624 => _624.delete, 'call', _625 => _625(requestId)]);
18433
18405
  break;
18434
18406
  }
18435
18407
  if (escalatedData) {
@@ -18438,7 +18410,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
18438
18410
  explanation: escalatedData.explanation,
18439
18411
  approvalType: escalatedData.approvalType
18440
18412
  });
18441
- _optionalChain([escalatedApprovals, 'optionalAccess', _629 => _629.delete, 'call', _630 => _630(requestId)]);
18413
+ _optionalChain([escalatedApprovals, 'optionalAccess', _626 => _626.delete, 'call', _627 => _627(requestId)]);
18442
18414
  }
18443
18415
  const before = accumulator.getSegments();
18444
18416
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -18530,14 +18502,14 @@ function processHistoricalMessages(messages, options = {}) {
18530
18502
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
18531
18503
  return;
18532
18504
  }
18533
- const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.ADMIN;
18505
+ const isUserMessage = _optionalChain([msg, 'access', _628 => _628.owner, 'optionalAccess', _629 => _629.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _630 => _630.owner, 'optionalAccess', _631 => _631.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.ADMIN;
18534
18506
  if (isUserMessage) {
18535
18507
  flushAssistantMessage();
18536
- const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
18508
+ const userAuthorType = _optionalChain([msg, 'access', _632 => _632.owner, 'optionalAccess', _633 => _633.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.ADMIN ? "admin" : "user";
18537
18509
  messageDataArray.forEach((data) => {
18538
18510
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
18539
18511
  const rawContext = data.contextItems;
18540
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _637 => _637.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _638 => _638.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
18512
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _634 => _634.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _635 => _635.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
18541
18513
  processedMessages.push({
18542
18514
  id: msg.id,
18543
18515
  role: "user",
@@ -18584,7 +18556,7 @@ function processHistoricalMessages(messages, options = {}) {
18584
18556
  });
18585
18557
  const nextMsg = messages[index + 1];
18586
18558
  const isLastMessage = index === messages.length - 1;
18587
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunk3NGJ7NPTcjs.OWNER_TYPE.ADMIN);
18559
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _636 => _636.owner, 'optionalAccess', _637 => _637.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _638 => _638.owner, 'optionalAccess', _639 => _639.type]) === _chunkKVJKKVB3cjs.OWNER_TYPE.ADMIN);
18588
18560
  if (isLastMessage || nextIsFromUser) {
18589
18561
  flushAssistantMessage();
18590
18562
  }
@@ -18968,7 +18940,7 @@ function useNatsChatAdapter(config, options = {}) {
18968
18940
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
18969
18941
  const sendMessage = _react.useCallback.call(void 0,
18970
18942
  async (text2, sendOptions) => {
18971
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _643 => _643.hidden]), () => ( false));
18943
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _640 => _640.hidden]), () => ( false));
18972
18944
  mutate((r) => r.pushOptimisticSend(text2, hidden));
18973
18945
  await publishUserMessage(text2, { hidden, dialogId });
18974
18946
  },
@@ -19061,11 +19033,11 @@ function useNatsChatAdapter(config, options = {}) {
19061
19033
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
19062
19034
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
19063
19035
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
19064
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _644 => _644.provider]), () => ( modelProvider)), () => ( null)),
19065
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _645 => _645.modelLabel]), () => ( modelLabel)), () => ( null)),
19066
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _646 => _646.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _647 => _647.contextWindowMaxTokens]))), () => ( null)),
19067
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _648 => _648.inputTokensSize]), () => ( null)),
19068
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _649 => _649.outputTokensSize]), () => ( null)),
19036
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _641 => _641.provider]), () => ( modelProvider)), () => ( null)),
19037
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _642 => _642.modelLabel]), () => ( modelLabel)), () => ( null)),
19038
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _643 => _643.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _644 => _644.contextWindowMaxTokens]))), () => ( null)),
19039
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _645 => _645.inputTokensSize]), () => ( null)),
19040
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _646 => _646.outputTokensSize]), () => ( null)),
19069
19041
  currentCacheHitRatePct: null,
19070
19042
  currentUsageBreakdown: null,
19071
19043
  // Dialog management
@@ -19187,7 +19159,7 @@ function useUnifiedChat(options) {
19187
19159
  []
19188
19160
  );
19189
19161
  const displayRefForward = _react.useCallback.call(void 0,
19190
- (ref) => _optionalChain([activeStateRef, 'access', _650 => _650.current, 'access', _651 => _651.displayRef, 'optionalCall', _652 => _652(ref)]),
19162
+ (ref) => _optionalChain([activeStateRef, 'access', _647 => _647.current, 'access', _648 => _648.displayRef, 'optionalCall', _649 => _649(ref)]),
19191
19163
  []
19192
19164
  );
19193
19165
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -19197,7 +19169,7 @@ function useUnifiedChat(options) {
19197
19169
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
19198
19170
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
19199
19171
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
19200
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _653 => _653.current, 'access', _654 => _654.setDialogScope, 'optionalCall', _655 => _655(scope)]), []);
19172
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _650 => _650.current, 'access', _651 => _651.setDialogScope, 'optionalCall', _652 => _652(scope)]), []);
19201
19173
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
19202
19174
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
19203
19175
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);