@flamingo-stack/openframe-frontend-core 0.0.642 → 0.0.643-snapshot.20260916153353

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 (201) hide show
  1. package/dist/chat-protocol/index.cjs +6 -3
  2. package/dist/chat-protocol/index.cjs.map +1 -1
  3. package/dist/chat-protocol/index.js +6 -3
  4. package/dist/chat-protocol/index.js.map +1 -1
  5. package/dist/chat-protocol/source-metadata.d.ts +16 -1
  6. package/dist/chat-protocol/source-metadata.d.ts.map +1 -1
  7. package/dist/{chunk-YM6L3WM5.js → chunk-27RD5XTP.js} +3 -3
  8. package/dist/{chunk-POPL3W2S.js → chunk-3DGRXC74.js} +3 -3
  9. package/dist/{chunk-2Z5FPHOL.cjs → chunk-3UBT2OIX.cjs} +20 -20
  10. package/dist/{chunk-2Z5FPHOL.cjs.map → chunk-3UBT2OIX.cjs.map} +1 -1
  11. package/dist/{chunk-6GY6DFIH.js → chunk-4WVWRFGP.js} +6 -6
  12. package/dist/{chunk-OYI3K5R6.cjs → chunk-65EVGKFV.cjs} +8 -14
  13. package/dist/chunk-65EVGKFV.cjs.map +1 -0
  14. package/dist/{chunk-6NHLZORM.js → chunk-7Q5XXPCB.js} +6 -6
  15. package/dist/{chunk-2NRLRRMR.cjs → chunk-7R2DIGG4.cjs} +319 -293
  16. package/dist/chunk-7R2DIGG4.cjs.map +1 -0
  17. package/dist/{chunk-3LXJEXPH.js → chunk-B3Z3RJRW.js} +2 -2
  18. package/dist/{chunk-N5C5P2LM.cjs → chunk-B5IFXCRF.cjs} +22 -22
  19. package/dist/{chunk-N5C5P2LM.cjs.map → chunk-B5IFXCRF.cjs.map} +1 -1
  20. package/dist/{chunk-YRSRP4U3.cjs → chunk-C5Y5T6GC.cjs} +15 -15
  21. package/dist/{chunk-YRSRP4U3.cjs.map → chunk-C5Y5T6GC.cjs.map} +1 -1
  22. package/dist/{chunk-VHB3I6F3.cjs → chunk-CBXZSTAG.cjs} +419 -445
  23. package/dist/chunk-CBXZSTAG.cjs.map +1 -0
  24. package/dist/{chunk-VKPTN5MT.cjs → chunk-DCCY54LU.cjs} +6 -6
  25. package/dist/{chunk-VKPTN5MT.cjs.map → chunk-DCCY54LU.cjs.map} +1 -1
  26. package/dist/{chunk-WL3PNUNY.cjs → chunk-FAD5WURS.cjs} +81 -81
  27. package/dist/{chunk-WL3PNUNY.cjs.map → chunk-FAD5WURS.cjs.map} +1 -1
  28. package/dist/{chunk-3IPL6G7S.js → chunk-FOSIR4QF.js} +260 -234
  29. package/dist/chunk-FOSIR4QF.js.map +1 -0
  30. package/dist/{chunk-MJ424FEC.js → chunk-HOGOQA2X.js} +2 -2
  31. package/dist/{chunk-SDGMLXIP.js → chunk-HPWLIYRL.js} +12 -25
  32. package/dist/chunk-HPWLIYRL.js.map +1 -0
  33. package/dist/{chunk-3I6XHQUD.js → chunk-I57XLISO.js} +54 -80
  34. package/dist/chunk-I57XLISO.js.map +1 -0
  35. package/dist/{chunk-FRCUUK5X.cjs → chunk-IIXB5REN.cjs} +3 -3
  36. package/dist/{chunk-FRCUUK5X.cjs.map → chunk-IIXB5REN.cjs.map} +1 -1
  37. package/dist/{chunk-HW7BLVQH.js → chunk-IXD6SHQ6.js} +4 -4
  38. package/dist/{chunk-XFLJC2WR.cjs → chunk-LZYPSDFE.cjs} +59 -59
  39. package/dist/{chunk-XFLJC2WR.cjs.map → chunk-LZYPSDFE.cjs.map} +1 -1
  40. package/dist/{chunk-QY25ZP2V.cjs → chunk-MCQAOIUK.cjs} +28 -28
  41. package/dist/{chunk-QY25ZP2V.cjs.map → chunk-MCQAOIUK.cjs.map} +1 -1
  42. package/dist/{chunk-S254VEDE.js → chunk-MRIOYSXH.js} +3 -3
  43. package/dist/{chunk-OOOOC5O5.cjs → chunk-OMSUWB6A.cjs} +29 -29
  44. package/dist/{chunk-OOOOC5O5.cjs.map → chunk-OMSUWB6A.cjs.map} +1 -1
  45. package/dist/{chunk-GEIHTN6J.cjs → chunk-OVXYX47B.cjs} +10 -10
  46. package/dist/{chunk-GEIHTN6J.cjs.map → chunk-OVXYX47B.cjs.map} +1 -1
  47. package/dist/{chunk-XWGHLSAL.js → chunk-PFV4DAX5.js} +4 -4
  48. package/dist/{chunk-O4LL7RQV.cjs → chunk-RB6L5EGM.cjs} +208 -221
  49. package/dist/chunk-RB6L5EGM.cjs.map +1 -0
  50. package/dist/{chunk-M4PJVFBF.cjs → chunk-RFFF2EYD.cjs} +11 -11
  51. package/dist/{chunk-M4PJVFBF.cjs.map → chunk-RFFF2EYD.cjs.map} +1 -1
  52. package/dist/{chunk-UFBWNVZZ.js → chunk-RNMGKAS6.js} +7 -7
  53. package/dist/{chunk-SE6YRE3R.cjs → chunk-RWURXICE.cjs} +32 -32
  54. package/dist/{chunk-SE6YRE3R.cjs.map → chunk-RWURXICE.cjs.map} +1 -1
  55. package/dist/{chunk-ZAIYD3MZ.js → chunk-S2KMNFFN.js} +3 -3
  56. package/dist/{chunk-ZGPJ3NVF.js → chunk-SKABQX44.js} +3 -3
  57. package/dist/{chunk-YE3TFNW6.cjs → chunk-TGUA3C4U.cjs} +5 -5
  58. package/dist/{chunk-YE3TFNW6.cjs.map → chunk-TGUA3C4U.cjs.map} +1 -1
  59. package/dist/{chunk-ORFJVMAL.js → chunk-TTVOBWAH.js} +5 -11
  60. package/dist/chunk-TTVOBWAH.js.map +1 -0
  61. package/dist/{chunk-M7QROULE.js → chunk-UEXIMEVU.js} +5 -5
  62. package/dist/{chunk-EW3MSJOE.cjs → chunk-UKV52KAP.cjs} +33 -33
  63. package/dist/{chunk-EW3MSJOE.cjs.map → chunk-UKV52KAP.cjs.map} +1 -1
  64. package/dist/{chunk-J4RZVLLQ.js → chunk-VE52MSYC.js} +5 -5
  65. package/dist/components/case-studies/index.cjs +16 -16
  66. package/dist/components/case-studies/index.js +4 -4
  67. package/dist/components/chat/chat-sidebar.d.ts.map +1 -1
  68. package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
  69. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  70. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  71. package/dist/components/chat/index.cjs +3 -9
  72. package/dist/components/chat/index.cjs.map +1 -1
  73. package/dist/components/chat/index.js +2 -8
  74. package/dist/components/chat/types/entities/investor-update.d.ts.map +1 -1
  75. package/dist/components/chat/types/entities/program-types.d.ts +8 -18
  76. package/dist/components/chat/types/entities/program-types.d.ts.map +1 -1
  77. package/dist/components/chat/utils/compact-card-classes.d.ts.map +1 -1
  78. package/dist/components/contact/index.cjs +5 -5
  79. package/dist/components/contact/index.js +4 -4
  80. package/dist/components/docs/index.cjs +8 -8
  81. package/dist/components/docs/index.js +7 -7
  82. package/dist/components/embeds/index.cjs +5 -5
  83. package/dist/components/embeds/index.js +4 -4
  84. package/dist/components/faq/index.cjs +5 -5
  85. package/dist/components/faq/index.js +4 -4
  86. package/dist/components/features/index.cjs +4 -4
  87. package/dist/components/features/index.js +3 -3
  88. package/dist/components/help-center-pages/index.cjs +24 -24
  89. package/dist/components/help-center-pages/index.js +15 -15
  90. package/dist/components/index.cjs +53 -59
  91. package/dist/components/index.cjs.map +1 -1
  92. package/dist/components/index.js +15 -21
  93. package/dist/components/index.js.map +1 -1
  94. package/dist/components/logs-list.d.ts.map +1 -1
  95. package/dist/components/meeting-scheduler/confirmation.d.ts.map +1 -1
  96. package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
  97. package/dist/components/meeting-scheduler/index.cjs +47 -72
  98. package/dist/components/meeting-scheduler/index.cjs.map +1 -1
  99. package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
  100. package/dist/components/meeting-scheduler/index.js +16 -41
  101. package/dist/components/meeting-scheduler/index.js.map +1 -1
  102. package/dist/components/meeting-scheduler/slot-picker.d.ts.map +1 -1
  103. package/dist/components/navigation/index.cjs +7 -7
  104. package/dist/components/navigation/index.js +6 -6
  105. package/dist/components/onboarding-guides/index.cjs +7 -7
  106. package/dist/components/onboarding-guides/index.js +6 -6
  107. package/dist/components/related-content/index.cjs +3 -3
  108. package/dist/components/related-content/index.js +2 -2
  109. package/dist/components/shared/article-author-byline.d.ts.map +1 -1
  110. package/dist/components/tickets/index.cjs +8 -8
  111. package/dist/components/tickets/index.js +7 -7
  112. package/dist/components/ui/date-picker.d.ts.map +1 -1
  113. package/dist/components/ui/device-card.d.ts.map +1 -1
  114. package/dist/components/ui/drawer.d.ts +19 -5
  115. package/dist/components/ui/drawer.d.ts.map +1 -1
  116. package/dist/components/ui/index.cjs +4 -10
  117. package/dist/components/ui/index.cjs.map +1 -1
  118. package/dist/components/ui/index.js +3 -9
  119. package/dist/components/ui/table/table-timestamp-cell.d.ts.map +1 -1
  120. package/dist/index.cjs +29 -17
  121. package/dist/index.cjs.map +1 -1
  122. package/dist/index.js +35 -23
  123. package/dist/index.js.map +1 -1
  124. package/dist/utils/date-formatters.d.ts +7 -2
  125. package/dist/utils/date-formatters.d.ts.map +1 -1
  126. package/dist/utils/date-utils.d.ts +4 -1
  127. package/dist/utils/date-utils.d.ts.map +1 -1
  128. package/dist/utils/format-date.d.ts.map +1 -1
  129. package/dist/utils/format.d.ts +155 -11
  130. package/dist/utils/format.d.ts.map +1 -1
  131. package/dist/utils/index.cjs +223 -109
  132. package/dist/utils/index.cjs.map +1 -1
  133. package/dist/utils/index.d.ts +4 -1
  134. package/dist/utils/index.d.ts.map +1 -1
  135. package/dist/utils/index.js +211 -110
  136. package/dist/utils/index.js.map +1 -1
  137. package/dist/utils/program-instant.d.ts +145 -0
  138. package/dist/utils/program-instant.d.ts.map +1 -0
  139. package/dist/utils/program-meta-renderers.d.ts +3 -0
  140. package/dist/utils/program-meta-renderers.d.ts.map +1 -0
  141. package/dist/utils/url-safety.d.ts +33 -0
  142. package/dist/utils/url-safety.d.ts.map +1 -0
  143. package/package.json +1 -1
  144. package/src/chat-protocol/__tests__/source-metadata.test.ts +70 -3
  145. package/src/chat-protocol/source-metadata.ts +22 -6
  146. package/src/components/chat/chat-sidebar.tsx +4 -11
  147. package/src/components/chat/entity-cards/.program-card.md +1 -1
  148. package/src/components/chat/entity-cards/blog-card.tsx +4 -24
  149. package/src/components/chat/entity-cards/dispatch.tsx +9 -27
  150. package/src/components/chat/entity-cards/program-card.tsx +42 -81
  151. package/src/components/chat/types/entities/investor-update.ts +4 -6
  152. package/src/components/chat/types/entities/program-types.ts +8 -89
  153. package/src/components/chat/utils/.compact-card-classes.md +1 -1
  154. package/src/components/chat/utils/compact-card-classes.ts +5 -3
  155. package/src/components/logs-list.tsx +4 -13
  156. package/src/components/meeting-scheduler/confirmation.tsx +6 -10
  157. package/src/components/meeting-scheduler/directory.tsx +2 -12
  158. package/src/components/meeting-scheduler/index.tsx +3 -11
  159. package/src/components/meeting-scheduler/slot-picker.tsx +4 -7
  160. package/src/components/shared/article-author-byline.tsx +4 -13
  161. package/src/components/ui/.drawer.md +1 -0
  162. package/src/components/ui/__tests__/drawer-size.test.tsx +38 -0
  163. package/src/components/ui/date-picker.tsx +6 -13
  164. package/src/components/ui/device-card.tsx +4 -10
  165. package/src/components/ui/drawer.tsx +44 -9
  166. package/src/components/ui/table/table-timestamp-cell.tsx +8 -2
  167. package/src/utils/.format.md +5 -2
  168. package/src/utils/__tests__/date-rendering.test.ts +118 -0
  169. package/src/utils/__tests__/format-program-dates.test.ts +148 -0
  170. package/src/utils/__tests__/program-instant.test.ts +125 -0
  171. package/src/utils/__tests__/url-safety.test.ts +44 -0
  172. package/src/utils/date-formatters.ts +18 -29
  173. package/src/utils/date-utils.ts +27 -40
  174. package/src/utils/format-date.ts +14 -16
  175. package/src/utils/format.ts +367 -66
  176. package/src/utils/index.ts +24 -0
  177. package/src/utils/program-instant.ts +180 -0
  178. package/src/utils/program-meta-renderers.ts +18 -0
  179. package/src/utils/url-safety.ts +43 -0
  180. package/dist/chunk-2NRLRRMR.cjs.map +0 -1
  181. package/dist/chunk-3I6XHQUD.js.map +0 -1
  182. package/dist/chunk-3IPL6G7S.js.map +0 -1
  183. package/dist/chunk-O4LL7RQV.cjs.map +0 -1
  184. package/dist/chunk-ORFJVMAL.js.map +0 -1
  185. package/dist/chunk-OYI3K5R6.cjs.map +0 -1
  186. package/dist/chunk-SDGMLXIP.js.map +0 -1
  187. package/dist/chunk-VHB3I6F3.cjs.map +0 -1
  188. /package/dist/{chunk-YM6L3WM5.js.map → chunk-27RD5XTP.js.map} +0 -0
  189. /package/dist/{chunk-POPL3W2S.js.map → chunk-3DGRXC74.js.map} +0 -0
  190. /package/dist/{chunk-6GY6DFIH.js.map → chunk-4WVWRFGP.js.map} +0 -0
  191. /package/dist/{chunk-6NHLZORM.js.map → chunk-7Q5XXPCB.js.map} +0 -0
  192. /package/dist/{chunk-3LXJEXPH.js.map → chunk-B3Z3RJRW.js.map} +0 -0
  193. /package/dist/{chunk-MJ424FEC.js.map → chunk-HOGOQA2X.js.map} +0 -0
  194. /package/dist/{chunk-HW7BLVQH.js.map → chunk-IXD6SHQ6.js.map} +0 -0
  195. /package/dist/{chunk-S254VEDE.js.map → chunk-MRIOYSXH.js.map} +0 -0
  196. /package/dist/{chunk-XWGHLSAL.js.map → chunk-PFV4DAX5.js.map} +0 -0
  197. /package/dist/{chunk-UFBWNVZZ.js.map → chunk-RNMGKAS6.js.map} +0 -0
  198. /package/dist/{chunk-ZAIYD3MZ.js.map → chunk-S2KMNFFN.js.map} +0 -0
  199. /package/dist/{chunk-ZGPJ3NVF.js.map → chunk-SKABQX44.js.map} +0 -0
  200. /package/dist/{chunk-M7QROULE.js.map → chunk-UEXIMEVU.js.map} +0 -0
  201. /package/dist/{chunk-J4RZVLLQ.js.map → chunk-VE52MSYC.js.map} +0 -0
@@ -171,7 +171,10 @@ var _chunkYRTMAXLEcjs = require('./chunk-YRTMAXLE.cjs');
171
171
 
172
172
 
173
173
 
174
- var _chunk2NRLRRMRcjs = require('./chunk-2NRLRRMR.cjs');
174
+
175
+
176
+
177
+ var _chunk7R2DIGG4cjs = require('./chunk-7R2DIGG4.cjs');
175
178
 
176
179
 
177
180
  var _chunkWLSFBRT5cjs = require('./chunk-WLSFBRT5.cjs');
@@ -1094,16 +1097,10 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
1094
1097
 
1095
1098
 
1096
1099
  // src/utils/format-date.ts
1097
- var toDate = (input) => input instanceof Date ? input : new Date(input);
1098
1100
  var INVALID_DATE_PLACEHOLDER = "\u2014";
1099
- var dateFmt = new Intl.DateTimeFormat(void 0, { dateStyle: "short" });
1100
- var timeFmt = new Intl.DateTimeFormat(void 0, { timeStyle: "short" });
1101
- var format = (input, fmt) => {
1102
- const date = toDate(input);
1103
- return Number.isNaN(date.getTime()) ? INVALID_DATE_PLACEHOLDER : fmt.format(date);
1104
- };
1105
- var formatDate = (input) => format(input, dateFmt);
1106
- var formatTime = (input) => format(input, timeFmt);
1101
+ var render = (input, fields) => _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, input, _chunk7R2DIGG4cjs.VIEWER_TIMEZONE, fields, { viewerLocale: true }) || INVALID_DATE_PLACEHOLDER;
1102
+ var formatDate = (input) => render(input, { dateStyle: "short" });
1103
+ var formatTime = (input) => render(input, { timeStyle: "short" });
1107
1104
 
1108
1105
  // src/components/chat/ai-assistant-info.tsx
1109
1106
 
@@ -4789,7 +4786,7 @@ function MspOrganizationCard({
4789
4786
  className
4790
4787
  ),
4791
4788
  children: [
4792
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4789
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.SquareAvatar, { src: logoUrl, alt: name, fallback: name, size: "lg", variant: "square" }),
4793
4790
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
4794
4791
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h3", children: _nullishCoalesce(title, () => ( `Your IT is managed by ${name}`)) }),
4795
4792
  website ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: website }) : null
@@ -4922,7 +4919,7 @@ var ChatHeader = _react.forwardRef.call(void 0,
4922
4919
  ] })
4923
4920
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
4924
4921
  userIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-ods-accent", children: userIcon }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4925
- _chunk2NRLRRMRcjs.SquareAvatar,
4922
+ _chunk7R2DIGG4cjs.SquareAvatar,
4926
4923
  {
4927
4924
  src: userAvatar,
4928
4925
  alt: userName,
@@ -6287,6 +6284,13 @@ function createCardMarkerScanner() {
6287
6284
  }
6288
6285
 
6289
6286
  // src/utils/date-utils.ts
6287
+ var ZONED_DATE_FIELDS_MEDIUM_DATETIME = {
6288
+ year: "numeric",
6289
+ month: "short",
6290
+ day: "numeric",
6291
+ hour: "numeric",
6292
+ minute: "2-digit"
6293
+ };
6290
6294
  function formatTicketRelativeTime(iso) {
6291
6295
  const now = /* @__PURE__ */ new Date();
6292
6296
  const date = new Date(iso);
@@ -6297,22 +6301,10 @@ function formatTicketRelativeTime(iso) {
6297
6301
  if (diffMin < 60) return `${diffMin} min ago`;
6298
6302
  const diffHours = Math.floor(diffMin / 60);
6299
6303
  if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
6300
- const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
6301
- const dd = String(date.getUTCDate()).padStart(2, "0");
6302
- const yyyy = date.getUTCFullYear();
6303
- return `${mm}/${dd}/${yyyy}`;
6304
+ return _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, date, null, "numeric");
6304
6305
  }
6305
6306
  function formatTicketFullTimestamp(iso) {
6306
- const date = new Date(iso);
6307
- if (Number.isNaN(date.getTime())) return "";
6308
- const mm = String(date.getUTCMonth() + 1).padStart(2, "0");
6309
- const dd = String(date.getUTCDate()).padStart(2, "0");
6310
- const yyyy = date.getUTCFullYear();
6311
- let hours = date.getUTCHours();
6312
- const minutes = String(date.getUTCMinutes()).padStart(2, "0");
6313
- const ampm = hours >= 12 ? "PM" : "AM";
6314
- hours = hours % 12 || 12;
6315
- return `${mm}/${dd}/${yyyy}, ${hours}:${minutes} ${ampm}`;
6307
+ return _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, iso, null, "numericDateTime");
6316
6308
  }
6317
6309
  function formatRelativeTime(timestamp) {
6318
6310
  const now = /* @__PURE__ */ new Date();
@@ -6336,11 +6328,10 @@ function formatRelativeTime(timestamp) {
6336
6328
  const weeks = Math.floor(diffInDays / 7);
6337
6329
  return `${weeks}w ago`;
6338
6330
  }
6339
- return targetTime.toLocaleDateString("en-US", {
6331
+ return _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, targetTime, null, {
6340
6332
  month: "short",
6341
6333
  day: "numeric",
6342
- year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0,
6343
- timeZone: "UTC"
6334
+ year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
6344
6335
  });
6345
6336
  }
6346
6337
  function formatAbsoluteDate(timestamp, options = {}) {
@@ -6349,16 +6340,12 @@ function formatAbsoluteDate(timestamp, options = {}) {
6349
6340
  console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
6350
6341
  return "Invalid date";
6351
6342
  }
6352
- const defaultOptions = {
6343
+ return _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
6353
6344
  year: "numeric",
6354
6345
  month: "short",
6355
6346
  day: "numeric",
6356
- // Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
6357
- // Caller can override via `options`.
6358
- timeZone: "UTC",
6359
6347
  ...options
6360
- };
6361
- return targetTime.toLocaleDateString("en-US", defaultOptions);
6348
+ });
6362
6349
  }
6363
6350
  function formatDateTime(timestamp, options = {}) {
6364
6351
  const targetTime = typeof timestamp === "string" ? new Date(timestamp) : timestamp;
@@ -6366,18 +6353,10 @@ function formatDateTime(timestamp, options = {}) {
6366
6353
  console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
6367
6354
  return "Invalid date";
6368
6355
  }
6369
- const defaultOptions = {
6370
- year: "numeric",
6371
- month: "short",
6372
- day: "numeric",
6373
- hour: "numeric",
6374
- minute: "2-digit",
6375
- // Pin to UTC so SSR (Vercel = UTC) and the client agree (React #418).
6376
- // Caller can override via `options`.
6377
- timeZone: "UTC",
6356
+ return _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
6357
+ ...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
6378
6358
  ...options
6379
- };
6380
- return targetTime.toLocaleDateString("en-US", defaultOptions);
6359
+ });
6381
6360
  }
6382
6361
  function getDetailedTimeDifference(timestamp) {
6383
6362
  const now = /* @__PURE__ */ new Date();
@@ -7133,11 +7112,11 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
7133
7112
  }, [refs]);
7134
7113
  const renderingPlan = _react.useMemo.call(void 0, () => {
7135
7114
  if (!hasMarkerSupport) return null;
7136
- const render = renderEntityCard;
7115
+ const render2 = renderEntityCard;
7137
7116
  const inlineByKey = /* @__PURE__ */ new Map();
7138
7117
  const partsBySegment = /* @__PURE__ */ new Map();
7139
7118
  const usedKeys = /* @__PURE__ */ new Set();
7140
- if (!render) return { inlineByKey, partsBySegment, usedKeys };
7119
+ if (!render2) return { inlineByKey, partsBySegment, usedKeys };
7141
7120
  const cache = renderedCardNodeCache.current;
7142
7121
  const emittedBlockKeys = /* @__PURE__ */ new Set();
7143
7122
  segments.forEach((segment, segIdx) => {
@@ -7154,14 +7133,14 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
7154
7133
  usedKeys.add(key);
7155
7134
  const describedRef = refByKey.get(key);
7156
7135
  let entry = cache.get(key);
7157
- if (!entry || entry.render !== render || entry.ref !== describedRef) {
7136
+ if (!entry || entry.render !== render2 || entry.ref !== describedRef) {
7158
7137
  const refForRender = _nullishCoalesce(describedRef, () => ( {
7159
7138
  type: cardType,
7160
7139
  id: cardId,
7161
7140
  title: cardId,
7162
7141
  url: null
7163
7142
  }));
7164
- entry = { render, ref: describedRef, node: render(refForRender) };
7143
+ entry = { render: render2, ref: describedRef, node: render2(refForRender) };
7165
7144
  cache.set(key, entry);
7166
7145
  }
7167
7146
  const rendered = entry.node;
@@ -7306,7 +7285,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
7306
7285
  // Host-supplied brand icon (e.g. Mingo): render it directly,
7307
7286
  // no filled pill — the icon carries its own brand accent.
7308
7287
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-shrink-0 items-center justify-center", children: assistantIcon })
7309
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.SquareAvatar, { ...avatarProps })),
7288
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.SquareAvatar, { ...avatarProps })),
7310
7289
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7311
7290
  "span",
7312
7291
  {
@@ -8102,7 +8081,7 @@ ChatMessageList.displayName = "ChatMessageList";
8102
8081
  // src/components/chat/hooks/use-proxied-image-url.ts
8103
8082
  function useProxiedImageUrl(url) {
8104
8083
  const r = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
8105
- return _nullishCoalesce(_chunk2NRLRRMRcjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8084
+ return _nullishCoalesce(_chunk7R2DIGG4cjs.getProxiedImageUrl.call(void 0, _nullishCoalesce(url, () => ( "")), {
8106
8085
  proxyPrefix: r.endpoints.imageProxyUrlPrefix,
8107
8086
  skipDomains: r.endpoints.imageProxySkipDomains,
8108
8087
  directHttps: true
@@ -8128,7 +8107,7 @@ function ChatMessageRow({ displayName, avatarUrl, timeLabel, body, footer }) {
8128
8107
  height: 40,
8129
8108
  onError: () => setFailedSrc(_nullishCoalesce(resolvedAvatar, () => ( null)))
8130
8109
  }
8131
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary text-h6 md:h-10 md:w-10", children: _chunk2NRLRRMRcjs.personInitials.call(void 0, displayName) || "?" }),
8110
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary text-h6 md:h-10 md:w-10", children: _chunk7R2DIGG4cjs.personInitials.call(void 0, displayName) || "?" }),
8132
8111
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 max-w-full flex-1", children: [
8133
8112
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mb-1 flex min-w-0 max-w-full items-center gap-2", children: [
8134
8113
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-body text-[14px] font-bold leading-[1.33] tracking-[-0.02em] text-ods-text-primary md:text-[15px]", children: displayName }),
@@ -9432,7 +9411,7 @@ function MingoChatHistoryRow({
9432
9411
  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")
9433
9412
  ),
9434
9413
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9435
- _chunk2NRLRRMRcjs.SquareAvatar,
9414
+ _chunk7R2DIGG4cjs.SquareAvatar,
9436
9415
  {
9437
9416
  variant: "round",
9438
9417
  sizePx: 24,
@@ -10573,7 +10552,7 @@ function ChatPanelHeader({
10573
10552
  avatar && (avatar.name || avatar.avatarUrl) ? (
10574
10553
  // Owner avatar at the title cell's right edge (Figma 113:63273).
10575
10554
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
10576
- _chunk2NRLRRMRcjs.SquareAvatar,
10555
+ _chunk7R2DIGG4cjs.SquareAvatar,
10577
10556
  {
10578
10557
  variant: "round",
10579
10558
  sizePx: 32,
@@ -10787,8 +10766,8 @@ function AttachmentChip({ attachment, onRemove, disabled, size: size2 = "default
10787
10766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-ods-text-primary text-h6", title: file.name, children: file.name }),
10788
10767
  (!compact || status !== "ready") && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-muted text-h6", children: [
10789
10768
  status === "sniffing" && "Checking\u2026",
10790
- status === "uploading" && `${progress}% \xB7 ${_chunk2NRLRRMRcjs.formatFileSize.call(void 0, file.size)}`,
10791
- status === "ready" && _chunk2NRLRRMRcjs.formatFileSize.call(void 0, file.size),
10769
+ status === "uploading" && `${progress}% \xB7 ${_chunk7R2DIGG4cjs.formatFileSize.call(void 0, file.size)}`,
10770
+ status === "ready" && _chunk7R2DIGG4cjs.formatFileSize.call(void 0, file.size),
10792
10771
  status === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-error", title: errorMessage, children: _nullishCoalesce(errorMessage, () => ( "Upload failed")) })
10793
10772
  ] })
10794
10773
  ] }),
@@ -11386,13 +11365,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
11386
11365
  _optionalChain([onClick, 'optionalCall', _201 => _201(e)]);
11387
11366
  };
11388
11367
  const formatTimestamp = (timestamp) => {
11389
- if (!timestamp) return "";
11390
- const date = typeof timestamp === "string" ? new Date(timestamp) : timestamp;
11391
- return date.toLocaleDateString("en-US", {
11392
- year: "numeric",
11393
- month: "2-digit",
11394
- day: "2-digit"
11395
- }) + ", " + date.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: false });
11368
+ return _chunk7R2DIGG4cjs.formatDateWithTimezone.call(void 0, timestamp, _chunk7R2DIGG4cjs.VIEWER_TIMEZONE, "numericDateTime24h");
11396
11369
  };
11397
11370
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
11398
11371
  "div",
@@ -11585,10 +11558,10 @@ function resolveExternalNavigation(args) {
11585
11558
 
11586
11559
  // src/components/chat/utils/execute-navigation.ts
11587
11560
  function isForeignOriginHref(href) {
11588
- return /^https?:\/\//i.test(href) && !_chunk2NRLRRMRcjs.isSameOriginAbsoluteHref.call(void 0, href);
11561
+ return /^https?:\/\//i.test(href) && !_chunk7R2DIGG4cjs.isSameOriginAbsoluteHref.call(void 0, href);
11589
11562
  }
11590
11563
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11591
- const isNewTab = runtime ? _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11564
+ const isNewTab = runtime ? _chunk7R2DIGG4cjs.computeIsNewTab.call(void 0, runtime, href, _nullishCoalesce(targetPlatform, () => ( null))) : false;
11592
11565
  if (isNewTab) {
11593
11566
  if (_optionalChain([runtime, 'optionalAccess', _204 => _204.navigation, 'access', _205 => _205.openExternal])) runtime.navigation.openExternal(href);
11594
11567
  else window.open(href, "_blank", NEW_TAB_FEATURES);
@@ -11647,7 +11620,7 @@ function NavLinkAnchorViaRuntime({
11647
11620
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
11648
11621
  const panel = useChatPanel();
11649
11622
  const resolvedHref = resolveHrefForRuntime(href, runtime);
11650
- const isNewTab = _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11623
+ const isNewTab = _chunk7R2DIGG4cjs.computeIsNewTab.call(void 0, runtime, resolvedHref, _nullishCoalesce(targetPlatform, () => ( null)));
11651
11624
  const onClick = (e) => {
11652
11625
  const handled = executeNavigation({
11653
11626
  event: e,
@@ -11659,7 +11632,7 @@ function NavLinkAnchorViaRuntime({
11659
11632
  });
11660
11633
  if (handled && !isNewTab && _optionalChain([panel, 'optionalAccess', _209 => _209.closeChat])) panel.closeChat();
11661
11634
  };
11662
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunk2NRLRRMRcjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11635
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href: resolvedHref, ..._chunk7R2DIGG4cjs.newTabAnchorAttrs.call(void 0, isNewTab), onClick, className, children });
11663
11636
  }
11664
11637
 
11665
11638
  // src/components/chat/source-action-button.tsx
@@ -12962,9 +12935,9 @@ function UserDisplay({
12962
12935
  }) {
12963
12936
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk23V5BSHDcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
12964
12937
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
12965
- _chunk2NRLRRMRcjs.SquareAvatar,
12938
+ _chunk7R2DIGG4cjs.SquareAvatar,
12966
12939
  {
12967
- src: avatarUrl ? _chunk2NRLRRMRcjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12940
+ src: avatarUrl ? _chunk7R2DIGG4cjs.getProxiedImageUrl.call(void 0, avatarUrl) || avatarUrl : void 0,
12968
12941
  fallback: name,
12969
12942
  alt: name,
12970
12943
  sizePx: size2,
@@ -13464,7 +13437,7 @@ function VideoHoverPreviewSurface({
13464
13437
  return () => io.disconnect();
13465
13438
  }, [gateControlled]);
13466
13439
  const showMedia = continuation || (gateControlled ? playerMounted : isNear);
13467
- const { src: posterSrc, onError: onPosterError } = _chunk2NRLRRMRcjs.useCoverImageFallback.call(void 0, posterUrl);
13440
+ const { src: posterSrc, onError: onPosterError } = _chunk7R2DIGG4cjs.useCoverImageFallback.call(void 0, posterUrl);
13468
13441
  const facadeSkipped = preload === "none" && !posterSrc;
13469
13442
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootElRef, className: _chunk23V5BSHDcjs.cn.call(void 0, "absolute inset-0", className), inert: isClone || void 0, children: showMedia ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
13470
13443
  posterSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -13582,7 +13555,7 @@ function groupByAspectRatio(items, getAspectRatio) {
13582
13555
 
13583
13556
  function VideoBitesStrip({
13584
13557
  bites,
13585
- title = _chunk2NRLRRMRcjs.DEFAULT_VIDEO_BITES_TITLE,
13558
+ title = _chunk7R2DIGG4cjs.DEFAULT_VIDEO_BITES_TITLE,
13586
13559
  showTitle = true,
13587
13560
  filterPublished = true,
13588
13561
  profile = null,
@@ -13595,7 +13568,7 @@ function VideoBitesStrip({
13595
13568
  cardHeightMobile = 300,
13596
13569
  showChevrons = true,
13597
13570
  onBiteNavigate,
13598
- sortComparator = _chunk2NRLRRMRcjs.sortBitesByCreatedAtDesc,
13571
+ sortComparator = _chunk7R2DIGG4cjs.sortBitesByCreatedAtDesc,
13599
13572
  className
13600
13573
  }) {
13601
13574
  const items = _react.useMemo.call(void 0, () => {
@@ -13820,7 +13793,7 @@ function EntityVideoSection({
13820
13793
  title = "Video",
13821
13794
  videoSummary,
13822
13795
  videoBites,
13823
- bitesTitle = _chunk2NRLRRMRcjs.DEFAULT_VIDEO_BITES_TITLE,
13796
+ bitesTitle = _chunk7R2DIGG4cjs.DEFAULT_VIDEO_BITES_TITLE,
13824
13797
  filterPublishedBites = true,
13825
13798
  bitesProfile = null,
13826
13799
  bitesHref,
@@ -14059,7 +14032,7 @@ function ReviewStateBadge({ state, className = "" }) {
14059
14032
  function GitHubActivityCard({ item, variant = "compact", className, anchorProps }) {
14060
14033
  const kind = _nullishCoalesce(item.kind, () => ( "commit"));
14061
14034
  const repo = _nullishCoalesce(_nullishCoalesce(item.repo, () => ( parseRepoFromUrl(item.url))), () => ( ""));
14062
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14035
+ const dateText = _chunk7R2DIGG4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14063
14036
  const idLabel = formatActivityId(item.id, kind);
14064
14037
  const { display: title, reviewState } = parseGithubTitle(item.title, kind);
14065
14038
  const primaryText = kind === "pr_review" ? title.replace(/^by\s+/i, "").trim() || "Reviewer" : title;
@@ -14093,26 +14066,26 @@ function GitHubActivityCard({ item, variant = "compact", className, anchorProps
14093
14066
  metaParts.push(
14094
14067
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14095
14068
  );
14096
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14069
+ const href = _chunk7R2DIGG4cjs.safeHref.call(void 0, item.url);
14097
14070
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14098
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
14099
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14100
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
14071
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_ICON_SLOT, children: kindIcon(kind, "h-5 w-5") }),
14072
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14073
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW} flex-nowrap gap-1.5`, children: [
14101
14074
  reviewState ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReviewStateBadge, { state: reviewState }) : null,
14102
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE, children: primaryText })
14075
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE, children: primaryText })
14103
14076
  ] }),
14104
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14077
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14105
14078
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14106
14079
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14107
14080
  ] }, i)) }) }),
14108
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SUMMARY, children: _chunk2NRLRRMRcjs.COMPACT_CARD_ROW_FILLER }) })
14081
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SUMMARY, children: _chunk7R2DIGG4cjs.COMPACT_CARD_ROW_FILLER }) })
14109
14082
  ] }),
14110
14083
  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
14111
14084
  ] });
14112
14085
  if (anchorProps) {
14113
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14086
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14114
14087
  }
14115
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14088
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14116
14089
  }
14117
14090
  function GitHubActivityCardSkeleton({
14118
14091
  variant = "compact",
@@ -14129,12 +14102,12 @@ function GitHubActivityCardSkeleton({
14129
14102
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14130
14103
  ] });
14131
14104
  }
14132
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14133
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14134
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14135
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14136
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14137
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SUMMARY, children: _chunk2NRLRRMRcjs.COMPACT_CARD_ROW_FILLER }) })
14105
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14107
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14108
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14109
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14110
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SUMMARY, children: _chunk7R2DIGG4cjs.COMPACT_CARD_ROW_FILLER }) })
14138
14111
  ] }),
14139
14112
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
14140
14113
  ] });
@@ -14158,7 +14131,7 @@ function parseChannelFromUrl(url) {
14158
14131
  }
14159
14132
  function SlackMessageCard({ item, variant = "compact", className, anchorProps }) {
14160
14133
  const channel = _nullishCoalesce(_nullishCoalesce(item.channel, () => ( parseChannelFromUrl(item.url))), () => ( null));
14161
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14134
+ const dateText = _chunk7R2DIGG4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14162
14135
  if (variant === "row") {
14163
14136
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14164
14137
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-3.5 w-3.5 shrink-0" }),
@@ -14184,23 +14157,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
14184
14157
  metaParts.push(
14185
14158
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14186
14159
  );
14187
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14160
+ const href = _chunk7R2DIGG4cjs.safeHref.call(void 0, item.url);
14188
14161
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14189
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14190
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14191
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE, children: item.title }) }),
14192
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunk2NRLRRMRcjs.COMPACT_CARD_ROW_FILLER }) }),
14193
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14162
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKOQCA5X5cjs.SlackIcon, { className: "h-5 w-5" }) }),
14163
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14164
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE, children: item.title }) }),
14165
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunk7R2DIGG4cjs.COMPACT_CARD_ROW_FILLER }) }),
14166
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14194
14167
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14195
14168
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14196
- ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SUMMARY, children: _chunk2NRLRRMRcjs.COMPACT_CARD_ROW_FILLER }) }) })
14169
+ ] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SUMMARY, children: _chunk7R2DIGG4cjs.COMPACT_CARD_ROW_FILLER }) }) })
14197
14170
  ] }),
14198
14171
  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
14199
14172
  ] });
14200
14173
  if (anchorProps) {
14201
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14174
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14202
14175
  }
14203
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14176
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14204
14177
  }
14205
14178
  function SlackMessageCardSkeleton({
14206
14179
  variant = "compact",
@@ -14215,12 +14188,12 @@ function SlackMessageCardSkeleton({
14215
14188
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14216
14189
  ] });
14217
14190
  }
14218
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14219
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14220
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14221
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14222
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14223
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14191
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14192
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14193
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14194
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }) }),
14195
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-5/6 rounded bg-ods-bg/60" }) }),
14196
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14224
14197
  ] }),
14225
14198
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
14226
14199
  ] });
@@ -14251,12 +14224,12 @@ function statusScheme(status) {
14251
14224
  function HubspotTicketCard({ item, variant = "compact", className, anchorProps }) {
14252
14225
  const statusText = _nullishCoalesce(item.statusLabel, () => ( formatToken(item.status)));
14253
14226
  const priorityText = formatToken(item.priority);
14254
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14227
+ const dateText = _chunk7R2DIGG4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14255
14228
  if (variant === "row") {
14256
14229
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14257
14230
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
14258
14231
  item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
14259
- statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14232
+ statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
14260
14233
  dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
14261
14234
  ] });
14262
14235
  }
@@ -14270,13 +14243,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14270
14243
  metaParts.push(
14271
14244
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
14272
14245
  );
14273
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14246
+ const href = _chunk7R2DIGG4cjs.safeHref.call(void 0, item.url);
14274
14247
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14275
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14248
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14276
14249
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14277
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14250
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14278
14251
  priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14279
- _chunk2NRLRRMRcjs.StatusBadge,
14252
+ _chunk7R2DIGG4cjs.StatusBadge,
14280
14253
  {
14281
14254
  text: priorityText,
14282
14255
  variant: "button",
@@ -14285,7 +14258,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14285
14258
  }
14286
14259
  ) : null,
14287
14260
  statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14288
- _chunk2NRLRRMRcjs.StatusBadge,
14261
+ _chunk7R2DIGG4cjs.StatusBadge,
14289
14262
  {
14290
14263
  text: statusText,
14291
14264
  variant: "button",
@@ -14299,7 +14272,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14299
14272
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
14300
14273
  ] }) : null,
14301
14274
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
14302
- metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14275
+ metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
14303
14276
  i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
14304
14277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
14305
14278
  ] }, i)) }) }) : null
@@ -14307,9 +14280,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
14307
14280
  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
14308
14281
  ] });
14309
14282
  if (anchorProps) {
14310
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14283
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14311
14284
  }
14312
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14285
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14313
14286
  }
14314
14287
  function HubspotTicketCardSkeleton({
14315
14288
  variant = "compact",
@@ -14323,8 +14296,8 @@ function HubspotTicketCardSkeleton({
14323
14296
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-3 w-20 shrink-0 rounded bg-ods-bg/60" })
14324
14297
  ] });
14325
14298
  }
14326
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14327
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14299
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14300
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14328
14301
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14329
14302
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14330
14303
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-12 rounded-full bg-ods-bg/60" }),
@@ -14337,7 +14310,7 @@ function HubspotTicketCardSkeleton({
14337
14310
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-3/4 rounded bg-ods-bg/60" }),
14338
14311
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-2/5 rounded bg-ods-bg/60" })
14339
14312
  ] }),
14340
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14313
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/3 rounded bg-ods-bg/70" }) })
14341
14314
  ] }),
14342
14315
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3.5 rounded bg-ods-bg" }) })
14343
14316
  ] });
@@ -14348,10 +14321,10 @@ function HubspotTicketCardSkeleton({
14348
14321
 
14349
14322
  function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14350
14323
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14351
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14324
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14352
14325
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14353
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14354
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14326
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14327
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
14355
14328
  ] }),
14356
14329
  item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
14357
14330
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
@@ -14362,13 +14335,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
14362
14335
  _optionalChain([anchorProps, 'optionalAccess', _344 => _344.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
14363
14336
  ] });
14364
14337
  if (!anchorProps) {
14365
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14338
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14366
14339
  }
14367
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14340
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14368
14341
  }
14369
14342
  function DataRoomDocCardSkeleton({ className }) {
14370
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14371
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14343
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14344
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14372
14345
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14373
14346
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14374
14347
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14389,29 +14362,29 @@ function DataRoomDocCardSkeleton({ className }) {
14389
14362
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
14390
14363
  const goalsCount = _optionalChain([campaign, 'access', _345 => _345.goals, 'optionalAccess', _346 => _346.length]) || 0;
14391
14364
  const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14392
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14393
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14394
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14395
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SUBTITLE, children: [
14396
- campaign.start_date ? _chunk2NRLRRMRcjs.formatDateShort.call(void 0, campaign.start_date) : null,
14365
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
14366
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14367
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
14368
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SUBTITLE, children: [
14369
+ campaign.start_date ? _chunk7R2DIGG4cjs.formatDateShort.call(void 0, campaign.start_date) : null,
14397
14370
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
14398
14371
  "Marketing campaign"
14399
14372
  ].filter(Boolean).join(" \xB7 ") }) }),
14400
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk2NRLRRMRcjs.COMPACT_CARD_ROW_FILLER }) })
14373
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk7R2DIGG4cjs.COMPACT_CARD_ROW_FILLER }) })
14401
14374
  ] })
14402
14375
  ] });
14403
14376
  if (anchorProps) {
14404
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14377
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
14405
14378
  }
14406
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14379
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
14407
14380
  }
14408
14381
  function CampaignCardAdminSkeleton({ className }) {
14409
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14410
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14411
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14412
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14413
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
14382
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14383
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_IMAGE_SLOT }),
14384
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14385
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-3/5 rounded bg-ods-bg" }) }),
14386
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-1/2 rounded bg-ods-bg/70" }) }),
14387
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3 w-11/12 rounded bg-ods-bg/40" }) })
14415
14388
  ] })
14416
14389
  ] });
14417
14390
  }
@@ -14420,14 +14393,14 @@ function CampaignCardAdminSkeleton({ className }) {
14420
14393
 
14421
14394
 
14422
14395
  function GenericEntityCard({ item, className, anchorProps }) {
14423
- const href = _chunk2NRLRRMRcjs.safeHref.call(void 0, item.url);
14424
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14396
+ const href = _chunk7R2DIGG4cjs.safeHref.call(void 0, item.url);
14397
+ const dateText = _chunk7R2DIGG4cjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
14425
14398
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
14426
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14399
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14427
14400
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
14428
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14401
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
14429
14402
  item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14430
- _chunk2NRLRRMRcjs.StatusBadge,
14403
+ _chunk7R2DIGG4cjs.StatusBadge,
14431
14404
  {
14432
14405
  text: item.badge.text,
14433
14406
  variant: "button",
@@ -14445,18 +14418,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
14445
14418
  ] }),
14446
14419
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
14447
14420
  ] }, i)) }) : null,
14448
- dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14421
+ dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
14449
14422
  ] }),
14450
14423
  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
14451
14424
  ] });
14452
14425
  if (anchorProps) {
14453
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14426
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { ...anchorProps, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
14454
14427
  }
14455
- return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14428
+ return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { href, className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
14456
14429
  }
14457
14430
  function GenericEntityCardSkeleton({ className }) {
14458
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14459
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14431
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_SKELETON_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: [
14432
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14460
14433
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1.5", children: [
14461
14434
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-3.5 w-2/3 rounded bg-ods-bg" }),
14462
14435
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-4 w-16 rounded-full bg-ods-bg/60" })
@@ -14505,8 +14478,8 @@ function useChatCardItem(type, id) {
14505
14478
  const res = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, url);
14506
14479
  if (!res.ok) throw new Error(`chat card fetch failed: ${res.status}`);
14507
14480
  const data = await res.json();
14508
- const items = _chunk2NRLRRMRcjs.extractItems.call(void 0, data);
14509
- const match = items.find((it) => _chunk2NRLRRMRcjs.extractItemId.call(void 0, type, it) === id);
14481
+ const items = _chunk7R2DIGG4cjs.extractItems.call(void 0, data);
14482
+ const match = items.find((it) => _chunk7R2DIGG4cjs.extractItemId.call(void 0, type, it) === id);
14510
14483
  return _nullishCoalesce(match, () => ( null));
14511
14484
  },
14512
14485
  enabled: !!url && id.length > 0,
@@ -14539,7 +14512,7 @@ function useChatCardItem(type, id) {
14539
14512
  function CardMedia({ imageSrc, imageAlt, icon }) {
14540
14513
  if (imageSrc) {
14541
14514
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative block size-10 shrink-0", children: [
14542
- /* @__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: _chunk2NRLRRMRcjs.personInitials.call(void 0, imageAlt) || "?" }),
14515
+ /* @__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: _chunk7R2DIGG4cjs.personInitials.call(void 0, imageAlt) || "?" }),
14543
14516
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
14544
14517
  _chunkWLSFBRT5cjs.next_image_default,
14545
14518
  {
@@ -14697,7 +14670,7 @@ function resolveFetchedCardHref({
14697
14670
  composeContentUrl
14698
14671
  }) {
14699
14672
  if (!composeContentUrl || !contentRefType || !id) return null;
14700
- const canonicalType = _chunk2NRLRRMRcjs.canonicalContentRefType.call(void 0, contentRefType);
14673
+ const canonicalType = _chunk7R2DIGG4cjs.canonicalContentRefType.call(void 0, contentRefType);
14701
14674
  return composeContentUrl({
14702
14675
  // The card registry keys some entries by the legacy rail vocabulary
14703
14676
  // (`blog_post_existing`) because that is what `buildListUrl` expects.
@@ -14907,16 +14880,16 @@ function resolveSourceRowCTA(row, ctx = {}) {
14907
14880
  if (docTarget) {
14908
14881
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
14909
14882
  const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
14910
- href = _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14883
+ href = _nullishCoalesce(_chunk7R2DIGG4cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14911
14884
  targetPlatform = docTarget.platform;
14912
14885
  } else if (ctx.chipBasePlatform) {
14913
14886
  const base = `${_chunk23V5BSHDcjs.getBaseUrl.call(void 0, ctx.chipBasePlatform)}/knowledge-base/`;
14914
- href = _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14887
+ href = _nullishCoalesce(_chunk7R2DIGG4cjs.safeHref.call(void 0, new URL(safePath, base).toString()), () => ( null));
14915
14888
  targetPlatform = ctx.chipBasePlatform;
14916
14889
  } else if (ctx.baseRoute) {
14917
14890
  const synthetic = `https://_internal_.local${ctx.baseRoute.startsWith("/") ? ctx.baseRoute : "/" + ctx.baseRoute}/`;
14918
14891
  const absolute = new URL(safePath, synthetic).toString();
14919
- href = _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14892
+ href = _nullishCoalesce(_chunk7R2DIGG4cjs.safeHref.call(void 0, absolute.replace("https://_internal_.local", "")), () => ( null));
14920
14893
  targetPlatform = _nullishCoalesce(ctx.currentPlatform, () => ( null));
14921
14894
  }
14922
14895
  }
@@ -14925,15 +14898,15 @@ function resolveSourceRowCTA(row, ctx = {}) {
14925
14898
  // Canonical vocabulary only — a rail-vocab alias would miss the host's
14926
14899
  // `hostedTypes` / `overrides` and fall through to the seam's default
14927
14900
  // `<origin>/<type>/<id>` branch. Same canonicalizer `buildListUrl` uses.
14928
- type: _chunk2NRLRRMRcjs.canonicalContentRefType.call(void 0, row.documentType),
14901
+ type: _chunk7R2DIGG4cjs.canonicalContentRefType.call(void 0, row.documentType),
14929
14902
  identifier: idValue,
14930
14903
  externalUrl: row.externalUrl,
14931
14904
  targetPlatform: _nullishCoalesce(row.targetPlatform, () => ( null))
14932
14905
  });
14933
- href = composed.href ? _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14906
+ href = composed.href ? _nullishCoalesce(_chunk7R2DIGG4cjs.safeHref.call(void 0, composed.href), () => ( null)) : null;
14934
14907
  targetPlatform = composed.targetPlatform;
14935
14908
  } else if (row.externalUrl) {
14936
- href = _nullishCoalesce(_chunk2NRLRRMRcjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14909
+ href = _nullishCoalesce(_chunk7R2DIGG4cjs.safeHref.call(void 0, row.externalUrl), () => ( null));
14937
14910
  targetPlatform = _nullishCoalesce(row.targetPlatform, () => ( null));
14938
14911
  }
14939
14912
  const documentType = row.documentType;
@@ -14968,11 +14941,11 @@ function resolveSourceIcon(input, ctx = {}) {
14968
14941
 
14969
14942
  function DeletedDataCard({ title, entityLabel, recoveryNote, className }) {
14970
14943
  const label = entityLabel || "Item";
14971
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14972
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14973
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TEXT_COL, children: [
14974
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk2NRLRRMRcjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14975
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk2NRLRRMRcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14944
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_OUTER_STATIC} opacity-70 ${_nullishCoalesce(className, () => ( ""))}`, children: [
14945
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "h-4 w-4 text-ods-text-secondary" }) }),
14946
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TEXT_COL, children: [
14947
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk7R2DIGG4cjs.COMPACT_CARD_TITLE} text-ods-text-secondary line-through`, children: title || `Deleted ${label.toLowerCase()}` }) }),
14948
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7R2DIGG4cjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary", children: [
14976
14949
  label,
14977
14950
  " deleted",
14978
14951
  recoveryNote ? ` \xB7 ${recoveryNote}` : ""
@@ -15018,7 +14991,7 @@ function GitHubChatCard({
15018
14991
  const title = kind === "pr_review" ? display.replace(/^by\s+/i, "").trim() || "Reviewer" : display;
15019
14992
  const status = kind === "pr_review" && reviewState ? { label: reviewStateLabel(reviewState), variant: reviewStateToVariant(reviewState) } : { label: kindLabel(kind), variant: "grey" };
15020
14993
  const idLabel = formatActivityId(chatRef.id, kind);
15021
- const dateText = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
14994
+ const dateText = _chunk7R2DIGG4cjs.formatDateUTC.call(void 0, _nullishCoalesce(chatRef.date, () => ( null)), { fallback: "", timezone: "local" });
15022
14995
  const description = [idLabel, dateText].filter(Boolean).join(" \xB7 ") || void 0;
15023
14996
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15024
14997
  MingoInfoCard,
@@ -15027,7 +15000,7 @@ function GitHubChatCard({
15027
15000
  description,
15028
15001
  icon: githubKindIcon(kind),
15029
15002
  status,
15030
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15003
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15031
15004
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15032
15005
  menuAriaLabel: "Activity actions"
15033
15006
  }
@@ -15174,7 +15147,7 @@ function HubspotTicketChatCard({
15174
15147
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15175
15148
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TagIcon, { size: 24 }),
15176
15149
  status: statusText ? { label: statusText, variant: hubspotStatusToVariant(status) } : void 0,
15177
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15150
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15178
15151
  menuGroups: cardMenuGroups(chatRef.url, discuss, {
15179
15152
  label: "Open Ticket Details",
15180
15153
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TagIcon, { size: 20 })
@@ -15197,7 +15170,7 @@ function FaqChatCard({
15197
15170
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15198
15171
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.QuestionCircleIcon, { size: 24 }),
15199
15172
  status: { label: statusLabel, variant: "grey" },
15200
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15173
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15201
15174
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15202
15175
  menuAriaLabel: "FAQ actions"
15203
15176
  }
@@ -15217,7 +15190,7 @@ function SlackChatCard({
15217
15190
  title,
15218
15191
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15219
15192
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.SlackLogoGreyIcon, { size: 24 }),
15220
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15193
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15221
15194
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15222
15195
  menuAriaLabel: "Message actions"
15223
15196
  }
@@ -15235,7 +15208,7 @@ function GlyphChatCard({
15235
15208
  title: chatRef.title,
15236
15209
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15237
15210
  icon,
15238
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15211
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15239
15212
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15240
15213
  menuAriaLabel: "Card actions"
15241
15214
  }
@@ -15254,7 +15227,7 @@ function DataRoomDocChatCard({
15254
15227
  description: _nullishCoalesce(chatRef.preview, () => ( void 0)),
15255
15228
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.FileContentIcon, { size: 24 }),
15256
15229
  status: { label: badgeText, variant: "grey" },
15257
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15230
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15258
15231
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15259
15232
  menuAriaLabel: "Document actions"
15260
15233
  }
@@ -15273,7 +15246,7 @@ function GenericFinancialChatCard({
15273
15246
  title: chatRef.title,
15274
15247
  description: subtitle,
15275
15248
  icon,
15276
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15249
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15277
15250
  menuGroups: cardMenuGroups(chatRef.url, discuss),
15278
15251
  menuAriaLabel: "Document actions"
15279
15252
  }
@@ -15359,7 +15332,7 @@ function CampaignChatCard({
15359
15332
  }) {
15360
15333
  const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _378 => _378.goals])) ? item.goals.length : 0;
15361
15334
  const meta = [
15362
- _optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunk2NRLRRMRcjs.formatDateShort.call(void 0, item.start_date) : null,
15335
+ _optionalChain([item, 'optionalAccess', _379 => _379.start_date]) ? _chunk7R2DIGG4cjs.formatDateShort.call(void 0, item.start_date) : null,
15363
15336
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
15364
15337
  "Marketing campaign"
15365
15338
  ].filter(Boolean).join(" \xB7 ");
@@ -15398,7 +15371,7 @@ function EntityMingoCard({
15398
15371
  imageAlt: typeof title === "string" ? title : void 0,
15399
15372
  icon: fallbackIcon,
15400
15373
  status,
15401
- anchorProps: _chunk2NRLRRMRcjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15374
+ anchorProps: _chunk7R2DIGG4cjs.buildAnchorProps.call(void 0, chatRef.url, isNewTab),
15402
15375
  menuGroups: cardMenuGroups(chatRef.url, discuss, openDetails, externalLink),
15403
15376
  menuAriaLabel
15404
15377
  }
@@ -15410,7 +15383,7 @@ function entityCover(image, ogPlaceholder) {
15410
15383
  function statusPill(status) {
15411
15384
  const s = typeof status === "string" ? status.trim() : "";
15412
15385
  if (!s) return void 0;
15413
- const scheme = _chunk2NRLRRMRcjs.getStatusColorScheme.call(void 0, s);
15386
+ const scheme = _chunk7R2DIGG4cjs.getStatusColorScheme.call(void 0, s);
15414
15387
  const variant = scheme === "success" || scheme === "error" || scheme === "warning" ? scheme : "grey";
15415
15388
  return { label: s, variant };
15416
15389
  }
@@ -15497,7 +15470,7 @@ function InvestorUpdateChatCard({
15497
15470
  EntityMingoCard,
15498
15471
  {
15499
15472
  title,
15500
- description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunk2NRLRRMRcjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.period_end]), () => ( null))) || void 0,
15473
+ description: _optionalChain([item, 'optionalAccess', _407 => _407.strategic_update]) || _optionalChain([item, 'optionalAccess', _408 => _408.content]) || _chunk7R2DIGG4cjs.formatInvestorUpdatePeriod.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _409 => _409.period_start]), () => ( null)), _nullishCoalesce(_optionalChain([item, 'optionalAccess', _410 => _410.period_end]), () => ( null))) || void 0,
15501
15474
  cover: entityCover(_optionalChain([item, 'optionalAccess', _411 => _411.featured_image]), ogPlaceholder),
15502
15475
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.PresentationLineIcon, { size: 24 }),
15503
15476
  status: { label: "Investor update", variant: "grey" },
@@ -15541,25 +15514,13 @@ function ProgramChatCard({
15541
15514
  discuss
15542
15515
  }) {
15543
15516
  const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.MicrophoneIcon, { size: 24 });
15544
- const isScheduled = _optionalChain([item, 'optionalAccess', _418 => _418.status]) === "scheduled";
15545
- let typeMeta;
15546
- if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _419 => _419.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
15547
- typeMeta = _chunk2NRLRRMRcjs.formatDurationCompact.call(void 0, item.duration_seconds);
15548
- } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _420 => _420.location_name]) === "string" && item.location_name.trim().length > 0) {
15549
- typeMeta = item.location_name;
15550
- } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _421 => _421.start_at])) {
15551
- const time = _chunk2NRLRRMRcjs.formatTimeWithTimezone.call(void 0, item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
15552
- const dur = _chunk2NRLRRMRcjs.formatDurationFromRange.call(void 0, item.start_at, item.end_at);
15553
- typeMeta = dur ? `${time} \xB7 ${dur}` : time;
15554
- }
15555
- const itemDate = _chunk2NRLRRMRcjs.formatDateUTC.call(void 0, _nullishCoalesce(_optionalChain([item, 'optionalAccess', _422 => _422.date]), () => ( null)), { fallback: "", timezone: "local" });
15556
- const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
15517
+ const { line: meta } = _chunk7R2DIGG4cjs.programMetaLine.call(void 0, _nullishCoalesce(item, () => ( {})), configKey, _chunk7R2DIGG4cjs.programMetaFormatters.call(void 0, _chunk7R2DIGG4cjs.PROGRAM_META_RENDERERS));
15557
15518
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15558
15519
  EntityMingoCard,
15559
15520
  {
15560
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _423 => _423.title]), () => ( "")),
15561
- description: meta || _optionalChain([item, 'optionalAccess', _424 => _424.description]) || void 0,
15562
- cover: entityCover(_optionalChain([item, 'optionalAccess', _425 => _425.cover_url]), ogPlaceholder),
15521
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _418 => _418.title]), () => ( "")),
15522
+ description: meta || _optionalChain([item, 'optionalAccess', _419 => _419.description]) || void 0,
15523
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _420 => _420.cover_url]), ogPlaceholder),
15563
15524
  fallbackIcon: icon,
15564
15525
  status: { label, variant: "grey" },
15565
15526
  chatRef,
@@ -15576,10 +15537,10 @@ function RoadmapChatCard({
15576
15537
  cardType,
15577
15538
  discuss
15578
15539
  }) {
15579
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _426 => _426.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15580
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _427 => _427.customItemId]) != null;
15540
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _421 => _421.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
15541
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _422 => _422.customItemId]) != null;
15581
15542
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRTMAXLEcjs.MapIcon, { size: 24 });
15582
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _428 => _428.customItemId]), className: "size-6" }) : logoUrl ? (
15543
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _423 => _423.customItemId]), className: "size-6" }) : logoUrl ? (
15583
15544
  // Contained (not full-bleed) so the integration logo keeps its aspect
15584
15545
  // ratio inside the bordered icon box — matches RoadmapCard.
15585
15546
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWLSFBRT5cjs.next_image_default, { src: logoUrl, alt: "", className: "size-6 object-contain", width: 24, height: 24, unoptimized: true })
@@ -15590,10 +15551,10 @@ function RoadmapChatCard({
15590
15551
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15591
15552
  EntityMingoCard,
15592
15553
  {
15593
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _429 => _429.title]), () => ( "")),
15594
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _430 => _430.description]), () => ( void 0)),
15554
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _424 => _424.title]), () => ( "")),
15555
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _425 => _425.description]), () => ( void 0)),
15595
15556
  fallbackIcon: icon,
15596
- status: statusPill(_optionalChain([item, 'optionalAccess', _431 => _431.status])),
15557
+ status: statusPill(_optionalChain([item, 'optionalAccess', _426 => _426.status])),
15597
15558
  chatRef,
15598
15559
  isNewTab,
15599
15560
  discuss,
@@ -15609,7 +15570,7 @@ function refHydratedEntry(docType, label, renderRef) {
15609
15570
  bareInline: true,
15610
15571
  contentRefType: docType,
15611
15572
  noComposedHref: true,
15612
- fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _432 => _432.url]), () => ( null)),
15573
+ fallbackHref: (item) => _nullishCoalesce(_optionalChain([item, 'optionalAccess', _427 => _427.url]), () => ( null)),
15613
15574
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
15614
15575
  render: (item, chatRef, opts) => renderRef(fetchedItemDisplayRef(item, chatRef), opts)
15615
15576
  };
@@ -15666,8 +15627,8 @@ function refGlyphRegistryEntries() {
15666
15627
  title: displayRef.title,
15667
15628
  description: _nullishCoalesce(displayRef.preview, () => ( void 0)),
15668
15629
  cover: entityCover(
15669
- _optionalChain([displayRef, 'access', _433 => _433.metadata, 'optionalAccess', _434 => _434.videoPoster]),
15670
- _nullishCoalesce(_optionalChain([opts, 'access', _435 => _435.extras, 'optionalAccess', _436 => _436.buildOgPlaceholderUrl, 'optionalCall', _437 => _437(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
15630
+ _optionalChain([displayRef, 'access', _428 => _428.metadata, 'optionalAccess', _429 => _429.videoPoster]),
15631
+ _nullishCoalesce(_optionalChain([opts, 'access', _430 => _430.extras, 'optionalAccess', _431 => _431.buildOgPlaceholderUrl, 'optionalCall', _432 => _432(_nullishCoalesce(displayRef.title, () => ( "")))]), () => ( null))
15671
15632
  ),
15672
15633
  fallbackIcon: cfg.icon(),
15673
15634
  status: { label: cfg.label, variant: "grey" },
@@ -15682,9 +15643,9 @@ function refGlyphRegistryEntries() {
15682
15643
  }
15683
15644
  function fetchedEmployeeEntryDisplayRef(item, chatRef) {
15684
15645
  const it = item;
15685
- const title = typeof _optionalChain([it, 'optionalAccess', _438 => _438.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
15686
- const author = typeof _optionalChain([it, 'optionalAccess', _439 => _439.author, 'optionalAccess', _440 => _440.full_name]) === "string" ? it.author.full_name.trim() : "";
15687
- const summary = typeof _optionalChain([it, 'optionalAccess', _441 => _441.summary]) === "string" ? it.summary.trim() : "";
15646
+ const title = typeof _optionalChain([it, 'optionalAccess', _433 => _433.title]) === "string" && it.title.trim().length > 0 ? it.title.trim() : chatRef.title;
15647
+ const author = typeof _optionalChain([it, 'optionalAccess', _434 => _434.author, 'optionalAccess', _435 => _435.full_name]) === "string" ? it.author.full_name.trim() : "";
15648
+ const summary = typeof _optionalChain([it, 'optionalAccess', _436 => _436.summary]) === "string" ? it.summary.trim() : "";
15688
15649
  const preview = [author, summary].filter((x) => x.length > 0).join(" \xB7 ");
15689
15650
  return { ...chatRef, title, preview: preview.length > 0 ? preview : chatRef.preview };
15690
15651
  }
@@ -15726,7 +15687,7 @@ function programRegistryEntries() {
15726
15687
  label: cfg.label,
15727
15688
  contentRefType: cfg.contentRefType,
15728
15689
  bareInline: true,
15729
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.ProgramCardSkeleton, { size: "sm" }),
15690
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.ProgramCardSkeleton, { size: "sm" }),
15730
15691
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15731
15692
  ProgramChatCard,
15732
15693
  {
@@ -15736,7 +15697,7 @@ function programRegistryEntries() {
15736
15697
  discuss: opts.discuss,
15737
15698
  configKey: cfg.configKey,
15738
15699
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
15739
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _442 => _442.extras, 'optionalAccess', _443 => _443.buildOgPlaceholderUrl, 'optionalCall', _444 => _444(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _445 => _445.title]), () => ( "")))]), () => ( null))
15700
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _437 => _437.extras, 'optionalAccess', _438 => _438.buildOgPlaceholderUrl, 'optionalCall', _439 => _439(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _440 => _440.title]), () => ( "")))]), () => ( null))
15740
15701
  }
15741
15702
  )
15742
15703
  }));
@@ -15757,7 +15718,7 @@ var ROADMAP_CARD_CONFIGS = {
15757
15718
  // The card's destination IS the ClickUp deep link, derived from the
15758
15719
  // task id post-fetch (the refs frame used to carry it).
15759
15720
  noComposedHref: true,
15760
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? clickupTaskUrl(String(item.id)) : null
15721
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _441 => _441.id]) != null ? clickupTaskUrl(String(item.id)) : null
15761
15722
  }
15762
15723
  };
15763
15724
  function roadmapRegistryEntries() {
@@ -15767,7 +15728,7 @@ function roadmapRegistryEntries() {
15767
15728
  bareInline: true,
15768
15729
  ...cfg.noComposedHref ? { noComposedHref: true } : {},
15769
15730
  ...cfg.fallbackHref ? { fallbackHref: cfg.fallbackHref } : {},
15770
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.RoadmapCardSkeleton, { size: "sm" }),
15731
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.RoadmapCardSkeleton, { size: "sm" }),
15771
15732
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15772
15733
  RoadmapChatCard,
15773
15734
  {
@@ -15799,8 +15760,8 @@ var CHAT_CARD_REGISTRY = {
15799
15760
  DeletedDataCard,
15800
15761
  {
15801
15762
  title: chatRef.title && chatRef.title !== chatRef.id ? chatRef.title : null,
15802
- entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _447 => _447.metadata, 'optionalAccess', _448 => _448.entity_label]), () => ( null)),
15803
- recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _449 => _449.metadata, 'optionalAccess', _450 => _450.recovery_note]), () => ( null))
15763
+ entityLabel: _nullishCoalesce(_optionalChain([chatRef, 'access', _442 => _442.metadata, 'optionalAccess', _443 => _443.entity_label]), () => ( null)),
15764
+ recoveryNote: _nullishCoalesce(_optionalChain([chatRef, 'access', _444 => _444.metadata, 'optionalAccess', _445 => _445.recovery_note]), () => ( null))
15804
15765
  }
15805
15766
  )
15806
15767
  },
@@ -15817,7 +15778,7 @@ var CHAT_CARD_REGISTRY = {
15817
15778
  bareInline: true,
15818
15779
  contentRefType: "faq",
15819
15780
  noComposedHref: true,
15820
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _451 => _451.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
15781
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _446 => _446.id]) != null ? `/faqs#${faqItemAnchor(item.id)}` : null,
15821
15782
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MingoInfoCardSkeleton, {}),
15822
15783
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FaqChatCard, { chatRef: fetchedFaqDisplayRef(item, chatRef), isNewTab: opts.isNewTab, discuss: opts.discuss })
15823
15784
  },
@@ -15843,7 +15804,7 @@ var CHAT_CARD_REGISTRY = {
15843
15804
  label: "Blog post",
15844
15805
  contentRefType: "blog_post_existing",
15845
15806
  bareInline: true,
15846
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.BlogCardSkeleton, { size: "sm" }),
15807
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.BlogCardSkeleton, { size: "sm" }),
15847
15808
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15848
15809
  BlogChatCard,
15849
15810
  {
@@ -15851,8 +15812,8 @@ var CHAT_CARD_REGISTRY = {
15851
15812
  chatRef,
15852
15813
  isNewTab: opts.isNewTab,
15853
15814
  discuss: opts.discuss,
15854
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _452 => _452.extras, 'optionalAccess', _453 => _453.buildOgPlaceholderUrl, 'optionalCall', _454 => _454(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _455 => _455.title]), () => ( "")))]), () => ( null)),
15855
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _456 => _456.metadata, 'optionalAccess', _457 => _457.hasEmbeddedVideo]) === true
15815
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _447 => _447.extras, 'optionalAccess', _448 => _448.buildOgPlaceholderUrl, 'optionalCall', _449 => _449(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _450 => _450.title]), () => ( "")))]), () => ( null)),
15816
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _451 => _451.metadata, 'optionalAccess', _452 => _452.hasEmbeddedVideo]) === true
15856
15817
  }
15857
15818
  )
15858
15819
  },
@@ -15860,7 +15821,7 @@ var CHAT_CARD_REGISTRY = {
15860
15821
  label: "Case study",
15861
15822
  contentRefType: "case_study",
15862
15823
  bareInline: true,
15863
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.CaseStudyCardSkeleton, { size: "sm" }),
15824
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.CaseStudyCardSkeleton, { size: "sm" }),
15864
15825
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15865
15826
  CaseStudyChatCard,
15866
15827
  {
@@ -15868,7 +15829,7 @@ var CHAT_CARD_REGISTRY = {
15868
15829
  chatRef,
15869
15830
  isNewTab: opts.isNewTab,
15870
15831
  discuss: opts.discuss,
15871
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _458 => _458.extras, 'optionalAccess', _459 => _459.buildOgPlaceholderUrl, 'optionalCall', _460 => _460(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _461 => _461.title]), () => ( "")))]), () => ( null))
15832
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _453 => _453.extras, 'optionalAccess', _454 => _454.buildOgPlaceholderUrl, 'optionalCall', _455 => _455(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _456 => _456.title]), () => ( "")))]), () => ( null))
15872
15833
  }
15873
15834
  )
15874
15835
  },
@@ -15876,7 +15837,7 @@ var CHAT_CARD_REGISTRY = {
15876
15837
  label: "Customer interview",
15877
15838
  contentRefType: "customer_interview",
15878
15839
  bareInline: true,
15879
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15840
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.CustomerInterviewCardSkeleton, { size: "sm" }),
15880
15841
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15881
15842
  CustomerInterviewChatCard,
15882
15843
  {
@@ -15884,7 +15845,7 @@ var CHAT_CARD_REGISTRY = {
15884
15845
  chatRef,
15885
15846
  isNewTab: opts.isNewTab,
15886
15847
  discuss: opts.discuss,
15887
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _462 => _462.extras, 'optionalAccess', _463 => _463.buildOgPlaceholderUrl, 'optionalCall', _464 => _464(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _465 => _465.title]), () => ( "")))]), () => ( null))
15848
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _457 => _457.extras, 'optionalAccess', _458 => _458.buildOgPlaceholderUrl, 'optionalCall', _459 => _459(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _460 => _460.title]), () => ( "")))]), () => ( null))
15888
15849
  }
15889
15850
  )
15890
15851
  },
@@ -15892,9 +15853,9 @@ var CHAT_CARD_REGISTRY = {
15892
15853
  label: "Product release",
15893
15854
  contentRefType: "product_release",
15894
15855
  bareInline: true,
15895
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.ProductReleaseCardSkeleton, { size: "sm" }),
15856
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.ProductReleaseCardSkeleton, { size: "sm" }),
15896
15857
  render: (item, chatRef, opts) => {
15897
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _466 => _466.extras, 'optionalAccess', _467 => _467.buildProductReleaseCardProps]), () => ( _chunk2NRLRRMRcjs.defaultBuildProductReleaseCardProps));
15858
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _461 => _461.extras, 'optionalAccess', _462 => _462.buildProductReleaseCardProps]), () => ( _chunk7R2DIGG4cjs.defaultBuildProductReleaseCardProps));
15898
15859
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15899
15860
  ProductReleaseChatCard,
15900
15861
  {
@@ -15912,7 +15873,7 @@ var CHAT_CARD_REGISTRY = {
15912
15873
  label: "Investor update",
15913
15874
  contentRefType: "investor_update",
15914
15875
  bareInline: true,
15915
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15876
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.InvestorUpdateCardSkeleton, { size: "sm" }),
15916
15877
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15917
15878
  InvestorUpdateChatCard,
15918
15879
  {
@@ -15920,7 +15881,7 @@ var CHAT_CARD_REGISTRY = {
15920
15881
  chatRef,
15921
15882
  isNewTab: opts.isNewTab,
15922
15883
  discuss: opts.discuss,
15923
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _468 => _468.extras, 'optionalAccess', _469 => _469.buildOgPlaceholderUrl, 'optionalCall', _470 => _470(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _471 => _471.title]), () => ( "")))]), () => ( null))
15884
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _463 => _463.extras, 'optionalAccess', _464 => _464.buildOgPlaceholderUrl, 'optionalCall', _465 => _465(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _466 => _466.title]), () => ( "")))]), () => ( null))
15924
15885
  }
15925
15886
  )
15926
15887
  },
@@ -15930,7 +15891,7 @@ var CHAT_CARD_REGISTRY = {
15930
15891
  bareInline: true,
15931
15892
  // "Display" affordance (verbatim guide body) instead of "Ask".
15932
15893
  displayAction: true,
15933
- skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15894
+ skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7R2DIGG4cjs.OnboardingGuideCardSkeleton, { size: "sm" }),
15934
15895
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
15935
15896
  OnboardingGuideChatCard,
15936
15897
  {
@@ -15938,7 +15899,7 @@ var CHAT_CARD_REGISTRY = {
15938
15899
  chatRef,
15939
15900
  isNewTab: opts.isNewTab,
15940
15901
  discuss: opts.discuss,
15941
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _472 => _472.extras, 'optionalAccess', _473 => _473.buildOgPlaceholderUrl, 'optionalCall', _474 => _474(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _475 => _475.title]), () => ( "")))]), () => ( null))
15902
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _467 => _467.extras, 'optionalAccess', _468 => _468.buildOgPlaceholderUrl, 'optionalCall', _469 => _469(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _470 => _470.title]), () => ( "")))]), () => ( null))
15942
15903
  }
15943
15904
  )
15944
15905
  },
@@ -15949,13 +15910,13 @@ var CHAT_CARD_REGISTRY = {
15949
15910
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
15950
15911
  // No public viewer — synthesize the hub-internal admin URL post-fetch
15951
15912
  // so the wrapper + isNewTab computation see the actual destination.
15952
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _476 => _476.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
15913
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _471 => _471.id]) ? `/admin/campaigns/${encodeURIComponent(String(item.id))}` : null,
15953
15914
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignChatCard, { item, chatRef, isNewTab: opts.isNewTab, discuss: opts.discuss })
15954
15915
  },
15955
15916
  ...roadmapRegistryEntries()
15956
15917
  };
15957
15918
  function chatCardLabel(docType) {
15958
- return _optionalChain([CHAT_CARD_REGISTRY, 'access', _477 => _477[docType], 'optionalAccess', _478 => _478.label]);
15919
+ return _optionalChain([CHAT_CARD_REGISTRY, 'access', _472 => _472[docType], 'optionalAccess', _473 => _473.label]);
15959
15920
  }
15960
15921
  function ChatCardNavWrap({
15961
15922
  href,
@@ -15971,13 +15932,13 @@ function ChatCardNavWrap({
15971
15932
  if (!href) return;
15972
15933
  const targetEl = e.target;
15973
15934
  const host = e.currentTarget;
15974
- if (!_optionalChain([host, 'optionalAccess', _479 => _479.contains, 'call', _480 => _480(targetEl)])) return;
15975
- if (_optionalChain([targetEl, 'optionalAccess', _481 => _481.closest, 'optionalCall', _482 => _482("button")])) return;
15976
- if (!_optionalChain([targetEl, 'optionalAccess', _483 => _483.closest, 'optionalCall', _484 => _484("a")])) return;
15935
+ if (!_optionalChain([host, 'optionalAccess', _474 => _474.contains, 'call', _475 => _475(targetEl)])) return;
15936
+ if (_optionalChain([targetEl, 'optionalAccess', _476 => _476.closest, 'optionalCall', _477 => _477("button")])) return;
15937
+ if (!_optionalChain([targetEl, 'optionalAccess', _478 => _478.closest, 'optionalCall', _479 => _479("a")])) return;
15977
15938
  const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
15978
15939
  if (!handled) return;
15979
15940
  e.stopPropagation();
15980
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _485 => _485.closeChat])) panel.closeChat();
15941
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _480 => _480.closeChat])) panel.closeChat();
15981
15942
  };
15982
15943
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
15983
15944
  }
@@ -15999,7 +15960,7 @@ function ChatCardLoader({
15999
15960
  title: chatRef.title,
16000
15961
  externalUrl: chatRef.url,
16001
15962
  targetPlatform: chatRef.targetPlatform,
16002
- path: typeof _optionalChain([chatRef, 'access', _486 => _486.metadata, 'optionalAccess', _487 => _487.path]) === "string" ? chatRef.metadata.path : null
15963
+ path: typeof _optionalChain([chatRef, 'access', _481 => _481.metadata, 'optionalAccess', _482 => _482.path]) === "string" ? chatRef.metadata.path : null
16003
15964
  },
16004
15965
  sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
16005
15966
  );
@@ -16013,11 +15974,11 @@ function ChatCardLoader({
16013
15974
  const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
16014
15975
  const fetchEntry = entry && entry.contentRefType ? entry : null;
16015
15976
  const { item, isLoading, isError, isFetched } = useChatCardItem(
16016
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _488 => _488.contentRefType]), () => ( "")),
15977
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _483 => _483.contentRefType]), () => ( "")),
16017
15978
  fetchEntry ? resolvedChatRef.id : ""
16018
15979
  );
16019
15980
  if (!entry) return null;
16020
- const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _489 => _489.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
15981
+ const composedHref = _optionalChain([fetchEntry, 'optionalAccess', _484 => _484.contentRefType]) && !resolvedChatRef.url && item ? resolveFetchedCardHref({
16021
15982
  contentRefType: fetchEntry.contentRefType,
16022
15983
  id: resolvedChatRef.id,
16023
15984
  item,
@@ -16025,18 +15986,18 @@ function ChatCardLoader({
16025
15986
  }) : null;
16026
15987
  const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
16027
15988
  composed: composedHref,
16028
- itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _490 => _490.fallbackHref, 'optionalCall', _491 => _491(item)]), () => ( null)),
15989
+ itemHref: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _485 => _485.fallbackHref, 'optionalCall', _486 => _486(item)]), () => ( null)),
16029
15990
  allowComposed: !fetchEntry.noComposedHref
16030
15991
  }) : null;
16031
15992
  const hrefResolvedChatRef = hrefChoice ? {
16032
15993
  ...resolvedChatRef,
16033
- url: _chunk2NRLRRMRcjs.safeHref.call(void 0, hrefChoice.href),
15994
+ url: _chunk7R2DIGG4cjs.safeHref.call(void 0, hrefChoice.href),
16034
15995
  // The `item` branch carries no platform of its own — keep the ref's.
16035
15996
  targetPlatform: _nullishCoalesce(_nullishCoalesce(hrefChoice.targetPlatform, () => ( resolvedChatRef.targetPlatform)), () => ( null))
16036
15997
  } : resolvedChatRef;
16037
15998
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
16038
15999
  const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
16039
- const isNewTab = _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
16000
+ const isNewTab = _chunk7R2DIGG4cjs.computeIsNewTab.call(void 0, runtime, finalChatRef.url, _nullishCoalesce(finalChatRef.targetPlatform, () => ( null)));
16040
16001
  const useDisplay = !!entry.displayAction && !!onDisplay;
16041
16002
  const discussFn = useDisplay ? onDisplay : onDiscuss;
16042
16003
  const discuss = discussFn ? {
@@ -16059,7 +16020,7 @@ function ChatCardLoader({
16059
16020
  isNewTab,
16060
16021
  discuss
16061
16022
  };
16062
- const path = typeof _optionalChain([finalChatRef, 'access', _492 => _492.metadata, 'optionalAccess', _493 => _493.path]) === "string" ? finalChatRef.metadata.path : null;
16023
+ const path = typeof _optionalChain([finalChatRef, 'access', _487 => _487.metadata, 'optionalAccess', _488 => _488.path]) === "string" ? finalChatRef.metadata.path : null;
16063
16024
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
16064
16025
  ChatCardNavWrap,
16065
16026
  {
@@ -16083,7 +16044,7 @@ function ChatCardLoader({
16083
16044
  if (!fetchEntry) {
16084
16045
  return finish(entry.render(void 0, finalChatRef, renderOpts));
16085
16046
  }
16086
- if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _494 => _494.skeleton, 'optionalCall', _495 => _495()]), () => ( null)) });
16047
+ if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([fetchEntry, 'access', _489 => _489.skeleton, 'optionalCall', _490 => _490()]), () => ( null)) });
16087
16048
  if (!item) {
16088
16049
  if (isError) {
16089
16050
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardLoadFailure, { label: entry.label, id: finalChatRef.id, detail: "Failed to load" });
@@ -16446,7 +16407,7 @@ function useChunkCatchup({
16446
16407
  if (catchupRun.current === run) {
16447
16408
  if (currentDialogId !== dialogIdRef.current) {
16448
16409
  catchupRun.current = null;
16449
- if (_optionalChain([pendingCatchupRef, 'access', _496 => _496.current, 'optionalAccess', _497 => _497.dialogId]) === currentDialogId) {
16410
+ if (_optionalChain([pendingCatchupRef, 'access', _491 => _491.current, 'optionalAccess', _492 => _492.dialogId]) === currentDialogId) {
16450
16411
  pendingCatchupRef.current = null;
16451
16412
  }
16452
16413
  } else {
@@ -16457,7 +16418,7 @@ function useChunkCatchup({
16457
16418
  if (pending.dialogId === currentDialogId) {
16458
16419
  rearmForQueuedCatchup();
16459
16420
  try {
16460
- await _optionalChain([catchUpChunksRef, 'access', _498 => _498.current, 'optionalCall', _499 => _499(pending.fromSequenceId)]);
16421
+ await _optionalChain([catchUpChunksRef, 'access', _493 => _493.current, 'optionalCall', _494 => _494(pending.fromSequenceId)]);
16461
16422
  } catch (rerunError) {
16462
16423
  console.error("Queued catch-up re-run failed:", rerunError);
16463
16424
  }
@@ -16524,7 +16485,7 @@ function useChunkCatchup({
16524
16485
 
16525
16486
  var EMPTY_FRAME = { messages: [], phase: "idle", typing: false, delayMs: 0 };
16526
16487
  function prefersReducedMotion() {
16527
- return typeof window !== "undefined" && _optionalChain([window, 'access', _500 => _500.matchMedia, 'optionalCall', _501 => _501("(prefers-reduced-motion: reduce)"), 'access', _502 => _502.matches]) === true;
16488
+ return typeof window !== "undefined" && _optionalChain([window, 'access', _495 => _495.matchMedia, 'optionalCall', _496 => _496("(prefers-reduced-motion: reduce)"), 'access', _497 => _497.matches]) === true;
16528
16489
  }
16529
16490
  function useScriptedStream(frames, resetKey, enabled = true) {
16530
16491
  const [index, setIndex] = _react.useState.call(void 0, 0);
@@ -16535,7 +16496,7 @@ function useScriptedStream(frames, resetKey, enabled = true) {
16535
16496
  setIndex(0);
16536
16497
  }
16537
16498
  _react.useEffect.call(void 0, () => {
16538
- const mq = _optionalChain([window, 'access', _503 => _503.matchMedia, 'optionalCall', _504 => _504("(prefers-reduced-motion: reduce)")]);
16499
+ const mq = _optionalChain([window, 'access', _498 => _498.matchMedia, 'optionalCall', _499 => _499("(prefers-reduced-motion: reduce)")]);
16539
16500
  const sync = () => setReducedMotion(mq ? mq.matches : prefersReducedMotion());
16540
16501
  sync();
16541
16502
  if (!mq) return void 0;
@@ -16678,7 +16639,7 @@ function useJetStreamDialogSubscription({
16678
16639
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16679
16640
  conn: sharedConn,
16680
16641
  wsUrl,
16681
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _505 => _505.current, 'optionalCall', _506 => _506()]),
16642
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _500 => _500.current, 'optionalCall', _501 => _501()]),
16682
16643
  backoff: reconnectionBackoffRef.current,
16683
16644
  getFreshUrl: () => getNatsWsUrlRef.current(),
16684
16645
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -16693,7 +16654,7 @@ function useJetStreamDialogSubscription({
16693
16654
  setReconnectionCount((c) => c + 1);
16694
16655
  }
16695
16656
  hadConnectionBeforeRef.current = true;
16696
- _optionalChain([onConnectRef, 'access', _507 => _507.current, 'optionalCall', _508 => _508()]);
16657
+ _optionalChain([onConnectRef, 'access', _502 => _502.current, 'optionalCall', _503 => _503()]);
16697
16658
  }
16698
16659
  if (status === "error") {
16699
16660
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -16703,7 +16664,7 @@ function useJetStreamDialogSubscription({
16703
16664
  setIsConnected(false);
16704
16665
  setIsSubscribed(false);
16705
16666
  tearDownSubscription();
16706
- _optionalChain([onDisconnectRef, 'access', _509 => _509.current, 'optionalCall', _510 => _510()]);
16667
+ _optionalChain([onDisconnectRef, 'access', _504 => _504.current, 'optionalCall', _505 => _505()]);
16707
16668
  }
16708
16669
  }
16709
16670
  });
@@ -16829,7 +16790,7 @@ function useJetStreamDialogSubscription({
16829
16790
  }
16830
16791
  subscriptionRef.current = handle;
16831
16792
  setIsSubscribed(true);
16832
- _optionalChain([onSubscribedRef, 'access', _511 => _511.current, 'optionalCall', _512 => _512()]);
16793
+ _optionalChain([onSubscribedRef, 'access', _506 => _506.current, 'optionalCall', _507 => _507()]);
16833
16794
  } catch (e50) {
16834
16795
  if (!cancelled) {
16835
16796
  setIsSubscribed(false);
@@ -16945,20 +16906,20 @@ function useNatsDialogSubscription({
16945
16906
  const tearDownSubscriptions = () => {
16946
16907
  subscriptionRefs.current.forEach((sub) => {
16947
16908
  try {
16948
- _optionalChain([sub, 'optionalAccess', _513 => _513.unsubscribe, 'call', _514 => _514()]);
16909
+ _optionalChain([sub, 'optionalAccess', _508 => _508.unsubscribe, 'call', _509 => _509()]);
16949
16910
  } catch (e52) {
16950
16911
  }
16951
16912
  });
16952
16913
  subscriptionRefs.current.clear();
16953
16914
  lastSubscribedDialogIdRef.current = null;
16954
- _optionalChain([abortControllerRef, 'access', _515 => _515.current, 'optionalAccess', _516 => _516.abort, 'call', _517 => _517()]);
16915
+ _optionalChain([abortControllerRef, 'access', _510 => _510.current, 'optionalAccess', _511 => _511.abort, 'call', _512 => _512()]);
16955
16916
  abortControllerRef.current = null;
16956
16917
  };
16957
16918
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
16958
16919
  const lifecycle = _chunkI5JVSFNVcjs.startConnectionLifecycle.call(void 0, {
16959
16920
  conn: sharedConn,
16960
16921
  wsUrl,
16961
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _518 => _518.current, 'optionalCall', _519 => _519()]),
16922
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _513 => _513.current, 'optionalCall', _514 => _514()]),
16962
16923
  backoff: reconnectionBackoffRef.current,
16963
16924
  getFreshUrl: () => getNatsWsUrlRef.current(),
16964
16925
  shouldRetryOn: isDisconnectStatus,
@@ -16969,7 +16930,7 @@ function useNatsDialogSubscription({
16969
16930
  setReconnectionCount((c) => c + 1);
16970
16931
  }
16971
16932
  hadConnectionBeforeRef.current = true;
16972
- _optionalChain([onConnectRef, 'access', _520 => _520.current, 'optionalCall', _521 => _521()]);
16933
+ _optionalChain([onConnectRef, 'access', _515 => _515.current, 'optionalCall', _516 => _516()]);
16973
16934
  }
16974
16935
  if (status === "error") {
16975
16936
  console.warn("[NATS] protocol error:", evt.data);
@@ -16979,7 +16940,7 @@ function useNatsDialogSubscription({
16979
16940
  setIsConnected(false);
16980
16941
  setIsSubscribed(false);
16981
16942
  tearDownSubscriptions();
16982
- _optionalChain([onDisconnectRef, 'access', _522 => _522.current, 'optionalCall', _523 => _523()]);
16943
+ _optionalChain([onDisconnectRef, 'access', _517 => _517.current, 'optionalCall', _518 => _518()]);
16983
16944
  }
16984
16945
  }
16985
16946
  });
@@ -17010,13 +16971,13 @@ function useNatsDialogSubscription({
17010
16971
  setIsSubscribed(false);
17011
16972
  subscriptionRefs.current.forEach((sub) => {
17012
16973
  try {
17013
- _optionalChain([sub, 'optionalAccess', _524 => _524.unsubscribe, 'call', _525 => _525()]);
16974
+ _optionalChain([sub, 'optionalAccess', _519 => _519.unsubscribe, 'call', _520 => _520()]);
17014
16975
  } catch (e53) {
17015
16976
  }
17016
16977
  });
17017
16978
  subscriptionRefs.current.clear();
17018
16979
  lastSubscribedDialogIdRef.current = null;
17019
- _optionalChain([abortControllerRef, 'access', _526 => _526.current, 'optionalAccess', _527 => _527.abort, 'call', _528 => _528()]);
16980
+ _optionalChain([abortControllerRef, 'access', _521 => _521.current, 'optionalAccess', _522 => _522.abort, 'call', _523 => _523()]);
17020
16981
  abortControllerRef.current = null;
17021
16982
  }
17022
16983
  return void 0;
@@ -17028,12 +16989,12 @@ function useNatsDialogSubscription({
17028
16989
  if (subscriptionRefs.current.size > 0) {
17029
16990
  subscriptionRefs.current.forEach((sub) => {
17030
16991
  try {
17031
- _optionalChain([sub, 'optionalAccess', _529 => _529.unsubscribe, 'call', _530 => _530()]);
16992
+ _optionalChain([sub, 'optionalAccess', _524 => _524.unsubscribe, 'call', _525 => _525()]);
17032
16993
  } catch (e54) {
17033
16994
  }
17034
16995
  });
17035
16996
  subscriptionRefs.current.clear();
17036
- _optionalChain([abortControllerRef, 'access', _531 => _531.current, 'optionalAccess', _532 => _532.abort, 'call', _533 => _533()]);
16997
+ _optionalChain([abortControllerRef, 'access', _526 => _526.current, 'optionalAccess', _527 => _527.abort, 'call', _528 => _528()]);
17037
16998
  }
17038
16999
  abortControllerRef.current = new AbortController();
17039
17000
  const abort = abortControllerRef.current;
@@ -17063,7 +17024,7 @@ function useNatsDialogSubscription({
17063
17024
  });
17064
17025
  lastSubscribedDialogIdRef.current = dialogId;
17065
17026
  setIsSubscribed(true);
17066
- _optionalChain([onSubscribedRef, 'access', _534 => _534.current, 'optionalCall', _535 => _535()]);
17027
+ _optionalChain([onSubscribedRef, 'access', _529 => _529.current, 'optionalCall', _530 => _530()]);
17067
17028
  };
17068
17029
  if (isConnectedRef.current) {
17069
17030
  createSubscriptions();
@@ -17074,7 +17035,7 @@ function useNatsDialogSubscription({
17074
17035
  abort.abort();
17075
17036
  subscriptions.forEach((sub) => {
17076
17037
  try {
17077
- _optionalChain([sub, 'optionalAccess', _536 => _536.unsubscribe, 'call', _537 => _537()]);
17038
+ _optionalChain([sub, 'optionalAccess', _531 => _531.unsubscribe, 'call', _532 => _532()]);
17078
17039
  } catch (e56) {
17079
17040
  }
17080
17041
  });
@@ -17113,7 +17074,7 @@ function useNatsDialogSubscription({
17113
17074
  });
17114
17075
  lastSubscribedDialogIdRef.current = currentDialogId;
17115
17076
  setIsSubscribed(true);
17116
- _optionalChain([onSubscribedRef, 'access', _538 => _538.current, 'optionalCall', _539 => _539()]);
17077
+ _optionalChain([onSubscribedRef, 'access', _533 => _533.current, 'optionalCall', _534 => _534()]);
17117
17078
  } else if (subscriptionRefs.current.size > 0) {
17118
17079
  setIsSubscribed(true);
17119
17080
  }
@@ -17121,10 +17082,10 @@ function useNatsDialogSubscription({
17121
17082
  return { isConnected, isSubscribed, reconnectionCount };
17122
17083
  }
17123
17084
  function buildNatsWsUrl(apiBaseUrl, options) {
17124
- const path = _optionalChain([options, 'optionalAccess', _540 => _540.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17085
+ const path = _optionalChain([options, 'optionalAccess', _535 => _535.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
17125
17086
  const u = new URL(path, apiBaseUrl);
17126
17087
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
17127
- if (_optionalChain([options, 'optionalAccess', _541 => _541.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _542 => _542.token])) {
17088
+ if (_optionalChain([options, 'optionalAccess', _536 => _536.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _537 => _537.token])) {
17128
17089
  u.searchParams.set("authorization", options.token);
17129
17090
  }
17130
17091
  return u.toString();
@@ -17142,7 +17103,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17142
17103
  const data = await res.json();
17143
17104
  return _nullishCoalesce(data.commands, () => ( []));
17144
17105
  } catch (err) {
17145
- if (_optionalChain([err, 'optionalAccess', _543 => _543.name]) === "AbortError") throw err;
17106
+ if (_optionalChain([err, 'optionalAccess', _538 => _538.name]) === "AbortError") throw err;
17146
17107
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
17147
17108
  return [];
17148
17109
  }
@@ -17150,8 +17111,8 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
17150
17111
  var NO_COMMANDS = [];
17151
17112
  function useSlashCommands(prefix, commandsUrl) {
17152
17113
  const [answered, setAnswered] = _react.useState.call(void 0, null);
17153
- const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _544 => _544.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17154
- const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _545 => _545.prefix]) !== prefix;
17114
+ const commands = prefix != null && _optionalChain([answered, 'optionalAccess', _539 => _539.prefix]) === prefix ? answered.commands : NO_COMMANDS;
17115
+ const loading = prefix != null && _optionalChain([answered, 'optionalAccess', _540 => _540.prefix]) !== prefix;
17155
17116
  _react.useEffect.call(void 0, () => {
17156
17117
  if (prefix == null) return void 0;
17157
17118
  let cancelled = false;
@@ -17161,7 +17122,7 @@ function useSlashCommands(prefix, commandsUrl) {
17161
17122
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
17162
17123
  if (!cancelled) setAnswered({ prefix, commands: next });
17163
17124
  } catch (err) {
17164
- if (!cancelled && _optionalChain([err, 'optionalAccess', _546 => _546.name]) !== "AbortError") {
17125
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _541 => _541.name]) !== "AbortError") {
17165
17126
  console.warn("[use-slash-commands] fetch failed:", err);
17166
17127
  setAnswered({ prefix, commands: NO_COMMANDS });
17167
17128
  }
@@ -17184,7 +17145,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
17184
17145
  const query = _reactquery.useQuery.call(void 0, {
17185
17146
  queryKey: ["chat-slash-commands", commandsUrl],
17186
17147
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
17187
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _547 => _547.enabled]), () => ( true)),
17148
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _542 => _542.enabled]), () => ( true)),
17188
17149
  staleTime: Infinity,
17189
17150
  gcTime: Infinity,
17190
17151
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -17223,21 +17184,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
17223
17184
  }
17224
17185
  const data = await res.json();
17225
17186
  return {
17226
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _548 => _548.name]), () => ( null)),
17227
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _549 => _549.icon]), () => ( null)),
17228
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _550 => _550.greeting]), () => ( null)),
17229
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _551 => _551.enabledRagTableIds]), () => ( [])),
17230
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _552 => _552.quickActions]), () => ( [])),
17231
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _553 => _553.suggestedQueries]), () => ( []))
17187
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _543 => _543.name]), () => ( null)),
17188
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _544 => _544.icon]), () => ( null)),
17189
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _545 => _545.greeting]), () => ( null)),
17190
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _546 => _546.enabledRagTableIds]), () => ( [])),
17191
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _547 => _547.quickActions]), () => ( [])),
17192
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _548 => _548.suggestedQueries]), () => ( []))
17232
17193
  };
17233
17194
  } catch (err) {
17234
- if (_optionalChain([err, 'optionalAccess', _554 => _554.name]) === "AbortError") throw err;
17195
+ if (_optionalChain([err, 'optionalAccess', _549 => _549.name]) === "AbortError") throw err;
17235
17196
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
17236
17197
  return EMPTY_STATE_FALLBACK;
17237
17198
  }
17238
17199
  }
17239
17200
  function useEmptyStateConfig(emptyStateUrl, options) {
17240
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _555 => _555.enabled]), () => ( true))) && !!emptyStateUrl;
17201
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _550 => _550.enabled]), () => ( true))) && !!emptyStateUrl;
17241
17202
  const query = _reactquery.useQuery.call(void 0, {
17242
17203
  queryKey: ["chat-empty-state", emptyStateUrl],
17243
17204
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -17266,7 +17227,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
17266
17227
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
17267
17228
  function uploadWithProgress(url, file, token, onProgress, signal) {
17268
17229
  return new Promise((resolve, reject) => {
17269
- if (_optionalChain([signal, 'optionalAccess', _556 => _556.aborted])) {
17230
+ if (_optionalChain([signal, 'optionalAccess', _551 => _551.aborted])) {
17270
17231
  reject(new Error("Upload cancelled"));
17271
17232
  return;
17272
17233
  }
@@ -17308,7 +17269,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
17308
17269
  const handleSignalAbort = () => {
17309
17270
  xhr.abort();
17310
17271
  };
17311
- _optionalChain([signal, 'optionalAccess', _557 => _557.addEventListener, 'call', _558 => _558("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17272
+ _optionalChain([signal, 'optionalAccess', _552 => _552.addEventListener, 'call', _553 => _553("abort", handleSignalAbort, { once: true, signal: listeners.signal })]);
17312
17273
  xhr.upload.addEventListener("progress", handleProgress, { signal: listeners.signal });
17313
17274
  xhr.addEventListener("load", handleLoad, { signal: listeners.signal });
17314
17275
  xhr.addEventListener("error", handleError, { signal: listeners.signal });
@@ -17352,10 +17313,10 @@ function useChatAttachments() {
17352
17313
  try {
17353
17314
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
17354
17315
  } catch (err) {
17355
- if (_optionalChain([ctrl, 'optionalAccess', _559 => _559.signal, 'access', _560 => _560.aborted])) return;
17316
+ if (_optionalChain([ctrl, 'optionalAccess', _554 => _554.signal, 'access', _555 => _555.aborted])) return;
17356
17317
  throw new Error(`Could not read file content: ${err instanceof Error ? err.message : String(err)}`);
17357
17318
  }
17358
- if (_optionalChain([ctrl, 'optionalAccess', _561 => _561.signal, 'access', _562 => _562.aborted])) return;
17319
+ if (_optionalChain([ctrl, 'optionalAccess', _556 => _556.signal, 'access', _557 => _557.aborted])) return;
17359
17320
  if (!sniffed) {
17360
17321
  throw new Error("Unrecognized file format");
17361
17322
  }
@@ -17369,7 +17330,7 @@ function useChatAttachments() {
17369
17330
  const urlResp = await _chunkEHAYNUOLcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
17370
17331
  method: "POST",
17371
17332
  headers: { "Content-Type": "application/json" },
17372
- signal: _optionalChain([ctrl, 'optionalAccess', _563 => _563.signal]),
17333
+ signal: _optionalChain([ctrl, 'optionalAccess', _558 => _558.signal]),
17373
17334
  body: JSON.stringify({
17374
17335
  fileName: att.file.name,
17375
17336
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -17398,9 +17359,9 @@ function useChatAttachments() {
17398
17359
  (pct) => {
17399
17360
  updateOne(att.id, { progress: pct });
17400
17361
  },
17401
- _optionalChain([ctrl, 'optionalAccess', _564 => _564.signal])
17362
+ _optionalChain([ctrl, 'optionalAccess', _559 => _559.signal])
17402
17363
  );
17403
- if (_optionalChain([ctrl, 'optionalAccess', _565 => _565.signal, 'access', _566 => _566.aborted])) return;
17364
+ if (_optionalChain([ctrl, 'optionalAccess', _560 => _560.signal, 'access', _561 => _561.aborted])) return;
17404
17365
  updateOne(att.id, {
17405
17366
  status: "ready",
17406
17367
  progress: 100,
@@ -17408,7 +17369,7 @@ function useChatAttachments() {
17408
17369
  viewToken: mintData.viewToken
17409
17370
  });
17410
17371
  } catch (err) {
17411
- if (_optionalChain([ctrl, 'optionalAccess', _567 => _567.signal, 'access', _568 => _568.aborted])) return;
17372
+ if (_optionalChain([ctrl, 'optionalAccess', _562 => _562.signal, 'access', _563 => _563.aborted])) return;
17412
17373
  const message = err instanceof Error ? err.message : String(err);
17413
17374
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message });
17414
17375
  } finally {
@@ -17530,7 +17491,7 @@ function useChatAttachmentImageGallery() {
17530
17491
  return () => root.removeEventListener("click", onClick);
17531
17492
  }, [viewUrlPrefix]);
17532
17493
  const modal = state.isOpen ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
17533
- _chunk2NRLRRMRcjs.ImageGalleryModal,
17494
+ _chunk7R2DIGG4cjs.ImageGalleryModal,
17534
17495
  {
17535
17496
  images: state.images,
17536
17497
  isOpen: state.isOpen,
@@ -17557,11 +17518,11 @@ var ANON_DEFAULTS = {
17557
17518
  function useResolveChatIdentity(enabled) {
17558
17519
  const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
17559
17520
  const url = runtime.endpoints.identityUrl;
17560
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _569 => _569.email]), () => ( null));
17521
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _564 => _564.email]), () => ( null));
17561
17522
  const requestKey = enabled ? `${url}\0${_nullishCoalesce(proxyEmail, () => ( ""))}` : null;
17562
17523
  const [resolved, setResolved] = _react.useState.call(void 0, null);
17563
- const data = _optionalChain([resolved, 'optionalAccess', _570 => _570.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17564
- const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _571 => _571.key]) !== requestKey;
17524
+ const data = _optionalChain([resolved, 'optionalAccess', _565 => _565.key]) === requestKey ? resolved.data : ANON_DEFAULTS;
17525
+ const isLoading = requestKey !== null && _optionalChain([resolved, 'optionalAccess', _566 => _566.key]) !== requestKey;
17565
17526
  _react.useEffect.call(void 0, () => {
17566
17527
  if (requestKey === null) return void 0;
17567
17528
  let cancelled = false;
@@ -17708,7 +17669,7 @@ function useChat({
17708
17669
  onMessagesChangeRef.current = onMessagesChange;
17709
17670
  });
17710
17671
  _react.useEffect.call(void 0, () => {
17711
- _optionalChain([onMessagesChangeRef, 'access', _572 => _572.current, 'optionalCall', _573 => _573(messages)]);
17672
+ _optionalChain([onMessagesChangeRef, 'access', _567 => _567.current, 'optionalCall', _568 => _568(messages)]);
17712
17673
  }, [messages]);
17713
17674
  const {
17714
17675
  streamMessage,
@@ -17745,7 +17706,7 @@ function useChat({
17745
17706
  name: "You",
17746
17707
  content: text2,
17747
17708
  timestamp: /* @__PURE__ */ new Date(),
17748
- ..._optionalChain([options, 'optionalAccess', _574 => _574.hidden]) ? { hidden: true } : {}
17709
+ ..._optionalChain([options, 'optionalAccess', _569 => _569.hidden]) ? { hidden: true } : {}
17749
17710
  };
17750
17711
  addMessage(userMessage);
17751
17712
  setIsTyping(true);
@@ -17959,7 +17920,7 @@ function buildConfirmToolBody(request) {
17959
17920
  async function readServerErrorMessage(response) {
17960
17921
  try {
17961
17922
  const body = await response.json();
17962
- if (typeof _optionalChain([body, 'optionalAccess', _575 => _575.error]) === "string" && body.error.length > 0) return body.error;
17923
+ if (typeof _optionalChain([body, 'optionalAccess', _570 => _570.error]) === "string" && body.error.length > 0) return body.error;
17963
17924
  } catch (e58) {
17964
17925
  }
17965
17926
  return null;
@@ -18249,7 +18210,7 @@ function nullableText(value) {
18249
18210
  }
18250
18211
  function httpsUrl(value) {
18251
18212
  const candidate = text(value);
18252
- if (!candidate) return void 0;
18213
+ if (!candidate || _chunk7R2DIGG4cjs.UNSAFE_URL_CHARS.test(candidate)) return void 0;
18253
18214
  try {
18254
18215
  return new URL(candidate).protocol === "https:" ? candidate : void 0;
18255
18216
  } catch (e62) {
@@ -18266,7 +18227,7 @@ function youtubeVideoId(value) {
18266
18227
  const hostname = parsed.hostname.toLowerCase();
18267
18228
  const isYoutubeHost = hostname === "youtu.be" || hostname === "youtube.com" || hostname.endsWith(".youtube.com");
18268
18229
  if (!isYoutubeHost) return void 0;
18269
- const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _576 => _576.exec, 'call', _577 => _577(parsed.pathname), 'optionalAccess', _578 => _578[1]]);
18230
+ const fromPath = hostname === "youtu.be" ? parsed.pathname.split("/").filter(Boolean)[0] : _optionalChain([/^\/(?:embed|v|shorts)\/([A-Za-z0-9_-]{11})(?:\/|$)/, 'access', _571 => _571.exec, 'call', _572 => _572(parsed.pathname), 'optionalAccess', _573 => _573[1]]);
18270
18231
  const id = _nullishCoalesce(_nullishCoalesce(fromPath, () => ( parsed.searchParams.get("v"))), () => ( void 0));
18271
18232
  return id && YOUTUBE_ID.test(id) ? id : void 0;
18272
18233
  }
@@ -18277,7 +18238,7 @@ function sourceItems(value) {
18277
18238
  const documentType = text(item.documentType);
18278
18239
  const name = text(item.name);
18279
18240
  if (!id || !documentType || !name) return [];
18280
- const externalUrl = httpsUrl(item.externalUrl);
18241
+ const externalUrl = text(item.externalUrl);
18281
18242
  const targetPlatform = nullableText(item.targetPlatform);
18282
18243
  const path = nullableText(item.path);
18283
18244
  return [
@@ -18306,7 +18267,7 @@ function sources(value) {
18306
18267
  claimed.add(index);
18307
18268
  const path = text(candidate.path);
18308
18269
  const documentType = text(candidate.documentType);
18309
- const externalUrl = httpsUrl(candidate.externalUrl);
18270
+ const externalUrl = text(candidate.externalUrl);
18310
18271
  const targetPlatform = nullableText(candidate.targetPlatform);
18311
18272
  const id = text(candidate.id);
18312
18273
  const sourceRepo = text(candidate.sourceRepo);
@@ -18385,11 +18346,11 @@ function cards(value, decodedSources) {
18385
18346
  {
18386
18347
  type,
18387
18348
  id,
18388
- title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _579 => _579.name]), () => ( id)),
18389
- url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _580 => _580.externalUrl]), () => ( null)),
18390
- ..._optionalChain([source, 'optionalAccess', _581 => _581.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18391
- ..._optionalChain([source, 'optionalAccess', _582 => _582.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18392
- ..._optionalChain([source, 'optionalAccess', _583 => _583.path]) ? { metadata: { path: source.path } } : {}
18349
+ title: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _574 => _574.name]), () => ( id)),
18350
+ url: _nullishCoalesce(_optionalChain([source, 'optionalAccess', _575 => _575.externalUrl]), () => ( null)),
18351
+ ..._optionalChain([source, 'optionalAccess', _576 => _576.sourceRepo]) ? { sourceRepo: source.sourceRepo } : {},
18352
+ ..._optionalChain([source, 'optionalAccess', _577 => _577.targetPlatform]) !== void 0 ? { targetPlatform: source.targetPlatform } : {},
18353
+ ..._optionalChain([source, 'optionalAccess', _578 => _578.path]) ? { metadata: { path: source.path } } : {}
18393
18354
  }
18394
18355
  ];
18395
18356
  });
@@ -18415,11 +18376,11 @@ function sourceMetadataEvent(payload) {
18415
18376
  }
18416
18377
  function mergeSourceMetadata(previous, event) {
18417
18378
  const byIndex = /* @__PURE__ */ new Map();
18418
- for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _584 => _584.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18379
+ for (const source of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _579 => _579.sources]), () => ( [])), ..._nullishCoalesce(event.sources, () => ( []))]) {
18419
18380
  if (!byIndex.has(source.index)) byIndex.set(source.index, source);
18420
18381
  }
18421
18382
  const byIdentity = /* @__PURE__ */ new Map();
18422
- for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _585 => _585.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18383
+ for (const ref of [..._nullishCoalesce(_optionalChain([previous, 'optionalAccess', _580 => _580.refs]), () => ( [])), ..._nullishCoalesce(event.refs, () => ( []))]) {
18423
18384
  const identity = `${ref.type}:${ref.id}`;
18424
18385
  if (!byIdentity.has(identity)) byIdentity.set(identity, ref);
18425
18386
  }
@@ -18505,9 +18466,9 @@ function appendToTrailingAssistant(prev, segments) {
18505
18466
  for (const seg of segments) {
18506
18467
  const tail = merged[merged.length - 1];
18507
18468
  const key = upsertKey(seg);
18508
- if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _586 => _586.type]) === "text") {
18469
+ if (seg.type === "text" && _optionalChain([tail, 'optionalAccess', _581 => _581.type]) === "text") {
18509
18470
  merged[merged.length - 1] = { type: "text", text: tail.text + seg.text };
18510
- } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _587 => _587.type]) === "thinking") {
18471
+ } else if (seg.type === "thinking" && _optionalChain([tail, 'optionalAccess', _582 => _582.type]) === "thinking") {
18511
18472
  merged[merged.length - 1] = { type: "thinking", text: tail.text + seg.text };
18512
18473
  } else if (key) {
18513
18474
  let idx = merged.findIndex((m) => upsertKey(m) === key);
@@ -18548,7 +18509,7 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18548
18509
  }
18549
18510
  if (s.type !== "approval_batch") return s;
18550
18511
  const isAnchor = s.data.approvalRequestId === requestId;
18551
- const hasRow = _optionalChain([s, 'access', _588 => _588.data, 'access', _589 => _589.toolCalls, 'optionalAccess', _590 => _590.some, 'call', _591 => _591((c) => c.toolExecutionRequestId === requestId)]);
18512
+ const hasRow = _optionalChain([s, 'access', _583 => _583.data, 'access', _584 => _584.toolCalls, 'optionalAccess', _585 => _585.some, 'call', _586 => _586((c) => c.toolExecutionRequestId === requestId)]);
18552
18513
  if (!isAnchor && !hasRow) return s;
18553
18514
  const nextResolvedBy = _nullishCoalesce(resolvedByName, () => ( s.resolvedByName));
18554
18515
  const nextExecutions = hasRow ? {
@@ -18570,8 +18531,8 @@ function applyApprovalStatusToSegment(s, requestId, status, resolvedByName) {
18570
18531
  };
18571
18532
  }
18572
18533
  function nextBatchExecution(prevExec, toolData) {
18573
- if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _592 => _592.status]) === "done") return null;
18574
- return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _593 => _593.result]), success: _optionalChain([prevExec, 'optionalAccess', _594 => _594.success]) };
18534
+ if (toolData.type === "EXECUTING_TOOL" && _optionalChain([prevExec, 'optionalAccess', _587 => _587.status]) === "done") return null;
18535
+ return toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prevExec, 'optionalAccess', _588 => _588.result]), success: _optionalChain([prevExec, 'optionalAccess', _589 => _589.success]) };
18575
18536
  }
18576
18537
  function withBatchExecution(seg, execId, state) {
18577
18538
  return {
@@ -18588,11 +18549,11 @@ function projectBatchStatusToMessages(prev, anchorId, status) {
18588
18549
  }
18589
18550
  function projectBatchRowFailureToMessages(prev, rowRequestId) {
18590
18551
  return mapSegments(prev, (s) => {
18591
- if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _595 => _595.data, 'access', _596 => _596.toolCalls, 'optionalAccess', _597 => _597.some, 'call', _598 => _598((c) => c.toolExecutionRequestId === rowRequestId)])) {
18552
+ if (s.type !== "approval_batch" || !_optionalChain([s, 'access', _590 => _590.data, 'access', _591 => _591.toolCalls, 'optionalAccess', _592 => _592.some, 'call', _593 => _593((c) => c.toolExecutionRequestId === rowRequestId)])) {
18592
18553
  return s;
18593
18554
  }
18594
- const existing = _optionalChain([s, 'access', _599 => _599.data, 'access', _600 => _600.executions, 'optionalAccess', _601 => _601[rowRequestId]]);
18595
- if (_optionalChain([existing, 'optionalAccess', _602 => _602.status]) === "done") return s;
18555
+ const existing = _optionalChain([s, 'access', _594 => _594.data, 'access', _595 => _595.executions, 'optionalAccess', _596 => _596[rowRequestId]]);
18556
+ if (_optionalChain([existing, 'optionalAccess', _597 => _597.status]) === "done") return s;
18596
18557
  return withBatchExecution(s, rowRequestId, { status: "done", success: false });
18597
18558
  });
18598
18559
  }
@@ -18628,7 +18589,7 @@ function mergeToolExecutionIfPresent(prev, segment) {
18628
18589
  for (let j = message.segments.length - 1; j >= 0; j--) {
18629
18590
  const seg = message.segments[j];
18630
18591
  if (execId && seg.type === "approval_batch" && seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId)) {
18631
- const prevExec = _optionalChain([seg, 'access', _603 => _603.data, 'access', _604 => _604.executions, 'optionalAccess', _605 => _605[execId]]);
18592
+ const prevExec = _optionalChain([seg, 'access', _598 => _598.data, 'access', _599 => _599.executions, 'optionalAccess', _600 => _600[execId]]);
18632
18593
  const nextExec = nextBatchExecution(prevExec, toolData);
18633
18594
  if (nextExec === null) return prev;
18634
18595
  if (sameExecutionState(prevExec, nextExec)) return prev;
@@ -18801,9 +18762,9 @@ var MessageSegmentAccumulator = class {
18801
18762
  type: "tool_execution",
18802
18763
  data: {
18803
18764
  ...toolData,
18804
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _606 => _606.data, 'access', _607 => _607.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _608 => _608.toolTitle]))),
18805
- toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _609 => _609.data, 'access', _610 => _610.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _611 => _611.toolExplanation]))),
18806
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _612 => _612.parameters])
18765
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _601 => _601.data, 'access', _602 => _602.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _603 => _603.toolTitle]))),
18766
+ toolExplanation: _nullishCoalesce(_nullishCoalesce(toolData.toolExplanation, () => ( _optionalChain([existingExecuting, 'optionalAccess', _604 => _604.data, 'access', _605 => _605.toolExplanation]))), () => ( _optionalChain([executingTool, 'optionalAccess', _606 => _606.toolExplanation]))),
18767
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _607 => _607.parameters])
18807
18768
  }
18808
18769
  };
18809
18770
  if (existingIndex !== -1) {
@@ -18827,7 +18788,7 @@ var MessageSegmentAccumulator = class {
18827
18788
  if (seg.type !== "approval_batch") return seg;
18828
18789
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
18829
18790
  if (!hasCall) return seg;
18830
- const prev = _optionalChain([seg, 'access', _613 => _613.data, 'access', _614 => _614.executions, 'optionalAccess', _615 => _615[execId]]);
18791
+ const prev = _optionalChain([seg, 'access', _608 => _608.data, 'access', _609 => _609.executions, 'optionalAccess', _610 => _610[execId]]);
18831
18792
  const next = nextBatchExecution(prev, toolData);
18832
18793
  matched = true;
18833
18794
  if (next === null) return seg;
@@ -18961,8 +18922,8 @@ var MessageSegmentAccumulator = class {
18961
18922
  requestId,
18962
18923
  {
18963
18924
  ...pendingApproval,
18964
- command: _optionalChain([pendingApproval, 'optionalAccess', _616 => _616.command]) || "",
18965
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _617 => _617.approvalType]) || approvalType
18925
+ command: _optionalChain([pendingApproval, 'optionalAccess', _611 => _611.command]) || "",
18926
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _612 => _612.approvalType]) || approvalType
18966
18927
  },
18967
18928
  status
18968
18929
  );
@@ -18987,9 +18948,9 @@ var MessageSegmentAccumulator = class {
18987
18948
  type: "escalation_offer",
18988
18949
  // The resolved chunk carries no text/origin — a redelivered offer must
18989
18950
  // not blank the card the PENDING chunk already painted.
18990
- data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _618 => _618.data, 'access', _619 => _619.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _620 => _620.data, 'access', _621 => _621.origin]))) },
18951
+ data: { offerId, text: text2 || _optionalChain([existing, 'optionalAccess', _613 => _613.data, 'access', _614 => _614.text]) || "", origin: _nullishCoalesce(origin, () => ( _optionalChain([existing, 'optionalAccess', _615 => _615.data, 'access', _616 => _616.origin]))) },
18991
18952
  status,
18992
- resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _622 => _622.resolvedByName]))),
18953
+ resolvedByName: _nullishCoalesce(resolvedByName, () => ( _optionalChain([existing, 'optionalAccess', _617 => _617.resolvedByName]))),
18993
18954
  onApprove: this.callbacks.onEscalationApprove,
18994
18955
  onReject: this.callbacks.onEscalationReject
18995
18956
  };
@@ -19314,7 +19275,7 @@ function createChatStreamReducer(options = {}) {
19314
19275
  let stateCache = null;
19315
19276
  function invalidate() {
19316
19277
  stateCache = null;
19317
- _optionalChain([onChange, 'optionalCall', _623 => _623()]);
19278
+ _optionalChain([onChange, 'optionalCall', _618 => _618()]);
19318
19279
  }
19319
19280
  function getState() {
19320
19281
  if (!stateCache) {
@@ -19330,7 +19291,7 @@ function createChatStreamReducer(options = {}) {
19330
19291
  return stateCache;
19331
19292
  }
19332
19293
  function emit(name, ...args) {
19333
- _optionalChain([onEffect, 'optionalCall', _624 => _624({ name, args })]);
19294
+ _optionalChain([onEffect, 'optionalCall', _619 => _619({ name, args })]);
19334
19295
  }
19335
19296
  function setMessagesInternal(next) {
19336
19297
  if (next !== messages) {
@@ -19373,12 +19334,12 @@ function createChatStreamReducer(options = {}) {
19373
19334
  return stampTrailingAssistantSourceMetadata(stampTrailingAssistantSeq(next, seq));
19374
19335
  }
19375
19336
  function applySegmentsToState(segments, meta) {
19376
- const seq = _optionalChain([meta, 'optionalAccess', _625 => _625.streamSeq]);
19377
- if (_optionalChain([meta, 'optionalAccess', _626 => _626.append]) && meta.isCompacting) {
19337
+ const seq = _optionalChain([meta, 'optionalAccess', _620 => _620.streamSeq]);
19338
+ if (_optionalChain([meta, 'optionalAccess', _621 => _621.append]) && meta.isCompacting) {
19378
19339
  setMessagesInternal(commitTrailingAssistant(upsertTrailingCompaction(messages, segments), seq));
19379
19340
  return;
19380
19341
  }
19381
- if (_optionalChain([meta, 'optionalAccess', _627 => _627.append])) {
19342
+ if (_optionalChain([meta, 'optionalAccess', _622 => _622.append])) {
19382
19343
  setMessagesInternal(commitTrailingAssistant(appendToTrailingAssistant(messages, segments), seq));
19383
19344
  return;
19384
19345
  }
@@ -19390,7 +19351,7 @@ function createChatStreamReducer(options = {}) {
19390
19351
  adoptTrailingAssistant = false;
19391
19352
  const last = messages[messages.length - 1];
19392
19353
  if (!last || last.role !== "assistant" || adoptTail) return;
19393
- const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _628 => _628.segments, 'optionalAccess', _629 => _629.length]), () => ( 0))) > 0 || last.content !== "";
19354
+ const hasContent = (_nullishCoalesce(_optionalChain([last, 'access', _623 => _623.segments, 'optionalAccess', _624 => _624.length]), () => ( 0))) > 0 || last.content !== "";
19394
19355
  if (!hasContent) return;
19395
19356
  setMessagesInternal([...messages, { id: nextId("assistant"), role: "assistant", content: "", segments: [] }]);
19396
19357
  }
@@ -19609,13 +19570,13 @@ function createChatStreamReducer(options = {}) {
19609
19570
  const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
19610
19571
  pendingEscalated.set(requestId, {
19611
19572
  command: summary,
19612
- explanation: _optionalChain([required, 'optionalAccess', _630 => _630.toolExplanation]),
19573
+ explanation: _optionalChain([required, 'optionalAccess', _625 => _625.toolExplanation]),
19613
19574
  approvalType,
19614
19575
  toolCalls
19615
19576
  });
19616
19577
  emit("onEscalatedApproval", requestId, {
19617
19578
  command: summary,
19618
- explanation: _optionalChain([required, 'optionalAccess', _631 => _631.toolExplanation]),
19579
+ explanation: _optionalChain([required, 'optionalAccess', _626 => _626.toolExplanation]),
19619
19580
  approvalType
19620
19581
  });
19621
19582
  break;
@@ -19999,7 +19960,7 @@ function createChatStreamReducer(options = {}) {
19999
19960
  const resolveBatch = (status, confirm) => async () => {
20000
19961
  setMessagesInternal(projectBatchStatusToMessages(messages, anchorId, status));
20001
19962
  for (const id of ids) {
20002
- const ok = await _optionalChain([confirm, 'optionalCall', _632 => _632(id)]);
19963
+ const ok = await _optionalChain([confirm, 'optionalCall', _627 => _627(id)]);
20003
19964
  if (ok === false) {
20004
19965
  setMessagesInternal(projectBatchRowFailureToMessages(messages, id));
20005
19966
  }
@@ -20135,8 +20096,8 @@ function createChatStreamReducer(options = {}) {
20135
20096
  }
20136
20097
  }
20137
20098
  }
20138
- hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _633 => _633.resumed]), () => ( messages.length > 0)));
20139
- if (_optionalChain([extras, 'optionalAccess', _634 => _634.agentBusy])) agentBusyState();
20099
+ hasEverStreamed = hasEverStreamed || (_nullishCoalesce(_optionalChain([extras, 'optionalAccess', _628 => _628.resumed]), () => ( messages.length > 0)));
20100
+ if (_optionalChain([extras, 'optionalAccess', _629 => _629.agentBusy])) agentBusyState();
20140
20101
  invalidate();
20141
20102
  }
20142
20103
  return {
@@ -20221,7 +20182,7 @@ function createChatStreamReducer(options = {}) {
20221
20182
  },
20222
20183
  endSseTurn() {
20223
20184
  const last = messages[messages.length - 1];
20224
- if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _635 => _635.segments, 'optionalAccess', _636 => _636.length]), () => ( 0))) === 0 && last.content === "") {
20185
+ if (last && last.role === "assistant" && (_nullishCoalesce(_optionalChain([last, 'access', _630 => _630.segments, 'optionalAccess', _631 => _631.length]), () => ( 0))) === 0 && last.content === "") {
20225
20186
  messages = messages.slice(0, -1);
20226
20187
  }
20227
20188
  sseCurrentText = "";
@@ -20374,10 +20335,10 @@ function createChatDialogStore(options = {}) {
20374
20335
  if (onEvict) {
20375
20336
  const sep = key.indexOf(KEY_SEP);
20376
20337
  onEvict(key.slice(0, sep), key.slice(sep + 1), {
20377
- messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _637 => _637.state, 'access', _638 => _638.messages]), () => ( EMPTY_STATE.messages)),
20378
- approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _639 => _639.state, 'access', _640 => _640.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20379
- lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _641 => _641.getLastAppliedSeq, 'call', _642 => _642()]), () => ( Number.NEGATIVE_INFINITY)),
20380
- pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _643 => _643.getPendingEchoes, 'call', _644 => _644()]), () => ( EMPTY_PENDING_ECHOES))
20338
+ messages: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _632 => _632.state, 'access', _633 => _633.messages]), () => ( EMPTY_STATE.messages)),
20339
+ approvalStatuses: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _634 => _634.state, 'access', _635 => _635.approvalStatuses]), () => ( EMPTY_STATE.approvalStatuses)),
20340
+ lastAppliedSeq: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _636 => _636.getLastAppliedSeq, 'call', _637 => _637()]), () => ( Number.NEGATIVE_INFINITY)),
20341
+ pendingEchoes: _nullishCoalesce(_optionalChain([dropped, 'optionalAccess', _638 => _638.getPendingEchoes, 'call', _639 => _639()]), () => ( EMPTY_PENDING_ECHOES))
20381
20342
  });
20382
20343
  }
20383
20344
  }
@@ -20387,12 +20348,12 @@ function createChatDialogStore(options = {}) {
20387
20348
  const key = keyOf(dialogId, side);
20388
20349
  let reducer = reducers.get(key);
20389
20350
  if (!reducer) {
20390
- const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _645 => _645(dialogId, side)]), () => ( {}));
20351
+ const base = _nullishCoalesce(_optionalChain([(_nullishCoalesce(createOptions, () => ( defaultCreateOptions))), 'optionalCall', _640 => _640(dialogId, side)]), () => ( {}));
20391
20352
  const userOnChange = base.onChange;
20392
20353
  reducer = createChatStreamReducer({
20393
20354
  ...base,
20394
20355
  onChange: () => {
20395
- _optionalChain([userOnChange, 'optionalCall', _646 => _646()]);
20356
+ _optionalChain([userOnChange, 'optionalCall', _641 => _641()]);
20396
20357
  notify();
20397
20358
  }
20398
20359
  });
@@ -20437,7 +20398,7 @@ function createChatDialogStore(options = {}) {
20437
20398
  };
20438
20399
  }
20439
20400
  function getSnapshot2(dialogId, side = DEFAULT_DIALOG_SIDE) {
20440
- return _nullishCoalesce(_optionalChain([reducers, 'access', _647 => _647.get, 'call', _648 => _648(keyOf(dialogId, side)), 'optionalAccess', _649 => _649.state]), () => ( EMPTY_STATE));
20401
+ return _nullishCoalesce(_optionalChain([reducers, 'access', _642 => _642.get, 'call', _643 => _643(keyOf(dialogId, side)), 'optionalAccess', _644 => _644.state]), () => ( EMPTY_STATE));
20441
20402
  }
20442
20403
  function getServerSnapshot2() {
20443
20404
  return EMPTY_STATE;
@@ -20529,7 +20490,7 @@ function createDeltaBatcher({
20529
20490
  pending = [];
20530
20491
  const key = pendingKey;
20531
20492
  for (const delta of batch) applyOne(delta, key);
20532
- _optionalChain([onFlushed, 'optionalCall', _650 => _650(batch.length)]);
20493
+ _optionalChain([onFlushed, 'optionalCall', _645 => _645(batch.length)]);
20533
20494
  }
20534
20495
  function schedule() {
20535
20496
  if (raf !== null || timer !== null) return;
@@ -20553,7 +20514,7 @@ function createDeltaBatcher({
20553
20514
  }
20554
20515
  if (!isDeltaEvent(event)) return false;
20555
20516
  const tail = pending[pending.length - 1];
20556
- const seqAdvances = _optionalChain([tail, 'optionalAccess', _651 => _651.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20517
+ const seqAdvances = _optionalChain([tail, 'optionalAccess', _646 => _646.seq]) == null ? event.seq == null : event.seq != null && event.seq > tail.seq;
20557
20518
  if (tail && seqAdvances && tail.type === event.type && (tail.type !== "text-delta" || tail.leading === event.leading)) {
20558
20519
  pending[pending.length - 1] = {
20559
20520
  ...tail,
@@ -20584,7 +20545,7 @@ function useChatStreamReducer({
20584
20545
  side = DEFAULT_DIALOG_SIDE,
20585
20546
  createReducerOptions
20586
20547
  }) {
20587
- const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _652 => _652()]), () => ( {})));
20548
+ const reducer = store.getReducer(dialogId, side, () => _nullishCoalesce(_optionalChain([createReducerOptions, 'optionalCall', _647 => _647()]), () => ( {})));
20588
20549
  const getSnapshot2 = _react.useCallback.call(void 0, () => store.getSnapshot(dialogId, side), [store, dialogId, side]);
20589
20550
  const getServerSnapshot2 = _react.useCallback.call(void 0, () => store.getServerSnapshot(), [store]);
20590
20551
  const subscribe2 = _react.useCallback.call(void 0, (listener) => store.subscribe(listener), [store]);
@@ -20623,7 +20584,7 @@ var STORAGE_KEY = "conversation";
20623
20584
  var namespaceFor = (source) => {
20624
20585
  const base = `mingo-chat-${source}`;
20625
20586
  const auth = _chunkEHAYNUOLcjs.getEmbedProxyAuth.call(void 0, );
20626
- return _optionalChain([auth, 'optionalAccess', _653 => _653.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20587
+ return _optionalChain([auth, 'optionalAccess', _648 => _648.email]) ? `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}` : base;
20627
20588
  };
20628
20589
  function createChatConversationStorage(source) {
20629
20590
  return _chunkEHAYNUOLcjs.createLocalStorageAdapter.call(void 0, {
@@ -20735,7 +20696,7 @@ function formatSingularLookupInvocation(cmdId, value) {
20735
20696
  return safe ? `/${cmdId} "${safe}"` : `/${cmdId}`;
20736
20697
  }
20737
20698
  function extractEntityIdFilter(override, expectedTableId) {
20738
- const f = _optionalChain([override, 'optionalAccess', _654 => _654.entityIdFilter]);
20699
+ const f = _optionalChain([override, 'optionalAccess', _649 => _649.entityIdFilter]);
20739
20700
  if (!f) return null;
20740
20701
  const tableId = typeof f.tableId === "string" ? f.tableId : "";
20741
20702
  const id = typeof f.id === "string" ? f.id : "";
@@ -20774,7 +20735,7 @@ var AUTO_CONTINUATION_DIRECTIVE_PREFIX = "[internal-auto-continuation]";
20774
20735
  function buildAutoContinuationDirective(toolName, opts = {}) {
20775
20736
  const ticketRef = opts.ticketId ? ` (ticket #${opts.ticketId})` : "";
20776
20737
  const ticketHash = opts.ticketId ? ` #${opts.ticketId}` : "";
20777
- const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _655 => _655.status, 'optionalAccess', _656 => _656.toUpperCase, 'call', _657 => _657()]) === "CLOSED";
20738
+ const isClose = toolName === "update_ticket" && _optionalChain([opts, 'access', _650 => _650.status, 'optionalAccess', _651 => _651.toUpperCase, 'call', _652 => _652()]) === "CLOSED";
20778
20739
  if (toolName === "create_ticket") {
20779
20740
  return `${AUTO_CONTINUATION_DIRECTIVE_PREFIX} The user just approved create_ticket${ticketRef}. Per ticket-protocol \xA71a, ask 2-4 SHORT, issue-specific diagnostic follow-up questions tailored to the symptom they reported in their original message. When they answer, propose an update_ticket with content_addendum carrying a clean Q&A digest. Do NOT call any tool in this turn \u2014 just write the questions as prose.`;
20780
20741
  }
@@ -20824,7 +20785,7 @@ function useChatHistoryHydration({
20824
20785
  if (cancelled) return;
20825
20786
  if (rows.length === 0) {
20826
20787
  const found = isRecord(body) ? body.found : void 0;
20827
- if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _658 => _658(conversationId)]);
20788
+ if (found === false) _optionalChain([onOrphanedConversation, 'optionalCall', _653 => _653(conversationId)]);
20828
20789
  return;
20829
20790
  }
20830
20791
  const hydrated = [];
@@ -20968,7 +20929,7 @@ function useManagedDialogList({
20968
20929
  try {
20969
20930
  await deleteDialogCallback(id);
20970
20931
  removeLocal(id);
20971
- _optionalChain([onDialogRemovedRef, 'access', _659 => _659.current, 'optionalCall', _660 => _660(id, "deleted")]);
20932
+ _optionalChain([onDialogRemovedRef, 'access', _654 => _654.current, 'optionalCall', _655 => _655(id, "deleted")]);
20972
20933
  } catch (err) {
20973
20934
  console.error(`${logTag} deleteDialog failed:`, err);
20974
20935
  throw err;
@@ -20979,7 +20940,7 @@ function useManagedDialogList({
20979
20940
  const renameDialog = _react.useCallback.call(void 0,
20980
20941
  async (id, title) => {
20981
20942
  if (!renameDialogCallback) return;
20982
- const previous = _optionalChain([dialogsRef, 'access', _661 => _661.current, 'access', _662 => _662.find, 'call', _663 => _663((d) => d.id === id), 'optionalAccess', _664 => _664.title]);
20943
+ const previous = _optionalChain([dialogsRef, 'access', _656 => _656.current, 'access', _657 => _657.find, 'call', _658 => _658((d) => d.id === id), 'optionalAccess', _659 => _659.title]);
20983
20944
  setDialogs((prev) => prev.map((d) => d.id === id ? { ...d, title } : d));
20984
20945
  try {
20985
20946
  await renameDialogCallback(id, title);
@@ -20998,7 +20959,7 @@ function useManagedDialogList({
20998
20959
  try {
20999
20960
  await archiveDialogCallback(id);
21000
20961
  removeLocal(id);
21001
- _optionalChain([onDialogRemovedRef, 'access', _665 => _665.current, 'optionalCall', _666 => _666(id, "archived")]);
20962
+ _optionalChain([onDialogRemovedRef, 'access', _660 => _660.current, 'optionalCall', _661 => _661(id, "archived")]);
21002
20963
  } catch (err) {
21003
20964
  console.error(`${logTag} archiveDialog failed:`, err);
21004
20965
  throw err;
@@ -21090,7 +21051,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21090
21051
  const { active = true } = runtimeOptions;
21091
21052
  const runtime = _chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, );
21092
21053
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
21093
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _667 => _667.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21054
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _662 => _662.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
21094
21055
  const sendMessageRef = _react.useRef.call(void 0,
21095
21056
  () => Promise.resolve(true)
21096
21057
  );
@@ -21126,7 +21087,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21126
21087
  if (!restoredConversationRef.current) {
21127
21088
  restoredConversationRef.current = true;
21128
21089
  pruneStaleChatConversationStorage(source);
21129
- conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _668 => _668.load, 'call', _669 => _669(), 'optionalAccess', _670 => _670.conversationId]), () => ( null));
21090
+ conversationIdRef.current = _nullishCoalesce(_optionalChain([conversationStorage, 'access', _663 => _663.load, 'call', _664 => _664(), 'optionalAccess', _665 => _665.conversationId]), () => ( null));
21130
21091
  }
21131
21092
  const [conversationId, setConversationId] = _react.useState.call(void 0, () => conversationIdRef.current);
21132
21093
  const commitConversationId = _react.useCallback.call(void 0,
@@ -21217,7 +21178,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21217
21178
  const abortControllerRef = _react.useRef.call(void 0, null);
21218
21179
  const switchConversation = _react.useCallback.call(void 0,
21219
21180
  (id) => {
21220
- _optionalChain([abortControllerRef, 'access', _671 => _671.current, 'optionalAccess', _672 => _672.abort, 'call', _673 => _673()]);
21181
+ _optionalChain([abortControllerRef, 'access', _666 => _666.current, 'optionalAccess', _667 => _667.abort, 'call', _668 => _668()]);
21221
21182
  flushDeltas();
21222
21183
  mutate((r) => r.reset());
21223
21184
  hydrationSendCountRef.current = 0;
@@ -21254,8 +21215,8 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21254
21215
  } = useManagedDialogList({
21255
21216
  autoLoad: active,
21256
21217
  fetchDialogs: fetchActiveDialogs,
21257
- renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _674 => _674.renameDialog]),
21258
- archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _675 => _675.archiveDialog]),
21218
+ renameDialog: _optionalChain([conversationsApi, 'optionalAccess', _669 => _669.renameDialog]),
21219
+ archiveDialog: _optionalChain([conversationsApi, 'optionalAccess', _670 => _670.archiveDialog]),
21259
21220
  pageSize: 20,
21260
21221
  search: conversationsApi ? dialogSearch : void 0,
21261
21222
  logTag: "[useSseChatAdapter]",
@@ -21319,7 +21280,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21319
21280
  const serverMessage = await readServerErrorMessage(response);
21320
21281
  throw new Error(_nullishCoalesce(serverMessage, () => ( `Chat request failed: ${response.status}`)));
21321
21282
  }
21322
- const reader = _optionalChain([response, 'access', _676 => _676.body, 'optionalAccess', _677 => _677.getReader, 'call', _678 => _678()]);
21283
+ const reader = _optionalChain([response, 'access', _671 => _671.body, 'optionalAccess', _672 => _672.getReader, 'call', _673 => _673()]);
21323
21284
  if (!reader) throw new Error("No response body");
21324
21285
  const frameDecoder = createSseFrameDecoder();
21325
21286
  let finished = false;
@@ -21348,7 +21309,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21348
21309
  }
21349
21310
  return true;
21350
21311
  } catch (err) {
21351
- if (_optionalChain([err, 'optionalAccess', _679 => _679.name]) === "AbortError" || ctrl.signal.aborted) {
21312
+ if (_optionalChain([err, 'optionalAccess', _674 => _674.name]) === "AbortError" || ctrl.signal.aborted) {
21352
21313
  return true;
21353
21314
  }
21354
21315
  flushDeltas();
@@ -21384,7 +21345,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21384
21345
  );
21385
21346
  sendMessageRef.current = sendMessage;
21386
21347
  const stopMessage = _react.useCallback.call(void 0, () => {
21387
- _optionalChain([abortControllerRef, 'access', _680 => _680.current, 'optionalAccess', _681 => _681.abort, 'call', _682 => _682()]);
21348
+ _optionalChain([abortControllerRef, 'access', _675 => _675.current, 'optionalAccess', _676 => _676.abort, 'call', _677 => _677()]);
21388
21349
  flushDeltas();
21389
21350
  mutate((r) => r.setPhase("idle"));
21390
21351
  }, [mutate, flushDeltas]);
@@ -21420,7 +21381,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21420
21381
  let sendIdx = -1;
21421
21382
  return state.messages.map((m) => {
21422
21383
  const segments = m.segments;
21423
- const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _683 => _683.filter, 'call', _684 => _684((s) => s.type === "text"), 'access', _685 => _685.map, 'call', _686 => _686((s) => s.text), 'access', _687 => _687.join, 'call', _688 => _688("")]), () => ( ""));
21384
+ const content = typeof m.content === "string" && !segments ? m.content : _nullishCoalesce(_optionalChain([segments, 'optionalAccess', _678 => _678.filter, 'call', _679 => _679((s) => s.type === "text"), 'access', _680 => _680.map, 'call', _681 => _681((s) => s.text), 'access', _682 => _682.join, 'call', _683 => _683("")]), () => ( ""));
21424
21385
  let sources2;
21425
21386
  let scrollAnchor;
21426
21387
  if (m.role === "user" && !m.hidden) {
@@ -21429,7 +21390,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21429
21390
  if (m.role === "assistant") {
21430
21391
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
21431
21392
  sources2 = sourcesMap.get(lookupIdx);
21432
- scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _689 => _689.get, 'call', _690 => _690(lookupIdx), 'optionalAccess', _691 => _691.scrollAnchor]), () => ( void 0));
21393
+ scrollAnchor = _nullishCoalesce(_optionalChain([meta, 'access', _684 => _684.get, 'call', _685 => _685(lookupIdx), 'optionalAccess', _686 => _686.scrollAnchor]), () => ( void 0));
21433
21394
  }
21434
21395
  return {
21435
21396
  id: m.id,
@@ -21456,7 +21417,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21456
21417
  );
21457
21418
  return;
21458
21419
  }
21459
- const refSlug = typeof _optionalChain([reference, 'access', _692 => _692.metadata, 'optionalAccess', _693 => _693.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21420
+ const refSlug = typeof _optionalChain([reference, 'access', _687 => _687.metadata, 'optionalAccess', _688 => _688.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
21460
21421
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
21461
21422
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
21462
21423
  const text2 = `/${cmdId} display "${escaped}"`;
@@ -21502,18 +21463,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
21502
21463
  /** True while the mount-time rebuild from the server transcript runs. */
21503
21464
  isHydratingHistory,
21504
21465
  /** Provider key for the lib's `<ModelDisplay>` icon. */
21505
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _694 => _694.provider]), () => ( null)),
21506
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _695 => _695.modelLabel]), () => ( null)),
21507
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _696 => _696.contextWindowMaxTokens]), () => ( null)),
21466
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _689 => _689.provider]), () => ( null)),
21467
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _690 => _690.modelLabel]), () => ( null)),
21468
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _691 => _691.contextWindowMaxTokens]), () => ( null)),
21508
21469
  /** Input tokens (known after server's message_start frame; null until). */
21509
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _697 => _697.inputTokens]), () => ( null)),
21470
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _692 => _692.inputTokens]), () => ( null)),
21510
21471
  /** Output tokens (known only after server's trailing usage frame). */
21511
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _698 => _698.outputTokens]), () => ( null)),
21472
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _693 => _693.outputTokens]), () => ( null)),
21512
21473
  /** Cache hit % (read / total-input × 100). null during streaming. */
21513
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _699 => _699.cacheHitRatePct]), () => ( null)),
21474
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _694 => _694.cacheHitRatePct]), () => ( null)),
21514
21475
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
21515
21476
  * token counts). null until the trailing usage frame lands. */
21516
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _700 => _700.breakdown]), () => ( null)),
21477
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _695 => _695.breakdown]), () => ( null)),
21517
21478
  // ─── Dialog management ───────────────────────────────────────────────
21518
21479
  // With `chatConversationsUrl` the server transcript store IS the dialog
21519
21480
  // list (shared `useManagedDialogList`); selecting a row re-hydrates through
@@ -21768,7 +21729,7 @@ function decodeNatsChunk(chunk) {
21768
21729
  userId: typeof data.userId === "string" ? data.userId : void 0,
21769
21730
  // Wire shape carries no label; fall back to the id (parity with
21770
21731
  // the history path in `process-historical-messages.ts`).
21771
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _701 => _701.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _702 => _702.id]) === "string").map((it) => ({
21732
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _696 => _696.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _697 => _697.id]) === "string").map((it) => ({
21772
21733
  type: it.type,
21773
21734
  id: it.id,
21774
21735
  label: it.id
@@ -21859,7 +21820,7 @@ function extractIncompleteMessageState(lastMessage) {
21859
21820
  }
21860
21821
  break;
21861
21822
  case "approval_batch": {
21862
- const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _703 => _703.data, 'access', _704 => _704.executions, 'optionalAccess', _705 => _705[c.toolExecutionRequestId], 'optionalAccess', _706 => _706.status]) === "done");
21823
+ const allDone = !!segment.data.executions && segment.data.toolCalls.every((c) => _optionalChain([segment, 'access', _698 => _698.data, 'access', _699 => _699.executions, 'optionalAccess', _700 => _700[c.toolExecutionRequestId], 'optionalAccess', _701 => _701.status]) === "done");
21863
21824
  if (segment.status !== "rejected" && !allDone) {
21864
21825
  hasIncompleteState = true;
21865
21826
  }
@@ -21921,11 +21882,11 @@ function extractIncompleteMessageState(lastMessage) {
21921
21882
  function extractIncompleteTailState(messages) {
21922
21883
  if (!messages || messages.length === 0) return void 0;
21923
21884
  let start = messages.length;
21924
- while (start > 0 && _optionalChain([messages, 'access', _707 => _707[start - 1], 'optionalAccess', _708 => _708.role]) === "assistant") start -= 1;
21885
+ while (start > 0 && _optionalChain([messages, 'access', _702 => _702[start - 1], 'optionalAccess', _703 => _703.role]) === "assistant") start -= 1;
21925
21886
  if (start === messages.length) return void 0;
21926
21887
  const segments = [];
21927
21888
  for (let i = start; i < messages.length; i += 1) {
21928
- const content = _optionalChain([messages, 'access', _709 => _709[i], 'optionalAccess', _710 => _710.content]);
21889
+ const content = _optionalChain([messages, 'access', _704 => _704[i], 'optionalAccess', _705 => _705.content]);
21929
21890
  if (Array.isArray(content)) segments.push(...content);
21930
21891
  }
21931
21892
  if (segments.length === 0) return void 0;
@@ -21938,15 +21899,15 @@ function extractIncompleteTailState(messages) {
21938
21899
 
21939
21900
  // src/components/chat/utils/process-historical-messages.ts
21940
21901
  function getOwnerDisplayName(owner) {
21941
- if (_optionalChain([owner, 'optionalAccess', _711 => _711.type]) === OWNER_TYPE.ADMIN && owner.user) {
21902
+ if (_optionalChain([owner, 'optionalAccess', _706 => _706.type]) === OWNER_TYPE.ADMIN && owner.user) {
21942
21903
  const { firstName, lastName } = owner.user;
21943
21904
  const name = [firstName, lastName].filter(Boolean).join(" ");
21944
21905
  if (name) return name;
21945
21906
  }
21946
- return _optionalChain([owner, 'optionalAccess', _712 => _712.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21907
+ return _optionalChain([owner, 'optionalAccess', _707 => _707.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
21947
21908
  }
21948
21909
  function getOwnerAvatar(owner) {
21949
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _713 => _713.user, 'optionalAccess', _714 => _714.image, 'optionalAccess', _715 => _715.imageUrl]), () => ( void 0));
21910
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _708 => _708.user, 'optionalAccess', _709 => _709.image, 'optionalAccess', _710 => _710.imageUrl]), () => ( void 0));
21950
21911
  }
21951
21912
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
21952
21913
  messageDataArray.forEach((data) => {
@@ -22136,7 +22097,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22136
22097
  event.offerId,
22137
22098
  event.text,
22138
22099
  event.origin,
22139
- _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _716 => _716[event.offerId]]), () => ( "pending"))
22100
+ _nullishCoalesce(_optionalChain([escalationOfferStates, 'optionalAccess', _711 => _711[event.offerId]]), () => ( "pending"))
22140
22101
  );
22141
22102
  break;
22142
22103
  case "ticket-escalated":
@@ -22170,7 +22131,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22170
22131
  );
22171
22132
  break;
22172
22133
  case "escalation-offer-resolved":
22173
- _optionalChain([offerResolutions, 'optionalAccess', _717 => _717.set, 'call', _718 => _718(event.offerId, {
22134
+ _optionalChain([offerResolutions, 'optionalAccess', _712 => _712.set, 'call', _713 => _713(event.offerId, {
22174
22135
  status: event.status,
22175
22136
  resolvedByName: event.resolvedByName
22176
22137
  })]);
@@ -22234,7 +22195,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22234
22195
  }
22235
22196
  }
22236
22197
  } else {
22237
- _optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.set, 'call', _720 => _720(event.requestId, {
22198
+ _optionalChain([escalatedApprovals, 'optionalAccess', _714 => _714.set, 'call', _715 => _715(event.requestId, {
22238
22199
  command: event.command || "",
22239
22200
  explanation: event.explanation,
22240
22201
  approvalType,
@@ -22249,8 +22210,8 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22249
22210
  const existingStatus = approvalStatuses[requestId];
22250
22211
  const status = existingStatus || event.status;
22251
22212
  const resolvedByName = event.resolvedByName;
22252
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _721 => _721.get, 'call', _722 => _722(requestId)]);
22253
- if (_optionalChain([escalatedData, 'optionalAccess', _723 => _723.toolCalls]) && escalatedData.toolCalls.length > 0) {
22213
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _716 => _716.get, 'call', _717 => _717(requestId)]);
22214
+ if (_optionalChain([escalatedData, 'optionalAccess', _718 => _718.toolCalls]) && escalatedData.toolCalls.length > 0) {
22254
22215
  if (batchApprovalsEnabled) {
22255
22216
  accumulator.addApprovalBatch(
22256
22217
  requestId,
@@ -22272,7 +22233,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22272
22233
  );
22273
22234
  }
22274
22235
  }
22275
- _optionalChain([escalatedApprovals, 'optionalAccess', _724 => _724.delete, 'call', _725 => _725(requestId)]);
22236
+ _optionalChain([escalatedApprovals, 'optionalAccess', _719 => _719.delete, 'call', _720 => _720(requestId)]);
22276
22237
  break;
22277
22238
  }
22278
22239
  if (escalatedData) {
@@ -22281,7 +22242,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
22281
22242
  explanation: escalatedData.explanation,
22282
22243
  approvalType: escalatedData.approvalType
22283
22244
  });
22284
- _optionalChain([escalatedApprovals, 'optionalAccess', _726 => _726.delete, 'call', _727 => _727(requestId)]);
22245
+ _optionalChain([escalatedApprovals, 'optionalAccess', _721 => _721.delete, 'call', _722 => _722(requestId)]);
22285
22246
  }
22286
22247
  const before = accumulator.getSegments();
22287
22248
  const after = accumulator.updateApprovalStatus(requestId, status, resolvedByName);
@@ -22373,14 +22334,14 @@ function processHistoricalMessages(messages, options = {}) {
22373
22334
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
22374
22335
  return;
22375
22336
  }
22376
- const isUserMessage = _optionalChain([msg, 'access', _728 => _728.owner, 'optionalAccess', _729 => _729.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _730 => _730.owner, 'optionalAccess', _731 => _731.type]) === OWNER_TYPE.ADMIN;
22337
+ const isUserMessage = _optionalChain([msg, 'access', _723 => _723.owner, 'optionalAccess', _724 => _724.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _725 => _725.owner, 'optionalAccess', _726 => _726.type]) === OWNER_TYPE.ADMIN;
22377
22338
  if (isUserMessage) {
22378
22339
  flushAssistantMessage();
22379
- const userAuthorType = _optionalChain([msg, 'access', _732 => _732.owner, 'optionalAccess', _733 => _733.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22340
+ const userAuthorType = _optionalChain([msg, 'access', _727 => _727.owner, 'optionalAccess', _728 => _728.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
22380
22341
  messageDataArray.forEach((data) => {
22381
22342
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
22382
22343
  const rawContext = data.contextItems;
22383
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _734 => _734.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _735 => _735.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
22344
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _729 => _729.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _730 => _730.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
22384
22345
  processedMessages.push({
22385
22346
  id: msg.id,
22386
22347
  role: "user",
@@ -22427,7 +22388,7 @@ function processHistoricalMessages(messages, options = {}) {
22427
22388
  });
22428
22389
  const nextMsg = messages[index + 1];
22429
22390
  const isLastMessage = index === messages.length - 1;
22430
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _736 => _736.owner, 'optionalAccess', _737 => _737.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _738 => _738.owner, 'optionalAccess', _739 => _739.type]) === OWNER_TYPE.ADMIN);
22391
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _731 => _731.owner, 'optionalAccess', _732 => _732.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _733 => _733.owner, 'optionalAccess', _734 => _734.type]) === OWNER_TYPE.ADMIN);
22431
22392
  if (isLastMessage || nextIsFromUser) {
22432
22393
  flushAssistantMessage();
22433
22394
  }
@@ -22810,7 +22771,7 @@ function useNatsChatAdapter(config, options = {}) {
22810
22771
  const connectionState = !active || !dialogId ? "connected" : connectedForDialog === dialogId ? "connected" : "connecting";
22811
22772
  const sendMessage = _react.useCallback.call(void 0,
22812
22773
  async (text2, sendOptions) => {
22813
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _740 => _740.hidden]), () => ( false));
22774
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _735 => _735.hidden]), () => ( false));
22814
22775
  mutate((r) => r.pushOptimisticSend(text2, hidden));
22815
22776
  await publishUserMessage(text2, { hidden, dialogId });
22816
22777
  },
@@ -22903,11 +22864,11 @@ function useNatsChatAdapter(config, options = {}) {
22903
22864
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
22904
22865
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
22905
22866
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
22906
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _741 => _741.provider]), () => ( modelProvider)), () => ( null)),
22907
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _742 => _742.modelLabel]), () => ( modelLabel)), () => ( null)),
22908
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _743 => _743.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _744 => _744.contextWindowMaxTokens]))), () => ( null)),
22909
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _745 => _745.inputTokensSize]), () => ( null)),
22910
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _746 => _746.outputTokensSize]), () => ( null)),
22867
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _736 => _736.provider]), () => ( modelProvider)), () => ( null)),
22868
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _737 => _737.modelLabel]), () => ( modelLabel)), () => ( null)),
22869
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _738 => _738.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _739 => _739.contextWindowMaxTokens]))), () => ( null)),
22870
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _740 => _740.inputTokensSize]), () => ( null)),
22871
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _741 => _741.outputTokensSize]), () => ( null)),
22911
22872
  currentCacheHitRatePct: null,
22912
22873
  currentUsageBreakdown: null,
22913
22874
  // Dialog management
@@ -23029,7 +22990,7 @@ function useUnifiedChat(options) {
23029
22990
  []
23030
22991
  );
23031
22992
  const displayRefForward = _react.useCallback.call(void 0,
23032
- (ref) => _optionalChain([activeStateRef, 'access', _747 => _747.current, 'access', _748 => _748.displayRef, 'optionalCall', _749 => _749(ref)]),
22993
+ (ref) => _optionalChain([activeStateRef, 'access', _742 => _742.current, 'access', _743 => _743.displayRef, 'optionalCall', _744 => _744(ref)]),
23033
22994
  []
23034
22995
  );
23035
22996
  const displayRef = activeState.displayRef ? displayRefForward : void 0;
@@ -23039,7 +23000,7 @@ function useUnifiedChat(options) {
23039
23000
  const renameDialog = _react.useCallback.call(void 0, (id, title) => activeStateRef.current.renameDialog(id, title), []);
23040
23001
  const archiveDialog = _react.useCallback.call(void 0, (id) => activeStateRef.current.archiveDialog(id), []);
23041
23002
  const loadMoreDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreDialogs(), []);
23042
- const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _750 => _750.current, 'access', _751 => _751.setDialogScope, 'optionalCall', _752 => _752(scope)]), []);
23003
+ const setDialogScope = _react.useCallback.call(void 0, (scope) => _optionalChain([activeStateRef, 'access', _745 => _745.current, 'access', _746 => _746.setDialogScope, 'optionalCall', _747 => _747(scope)]), []);
23043
23004
  const reloadDialogs = _react.useCallback.call(void 0, () => activeStateRef.current.reloadDialogs(), []);
23044
23005
  const loadMoreMessages = _react.useCallback.call(void 0, () => activeStateRef.current.loadMoreMessages(), []);
23045
23006
  const approveRequest = _react.useCallback.call(void 0, (requestId) => activeStateRef.current.approveRequest(requestId), []);
@@ -23147,19 +23108,19 @@ function turnRequestKeys(content) {
23147
23108
  if (!Array.isArray(content)) return keys;
23148
23109
  for (const seg of content) {
23149
23110
  if (seg.type === "tool_execution") {
23150
- const id = _optionalChain([seg, 'access', _753 => _753.data, 'optionalAccess', _754 => _754.toolExecutionRequestId]);
23111
+ const id = _optionalChain([seg, 'access', _748 => _748.data, 'optionalAccess', _749 => _749.toolExecutionRequestId]);
23151
23112
  if (id) keys.add(id);
23152
23113
  } else if (seg.type === "approval_request") {
23153
- const id = _optionalChain([seg, 'access', _755 => _755.data, 'optionalAccess', _756 => _756.requestId]);
23114
+ const id = _optionalChain([seg, 'access', _750 => _750.data, 'optionalAccess', _751 => _751.requestId]);
23154
23115
  if (id) keys.add(id);
23155
23116
  } else if (seg.type === "escalation_offer") {
23156
- const id = _optionalChain([seg, 'access', _757 => _757.data, 'optionalAccess', _758 => _758.offerId]);
23117
+ const id = _optionalChain([seg, 'access', _752 => _752.data, 'optionalAccess', _753 => _753.offerId]);
23157
23118
  if (id) keys.add(id);
23158
23119
  } else if (seg.type === "approval_batch") {
23159
23120
  const data = seg.data;
23160
- if (_optionalChain([data, 'optionalAccess', _759 => _759.approvalRequestId])) keys.add(data.approvalRequestId);
23161
- for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _760 => _760.toolCalls]), () => ( []))) {
23162
- if (_optionalChain([call, 'optionalAccess', _761 => _761.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23121
+ if (_optionalChain([data, 'optionalAccess', _754 => _754.approvalRequestId])) keys.add(data.approvalRequestId);
23122
+ for (const call of _nullishCoalesce(_optionalChain([data, 'optionalAccess', _755 => _755.toolCalls]), () => ( []))) {
23123
+ if (_optionalChain([call, 'optionalAccess', _756 => _756.toolExecutionRequestId])) keys.add(call.toolExecutionRequestId);
23163
23124
  }
23164
23125
  }
23165
23126
  }
@@ -23243,18 +23204,18 @@ function mergeHistoryWithRealtime(input) {
23243
23204
  }
23244
23205
  }
23245
23206
  const trailing = processedHistory[processedHistory.length - 1];
23246
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _762 => _762.role]) === "assistant" ? trailing : null;
23247
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _763 => _763.content, 'access', _764 => _764.find, 'call', _765 => _765((s) => s.type === "approval_batch"), 'optionalAccess', _766 => _766.data, 'optionalAccess', _767 => _767.approvalRequestId]), () => ( null)) : null;
23207
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _757 => _757.role]) === "assistant" ? trailing : null;
23208
+ const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _758 => _758.content, 'access', _759 => _759.find, 'call', _760 => _760((s) => s.type === "approval_batch"), 'optionalAccess', _761 => _761.data, 'optionalAccess', _762 => _762.approvalRequestId]), () => ( null)) : null;
23248
23209
  let processedToUse = processedHistory;
23249
23210
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
23250
23211
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
23251
23212
  if (historyBatchId) {
23252
23213
  const batchTwins = existingMessages.filter(
23253
- (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _768 => _768.data, 'optionalAccess', _769 => _769.approvalRequestId]) === historyBatchId)
23214
+ (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some((s) => s.type === "approval_batch" && _optionalChain([s, 'access', _763 => _763.data, 'optionalAccess', _764 => _764.approvalRequestId]) === historyBatchId)
23254
23215
  );
23255
23216
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
23256
23217
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
23257
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _770 => _770.content])) ? historyTrailingAssistant.content.length : 0;
23218
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _765 => _765.content])) ? historyTrailingAssistant.content.length : 0;
23258
23219
  const realtimeSize = existingWithSameBatch.content.length;
23259
23220
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
23260
23221
  processedToUse = processedHistory.slice(0, -1);
@@ -23287,9 +23248,9 @@ function mergeHistoryWithRealtime(input) {
23287
23248
  const trailingAssistantText = lastProcessed && lastProcessed.role === "assistant" ? assistantAnswerText(lastProcessed.content) : "";
23288
23249
  const windowSignals = collectTwinSignals(processedToUse);
23289
23250
  const seenUserSyntheticByContent = /* @__PURE__ */ new Map();
23290
- const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _771 => _771.has, 'call', _772 => _772(m.id)]), () => ( false)));
23251
+ const isInWindow = (m) => processedIds.has(m.id) || (_nullishCoalesce(_optionalChain([rawHistoryIds, 'optionalAccess', _766 => _766.has, 'call', _767 => _767(m.id)]), () => ( false)));
23291
23252
  const firstWindowIndex = existingMessages.findIndex(isInWindow);
23292
- const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _773 => _773.timestamp, 'optionalAccess', _774 => _774.getTime, 'call', _775 => _775()]), () => ( 0))) <= historyFetchedAt;
23253
+ const isPersistedOlder = (m) => !isClientMintedId(m.id) && (_nullishCoalesce(_optionalChain([m, 'access', _768 => _768.timestamp, 'optionalAccess', _769 => _769.getTime, 'call', _770 => _770()]), () => ( 0))) <= historyFetchedAt;
23293
23254
  let lastOlderPersistedIndex = -1;
23294
23255
  if (firstWindowIndex < 0) {
23295
23256
  for (const [index, m] of existingMessages.entries()) {
@@ -23307,7 +23268,7 @@ function mergeHistoryWithRealtime(input) {
23307
23268
  } else if (pm.role === "assistant") {
23308
23269
  windowHasUnstampedAssistant = true;
23309
23270
  }
23310
- const time = _optionalChain([pm, 'access', _776 => _776.timestamp, 'optionalAccess', _777 => _777.getTime, 'call', _778 => _778()]);
23271
+ const time = _optionalChain([pm, 'access', _771 => _771.timestamp, 'optionalAccess', _772 => _772.getTime, 'call', _773 => _773()]);
23311
23272
  if (typeof time === "number" && time < windowMinTime) windowMinTime = time;
23312
23273
  }
23313
23274
  const threadHasClientMintedRow = existingMessages.some((m) => isClientMintedId(m.id));
@@ -23325,14 +23286,14 @@ function mergeHistoryWithRealtime(input) {
23325
23286
  const verdict = twinVerdict(windowSignals, m);
23326
23287
  return verdict === "unknown" ? !seqCanMislead(m) : verdict === "distinct";
23327
23288
  }
23328
- const time = _optionalChain([m, 'access', _779 => _779.timestamp, 'optionalAccess', _780 => _780.getTime, 'call', _781 => _781()]);
23289
+ const time = _optionalChain([m, 'access', _774 => _774.timestamp, 'optionalAccess', _775 => _775.getTime, 'call', _776 => _776()]);
23329
23290
  if (typeof time !== "number" || time > historyFetchedAt) return false;
23330
23291
  if (!Number.isFinite(windowMinTime) || time >= windowMinTime) return false;
23331
23292
  return twinVerdict(windowSignals, m) === "distinct";
23332
23293
  };
23333
23294
  const keepRealtime = (m) => {
23334
23295
  if (m.role === "user" && isOptimisticId(m.id) && typeof m.content === "string") {
23335
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _782 => _782.timestamp, 'optionalAccess', _783 => _783.getTime, 'call', _784 => _784()]), () => ( 0))) <= historyFetchedAt;
23296
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _777 => _777.timestamp, 'optionalAccess', _778 => _778.getTime, 'call', _779 => _779()]), () => ( 0))) <= historyFetchedAt;
23336
23297
  return !(canBeInSnapshot && windowSignals.userContents.has(m.content));
23337
23298
  }
23338
23299
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
@@ -23356,7 +23317,7 @@ function mergeHistoryWithRealtime(input) {
23356
23317
  } else if (typeof m.streamSeq === "number") {
23357
23318
  covered = historyMaxStreamSeq > 0 && historyMaxStreamSeq >= m.streamSeq;
23358
23319
  } else {
23359
- covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _785 => _785.timestamp, 'optionalAccess', _786 => _786.getTime, 'call', _787 => _787()]), () => ( 0))) <= historyFetchedAt;
23320
+ covered = historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _780 => _780.timestamp, 'optionalAccess', _781 => _781.getTime, 'call', _782 => _782()]), () => ( 0))) <= historyFetchedAt;
23360
23321
  }
23361
23322
  if (covered) return false;
23362
23323
  }
@@ -23465,7 +23426,7 @@ function normalizeHistoricalMessageData(md) {
23465
23426
  function isHistoricalUserTurn(m) {
23466
23427
  return !!m.owner;
23467
23428
  }
23468
- var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _788 => _788.type]) === "TEXT" && typeof d.text === "string";
23429
+ var isTextSegment = (d) => _optionalChain([d, 'optionalAccess', _783 => _783.type]) === "TEXT" && typeof d.text === "string";
23469
23430
  var THINK_MS = 550;
23470
23431
  var TOKEN_MS = 55;
23471
23432
  var USER_MS = 480;
@@ -23604,9 +23565,20 @@ var drawerPanelVariants = _classvarianceauthority.cva.call(void 0,
23604
23565
  flush: {
23605
23566
  false: "gap-4 rounded-md border border-ods-border p-4",
23606
23567
  true: ""
23568
+ },
23569
+ /** Panel size along the axis the drawer slides on. `default` leaves it to
23570
+ * the content (or `resizable`); `wide` is the admin detail panel, 90% of
23571
+ * the viewport. Set the size here, never with a width class. */
23572
+ size: {
23573
+ default: "",
23574
+ wide: ""
23607
23575
  }
23608
23576
  },
23609
23577
  compoundVariants: [
23578
+ { side: "right", size: "wide", class: "w-[90vw]" },
23579
+ { side: "left", size: "wide", class: "w-[90vw]" },
23580
+ { side: "top", size: "wide", class: "h-[90vh]" },
23581
+ { side: "bottom", size: "wide", class: "h-[90vh]" },
23610
23582
  // flush=true → drops inner padding/gap so the consumer fully owns
23611
23583
  // internal layout, BUT preserves the card chrome (rounded + border)
23612
23584
  // on desktop so the panel still reads as an elevated card.
@@ -23618,7 +23590,8 @@ var drawerPanelVariants = _classvarianceauthority.cva.call(void 0,
23618
23590
  ],
23619
23591
  defaultVariants: {
23620
23592
  side: "right",
23621
- flush: false
23593
+ flush: false,
23594
+ size: "default"
23622
23595
  }
23623
23596
  }
23624
23597
  );
@@ -23754,6 +23727,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
23754
23727
  ({
23755
23728
  side = "right",
23756
23729
  flush = false,
23730
+ size: size2 = "default",
23757
23731
  resizable = false,
23758
23732
  minSize = 320,
23759
23733
  maxSize = 1280,
@@ -23783,7 +23757,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
23783
23757
  mq.addEventListener("change", update);
23784
23758
  return () => mq.removeEventListener("change", update);
23785
23759
  }, [mobileBreakpoint]);
23786
- const { size: size2, setSize } = useResizableSize({
23760
+ const { size: resizedSize, setSize } = useResizableSize({
23787
23761
  enabled: resizable,
23788
23762
  isHorizontal,
23789
23763
  minSize,
@@ -23792,7 +23766,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
23792
23766
  storageKey
23793
23767
  });
23794
23768
  const applyInlineSize = resizable && !isMobile;
23795
- const sizeStyle = applyInlineSize ? isHorizontal ? { width: size2 } : { height: size2 } : {};
23769
+ const sizeStyle = applyInlineSize ? isHorizontal ? { width: resizedSize } : { height: resizedSize } : {};
23796
23770
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DrawerPortal, { children: [
23797
23771
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DrawerOverlay, { className: overlayClassName }),
23798
23772
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -23807,7 +23781,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
23807
23781
  DrawerResizeHandle,
23808
23782
  {
23809
23783
  side: resolvedSide,
23810
- size: size2,
23784
+ size: resizedSize,
23811
23785
  minSize,
23812
23786
  maxSize,
23813
23787
  onSize: setSize,
@@ -23817,7 +23791,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
23817
23791
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23818
23792
  "div",
23819
23793
  {
23820
- className: _chunk23V5BSHDcjs.cn.call(void 0, drawerPanelVariants({ side, flush }), className, panelClassName),
23794
+ className: _chunk23V5BSHDcjs.cn.call(void 0, drawerPanelVariants({ side, flush, size: size2 }), className, panelClassName),
23821
23795
  style: { ...sizeStyle, ...panelStyle },
23822
23796
  children
23823
23797
  }
@@ -24085,7 +24059,7 @@ function useChatDialogManager({
24085
24059
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
24086
24060
  if (restoreTarget) {
24087
24061
  try {
24088
- await _optionalChain([unarchiveDialog, 'optionalCall', _789 => _789(restoreTarget.id)]);
24062
+ await _optionalChain([unarchiveDialog, 'optionalCall', _784 => _784(restoreTarget.id)]);
24089
24063
  } catch (err) {
24090
24064
  console.error("[useChatDialogManager] unarchive failed:", err);
24091
24065
  return;
@@ -24334,7 +24308,7 @@ function SourceChip({
24334
24308
  const Icon = cta.icon;
24335
24309
  const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
24336
24310
  const chipClass = chatChipClass({ tone: "secondary" });
24337
- const decideTab = (href, targetPlatform) => _chunk2NRLRRMRcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
24311
+ const decideTab = (href, targetPlatform) => _chunk7R2DIGG4cjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
24338
24312
  if (src.items && src.items.length > 0) {
24339
24313
  const dropdownItems = src.items.map((item) => {
24340
24314
  const itemCta = resolveSourceRowCTA(
@@ -24423,7 +24397,7 @@ function SourceChip({
24423
24397
  "a",
24424
24398
  {
24425
24399
  href: resolvedHref,
24426
- ..._chunk2NRLRRMRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24400
+ ..._chunk7R2DIGG4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
24427
24401
  onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
24428
24402
  className: chipClass,
24429
24403
  children: chipBody(src.name)
@@ -24439,7 +24413,7 @@ function SourceChip({
24439
24413
  "a",
24440
24414
  {
24441
24415
  href: resolvedHref,
24442
- ..._chunk2NRLRRMRcjs.newTabAnchorAttrs.call(void 0, isNewTab),
24416
+ ..._chunk7R2DIGG4cjs.newTabAnchorAttrs.call(void 0, isNewTab),
24443
24417
  onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
24444
24418
  className: chipClass,
24445
24419
  title: displayName,
@@ -24631,7 +24605,7 @@ function EmbeddableChatInner({
24631
24605
  }),
24632
24606
  [commandsUrl]
24633
24607
  );
24634
- const headerUserName = _optionalChain([identityUser, 'optionalAccess', _790 => _790.name, 'optionalAccess', _791 => _791.trim, 'call', _792 => _792()]) || [_optionalChain([identityUser, 'optionalAccess', _793 => _793.firstName]), _optionalChain([identityUser, 'optionalAccess', _794 => _794.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _795 => _795.trim, 'call', _796 => _796()]) || void 0;
24608
+ const headerUserName = _optionalChain([identityUser, 'optionalAccess', _785 => _785.name, 'optionalAccess', _786 => _786.trim, 'call', _787 => _787()]) || [_optionalChain([identityUser, 'optionalAccess', _788 => _788.firstName]), _optionalChain([identityUser, 'optionalAccess', _789 => _789.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([userDisplayName, 'optionalAccess', _790 => _790.trim, 'call', _791 => _791()]) || void 0;
24635
24609
  const effectiveModes = _react.useMemo.call(void 0, () => {
24636
24610
  if (modes) return modes;
24637
24611
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
@@ -24646,7 +24620,7 @@ function EmbeddableChatInner({
24646
24620
  if (controlledActiveMode === void 0) {
24647
24621
  setUncontrolledActiveMode(next);
24648
24622
  }
24649
- _optionalChain([onActiveModeChange, 'optionalCall', _797 => _797(next)]);
24623
+ _optionalChain([onActiveModeChange, 'optionalCall', _792 => _792(next)]);
24650
24624
  },
24651
24625
  [controlledActiveMode, onActiveModeChange]
24652
24626
  );
@@ -24673,7 +24647,7 @@ function EmbeddableChatInner({
24673
24647
  );
24674
24648
  const effectiveAssistantName = emptyStateConfig.name;
24675
24649
  const effectiveAssistantIcon = emptyStateConfig.icon;
24676
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _798 => _798.title]) === "string" ? guideWelcome.title : null)));
24650
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _793 => _793.title]) === "string" ? guideWelcome.title : null)));
24677
24651
  const {
24678
24652
  messages: rawMessages,
24679
24653
  isLoading: chatLoading,
@@ -24716,8 +24690,8 @@ function EmbeddableChatInner({
24716
24690
  const mingoCaps = _react.useMemo.call(void 0,
24717
24691
  () => ({
24718
24692
  ...dialogCapabilities,
24719
- canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _799 => _799.canRename]), () => ( false)),
24720
- canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _800 => _800.canArchive]), () => ( false))
24693
+ canRename: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _794 => _794.canRename]), () => ( false)),
24694
+ canArchive: _nullishCoalesce(_optionalChain([dialogCapabilities, 'optionalAccess', _795 => _795.canArchive]), () => ( false))
24721
24695
  }),
24722
24696
  [dialogCapabilities]
24723
24697
  );
@@ -24732,7 +24706,7 @@ function EmbeddableChatInner({
24732
24706
  void sendMessage(guidePendingPrompt).catch((err) => {
24733
24707
  console.error("[EmbeddableChat] guide launcher prompt failed:", err);
24734
24708
  });
24735
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _801 => _801()]);
24709
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _796 => _796()]);
24736
24710
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
24737
24711
  const {
24738
24712
  attachments: stagedAttachments,
@@ -24743,7 +24717,7 @@ function EmbeddableChatInner({
24743
24717
  clear: clearAttachments
24744
24718
  } = useChatAttachments();
24745
24719
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
24746
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _802 => _802.maxItems]), () => ( 10));
24720
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _797 => _797.maxItems]), () => ( 10));
24747
24721
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
24748
24722
  const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
24749
24723
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -24764,10 +24738,10 @@ function EmbeddableChatInner({
24764
24738
  }, [activeDialogId, activeMode]);
24765
24739
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
24766
24740
  const m = /* @__PURE__ */ new Map();
24767
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _803 => _803.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24741
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _798 => _798.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
24768
24742
  return m;
24769
- }, [_optionalChain([contextPicker, 'optionalAccess', _804 => _804.entityTypes])]);
24770
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _805 => _805.entityTypes]);
24743
+ }, [_optionalChain([contextPicker, 'optionalAccess', _799 => _799.entityTypes])]);
24744
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _800 => _800.entityTypes]);
24771
24745
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
24772
24746
  const byType = /* @__PURE__ */ new Map();
24773
24747
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -24779,7 +24753,7 @@ function EmbeddableChatInner({
24779
24753
  if (mentionActiveRef.current) {
24780
24754
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
24781
24755
  if (contextItems.length >= contextMaxItems) return;
24782
- _optionalChain([chatInputRef, 'access', _806 => _806.current, 'optionalAccess', _807 => _807.commitMention, 'call', _808 => _808(mentionTokenOf(key, mentionMarkerByType), {
24756
+ _optionalChain([chatInputRef, 'access', _801 => _801.current, 'optionalAccess', _802 => _802.commitMention, 'call', _803 => _803(mentionTokenOf(key, mentionMarkerByType), {
24783
24757
  label: item.label,
24784
24758
  icon: resolveContextIcon(item)
24785
24759
  })]);
@@ -24802,9 +24776,9 @@ function EmbeddableChatInner({
24802
24776
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
24803
24777
  if (mentionKeysRef.current.has(key)) {
24804
24778
  mentionKeysRef.current.delete(key);
24805
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _809 => _809.current, 'optionalAccess', _810 => _810.getValue, 'call', _811 => _811()]), () => ( ""));
24779
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _804 => _804.current, 'optionalAccess', _805 => _805.getValue, 'call', _806 => _806()]), () => ( ""));
24806
24780
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
24807
- _optionalChain([chatInputRef, 'access', _812 => _812.current, 'optionalAccess', _813 => _813.setValue, 'call', _814 => _814(next)]);
24781
+ _optionalChain([chatInputRef, 'access', _807 => _807.current, 'optionalAccess', _808 => _808.setValue, 'call', _809 => _809(next)]);
24808
24782
  }
24809
24783
  },
24810
24784
  [mentionMarkerByType]
@@ -24826,7 +24800,7 @@ function EmbeddableChatInner({
24826
24800
  }, []);
24827
24801
  const closeContextPicker = _react.useCallback.call(void 0, () => {
24828
24802
  if (mentionActiveRef.current) {
24829
- _optionalChain([chatInputRef, 'access', _815 => _815.current, 'optionalAccess', _816 => _816.removeMentionTrigger, 'call', _817 => _817()]);
24803
+ _optionalChain([chatInputRef, 'access', _810 => _810.current, 'optionalAccess', _811 => _811.removeMentionTrigger, 'call', _812 => _812()]);
24830
24804
  }
24831
24805
  setContextPickerOpen(false);
24832
24806
  setMentionQuery(null);
@@ -24860,8 +24834,8 @@ function EmbeddableChatInner({
24860
24834
  [effectiveAssistantIcon]
24861
24835
  );
24862
24836
  const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
24863
- const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _818 => _818.firstName]), _optionalChain([identityUser, 'optionalAccess', _819 => _819.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _820 => _820.name, 'optionalAccess', _821 => _821.trim, 'call', _822 => _822()]) || void 0 : void 0;
24864
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _823 => _823.avatarUrl, 'optionalAccess', _824 => _824.trim, 'call', _825 => _825()]) || void 0 : void 0;
24837
+ const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _813 => _813.firstName]), _optionalChain([identityUser, 'optionalAccess', _814 => _814.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _815 => _815.name, 'optionalAccess', _816 => _816.trim, 'call', _817 => _817()]) || void 0 : void 0;
24838
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _818 => _818.avatarUrl, 'optionalAccess', _819 => _819.trim, 'call', _820 => _820()]) || void 0 : void 0;
24865
24839
  const messages = _react.useMemo.call(void 0, () => {
24866
24840
  const options = { userName: guideUserName, userAvatar: guideUserAvatar, timestampCache };
24867
24841
  const mapped = rawMessages.map((m) => mapHostMessage(m, options));
@@ -25035,7 +25009,7 @@ function EmbeddableChatInner({
25035
25009
  _react.useEffect.call(void 0, () => {
25036
25010
  if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
25037
25011
  const ro = new ResizeObserver((entries) => {
25038
- const w = _optionalChain([entries, 'access', _826 => _826[0], 'optionalAccess', _827 => _827.contentRect, 'optionalAccess', _828 => _828.width]);
25012
+ const w = _optionalChain([entries, 'access', _821 => _821[0], 'optionalAccess', _822 => _822.contentRect, 'optionalAccess', _823 => _823.width]);
25039
25013
  if (typeof w === "number") setPanelWidth(w);
25040
25014
  });
25041
25015
  ro.observe(panelBoundary);
@@ -25079,17 +25053,17 @@ function EmbeddableChatInner({
25079
25053
  const stackedListView = isMingoMode && !hasConversation && !archiveOpen && !wideMingo && !composeOpen && !emptyListSkipped;
25080
25054
  const headerShowBack = hasConversation || guideCanReturnToMingo;
25081
25055
  const freshConversationTitle = isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "New Chat";
25082
- const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _829 => _829.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25056
+ const headerTitle = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _824 => _824.title]) || freshConversationTitle : isGuideEmpty ? freshConversationTitle : "Current Chats";
25083
25057
  const headerBackAriaLabel = hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo";
25084
25058
  const headerOnBack = hasConversation ? handleBack : () => handleActiveModeChange("mingo");
25085
25059
  const headerOnRestore = isViewingArchived && unarchiveDialog && activeDialog ? () => setRestoreTarget(activeDialog) : void 0;
25086
25060
  const headerOnRename = activeDialogId && activeDialog && mingoCaps.canRename ? () => setRenameTarget(activeDialog) : void 0;
25087
25061
  const headerOnArchive = activeDialogId && activeDialog && mingoCaps.canArchive ? () => setArchiveTarget(activeDialog) : void 0;
25088
- const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _830 => _830.onCopyLink, 'optionalCall', _831 => _831(activeDialog)]) : void 0;
25062
+ const headerOnCopyLink = activeDialogId && activeDialog && mingoCaps.onCopyLink ? () => _optionalChain([mingoCaps, 'access', _825 => _825.onCopyLink, 'optionalCall', _826 => _826(activeDialog)]) : void 0;
25089
25063
  const headerOnOpenArchive = fetchArchivedDialogs ? openArchive : void 0;
25090
- const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _832 => _832.owner]) : void 0;
25091
- const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _833 => _833.name, 'optionalAccess', _834 => _834.trim, 'call', _835 => _835()]) || headerUserName;
25092
- const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _836 => _836.avatarUrl, 'optionalAccess', _837 => _837.trim, 'call', _838 => _838()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _839 => _839.avatarUrl, 'optionalAccess', _840 => _840.trim, 'call', _841 => _841()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _842 => _842.trim, 'call', _843 => _843()]) || void 0;
25064
+ const headerOwner = hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _827 => _827.owner]) : void 0;
25065
+ const headerPersonName = _optionalChain([headerOwner, 'optionalAccess', _828 => _828.name, 'optionalAccess', _829 => _829.trim, 'call', _830 => _830()]) || headerUserName;
25066
+ const headerPersonAvatarUrl = headerOwner ? _optionalChain([headerOwner, 'access', _831 => _831.avatarUrl, 'optionalAccess', _832 => _832.trim, 'call', _833 => _833()]) || void 0 : _optionalChain([identityUser, 'optionalAccess', _834 => _834.avatarUrl, 'optionalAccess', _835 => _835.trim, 'call', _836 => _836()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _837 => _837.trim, 'call', _838 => _838()]) || void 0;
25093
25067
  const headerAvatar = headerPersonName || headerPersonAvatarUrl ? { name: headerPersonName, avatarUrl: headerPersonAvatarUrl } : void 0;
25094
25068
  const handleNewChat = _react.useCallback.call(void 0, () => {
25095
25069
  resetToNewChat();
@@ -25235,7 +25209,7 @@ function EmbeddableChatInner({
25235
25209
  headerAvatar ? (
25236
25210
  // Owner avatar at the title cell's right edge (Figma 113:63273).
25237
25211
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25238
- _chunk2NRLRRMRcjs.SquareAvatar,
25212
+ _chunk7R2DIGG4cjs.SquareAvatar,
25239
25213
  {
25240
25214
  variant: "round",
25241
25215
  sizePx: 32,
@@ -25407,9 +25381,9 @@ function EmbeddableChatInner({
25407
25381
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
25408
25382
  subtitleLoading: emptyStateLoading,
25409
25383
  ...guideWelcome,
25410
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _844 => _844.title]))),
25411
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _845 => _845.icon]))),
25412
- quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _846 => _846.quickActions]), () => ( guideSuggestedActions)),
25384
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _839 => _839.title]))),
25385
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _840 => _840.icon]))),
25386
+ quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _841 => _841.quickActions]), () => ( guideSuggestedActions)),
25413
25387
  onQuickAction: (action) => {
25414
25388
  setQuickActionPreview(null);
25415
25389
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -25483,8 +25457,8 @@ function EmbeddableChatInner({
25483
25457
  selectedContextItems: contextItems,
25484
25458
  onToggleContextItem: toggleContextItem,
25485
25459
  onRemoveContextItem: removeContextItem,
25486
- contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _847 => _847.items]),
25487
- onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _848 => _848.onRemove]),
25460
+ contextMemoryItems: _optionalChain([contextMemory, 'optionalAccess', _842 => _842.items]),
25461
+ onRemoveContextMemoryItem: _optionalChain([contextMemory, 'optionalAccess', _843 => _843.onRemove]),
25488
25462
  contextPickerOpen,
25489
25463
  onOpenContextPicker: openContextPicker,
25490
25464
  onCloseContextPicker: closeContextPicker,
@@ -25954,4 +25928,4 @@ function EmbeddableChatInner({
25954
25928
 
25955
25929
 
25956
25930
  exports.FloatingTooltip = FloatingTooltip; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.useScrollFade = useScrollFade; exports.ScrollFadeOverlay = ScrollFadeOverlay; exports.ScrollShadow = ScrollShadow; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalTwoColumn = ModalTwoColumn; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.OVERLAY_BACKDROP_CLASS = OVERLAY_BACKDROP_CLASS; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.buildHeadingIdMap = buildHeadingIdMap; exports.useHeadingIdMap = useHeadingIdMap; exports.extractText = extractText; exports.useIsHydrated = useIsHydrated; exports.MermaidDiagram = MermaidDiagram; exports.hasRenderableSrc = hasRenderableSrc; exports.buildStandardLeafRenderers = buildStandardLeafRenderers; exports.SAFE_HTML_TAGS = SAFE_HTML_TAGS; exports.SVG_TAGS = SVG_TAGS; exports.buildEffectiveTagSet = buildEffectiveTagSet; exports.buildSanitizeSchema = buildSanitizeSchema; exports.rehypeStripUnsafe = rehypeStripUnsafe; exports.escapeUnknownHtmlTags = escapeUnknownHtmlTags; exports.cardAwareUrlTransform = cardAwareUrlTransform; exports.splitStreamingBlocks = splitStreamingBlocks; exports.completeStreamingTail = completeStreamingTail; exports.TEXT_SIZE_PRESETS = TEXT_SIZE_PRESETS; exports.resolveTextSizeConfig = resolveTextSizeConfig; exports.NO_BROKEN_LINKS = NO_BROKEN_LINKS; exports.MarkdownEngine = MarkdownEngine; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.fetchPriorityProp = fetchPriorityProp; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.saveDataEnabled = saveDataEnabled; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.VideoPlayBadge = VideoPlayBadge; exports.VideoUnmuteGlyph = VideoUnmuteGlyph; exports.extractYouTubeId = extractYouTubeId; exports.VIDEO_PLAYBACK_FAILED_EVENT = VIDEO_PLAYBACK_FAILED_EVENT; exports.Video = Video2; exports.HoverDropdown = HoverDropdown; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.CommandBlock = CommandBlock; exports.ApprovalStatusTag = ApprovalStatusTag; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.EscalationOfferMessage = EscalationOfferMessage; exports.formatTime = formatTime; exports.AiAssistantInfo = AiAssistantInfo; exports.TicketEscalatedMessage = TicketEscalatedMessage; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.TICKET_EVENT_KIND = TICKET_EVENT_KIND; exports.TicketEventMessage = TicketEventMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.ThinkingDisplay = ThinkingDisplay; exports.AskDisplay = AskDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.BlockCard = BlockCard; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.ChatMessageList = ChatMessageList; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.getAgentAccent = getAgentAccent; exports.accentFromIdentityIcon = accentFromIdentityIcon; exports.isQuickActionIconSpec = isQuickActionIconSpec; exports.renderQuickActionIcon = renderQuickActionIcon; exports.QuickActionChipSkeleton = QuickActionChipSkeleton; exports.QuickActionChipButton = QuickActionChipButton; exports.QuickActionChipFromData = QuickActionChipFromData; exports.useMarqueeSync = useMarqueeSync; exports.getMarqueeTrackOffset = getMarqueeTrackOffset; exports.getMarqueeAppliedOffset = getMarqueeAppliedOffset; exports.getMarqueeCloneTwin = getMarqueeCloneTwin; exports.MarqueeWallFades = MarqueeWallFades; exports.MarqueeWall = MarqueeWall; exports.WALL_SKELETON_LABEL_CH = WALL_SKELETON_LABEL_CH; exports.interleave = interleave; exports.QuickActionWall = QuickActionWall; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.GuideWelcome = GuideWelcome; exports.GuideModeBanner = GuideModeBanner; exports.TabSelector = TabSelector; exports.MingoHistoryRail = MingoHistoryRail; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.ChatHeaderSearchField = ChatHeaderSearchField; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.ChatContextMemoryBar = ChatContextMemoryBar; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardSkeleton = AdminContentCardSkeleton; exports.AdminContentCardGrid = AdminContentCardGrid; exports.getCaptionsUrl = getCaptionsUrl; exports.rebaseCaptionsUrl = rebaseCaptionsUrl; exports.buildCaptionsUrl = buildCaptionsUrl; exports.getEntityCaptionUrls = getEntityCaptionUrls; exports.getEntityCaptionUrlsById = getEntityCaptionUrlsById; exports.captionsEntityTypeForDocType = captionsEntityTypeForDocType; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.useCaptions = useCaptions; exports.UserDisplay = UserDisplay; exports.CardHitLayer = CardHitLayer; exports.STRIP_CELL_MAX_WIDTH = STRIP_CELL_MAX_WIDTH; exports.CardsStrip = CardsStrip; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_TO_CSS_ASPECT = RATIO_TO_CSS_ASPECT; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesStrip = VideoBitesStrip; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.useChatCardItem = useChatCardItem; exports.clickupTaskUrl = clickupTaskUrl; exports.readFetchedCardTitle = readFetchedCardTitle; exports.resolveFetchedCardHref = resolveFetchedCardHref; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.chatCardLabel = chatCardLabel; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.APPROVAL_BLOCK_VARIANT = APPROVAL_BLOCK_VARIANT; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.EMPTY_DIALOG_CAPABILITIES = EMPTY_DIALOG_CAPABILITIES; exports.useChunkCatchup = useChunkCatchup; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.approvalDisplaysInline = approvalDisplaysInline; exports.appendToTrailingAssistant = appendToTrailingAssistant; exports.upsertTrailingCompaction = upsertTrailingCompaction; exports.applyToolExecutionToMessages = applyToolExecutionToMessages; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.createEmptyTurnMeta = createEmptyTurnMeta; exports.createChatStreamReducer = createChatStreamReducer; exports.DEFAULT_DIALOG_SIDE = DEFAULT_DIALOG_SIDE; exports.DEFAULT_MAX_REDUCERS = DEFAULT_MAX_REDUCERS; exports.MAX_PENDING_RETAIN_KEYS = MAX_PENDING_RETAIN_KEYS; exports.createChatDialogStore = createChatDialogStore; exports.createDeltaBatcher = createDeltaBatcher; exports.useChatStreamReducer = useChatStreamReducer; exports.createChatConversationsApi = createChatConversationsApi; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.buildDiscussPrompt = buildDiscussPrompt; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.useManagedDialogList = useManagedDialogList; exports.useSseChatAdapter = useSseChatAdapter; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.extractIncompleteTailState = extractIncompleteTailState; exports.decodeHistoricalMessageData = decodeHistoricalMessageData; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.mapProcessedToUnified = mapProcessedToUnified; exports.historicalToUnified = historicalToUnified; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useStableShallow = useStableShallow; exports.useUnifiedChat = useUnifiedChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.flattenAssistantContent = flattenAssistantContent; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.EmbeddableChat = EmbeddableChat;
25957
- //# sourceMappingURL=chunk-VHB3I6F3.cjs.map
25931
+ //# sourceMappingURL=chunk-CBXZSTAG.cjs.map